ceill: Provide function definition on MSVC.
[gnulib.git] / ChangeLog
1 2012-02-24  Bruno Haible  <bruno@clisp.org>
2
3         ceill: Provide function definition on MSVC.
4         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5         used as a function pointer.
6         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7
8 2012-02-24  Bruno Haible  <bruno@clisp.org>
9
10         floorl: Provide function definition on MSVC.
11         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
12         used as a function pointer.
13         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
14
15 2012-02-24  Bruno Haible  <bruno@clisp.org>
16
17         ceilf: Provide function definition on MSVC.
18         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
19         used as a function pointer.
20         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
21
22 2012-02-24  Bruno Haible  <bruno@clisp.org>
23
24         floorf: Provide function definition on MSVC.
25         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
26         used as a function pointer.
27         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
28
29 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
30
31         stdnoreturn: new module
32         This implements a replacement for C11's <stdnoreturn.h>.
33         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
34         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
35         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
36         * tests/test-stdnoreturn.c: New files.
37
38 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
39
40         regex: fix false multibyte matches in some regular expressions
41         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
42         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43         * lib/regex_internal.c (re_string_skip_chars):
44         Fix miscomputation of remain_len that may cause incomplete
45         multi-byte character and false match.
46
47 2012-02-24  Jim Meyering  <meyering@redhat.com>
48
49         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
50         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
51         uses with "==" *before* the call, e.g., 0 == strcmp (...)
52         Remove now-unnecessary str''cmp obfuscation.
53         Suggested by Akim Demaille.
54
55 2012-02-24  Bruno Haible  <bruno@clisp.org>
56
57         streq: Rename macro.
58         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
59         * NEWS: Mention the change.
60         * lib/mbrtowc.c (mbrtowc): Update.
61         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
62         * lib/wcwidth.c (wcwidth): Update.
63         Suggested by Akim Demaille and Jim Meyering.
64
65 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
66
67         regex: fix typo in definition of MIN
68         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
69         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
70
71 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
72             Bruno Haible  <bruno@clisp.org>
73
74         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
75         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
76         entries into a stack-allocated buffer directly.
77         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
78
79 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
80             Bruno Haible  <bruno@clisp.org>
81
82         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
83
84          - There were several instances of this pattern:
85
86              for (;;) {
87                n = acl (f, GETACLCNT, 0, NULL);
88                [ allocate an array A of size N ]
89                if (acl (f, GETACL, n, a) == n)
90                  break;
91              }
92
93            This loop might never terminate if some other process is constantly
94            manipulating the file's ACL.  The loop should be rewritten to
95            terminate.
96
97          - The acl (... GETACLNT ...) call is merely an optimization; its value
98            is merely a hint as to how big to make the array.  A better
99            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
100            and just guess a reasonably-big size, growing the size and trying
101            again if it's not large enough.  This guarantees termination, and
102            saves a system call.
103
104         * lib/acl-internal.h: Include <limits.h>.
105         (MIN, SIZE_MAX): New macros.
106         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
107         a stack-allocated buffer, and use malloc if it does not fit. Don't
108         use GETACLCNT.
109         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
110
111 2012-02-19  Bruno Haible  <bruno@clisp.org>
112
113         acl: Fix endless loop on Solaris with vxfs.
114         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
115         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
116         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
117         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
118         * tests/test-sameacls.c (main)[Solaris]: Likewise.
119         Reported by Bill Jones in
120         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
121
122 2012-02-19  Bruno Haible  <bruno@clisp.org>
123
124         acl: Fix copy-acl test failure on Solaris 11 2011-11.
125         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
126         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
127         that this function returns 0 in some more cases.
128
129 2012-02-19  Bruno Haible  <bruno@clisp.org>
130
131         acl: Update doc references.
132         * doc/acl-resources.txt: Update links to Solaris documentation.
133
134 2012-02-19  Bruno Haible  <bruno@clisp.org>
135
136         Fix test failure in many locales on Solaris 11.
137         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
138         'tr' arguments.
139         * tests/test-pipe-filter-ii1.c (main): Likewise.
140         * build-aux/bootstrap (check_versions): Run 'tr' command with range
141         expressions in the C locale.
142         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
143         * m4/host-os.m4 (gl_HOST_OS): Likewise.
144
145 2012-02-19  Bruno Haible  <bruno@clisp.org>
146
147         gnulib-tool: Improve usage message.
148         * gnulib-tool (func_usage): Move doc of --help and --version to the
149         section "Operation modes".
150
151 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
152
153         README-release: make it easier to execute commands
154         * top/README-release: break commands out on to separate lines.
155
156 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
157
158         GNUmakefile: simplify detection of unconfigured trees
159         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
160         whether the tree make is being run from is already configured or
161         not.  Related simplifications.
162
163 2012-02-13  Simon Josefsson  <simon@josefsson.org>
164
165         * gnulib-tool (func_usage): Document --help and --version.
166
167 2012-02-11  Jim Meyering  <meyering@redhat.com>
168
169         bootstrap: don't exit 0 upon gnulib-tool failure
170         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
171         its exit status, not 0.
172
173 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
174
175         README-release: various improvements
176         * top/README-release: Give a command to push changes for the
177         release.  Add "distcheck" to list of other pre-release checks.
178         Fix instance of "make stable" which should be "make TYPE".
179
180 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
181
182         maint: replace FSF snail-mail addresses with URLs
183         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
184         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
185         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
186         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
187         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
188         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
189         * lib/check-version.c, lib/check-version.h, lib/config.charset:
190         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
191         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
192         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
193         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
194         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
195         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
196         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
197         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
198         * lib/glthread/thread.c, lib/glthread/thread.h:
199         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
200         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
201         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
202         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
203         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
204         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
205         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
206         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
207         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
208         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
209         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
210         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
211         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
212         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
213         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
214         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
215         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
216         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
217         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
218         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
219         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
220         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
221         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
222         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
223         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
224         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
225         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
226         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
227         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
228         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
229         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
230         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
231         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
232         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
233         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
234         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
235         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
236         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
237         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
238         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
239         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
240         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
241         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
242         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
243         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
244         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
245         * tests/test-poll.c, tests/test-quotearg-simple.c:
246         * tests/test-quotearg.c, tests/test-quotearg.h:
247         * tests/test-round-ieee.c, tests/test-round1.c:
248         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
249         * tests/test-roundl-ieee.c, tests/test-roundl.c:
250         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
251         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
252         * tests/test-strerror.c, tests/test-strerror_r.c:
253         * tests/test-strsignal.c, tests/test-strverscmp.c:
254         * tests/test-xmemdup0.c:
255         Replace FSF snail mail addresses with URLs, as per GNU coding
256         standards.  See glibc bug
257         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
258
259 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
260
261         README-release: capitalize a word and split a line
262         * top/README-release: Fix punctuation and spacing.
263
264 2012-02-08  Akim Demaille  <demaille@gostai.com>
265
266         fatal-signal: use C prototypes (with explicit void).
267         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
268         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
269
270 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
271
272         regex: spelling fix
273         * lib/regexec.c: spelling fix
274
275         regex: rely on stdint.h for SIZE_MAX
276         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
277
278 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
279
280         regex: merge glibc changes
281
282         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
283         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
284         (init_word_char): Work even if bitset words are not exactly 32 or
285         64 bits wide.  Don't assume there are no padding bits.
286         * lib/regex.c [_LIBC]: Do not include <config.h>.
287         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
288         and -Wtype-limits.
289         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
290         needless disagreement with glibc.  All uses changed.  Define it to
291         1 only if _GNU_SOURCE, to match glibc.
292         (_REG_RM_NAME): Remove; no longer needed, since the names in
293         question are now all protected by __USE_GNU.
294         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
295         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
296         * lib/regex_internal.h (MIN): New macro.
297
298         2012-01-03 Ulrich Drepper <drepper@gmail.com>
299         * lib/regcomp.c (init_word_char): Optimize regex a bit.
300
301         2011-12-30 Jakub Jelinek <jakub@redhat.com>
302         * lib/regex_internal.c (re_string_fetch_byte_case):
303         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
304         is miscompiled, and it turns out it is because of an incorrect
305         attribute on re_string_fetch_byte_case.  Unlike
306         re_string_peek_byte_case, this one is really not pure, it modifies
307         memory (increments pstr->cur_idx), and with the pure attribute GCC
308         assumed it doesn't and it cached the presumed value of
309         regexp->cur_idx in a variable across the
310          for (;; ++i)
311            {
312              if (i >= BRACKET_NAME_BUF_SIZE)
313                return REG_EBRACK;
314              if (token->type == OP_OPEN_CHAR_CLASS)
315                ch = re_string_fetch_byte_case (regexp);
316              else
317                ch = re_string_fetch_byte (regexp);
318              if (re_string_eoi(regexp))
319                return REG_EBRACK;
320              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
321                break;
322              elem->opr.name[i] = ch;
323            }
324
325         2011-11-29 Andreas Schwab <schwab@redhat.com>
326         * lib/regcomp.c (build_equiv_class):
327         Fix access after end of search string in regex matcher.
328
329         2011-11-12 Ulrich Drepper <drepper@redhat.com>
330         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
331
332         2011-10-12 Ulrich Drepper <drepper@redhat.com>
333         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
334
335         2011-10-11 Ulrich Drepper <drepper@redhat.com>
336         * lib/regcomp.c (parse_branch, parse_sub_exp):
337         More regex memory leak fixes and tests.
338         (parse_sub_exp, parse_bracket_exp):
339         Fix memory leak for some invalid regular expressions.
340
341         2011-05-28 Ulrich Drepper <drepper@gmail.com>
342         * lib/regex_internal.c, lib/regexec.c:
343         Fix unnecessary overallocation due to incomplete character.  When
344         incomplete characters are found at the end of a string the code
345         ran amok and allocated lots of memory.  Stricter limits are now in
346         place.
347
348         2011-05-20 Reuben Thomas <rrt@sc3d.org>
349         * lib/regex.h: Update documentation.
350
351         2011-05-16 Aharon Robbins <arnold@skeeve.com>
352         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
353
354         2010-05-05 Andreas Schwab <schwab@redhat.com>
355         * lib/regexec.c (find_collation_sequence_value):
356         Fix lookup of collation sequence value during regexp matching.
357
358         2010-01-22 Ulrich Drepper <drepper@redhat.com>
359         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
360
361         2008-01-16 Ulrich Drepper <drepper@redhat.com>
362         * lib/regex.h: Cleanup namespace.
363
364         2007-11-26 Ulrich Drepper <drepper@redhat.com>
365         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
366
367         2007-08-26 Ulrich Drepper <drepper@redhat.com>
368         * lib/regex_internal.h: Prevent some declarations and definitions
369         to be seen when used in tests.
370
371         2005-05-06 Ulrich Drepper <drepper@redhat.com>
372         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
373         __libc_lock_* macros if not _LIBC.
374         (struct re_dfa_t): Add lock.
375
376 2012-02-07  Eric Blake  <eblake@redhat.com>
377
378         maint.mk: also prohibit lower-case @var@
379         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
380         lower case, like @top_srcdir@.
381
382 2012-02-04  Eric Blake  <eblake@redhat.com>
383
384         canonicalize: avoid uninitialized memory use
385         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
386         random '/' left in dest.
387         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
388
389 2012-02-04  Bruno Haible  <bruno@clisp.org>
390
391         isatty: Fix test failure of ptsname_r on native Windows.
392         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
393         and don't set errno.
394         (isatty): Test first whether fd is valid. Set errno when returning 0.
395
396 2012-02-04  Bruno Haible  <bruno@clisp.org>
397
398         spawn-pipe tests: Fix a NULL program name in a diagnostic.
399         * tests/test-spawn-pipe-main.c: Include progname.h.
400         (main): Invoke set_program_name.
401         * modules/spawn-pipe-tests (Depends-on): Add progname.
402
403         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
404         * tests/test-nonblocking-socket-main.c: Include progname.h.
405         (main): Invoke set_program_name.
406         * modules/nonblocking-socket-tests (Depends-on): Add progname.
407
408         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
409         * tests/test-nonblocking-pipe-main.c: Include progname.h.
410         (main): Invoke set_program_name.
411         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
412
413 2012-02-04  Eric Blake  <eblake@redhat.com>
414
415         canonicalize-lgpl: fix // handling
416         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
417
418         canonicalize: fix // handling
419         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
420         /// to //, since only // is special.
421
422 2012-02-04  Bruno Haible  <bruno@clisp.org>
423
424         ioctl: Fix test failure on native Windows.
425         * lib/ioctl.c: Include msvc-nothrow.h.
426         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
427
428 2012-02-04  Bruno Haible  <bruno@clisp.org>
429
430         fsync: Avoid test failure on native Windows.
431         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
432         read-only.
433
434 2012-02-04  Bruno Haible  <bruno@clisp.org>
435
436         sys_select: Avoid syntax error on OpenBSD 5.0.
437         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
438         currently being included, just include the system's <sys/select.h>.
439
440 2012-02-04  Bruno Haible  <bruno@clisp.org>
441
442         sys_select: Avoid syntax error on OpenBSD 5.0.
443         * lib/sys_select.in.h: Include <signal.h> only after the include_next
444         <sys/select.h>, not before.
445         Reported by Jiri B <jirib@devio.us>.
446
447 2012-02-04  Bruno Haible  <bruno@clisp.org>
448
449         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
450         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
451         global variables.
452         * tests/test-get-rusage-data.c (main): Likewise.
453         Reported by Jim Meyering.
454
455 2012-02-04  Bruno Haible  <bruno@clisp.org>
456
457         stdioext: Fix last commit.
458         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
459
460 2012-02-03  Bruno Haible  <bruno@clisp.org>
461
462         stdioext: Add tentative support for Plan9.
463         * lib/stdio-impl.h: Include <errno.h>.
464         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
465         * lib/freadable.c (freadable): Likewise.
466         * lib/fwritable.c (fwritable): Likewise.
467         * lib/fbufmode.c (fbufmode): Likewise.
468         * lib/freading.c (freading): Likewise.
469         * lib/fwriting.c (fwriting): Likewise.
470         * lib/freadptr.c (freadptr): Likewise.
471         * lib/freadseek.c (freadptrinc): Likewise.
472         * lib/freadahead.c (freadahead): Likewise.
473         * lib/fpurge.c (fpurge): Likewise.
474         * lib/fseeko.c (rpl_fseeko): Likewise.
475         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
476         Reported by Jens Staal <staal1978@gmail.com>.
477
478 2012-02-02  Jim Meyering  <meyering@redhat.com>
479
480         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
481         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
482         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
483         not even to try to add the attribute.  Instead, add a pragma to suppress
484         the suggestion/warning.
485
486 2012-01-31  Karl Berry  <karl@gnu.org>
487
488         setstate doc: typo.
489         * doc/posix-functions/setstate.texi (setstate): { not (.
490
491 2012-01-31  Bruno Haible  <bruno@clisp.org>
492
493         popen: Make more robust on Windows.
494         * lib/popen.c: On native Windows, use the _popen based code even if
495         HAVE_POPEN is set.
496         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
497         environment variable on native Windows.
498
499 2012-01-30  Bruno Haible  <bruno@clisp.org>
500
501         pclose: Fix typo.
502         * lib/stdio.in.h (pclose): Fix typo in warning message.
503
504 2012-01-30  Bruno Haible  <bruno@clisp.org>
505
506         doc about getlogin_r, setstate.
507         * doc/posix-functions/getlogin_r.texi: List the incompatible
508         declaration problem under "not fixed by gnulib".
509         * doc/posix-functions/setstate.texi: Mention incompatible declaration
510         problem on Solaris 11 and other platforms.
511
512 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
513             Bruno Haible  <bruno@clisp.org>
514
515         poll tests: Make test more robust.
516         * tests/test-poll.c: Include macros.h.
517         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
518         return value of various I/O operations.
519         * modules/poll-tests (Files): Add tests/macros.h.
520
521 2012-01-30  Bruno Haible  <bruno@clisp.org>
522
523         sys_stat: Fix support for mingw64 and MSVC.
524         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
525         header files already do it.
526         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
527         stat itself.
528         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
529
530 2012-01-30  Bruno Haible  <bruno@clisp.org>
531
532         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
533         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
534         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
535
536 2012-01-29  Bruno Haible  <bruno@clisp.org>
537
538         quotearg: Fix test failure on MacOS X 10.5.
539         * tests/test-quotearg-simple.c: Include localcharset.h.
540         (main): If the locale encoding is not ASCII, bypass the tests of
541         locale_quoting_style and clocale_quoting_style.
542         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
543
544 2012-01-29  Jim Meyering  <meyering@redhat.com>
545
546         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
547         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
548         detect uses of canonicalize_file_name.
549
550 2012-01-28  Bruno Haible  <bruno@clisp.org>
551
552         test-framework-sh: Fix test failure with AIX 7.1 diff.
553         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
554         in column 1, like 'diff -c' does.
555         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
556         whether 'diff -u' is used. Instead, test whether the output contains
557         some '@' character.
558
559 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
560
561         strtoimax: eliminate need for stdint.h, inttypes.h checks
562         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
563         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
564         the prerequisites for a recently-introduced strtoimax test.
565         I guess this might cause strtoimax to be replaced when not
566         strictly necessary on older hosts, but this shouldn't introduce
567         any bugs and it should make Emacs 'configure' faster on typical
568         modern hosts.  Problem discovered when importing the latest gnulib
569         to an Emacs test version.
570         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
571
572 2012-01-28  Bruno Haible  <bruno@clisp.org>
573
574         sys_time: Override 'struct timeval' on some native Windows platforms.
575         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
576         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
577         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
578         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
579         needs to be overridden.
580         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
581         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
582         * tests/test-sys_select.c: Check that the tv_sec member has the same
583         size as a 'time_t'.
584         * tests/test-sys_time.c: Likewise.
585         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
586         is set, set also REPLACE_GETTIMEOFDAY.
587         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
588         convert the resulting 'struct timeval' before returning.
589         * lib/select.c: Include <sys/time.h>.
590         (select, timeval): Undefine at the right place.
591         * modules/select (Depends-on): Add sys_time.
592         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
593         some Windows platforms.
594         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
595
596 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
597
598         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
599         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
600         an integer.
601         * lib/fcntl.c (dupfd): Likewise.
602         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
603
604 2012-01-28  Bruno Haible  <bruno@clisp.org>
605
606         fcntl: Avoid compilation error on native Windows.
607         * modules/fcntl (Depends-on): Add 'close'.
608
609 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
610
611         select, poll, isatty: Avoid warnings on x86_64 mingw64.
612         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
613         pointer to an integer.
614         * lib/poll.c (IsConsoleHandle): Likewise.
615         * lib/isatty.c (IsConsoleHandle): Likewise.
616
617 2012-01-28  Jim Meyering  <meyering@redhat.com>
618
619         doc: clarify README-release
620         * top/README-release: Clarify: you should make a point to have
621         the latest stable versions of build tools in your PATH, and the
622         reference to buildreq is solely for its list of tool names, not
623         for its minimal-functional version numbers.
624         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
625
626         maint.mk: use more readable (yet functionally equivalent) quoting
627         It is common to quote a single quote in a single quoted string like
628         this:  '...'\''...'.  Unless you know the idiom, that looks like
629         gibberish, so prefer to double-quote the string when possible.
630         Then you can use a more readable, lone single quote: "...'..."
631         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
632         "don't" is more readable than the equivalent 'don'\''t'.
633         (sc_cast_of_x_alloc_return_value): Likewise.
634         (sc_cast_of_alloca_return_value): Likewise.
635         (sc_makefile_path_separator_check): Similar: use ":" in '...',
636         rather than '\'':'\''.
637
638 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
639
640         stdalign: relax _Alignof and tighten _Alignas test
641         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
642         as it was too strict: alignof must divide offsetof, but it need
643         not equal offsetof.  Inspired by Joseph S. Myers's comment
644         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
645         Conversely, tighten the _Alignas test a bit, as the resulting
646         alignment must be exactly 8.
647
648 2012-01-27  Bruno Haible  <bruno@clisp.org>
649
650         stdalign: Document the last change.
651         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
652
653 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
654
655         stdalign: check that alignof and offsetof are consistent
656         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
657         Problem reported for gnulib by Richard W.M. Jones in
658         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
659
660 2012-01-27  Jim Meyering  <meyering@redhat.com>
661
662         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
663         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
664         convert a sequence with gaps to the minimal containing range.
665         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
666         * tests/test-update-copyright.sh: Test for this.
667         The FSF confirmed it is ok to do this, assuming there is at
668         least one significant change per year in the affected range:
669         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
670
671 2012-01-26  Bruno Haible  <bruno@clisp.org>
672
673         pipe2: refine doc about thread-safety
674         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
675         multithread-safety problem.
676         * doc/glibc-functions/accept4.texi: Likewise.
677
678 2012-01-26  Bruno Haible  <bruno@clisp.org>
679
680         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
681         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
682         In the test program, include <fcntl.h>, for O_RDONLY.
683
684 2012-01-26  Eric Blake  <eblake@redhat.com>
685
686         pipe2: document lack of thread-safety in replacement
687         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
688         issue in replacement.
689         * doc/glibc-functions/accept4.texi (accept4): Likewise.
690         Based on a report by Eric Wong.
691
692 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
693             Bruno Haible  <bruno@clisp.org>
694
695         malloca: Avoid warnings on x86_64 mingw64.
696         * lib/malloca.c: Include <stdint.h>.
697         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
698         * modules/malloca (Depends-on): Add stdint.
699         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
700
701 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
702
703         obstack: remove __STDC__ conditionals
704         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
705         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
706         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
707         m4/include_next.m4 as the only gnulib-maintained places that still
708         refer to __STDC__.
709
710 2012-01-24  Bruno Haible  <bruno@clisp.org>
711
712         havelib: Modern quoting.
713         * build-aux/config.rpath: Quote 'like this', not `like this', as per
714         the recent change to the GNU coding standards.
715
716 2012-01-24  Bruno Haible  <bruno@clisp.org>
717
718         stdint: Improve support for Android.
719         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
720         Reported by Simon Josefsson <simon@josefsson.org>.
721
722 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
723
724         doc: omit trailing empty lines from INSTALL etc.
725         * doc/Makefile (INSTALL): Omit trailing empty lines.
726         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
727         omit trailing empty lines.  This simplifies the build procedure.
728
729 2012-01-23  Jim Meyering  <meyering@redhat.com>
730
731         tests: avoid spurious warnings about gl_sockets_startup
732         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
733         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
734         reporting a "statement with no effect".
735         * tests/test-accept.c (main): Mark as "(void)".
736         * tests/test-accept4.c (main): Likewise.
737         * tests/test-bind.c (main): Likewise.
738         * tests/test-connect.c (main): Likewise.
739         * tests/test-getpeername.c (main): Likewise.
740         * tests/test-getsockname.c (main): Likewise.
741         * tests/test-getsockopt.c (main): Likewise.
742         * tests/test-listen.c (main): Likewise.
743         * tests/test-recv.c (main): Likewise.
744         * tests/test-recvfrom.c (main): Likewise.
745         * tests/test-send.c (main): Likewise.
746         * tests/test-sendto.c (main): Likewise.
747         * tests/test-setsockopt.c (main): Likewise.
748         * tests/test-shutdown.c (main): Likewise.
749
750 2012-01-21  Bruno Haible  <bruno@clisp.org>
751
752         locale-fr.m4: Fix for Android.
753         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
754         failure of the test program on Bionic libc.
755
756 2012-01-21  Jim Meyering  <meyering@redhat.com>
757
758         bootstrap: fail when bootstrap_post_import_hook fails
759         Otherwise, it's far too easy to miss diagnostics emitted
760         between gnulib-tool's output and that of running configure.
761         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
762
763 2012-01-17  Jim Meyering  <meyering@redhat.com>
764
765         maint: enable sc_trailing_blank
766         * build-aux/pmccabe.css: Remove trailing blanks.
767         * doc/acl-cygwin.txt: Likewise.
768         * doc/gnu-oids.texi: Likewise
769         * cfg.mk: Enable sc_trailing_blank.
770         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
771
772 2012-01-17  Jim Meyering  <meyering@redhat.com>
773
774         maint: enable sc_prohibit_openat_without_use
775         * cfg.mk: Enable sc_prohibit_openat_without_use.
776         Exempt lib/selinux-at.c.
777
778 2012-01-17  Jim Meyering  <meyering@redhat.com>
779
780         maint: enable sc_prohibit_cloexec_without_use
781         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
782         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
783
784 2012-01-17  Jim Meyering  <meyering@redhat.com>
785
786         maint: enable sc_prohibit_intprops_without_use
787         * cfg.mk: Enable sc_prohibit_intprops_without_use
788         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
789
790 2012-01-17  Jim Meyering  <meyering@redhat.com>
791
792         maint: enable sc_prohibit_hash_pjw_without_use
793         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
794         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
795         to match any use of \<hash_pjw\>, i.e., not necessarily with a
796         following " (".
797
798 2012-01-17  Jim Meyering  <meyering@redhat.com>
799
800         maint: enable double-word-prohibiting rule
801         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
802         Exempt three files.
803
804 2012-01-17  Jim Meyering  <meyering@redhat.com>
805
806         maint: remove empty lines at EOF, but excluding modules/*
807         Apply syntax rules at home as well as abroad.  Most changes
808         were induced by running this:
809           make srcdir=. _build-aux=build-aux -f top/maint.mk \
810             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
811             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
812         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
813         Exempt modules/* and two binary files.
814         Also exempt doc/INSTALL*, per request from Bruno Haible.
815         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
816         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
817         * doc/Copyright/request-assign.future: Likewise.
818         * doc/Copyright/request-disclaim.changes: Likewise.
819         * doc/INSTALL: Likewise.
820         * doc/INSTALL.ISO: Likewise.
821         * doc/INSTALL.UTF-8: Likewise.
822         * doc/acl-cygwin.txt: Likewise.
823         * doc/acl-resources.txt: Likewise.
824         * doc/fdl-1.2.texi: Likewise.
825         * doc/fdl-1.3.texi: Likewise.
826         * doc/fdl.texi: Likewise.
827         * lib/argp-pin.c: Likewise.
828         * lib/round.c: Likewise.
829         * lib/unicase/u16-totitle.c: Likewise.
830         * lib/unictype/block_test.c: Likewise.
831         * lib/uninorm/canonical-decomposition.c: Likewise.
832         * m4/README: Likewise.
833         * m4/relocatable-lib.m4: Likewise.
834         * tests/test-isnand-nolibm.c: Likewise.
835         * tests/test-isnand.c: Likewise.
836         * tests/uninorm/NormalizationTest.txt: Likewise.
837
838 2012-01-17  Jim Meyering  <meyering@redhat.com>
839
840         maint: add framework to run syntax-check rules against gnulib sources
841         * cfg.mk: New file, to disable all currently-failing tests.
842         We'll enable them one by one, as they are made to pass.
843         * Makefile (sc_maint): New rule.
844
845 2012-01-21  Bruno Haible  <bruno@clisp.org>
846
847         stdint: Add support for Android.
848         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
849         include the system's <stdint.h>.
850         Reported by Simon Josefsson <simon@josefsson.org>.
851
852 2012-01-19  Jim Meyering  <meyering@redhat.com>
853
854         bootstrap: add bootstrap_post_import_hook
855         Bison does still need something like the gnulib_mk_hook whose
856         invocation I had to remove along with slurp in commit 767ccd40.
857         Technically, we could get along without it, but doing so would
858         have required living with a warning and a mandatory post-bootstrap
859         automake rerun.
860         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
861         (bootstrap_post_import_hook): New function.
862         Invoke it after gnulib-tool --import and before autoreconf.
863
864 2012-01-18  Jim Meyering  <meyering@redhat.com>
865
866         gitlog-to-changelog: don't use "no_"-prefixed variable name
867         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
868         to enable both --cluster and --no-cluster.  Change variable name,
869         s/\$no_cluster/$cluster/, and reverse usage to match.
870
871         gitlog-to-changelog: use "||", not "or" in expressions
872         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
873         expressions.
874
875 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
876
877         gitlog-to-changelog: new option --no-cluster
878         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
879         clustering of adjacent commit messages.
880
881 2012-01-17  Jim Meyering  <meyering@redhat.com>
882
883         maint: spell file systems with two words, not one
884         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
885         two words, not one.
886
887 2012-01-16  Jim Meyering  <meyering@redhat.com>
888
889         bootstrap: add a FIXME comment to ensure we eventually remove the hack
890         * build-aux/bootstrap (gnulib_tool_options): Add comment.
891
892 2012-01-16  Eric Blake  <eblake@redhat.com>
893
894         bootstrap: cater to autoconf 2.59
895         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
896         is not available.
897
898         bootstrap: properly check for libtool
899         * build-aux/bootstrap (libtoolize): Also run libtool when older
900         usage is detected.
901
902 2012-01-15  Bruno Haible  <bruno@clisp.org>
903
904         Improve support for MSVC 9.
905         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
906         clashes on MSVC.
907         * lib/fcntl.in.h: Likewise.
908         * lib/stdlib.in.h: Likewise.
909         * lib/sys_stat.in.h: Likewise.
910
911 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
912
913         gnupload: we hold the master copy of this script now
914         For motivation and more information, see:
915         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
916         * build-aux/gnupload: Make it clear in the heading comments that the
917         master copy of this file is maintained by gnulib.  Since we are at
918         it, bump its copyright year and ...
919         ($scriptversion): ... the date in its version.
920         ($usage): Patches and bug reports should be sent to the gnulib list,
921         not the automake one.
922         * config/srclist.txt: Don't try to sync 'gnupload' from automake
923         anymore.
924
925 2012-01-15  Bruno Haible  <bruno@clisp.org>
926
927         Fix module 'random'.
928         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
929         initstate, setstate are declared.
930
931 2012-01-14  Bruno Haible  <bruno@clisp.org>
932
933         Tests for module 'random'.
934         * modules/random-tests: New file.
935         * tests/test-random.c: New file, based on tests/test-random_r.c.
936
937         New module 'random'.
938         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
939         declarations.
940         * lib/random.c: New file, based on glibc/stdlib/random.c.
941         * m4/random.m4: New file.
942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
943         HAVE_RANDOM.
944         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
945         * modules/random: New file.
946         * config/srclist.txt: Add an entry for random.c.
947         * doc/posix-functions/random.texi: Mention the 'random' module.
948         * doc/posix-functions/initstate.texi: Likewise.
949         * doc/posix-functions/setstate.texi: Likewise.
950         * doc/posix-functions/srandom.texi: Likewise.
951
952 2012-01-12  Bruno Haible  <bruno@clisp.org>
953
954         random_r: Use common idioms.
955         * lib/random_r.c: Include <stdlib.h> first.
956
957         random_r: Override incompatible API on AIX, OSF/1.
958         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
959         Override the system function if REPLACE_RANDOM_R is 1.
960         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
961         and OSF/1, set REPLACE_RANDOM_R.
962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
963         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
964         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
965         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
966         * doc/glibc-functions/random_r.texi: Likewise.
967         * doc/glibc-functions/setstate_r.texi: Likewise.
968
969         random_r: Support for MSVC 9.
970         * lib/random_r.c: Include stdint.h, not inttypes.h.
971
972 2012-01-12  Eric Blake  <eblake@redhat.com>
973
974         inet_ntop: guard extra work by IF_LINT
975         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
976         better code generation when not checking for warnings.
977         Suggested by Paul Eggert and Jim Meyering.
978
979         strptime: fix regression on mingw
980         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
981         Fix regression.  Reported by Bruno Haible.
982
983 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
984             Bruno Haible  <bruno@clisp.org>
985
986         copy-file: add error-code-returning variant.
987         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
988         (qcopy_file_preserving): New declaration.
989         * lib/copy-file.c (qcopy_file_preserving): Renamed from
990         copy_file_preserving. Change return type to 'int'. Don't emit an error
991         message here.
992         (copy_file_preserving): New function.
993         * tests/test-copy-file.c: Include <stdlib.h>.
994         (main): Test qcopy_file_preserving if the environment variable
995         NO_STDERR_OUTPUT is set.
996         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
997         with NO_STDERR_OUTPUT
998         * tests/test-copy-file-2.sh: Likewise.
999
1000 2012-01-10  Bruno Haible  <bruno@clisp.org>
1001
1002         copy-file: Use 'quote' module consistently.
1003         * lib/copy-file.c (copy_file_preserving): Use quote().
1004
1005         copy-file: Refactor.
1006         * lib/copy-file.c: Include quote.h.
1007         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1008         message here.
1009         * modules/copy-file (Depends-on): Add quote.
1010
1011         acl: Export qcopy_acl.
1012         * lib/acl.h (qcopy_acl): New declaration.
1013         * lib/copy-acl.c (qcopy_acl): Make non-static.
1014
1015         acl: Rename a local variable.
1016         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1017
1018         acl: Align return values of copy_acl and qcopy_acl.
1019         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1020         maybe < -1.
1021
1022 2012-01-11  Eric Blake  <eblake@redhat.com>
1023
1024         strptime: silence gcc warnings
1025         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1026         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1027         Reported by Daniel P. Berrange.
1028
1029         inet_ntop: silence gcc warning
1030         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1031         Reported by Daniel P. Berrange.
1032
1033 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1034
1035         getloadavg test: skip the test on GNU/Linux without /proc mounted
1036         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1037         file.  When /proc is not mounted, it always fails with ENOENT.
1038         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1039         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1040
1041 2012-01-10  Bruno Haible  <bruno@clisp.org>
1042
1043         regex: Avoid link error on MSVC 9.
1044         * modules/regex (Depends-on): Add wctype.
1045
1046 2012-01-10  Bruno Haible  <bruno@clisp.org>
1047
1048         doc: Mention --with-tests option.
1049         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1050         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1051         --with-tests.
1052         Reported by Reuben Thomas.
1053
1054 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1055
1056         users.txt: order package names lexicographically.
1057         * users.txt: Order package names lexicographically.
1058
1059 2012-01-10  Jim Meyering  <meyering@redhat.com>
1060
1061         maint.mk: fix description in comment
1062         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1063
1064         ignore-value: remove deprecated ignore_ptr function
1065         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1066         * NEWS: Note this.
1067
1068 2012-01-09  Jim Meyering  <meyering@redhat.com>
1069
1070         test-init.sh: avoid a subshell
1071         * tests/test-init.sh: Remove protective subshell.
1072         Suggested by Bernhard Voelker.  While a subshell is normally
1073         required to protect against older shells (Solaris, FreeBSD) that
1074         warn about a missing program before performing redirection, the
1075         shell-selection tests performed by init.sh probably exclude any
1076         offending shell.
1077
1078 2012-01-08  Bruno Haible  <bruno@clisp.org>
1079
1080         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1081         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1082         variable.
1083
1084 2012-01-08  Bruno Haible  <bruno@clisp.org>
1085
1086         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1087         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1088         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1089         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1090         macro.
1091         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1092         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1093         * lib/spawn_faction_addopen.c: Add workaround implementation if
1094         HAVE_WORKING_POSIX_SPAWN.
1095         * modules/spawn (Makefile): Substitute
1096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1097         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1098         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1099         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1100         (Depends-on): Update conditions.
1101         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1102         the Solaris 11 bug.
1103
1104 2012-01-08  Bruno Haible  <bruno@clisp.org>
1105
1106         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1107         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1108         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1109         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1110         macro.
1111         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1112         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1113         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1114         HAVE_WORKING_POSIX_SPAWN.
1115         * modules/spawn (Makefile): Substitute
1116         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1117         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1118         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1119         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1120         (Depends-on): Update conditions.
1121         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1122         the Solaris 11 bug.
1123
1124 2012-01-08  Bruno Haible  <bruno@clisp.org>
1125
1126         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1127         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1128         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1130         HAVE_WORKING_POSIX_SPAWN.
1131         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1132         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1133         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1134         * lib/spawn_faction_addclose.c: Add workaround implementation if
1135         HAVE_WORKING_POSIX_SPAWN.
1136         * modules/spawn (Makefile): Substitute
1137         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1138         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1139         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1140         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1141         (Depends-on): Update conditions.
1142         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1143         the Solaris 11 bug.
1144
1145 2012-01-08  Bruno Haible  <bruno@clisp.org>
1146
1147         doc: Update for Solaris 11 2011-11.
1148         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1149         * m4/printf.m4: Update comments.
1150
1151 2012-01-08  Bruno Haible  <bruno@clisp.org>
1152
1153         mktime: Avoid compilation error on Solaris 11.
1154         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1155
1156 2012-01-08  Bruno Haible  <bruno@clisp.org>
1157
1158         doc: Small fix.
1159         * doc/posix-headers/nl_types.texi: Correct platforms list.
1160
1161 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1162
1163         Add lgpl-3.0 module.
1164         * MODULES.html.sh (Support for building documentation): Add
1165         lgpl-3.0.
1166         * modules/lgpl-3.0: New file.
1167
1168 2012-01-08  Jim Meyering  <meyering@redhat.com>
1169
1170         select.c: indent with spaces, not TABs
1171         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1172
1173 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1174
1175         quotearg: do not use grave accent for left quote
1176         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1177         locale_quoting_style.
1178         (quotearg_buffer_restyled): Fix example.
1179         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1180
1181 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1182
1183         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1184         Most programs do not have translation catalogs for English and much
1185         less separate catalogs for British and American English.  Drop the
1186         suggestion to translators about these two, and provide it
1187         automatically for Unicode locales.  Like most programs, even those
1188         using American English, we use single quotation marks.  This conflicts
1189         with the American typographic convention, but works better when you
1190         cite the entire error message within double quotes.  It also tries not
1191         to clash with established practice and with what non-gnulib programs
1192         will usually do.
1193         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1194         using an UTF-8 or GB-18030 locale.  The list of other locales with
1195         quotes was provided by Bruno Haible.
1196         (quotearg_buffer_restyled): Adjust instructions to translators.
1197         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1198         text, since this would be wrong when using Unicode.
1199         * modules/quotearg: Depend on c-strcaseeq.
1200
1201 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1202
1203         quotearg: fix Wikipedia link
1204         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1205
1206 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1207
1208         Fix for mingw with MSVC9.
1209         * m4/ld-version-script.m4: Check that compiler rejects version
1210         scripts with syntax errors.  Reported by Bruno Haible
1211         <bruno@clisp.org>.
1212
1213 2012-01-06  Bruno Haible  <bruno@clisp.org>
1214
1215         Talk about "native Windows API", not "Woe32".
1216         * lib/accept4.c: Update comments to mention native Windows.
1217         * lib/execute.c: Likewise.
1218         * lib/fatal-signal.c: Likewise.
1219         * lib/localcharset.c: Likewise.
1220         * lib/nanosleep.c: Likewise.
1221         * lib/nl_langinfo.c: Likewise.
1222         * lib/pclose.c: Likewise.
1223         * lib/pipe-filter-gi.c: Likewise.
1224         * lib/pipe-filter-ii.c: Likewise.
1225         * lib/pipe.c: Likewise.
1226         * lib/pipe2.c: Likewise.
1227         * lib/popen.c: Likewise.
1228         * lib/progreloc.c: Likewise.
1229         * lib/relocatable.c: Likewise.
1230         * lib/sigaction.c: Likewise.
1231         * lib/sigprocmask.c: Likewise.
1232         * lib/spawn-pipe.h: Likewise.
1233         * lib/spawn-pipe.c: Likewise.
1234         * lib/spawni.c: Likewise.
1235         * lib/stat-time.h: Likewise.
1236         * lib/w32spawn.h: Likewise.
1237         * tests/test-isatty.c: Likewise.
1238         * lib/config.charset: More comments.
1239         * doc/gnulib-intro.texi: Mention native Windows.
1240         * doc/posix-functions/_Exit_C99.texi: Likewise.
1241         * doc/posix-headers/fcntl.texi: Likewise.
1242
1243 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1244
1245         argp: Avoid crash if translator uses % characters in a translation.
1246         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1247         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1248
1249 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1250
1251         doc: C11 and C++11 are now official
1252         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1253         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1254         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1255         * modules/stdalign:
1256         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1257
1258 2012-01-06  Bruno Haible  <bruno@clisp.org>
1259
1260         uc-is-grapheme-break tests: Tweak.
1261         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1262         message.
1263
1264 2012-01-06  Bruno Haible  <bruno@clisp.org>
1265
1266         test-init.sh: correct the test for diff -u
1267         * tests/test-init.sh: Also redirect stdout to /dev/null.
1268
1269 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1270
1271         Use ', not `, for quoting output.
1272         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1273         (print_changelog_deltas, get_tool_versions, main program):
1274         * build-aux/git-version-gen:
1275         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1276         * build-aux/move-if-change (help):
1277         * build-aux/useless-if-before-free (usage, main program):
1278         * check-module (parse_module_file, usage)
1279         (find_included_lib_files, check_module):
1280         * lib/argmatch.c (main) [TEST]:
1281         * lib/argp-help.c (_help):
1282         * lib/getopt1.c (main) [TEST]:
1283         * lib/git-merge-changelog.c (usage):
1284         * lib/xstrtol-error.c (xstrtol_error):
1285         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1286         * m4/argz.m4 (gl_FUNC_ARGZ):
1287         * m4/bison.m4 (gl_BISON):
1288         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1289         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1290         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1291         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1292         * m4/gc-random.m4 (gl_GC_RANDOM):
1293         * m4/intl.m4 (gt_CHECK_DECL):
1294         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1295         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1296         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1297         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1298         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1299         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1300         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1301         * tests/test-dirname.c (main):
1302         * tests/test-getpass.c (main):
1303         * tests/test-iconvme.c (main):
1304         * tests/test-parse-datetime.c (LOG):
1305         * tests/test-xstrtoimax.sh:
1306         * tests/test-xstrtol.sh:
1307         * tests/test-xstrtoll.sh:
1308         * tests/test-xstrtoumax.sh:
1309         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1310         * top/GNUmakefile (abort-due-to-no-makefile):
1311         Quote 'like this', not `like this', as per the recent change to
1312         the GNU coding standards.
1313
1314 2012-01-05  Bruno Haible  <bruno@clisp.org>
1315
1316         strtoimax: Don't force a replacement on systems where intmax_t is int.
1317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1318         'intmax_t' is not larger than 'int'.
1319         Reported by Pádraig Brady <P@draigBrady.com>.
1320
1321 2012-01-05  Bruno Haible  <bruno@clisp.org>
1322
1323         doc: Mention NetBSD bugs.
1324         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1325         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1326
1327 2012-01-05  Bruno Haible  <bruno@clisp.org>
1328
1329         strtoumax tests: Enhance tests.
1330         * tests/test-strtoumax.c (main): Add tests for large values.
1331
1332 2012-01-05  Bruno Haible  <bruno@clisp.org>
1333
1334         strtoimax: Work around AIX 5.1 bug.
1335         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1336         definition.
1337         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1338         Set HAVE_STRTOIMAX.
1339         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1340         REPLACE_STRTOIMAX.
1341         * modules/inttypes-incomplete (Makefile.am): Substitute
1342         REPLACE_STRTOIMAX.
1343         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1344         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1345         (Depends-on): Update conditions.
1346         * tests/test-strtoimax.c (main): Add tests for large values.
1347         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1348
1349 2012-01-05  Bruno Haible  <bruno@clisp.org>
1350
1351         inttypes: Modernize.
1352         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1353         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1354         (Makefile.am): Update inttypes.h rule.
1355
1356 2012-01-05  Jim Meyering  <meyering@redhat.com>
1357
1358         init.sh: don't waste a subshell just to redirect stderr
1359         * tests/init.sh: In testing for diff -u and diff -c, use a
1360         stderr-redirecting exec inside `...` rather than a subshell.
1361
1362         test-init.sh: avoid failure on HP-UX 11.00
1363         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1364         resolves to diff -c or cmp.  Reported by Bruno Haible.
1365
1366 2012-01-05  Bruno Haible  <bruno@clisp.org>
1367
1368         Tests for module 'strtoull'.
1369         * modules/strtoull-tests: New file.
1370         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1371
1372 2012-01-05  Bruno Haible  <bruno@clisp.org>
1373
1374         Tests for module 'strtoll'.
1375         * modules/strtoll-tests: New file.
1376         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1377
1378 2012-01-05  Bruno Haible  <bruno@clisp.org>
1379
1380         Tests for module 'strtoul'.
1381         * modules/strtoul-tests: New file.
1382         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1383
1384 2012-01-05  Bruno Haible  <bruno@clisp.org>
1385
1386         Tests for module 'strtol'.
1387         * modules/strtol-tests: New file.
1388         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1389
1390 2012-01-04  Jim Meyering  <meyering@redhat.com>
1391
1392         test-init.sh: accommodate Solaris 5.10's different diff -u output
1393         * tests/test-init.sh: Also exempt @@ lines from the comparison
1394         of diff output, since Solaris 5.10 and GNU diff formats differ.
1395         Reported by Stefano Lattarini.
1396
1397 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         test-posixtm: don't assume signed integer wraparound
1400         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1401         after signed integer overflow.  Inspired by (though it may not
1402         fix) Bruno Haible's bug report in
1403         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1404
1405         Spell out "Windows 9x" and "Windows XP".
1406         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1407         "Windows 9x" and "WinXP" with "Windows XP".
1408
1409 2012-01-04  Jim Meyering  <meyering@redhat.com>
1410
1411         test-vc-list-files-cvs.sh: remove obsolete comment
1412         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1413         double exit.  Now that's all encapsulated via skip_ and Exit.
1414
1415 2012-01-04  Bruno Haible  <bruno@clisp.org>
1416
1417         Talk about "native Windows API", not "Win32".
1418         * lib/classpath.c: Update comments to mention native Windows.
1419         * lib/csharpexec.c: Likewise.
1420         * lib/dup2.c: Likewise.
1421         * lib/error.c: Likewise.
1422         * lib/fcntl.c: Likewise.
1423         * lib/filename.h: Likewise.
1424         * lib/findprog.c: Likewise.
1425         * lib/get-rusage-as.c: Likewise.
1426         * lib/get-rusage-data.c: Likewise.
1427         * lib/getpagesize.c: Likewise.
1428         * lib/javaexec.c: Likewise.
1429         * lib/msvc-inval.c: Likewise.
1430         * lib/msvc-nothrow.c: Likewise.
1431         * lib/nanosleep.c: Likewise.
1432         * lib/nonblocking.c: Likewise.
1433         * lib/printf-parse.c: Likewise.
1434         * lib/setlocale.c: Likewise.
1435         * lib/sigaction.c: Likewise.
1436         * lib/strerror_r.c: Likewise.
1437         * lib/tmpdir.c: Likewise.
1438         * lib/vasnprintf.c: Likewise.
1439         * lib/w32spawn.h: Likewise.
1440         * lib/waitpid.c: Likewise.
1441         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1442         * m4/locale-ar.m4: Likewise.
1443         * m4/locale-fr.m4: Likewise.
1444         * m4/locale-ja.m4: Likewise.
1445         * m4/locale-tr.m4: Likewise.
1446         * m4/locale-zh.m4: Likewise.
1447         * m4/printf.m4: Likewise.
1448         * tests/test-cloexec.c: Likewise.
1449         * tests/test-copy-acl.sh: Likewise.
1450         * tests/test-copy-file.sh: Likewise.
1451         * tests/test-file-has-acl.sh: Likewise.
1452         * tests/test-set-mode-acl.sh: Likewise.
1453         * tests/test-dup-safer.c: Likewise.
1454         * tests/test-dup2.c: Likewise.
1455         * tests/test-dup3.c: Likewise.
1456         * tests/test-fcntl.c: Likewise.
1457         * tests/test-nonblocking-pipe.h: Likewise.
1458         * tests/test-nonblocking-socket.h: Likewise.
1459         * tests/test-pipe.c: Likewise.
1460         * tests/test-pipe2.c: Likewise.
1461         * tests/test-spawn-pipe-child.c: Likewise.
1462         * doc/acl-resources.txt: Likewise.
1463         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1464         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1465         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1466         * lib/localcharset.c: Update comments to mention native Windows.
1467         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1468         * lib/localename.c: Likewise.
1469         * lib/progreloc.c: Likewise.
1470         * lib/relocatable.c: Likewise.
1471         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1472         (windows_compute_revents): Renamed from win32_compute_revents.
1473         (windows_compute_revents_socket): Renamed from
1474         win32_compute_revents_socket.
1475         * lib/select.c: Update comments to mention native Windows.
1476         (windows_poll_handle): Renamed from win32_poll_handle.
1477         * m4/threadlib.m4: Update comments to mention native Windows.
1478         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1479         --enable-threads=windows instead of --enable-threads=win32. Set
1480         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1481         * lib/glthread/lock.h: Update comments to mention native Windows.
1482         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1483         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1484         USE_WIN32_THREADS.
1485         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1486         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1487         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1488         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1489         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1490         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1491         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1492         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1493         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1494         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1495         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1496         * tests/test-tls.c: Likewise.
1497         Rationale:
1498         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1499         on both 32-bit and 64-bit Windows systems.
1500         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1501         line of distinction is between "native Windows" on one side and Unix/
1502         POSIX systems on the other side. More details in
1503         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1504         Suggested by Paul Eggert.
1505
1506 2012-01-03  Bruno Haible  <bruno@clisp.org>
1507
1508         isatty: Support for MSVC 9.
1509         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1510         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1511         (_isatty_nothrow): New function.
1512         (isatty): Use it instead of _isatty.
1513         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1514         * lib/poll.c (IsConsoleHandle): Likewise.
1515         * lib/select.c (IsConsoleHandle): Likewise.
1516         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1517         (gl_PREREQ_ISATTY): New macro.
1518         * modules/isatty (Depends-on): Add msvc-inval.
1519         (configure.ac): Invoke gl_PREREQ_ISATTY.
1520
1521 2012-01-03  Jim Meyering  <meyering@redhat.com>
1522
1523         maint.mk: remove temporary transition aid from over 1.5 years ago
1524         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1525         purpose was to aid in the transition (avoiding silent malfunction)
1526         from that old name to the new _sc_search_regexp.  This shim was
1527         added by commit 219c504b.
1528
1529         init.sh: do not try to accommodate compare arguments starting with "-"
1530         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1531         compare arguments that start with "-".  Besides, we do not worry
1532         about this when invoking diff or cmp; why start now with sed?
1533         Using "--" to separate options from argument would trigger sed
1534         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1535         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1536
1537 2012-01-02  Bruno Haible  <bruno@clisp.org>
1538
1539         Enhance tests for module 'isatty'.
1540         * modules/isatty-tests (Depends-on): Add pipe-posix.
1541         * tests/test-isatty.c: Include <fcntl.h>.
1542         (DEV_NULL): New macro.
1543         (main): Test the resut of isatty() also on regular files, pipes, and
1544         /dev/null.
1545
1546         New module 'isatty'.
1547         * lib/unistd.in.h (isatty): New declaration.
1548         * lib/isatty.c: New file, based on an idea of
1549         Bastien Roucariès <roucaries.bastien@gmail.com>.
1550         * m4/isatty.m4: New file.
1551         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1552         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1553         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1554         REPLACE_ISATTY.
1555         * modules/isatty: New file.
1556         * doc/posix-functions/isatty.texi: Mention the new module.
1557         Suggested by Paolo Bonzini.
1558
1559 2012-01-02  Bruno Haible  <bruno@clisp.org>
1560
1561         canonicalize: Tweak 2011-12-29 commit.
1562         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1563         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1564
1565 2012-01-02  Jim Meyering  <meyering@redhat.com>
1566
1567         gitlog-to-changelog: describe input syntax in --help output
1568         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1569
1570         gitlog-to-changelog: fix typo in --help: show backslash before email @
1571         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1572         in sources, but not in actual output.
1573
1574 2011-12-30  Jim Meyering  <meyering@redhat.com>
1575
1576         gitlog-to-changelog: don't malfunction when name contains %-directive
1577         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1578         in a name string cause trouble.  E.g., with a user name of "%s",
1579         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1580
1581 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1582
1583         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1584         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1585         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1586         the "  (tiny change)" notation that is appended to the standard
1587         ChangeLog "date  name  email" header line.
1588
1589 2012-01-01  Jim Meyering  <meyering@redhat.com>
1590
1591         test-framework-sh: init.sh: fix "make dist" failure
1592         When using gnulib-tool's --with-tests option and any module that
1593         depends on test-framework-sh, "make dist" would fail due to the
1594         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1595         in the gltests directory, and not in the gllib/ directory.
1596         One way to work around that is to move the EXTRA_DIST += init.sh
1597         from the primary module to the -tests one:
1598         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1599         * modules/test-framework-sh (Makefile.am): ...not here.
1600         Reported by Tom G. Christensen in
1601         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1602
1603         version-etc: update copyright year reported by --version
1604         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1605
1606 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1607
1608         canonicalize: only stat() if required
1609         * lib/canonicalize.c (canonicalize_filename_mode):
1610         Avoid calling l?stat() when both CAN_MISSING,
1611         and CAN_NOLINKS are set, as we neither need
1612         to resolve symlinks or test component existence.
1613
1614 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         doc: cover st_ino issues once; add OpenVMS etc.
1617         * doc/posix-functions/stat.texi (stat):
1618         * doc/posix-functions/lstat.texi (lstat):
1619         * doc/posix-functions/fstatat.texi (fstatat):
1620         * doc/posix-functions/fstat.texi (fstat):
1621         Move general 'struct stat' stuff to sys_stat.texi,
1622         leaving behind a pointer.
1623         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1624         Merge duplicate info about 'struct stat' problems into here.
1625         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1626         and suggest partial workarounds.
1627
1628         same-inode: port to OpenVMS
1629         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1630         three st_ino values.
1631
1632 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1633
1634         canonicalize: fix references to stat() and lstat()
1635         * lib/canonicalize.c (canonicalize_filename_mode):
1636         Ensure references always resolve to a replacement
1637         function if required (even via a macro).
1638
1639 2011-12-30  Jim Meyering  <meyering@redhat.com>
1640
1641         gitlog-to-changelog: remove a little duplication
1642         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1643         rather than twice.
1644
1645 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1646
1647         canonicalize: add support for not resolving symlinks
1648         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1649         indicate we don't want to follow symlinks.  Also
1650         provide CAN_MODE_MASK to aid setting these existing
1651         mutually exclusive values.
1652         * lib/canonicalize.c (canonicalize_filename_mode):
1653         Extract the flags from can_mode parameter, which
1654         are currently just used to select between stat()
1655         and lstat().  Also ensure that mutually exclusive
1656         values are flagged immediately as invalid.
1657         * tests/test-canonicalize.c: Verify symlinks are
1658         not followed, and that invalid flag combinations
1659         are diagnosed.
1660
1661 2011-12-25  Jim Meyering  <meyering@redhat.com>
1662
1663         gitlog-to-changelog: do not clump multi-paragraph entries
1664         Identical header lines (date,name,email+coauthors) are suppressed,
1665         thus putting all entries with those same characteristics under
1666         a single header.  However, when a log entry consists of two or
1667         more paragraphs, it may not be clear where it starts and ends.
1668         This change makes it so that such an entry is always separated
1669         from others by a header line, even when that header would
1670         otherwise be suppressed.
1671         * build-aux/gitlog-to-changelog: Implement the above.
1672         Inspired by a related request from Stefano Lattarini in
1673         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1674
1675 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1676
1677         announce-gen: fix `cmd' typo in diagnostic
1678         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1679         diagnostic: a missing '$' meant that the command was not output.
1680
1681 2011-12-23  Jim Meyering  <meyering@redhat.com>
1682
1683         test-framework-sh: distribute init.sh
1684         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1685         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1686         fail due to the lack of init.sh.
1687
1688         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1689         * modules/atexit-tests: Rather than listing tests/init.sh,
1690         now that there's a module for it, simply depend on that new module.
1691         * modules/closein-tests: Likewise.
1692         * modules/exclude-tests: Likewise.
1693         * modules/getcwd-tests: Likewise.
1694         * modules/perror-tests: Likewise.
1695         * modules/pread-tests: Likewise.
1696         * modules/pwrite-tests: Likewise.
1697         * modules/vc-list-files-tests: Likewise.
1698         * modules/verify-tests: Likewise.
1699         * modules/xalloc-die-tests: Likewise.
1700         * modules/xstrtoimax-tests: Likewise.
1701         * modules/xstrtol-tests: Likewise.
1702         * modules/xstrtoll-tests: Likewise.
1703         * modules/xstrtoumax-tests: Likewise.
1704         * modules/yesno-tests: Likewise.
1705
1706 2011-12-22  Jim Meyering  <meyering@redhat.com>
1707
1708         test-framework-sh: add minimal tests of init.sh's compare function
1709         * modules/test-framework-sh-tests: New file.
1710         * tests/test-init.sh: New file.
1711
1712         test-framework-sh: new module
1713         * modules/test-framework-sh: New file.
1714         * MODULES.html.sh (Support for maintaining and releasing projects):
1715         List it.
1716
1717         init.sh: do not emit simulated diff output to stderr
1718         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1719
1720 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1721
1722         .gitignore: ignore gnulib.dvi and regex.info
1723         * doc/.gitignore:add gnulib.dvi and regex.info
1724
1725 2011-12-22  Jim Meyering  <meyering@redhat.com>
1726
1727         init.sh: correct previous change
1728         * tests/init.sh (compare): My previous change was wrong.
1729         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1730
1731         init.sh: avoid unwarranted test failure when using "set -e"
1732         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1733         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1734         a use like "compare exp out" would get evoke an unconditional failure.
1735
1736 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1737
1738         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1739         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1740         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1741         autoreconf that did not.
1742         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1743         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1744
1745 2011-12-17  Jim Meyering  <meyering@redhat.com>
1746
1747         bootstrap: remove some now-unneeded code
1748         This script arose back when gnulib-tool was young.
1749         Since then, it has seen improvements that render much of this
1750         script unnecessary.  In particular, it can now make symlinks
1751         to the files it uses.  Also, I no longer see as much value in
1752         marking files as read-only via comments.
1753         If you relied on the symlink-creation feature of the preceding
1754         version of this script, you can get most of that functionality
1755         by adding the --symlink option to the definition of
1756         gnulib_tool_option_extras in your bootstrap.conf file.
1757         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1758         Run autopoint and libtoolize *before* gnulib-tool.
1759         After it, run an abbreviated autoreconf, rather than a loop around
1760         all tools.
1761         (slirp, bt_mark_as_generated): Remove functions.
1762
1763 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1764
1765         ftoastr: fix typo
1766         * lib/ftoastr.h: Fix misspelling in comment.
1767
1768 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1769
1770         * top/README-release: fix punctuation.
1771
1772 2011-12-17  Jim Meyering  <meyering@redhat.com>
1773
1774         bootstrap: correct the recent buildreq change
1775         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1776         had no effect.
1777         * build-aux/bootstrap (buildreq): Bracket each search term with
1778         "*...*", so that the shell "case" statement works as intended.
1779         Add comments.
1780
1781 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1782
1783         build: let bootstrap resort to wget when downloading .po files
1784         * build-aux/bootstrap (download_po_files): Fallback to wget when
1785         downloading the .po files via rsync fails.  This is necessary to
1786         bootstrap from behind a strict firewall.
1787
1788 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         stdint: don't assume C++11 when compiling with g++
1791         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1793         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1794         work also in C++ before C++11, as that improperly inhibits
1795         generating a substitute stdint.h for that case.
1796
1797 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1798
1799         alloca: protect comment from gnulib-tool
1800         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1801         that gnulib-tool doesn't think it's a license, and munge it to
1802         say "GCC version 3".
1803
1804 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1805
1806         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1807         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1808         $(abs_top_builddir) instead of $(top_builddir).
1809
1810 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1811
1812         strftime-tests: also test nanoseconds
1813         * tests/test-strftime.c (T): Add a test of %N.
1814
1815 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1816
1817         inttypes, stdint: add C++11 support
1818         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1819         when including inttypes.h and stdint.h.  Support this change to
1820         the standard.
1821         * doc/posix-headers/inttypes.texi (inttypes.h):
1822         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1823         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1824         Define if not defined already, for the benefit of pre-C++11 hosts.
1825         Define the standard format macros (e.g., PRId8) always.
1826         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1827         Likewise, if __cpluspus.  Define the standard constant and limit
1828         macros (e.g., INT8_C, INT8_MAX) always.
1829         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1830         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1831         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1832         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1833         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1834         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1835         Likewise.
1836
1837 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1838
1839         nonblocking tests: Fix test failure on Linux/PPC.
1840         Suggested by Prerna Saxena in
1841         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1842         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1843         Set to 1100000.
1844
1845 2011-12-12  Jim Meyering  <meyering@redhat.com>
1846
1847         argmatch: don't hard-code `' when listing valid option arguments
1848         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1849         use the quote function to add quotes.  Use fputs rather than
1850         fprintf for the format string with no format directive.
1851
1852 2011-12-07  Eric Blake  <eblake@redhat.com>
1853
1854         bootstrap: detect tools required by gnulib-tool
1855         * build-aux/bootstrap (buildreq): Provide minimum implicit
1856         dependencies.
1857         * DEPENDENCIES: Mention patch as a prereq.
1858
1859 2011-12-04  Bruno Haible  <bruno@clisp.org>
1860
1861         sethostname: Port to Windows platforms.
1862         * lib/sethostname.c: Provide an alternate implementation for Windows
1863         platforms.
1864         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1865         (main): Skip the test if sethostname() fails with EPERM. On Windows
1866         platforms, don't check the result of gethostname().
1867
1868 2011-12-04  Bruno Haible  <bruno@clisp.org>
1869             Jim Meyering  <meyering@redhat.com>
1870
1871         tests: Avoid spurious error message on platforms without mktemp program.
1872         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1873
1874 2011-12-04  Bruno Haible  <bruno@clisp.org>
1875
1876         sethostname: Fix documentation.
1877         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1878         "not fixed" section.
1879
1880 2011-12-03  Bruno Haible  <bruno@clisp.org>
1881
1882         gnulib-tool: Verify that the License field is present and non-empty.
1883         * gnulib-tool (func_get_license_raw): New function, extracted from
1884         func_get_license.
1885         (func_get_license): Use it. Warn if the module is not a test module and
1886         has no license.
1887         Suggested by Jim Meyering.
1888
1889 2011-12-03  Bruno Haible  <bruno@clisp.org>
1890
1891         sethostname tests: Fix link error on mingw.
1892         * tests/test-sethostname1.c: New file, extracted from
1893         tests/test-sethostname.c.
1894         * tests/test-sethostname2.c: New file, extracted from
1895         tests/test-sethostname.c.
1896         * tests/test-sethostname.c: Remove file.
1897         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1898         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1899         (Depends-on): Add gethostname.
1900         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1901         Link the latter with $(GETHOSTNAME_LIB).
1902
1903         sethostname tests: Fix compilation error on mingw.
1904         * tests/test-sethostname.c: Don't include <sys/types.h>.
1905         (geteuid): Use a dummy value without uid_t.
1906         * modules/sethostname-tests (Depends-on): Remove sys_types.
1907
1908         sethostname tests: Avoid a gcc warning.
1909         * tests/test-sethostname.c (main): Remove an unused variable.
1910
1911         Tweak last commit.
1912         * modules/sethostname-tests (Files): Sort by decreasing importance.
1913         (configure.ac): Check for geteuid.
1914         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1915         the test when there's nothing to test. Drop an unnecessary cast.
1916         Improve an error message. Verify that the final sethostname() call
1917         succeeds.
1918
1919 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1920
1921         Add a test suite for the sethostname module.
1922         * modules/sethostname-tests: New file.  A test program
1923         for the sethostname module.
1924         * tests/test-sethostname.c: Likewise.
1925
1926 2011-12-03  Bruno Haible  <bruno@clisp.org>
1927
1928         Tweak last commit.
1929         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1930         Fix preprocessor directives indentation. Fix typos.
1931         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1932         * modules/unistd (Makefile): Likewise.
1933
1934 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1935
1936         Integrate the sethostname module into unistd.
1937         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1938         into the unistd.h header.
1939         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1940         preprocessor directives.
1941         * modules/unistd: Setup the Makefile substitutions of the
1942         SETHOSTNAME preprocessor directives.
1943
1944 2011-12-03  Bruno Haible  <bruno@clisp.org>
1945
1946         Tweak last commit.
1947         * lib/sethostname.c: Don't include <string.h>.
1948         (sethostname): No need to copy the argument string to the stack. Don't
1949         call clearerr. Preserve errno when fprintf failed.
1950         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1951         Don't invoke AC_REPLACE_FUNCS.
1952         * modules/sethostname (Link): Remove empty section.
1953         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1954         failure problem.
1955
1956 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1957
1958         New module 'sethostname'.
1959         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1960         for systems that lack it.
1961         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1962         sethostname declaration and function.
1963         * modules/sethostname: New file.  Define the sethostname module.
1964
1965 2011-12-03  Bruno Haible  <bruno@clisp.org>
1966
1967         Tweak last commit.
1968         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1969
1970 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1971
1972         Split the HOST_NAME_MAX detection into a separate m4 macro.
1973         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1974         macro so it can be used by the pending sethostname module.
1975
1976 2011-12-03  Bruno Haible  <bruno@clisp.org>
1977
1978         Fix module descriptions syntax.
1979         * modules/argv-iter (License): Fix syntax.
1980         * modules/di-set (License): Likewise.
1981         * modules/ino-map (License): Likewise.
1982         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1983
1984 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1985
1986         stdalign: port to Clang 3.0
1987         Problem reported by Simon Josefsson in
1988         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1989         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1990         which has <stdalign.h> but which does not define alignof.
1991         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1992
1993 2011-12-01  Eric Blake  <eblake@redhat.com>
1994
1995         mktempd: silence dd usage
1996         * build-aux/mktempd (rand_bytes): Silence dd.
1997
1998 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1999
2000         manywarnings: Don't mention gcc version in docstring.
2001         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2002         Jim Meyering <meyering@redhat.com>.
2003
2004 2011-11-30  Jim Meyering  <meyering@redhat.com>
2005
2006         hash: mark a few floating point constants with "f" suffix
2007         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2008         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2009         floating point constants with "f", since they're destined to be
2010         saved/used as "float"s.
2011
2012 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2013
2014         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2015         * tests/test-float.c (test_long_double): Correct and re-enable the
2016         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2017
2018 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2019
2020         Avoid subtracting two pointers that don't point into the same block.
2021         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2022         only pointers into the same memory block are subtracted. We cannot
2023         assume that sizeof (ptrdiff_t) == sizeof (void *).
2024
2025 2011-11-29  Eric Blake  <eblake@redhat.com>
2026
2027         maint.mk: add syntax check for use of compare from init.sh
2028         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2029         moved here from coreutils.
2030
2031         manywarnings: drop -Wunsuffixed-float-constants
2032         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2033         '1.0D', which is the only way to silence this warning for 'double'.
2034
2035 2011-11-29  Jim Meyering  <meyering@redhat.com>
2036
2037         hash: mark compute_bucket_size with the pure attribute
2038         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2039
2040         quotearg, propername: correct pragma guard expression
2041         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2042         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2043
2044 2011-11-28  Jim Meyering  <meyering@redhat.com>
2045
2046         propername: do not mark proper_name with the const attribute
2047         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2048         since it examines data pointed to by its parameter.
2049         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2050         the suggestion from -Wsuggest-attribute=const.
2051
2052         propername: mark one more function as const
2053         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2054
2055 2011-11-27  Jim Meyering  <meyering@redhat.com>
2056
2057         mark functions with const and pure attributes
2058
2059         Mark functions per suggestions from gcc-4.6 when using these options:
2060         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2061         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2062         Follow these guidelines: when possible, apply the attribute to
2063         an extern declaration, not to its definition.  Apply it to the
2064         definition only when the definition is static.
2065         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2066         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2067         * lib/base64.h (isbase64): Likewise.
2068         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2069         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2070         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2071         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2072         (c_tolower, c_toupper): Likewise.
2073         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2074         * lib/chdir-long.c (find_non_slash): Likewise.
2075         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2076         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2077         * lib/file-type.h (file_type): Likewise.
2078         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2079         * lib/filevercmp.c (verrevcmp): Likewise.
2080         * lib/freadahead.h (freadahead): Likewise.
2081         * lib/fts.c (fts_maxarglen): Likewise.
2082         * lib/hash-pjw.h (hash_pjw): Likewise.
2083         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2084         * lib/hash.c (is_prime, next_prime): Likewise.
2085         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2086         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2087         (hash_table_ok, hash_get_first, hash_string): Likewise.
2088         (compute_bucket_size): Likewise.
2089         * lib/i-ring.h (i_ring_empty): Likewise.
2090         * lib/isnan.c (isnanl): Likewise.
2091         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2092         * lib/memcasecmp.h (memcasecmp): Likewise.
2093         * lib/memchr2.h (memchr2): Likewise.
2094         * lib/memcmp2.h (memcmp2): Likewise.
2095         * lib/parse-datetime.y (lookup_zone): Likewise.
2096         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2097         [!WINDOWS_SOCKETS]: Likewise.
2098         * lib/strnlen1.h (strnlen1): Likewise.
2099         * lib/uniwidth.in.h (uc_width): Likewise.
2100         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2101         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2102         (quoting_options_from_style): Add a comment.
2103         * lib/propername.h (proper_name): Add a comment.
2104
2105 2011-11-27  Bruno Haible  <bruno@clisp.org>
2106
2107         Remove unused macros from !_LIBC code in glibc-borrowed files.
2108         * lib/fnmatch.c (STRCOLL): Remove macro.
2109         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2110         * lib/glob.c (__stat, __readdir64): Remove macros.
2111         * lib/tempname.c (__open64, __xstat64): Remove macros.
2112         Suggested by Paul Eggert.
2113
2114 2011-11-27  Bruno Haible  <bruno@clisp.org>
2115
2116         getcwd: Fix link error on MSVC 9.
2117         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2118
2119 2011-11-27  Bruno Haible  <bruno@clisp.org>
2120
2121         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2122         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2123         HAVE_OPENDIR is 0.
2124         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2125         HAVE_CLOSEDIR is 0.
2126         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2127         is 0.
2128         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2129
2130 2011-11-27  Bruno Haible  <bruno@clisp.org>
2131
2132         getcwd: Fix bug from 2011-08-17.
2133         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2134         platforms that need it.
2135         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2136         code of 4 to be a failure, not a success. This ensures that
2137         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2138
2139 2011-11-27  Bruno Haible  <bruno@clisp.org>
2140
2141         binary-io tests: Avoid test failure on mingw when libtool is used.
2142         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2143         Don't verify the size of t-bin-out1.tmp here.
2144         * tests/test-binary-io.sh: Verify it here.
2145         Reported by Simon Josefsson.
2146
2147 2011-11-26  Bruno Haible  <bruno@clisp.org>
2148
2149         Fix conflict between two instantiations of module 'unistd'.
2150         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2151         ${include_guard_prefix} also in the autoconf snippet.
2152         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2154         GNULIB_UNISTD_H_GETOPT.
2155         * modules/getopt-posix (configure.ac): Set the
2156         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2157         * modules/getopt-gnu (configure.ac): Likewise.
2158         * modules/unistd (Makefile.am): Change the substitution value of
2159         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2160         Reported by Simon Josefsson.
2161
2162 2011-11-25  Bruno Haible  <bruno@clisp.org>
2163
2164         pagealign_alloc: Doc and comments.
2165         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2166         module.
2167         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2168
2169 2011-11-25  Jim Meyering  <meyering@redhat.com>
2170
2171         test-update-copyright.sh: avoid false-positive failure
2172         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2173         around false positive failure on Cygwin/Windows.  The latter was
2174         matching erroneously-created files with names like
2175         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2176
2177 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2178
2179         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2180         * m4/valgrind-tests.m4: Check that the parameters that will be
2181         used works, not just a subset of them.  Reported by Bruno Haible
2182         <bruno@clisp.org>.
2183
2184 2011-11-24  Jim Meyering  <meyering@redhat.com>
2185
2186         test-stdalign.c: comment out long double tests
2187         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2188         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2189         error: '_Alignas' specifiers cannot reduce alignment of \
2190         'static_longdouble_alignas'.
2191
2192 2011-11-22  Jim Meyering  <meyering@redhat.com>
2193
2194         init.sh: make "compare /dev/null FILE" output more readable
2195         * tests/init.sh (compare_): Document the preferred order of arguments.
2196         (emit_diff_u_header_): New function.
2197         (compare_dev_null_): Emit a simulated diff, rather than just the
2198         contents of the unexpected file.  Suggestion from Bruno Haible.
2199
2200 2011-11-21  Jim Meyering  <meyering@redhat.com>
2201             Eric Blake  <eblake@redhat.com>
2202
2203         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2204         * tests/init.sh: Make our compare function slightly more portable.
2205         Reported by Bruno Haible in
2206         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2207
2208 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2209
2210         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2211         before using it, in code that ends up in config.h.
2212
2213 2011-11-20  Bruno Haible  <bruno@clisp.org>
2214
2215         getcwd: Work around getcwd bug on AIX 5..7.
2216         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2217         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2218         Use a different value for gl_cv_func_getcwd_path_max. Move the
2219         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2220         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2221         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2222         Define HAVE_MINIMALLY_WORKING_GETCWD.
2223         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2224         where it is not even minimally working, that is, on AIX.
2225         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2226         m4/getcwd-path-max.m4.
2227         (main): Update exit code computation.
2228         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2229         getcwd does not handle long file names.
2230
2231 2011-11-20  Bruno Haible  <bruno@clisp.org>
2232
2233         getcwd: Fix bug from 2009-09-10.
2234         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2235         like "no".
2236
2237 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2238
2239         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2240
2241 2011-11-20  Bruno Haible  <bruno@clisp.org>
2242
2243         fma tests: Avoid shadowing local variables.
2244         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2245         expected.
2246
2247 2011-11-20  Bruno Haible  <bruno@clisp.org>
2248
2249         copysignf tests: Fix.
2250         * tests/test-copysignf.c: Fix signature check.
2251
2252 2011-11-20  Bruno Haible  <bruno@clisp.org>
2253
2254         fma: Remove unused code.
2255         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2256         unused macros.
2257
2258 2011-11-20  Bruno Haible  <bruno@clisp.org>
2259
2260         sethostname: Fix doc about AIX.
2261         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2262         sethostname; it has it.
2263
2264         sethostname: Mention more portability problems.
2265         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2266         problem.
2267         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2268
2269 2011-11-19  Bruno Haible  <bruno@clisp.org>
2270
2271         Depend on module fcntl-h when AT_FDCWD is used.
2272         * modules/utimens (Depends-on): Add fcntl-h.
2273         * modules/areadlinkat (Depends-on): Likewise.
2274         * modules/areadlinkat-with-size (Depends-on): Likewise.
2275         * modules/faccessat (Depends-on): Likewise.
2276         * modules/fchmodat (Depends-on): Likewise.
2277         * modules/fchownat (Depends-on): Likewise.
2278         * modules/getcwd (Depends-on): Likewise.
2279         * modules/mkdirat (Depends-on): Likewise.
2280         * modules/mkfifoat (Depends-on): Likewise.
2281         * modules/readlinkat (Depends-on): Likewise.
2282         * modules/symlinkat (Depends-on): Likewise.
2283         * modules/dup2-tests (Depends-on): Likewise.
2284         * modules/fdutimensat-tests (Depends-on): Likewise.
2285         * modules/futimens-tests (Depends-on): Likewise.
2286
2287 2011-11-19  Bruno Haible  <bruno@clisp.org>
2288
2289         euidaccess: Update a comment.
2290         * lib/euidaccess.c: Update comment about platforms with faccessat.
2291
2292 2011-11-19  Bruno Haible  <bruno@clisp.org>
2293
2294         openat: Fix file list.
2295         * modules/openat (Files): Remove lib/at-func.c.
2296
2297 2011-11-19  Bruno Haible  <bruno@clisp.org>
2298
2299         fstatat: Simplify.
2300         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2301         gnulib should define rpl_fstatat, there is a
2302         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2303
2304 2011-11-19  Bruno Haible  <bruno@clisp.org>
2305
2306         Ensure 'inline' can be used in tests/test-utimens-common.h.
2307         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2308         * modules/futimens-tests (configure.ac): Likewise.
2309         * modules/utimens-tests (configure.ac): Likewise.
2310         * modules/utimensat-tests (configure.ac): Likewise.
2311
2312 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2313
2314         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2315         not hash_insert0.
2316         (hash_insert_if_absent): Doc fix.
2317
2318 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2319
2320         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2321
2322 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2323
2324         test-getcwd: disambiguate exit status
2325         * tests/test-getcwd.c (test_long_name): Return 0..7.
2326         (main): Exit with an unambiguous exit status.  The old
2327         code yielded a mysterious mixture of two failure codes.
2328
2329         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2330         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2331         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2332         rpl_fstatat or fstatat.  This should fix the other problem
2333         reported by Kai Habel in
2334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2335         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2336         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2337         and I reproduced it on a Solaris 8 host we still have in production.
2338
2339 2011-11-18  Jim Meyering  <meyering@redhat.com>
2340
2341         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2342         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2343         Add a sentence to the comment.
2344         (hash_insert0): New function that simply calls hash_insert_if_absent.
2345         * lib/hash.h (hash_insert_if_absent): Declare it.
2346         (hash_insert0): Add deprecation attribute.
2347         (_GL_ATTRIBUTE_DEPRECATED): Define.
2348         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2349         not hash_insert0.
2350         * NEWS: Mention it, even though it's not really an incompatible change.
2351
2352 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2353
2354         openat: avoid compilation failure due to lack of <errno.h> inclusion
2355         * lib/openat.c: Include <errno.h>.
2356
2357 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2358
2359         * modules/getcwd (Depends-on): Add fdopendir.
2360         This fixes one of the two problems reported by Kai Habel in
2361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2362
2363         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2364         stdalign problem reported by Ian Beckwith in
2365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2366         * modules/crypto/gc-arcfour (Depends-on):
2367         Depend conditionally on crypto/arcfour.
2368         * modules/crypto/gc-arctwo (Depends-on):
2369         Depend conditionally on crypto/arctwo.
2370         * modules/crypto/gc-des (Depends-on):
2371         Depend conditionally on crypto/des.
2372         * modules/crypto/gc-hmac-md5 (Depends-on):
2373         Depend conditionally on crypto/hmac-md5.
2374         * modules/crypto/gc-hmac-sha1 (Depends-on):
2375         Depend conditionally on crypto/hmac-sha1.
2376         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2377         * modules/crypto/gc-md4 (Depends-on):
2378         Depend conditionally on crypto/md4.
2379         * modules/crypto/gc-md5 (Depends-on):
2380         Depend conditionally on crypto/md5.
2381         * modules/crypto/gc-rijndael (Depends-on):
2382         Depend conditionally on crypto/rijndael.
2383         * modules/crypto/gc-sha1 (Depends-on):
2384         Depend conditionally on crypto/sha1.
2385         * modules/crypto/gc-arcfour:
2386         * modules/crypto/gc-arctwo:
2387         * modules/crypto/gc-des:
2388         * modules/crypto/gc-hmac-md5:
2389         * modules/crypto/gc-hmac-sha1:
2390         * modules/crypto/gc-md2:
2391         * modules/crypto/gc-md4:
2392         * modules/crypto/gc-md5:
2393         * modules/crypto/gc-rijndael:
2394         * modules/crypto/gc-sha1:
2395         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2396         now that the conditional dependencies do the work for us.
2397
2398 2011-11-17  Jim Meyering  <meyering@redhat.com>
2399
2400         tests: factor st_ctime-comparison out of two headers
2401         * tests/test-utimens-common.h (ctime_compare): Define.
2402         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2403         * tests/test-lutimens.h (test_lutimens): Likewise.
2404         * tests/test-utimens.h (test_utimens): Likewise.
2405
2406         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2407         Invoke the test program via an init.sh-using wrapper.
2408         * tests/test-getcwd.sh: New file.
2409         * modules/getcwd-tests (Files): Add it.
2410         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2411
2412 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2413
2414         gitlog-to-changelog: support multi-author commits.
2415         The FSF cares about keeping track of all authors of patches to its
2416         projects, but Git doesn't provide obvious support for multi-author
2417         changesets. Consensus seems to be forming around the use of extra
2418         Signed-off-by inspired lines in the log message formatted as
2419         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2420         multi-author commits between version control systems.
2421         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2422         log message and output in standard ChangeLog multi-author format.
2423         Reported by Peter Rosin <peda@lysator.liu.se>
2424
2425 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2426             Bruno Haible  <bruno@clisp.org>
2427
2428         Fix some modules' file list.
2429         * modules/fstatat (Files): Add m4/lstat.m4.
2430         * modules/openat (Files): Likewise.
2431         * modules/unlinkat (Files): Likewise.
2432
2433 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2434
2435         maint.mk: fix tight-scope.mk generation in VPATH builds.
2436         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2437         reference with $(srcdir) so that the file is found correctly even
2438         when running `make syntax-check' in a VPATH build.
2439
2440 2011-11-13  Bruno Haible  <bruno@clisp.org>
2441             Jim Meyering  <meyering@redhat.com>
2442
2443         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2444         * tests/init.sh (compare): Remove "No differences encountered" or
2445         synonymous output from the 'diff' program.
2446
2447 2011-11-13  Bruno Haible  <bruno@clisp.org>
2448
2449         Makefile: Tweak indentation.
2450         * Makefile: Use tab as first character in every line that contains rule
2451         commands.
2452
2453 2011-11-13  Bruno Haible  <bruno@clisp.org>
2454
2455         Syntax check for copyright statements.
2456         * check-copyright: New file.
2457         * Makefile (sc_check_copyright): New rule.
2458
2459 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2460
2461         * build-aux/git-version-gen: Add --prefix to configure the tag
2462         match string.
2463
2464 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2465
2466         * build-aux/git-version-gen: Add --help and --version.
2467
2468 2011-11-12  Jim Meyering  <meyering@redhat.com>
2469
2470         revamp the other test-exclude?.sh scripts to use init.sh, too
2471         * tests/test-exclude1.sh: Use init.sh.
2472         * tests/test-exclude2.sh: Likewise.
2473         * tests/test-exclude3.sh: Likewise.
2474         * tests/test-exclude4.sh: Likewise.
2475         * tests/test-exclude5.sh: Likewise.
2476         * tests/test-exclude6.sh: Likewise.
2477         * tests/test-exclude7.sh: Likewise.
2478         * tests/test-exclude8.sh: Likewise.
2479         * modules/exclude-tests (Files): List init.sh.
2480
2481         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2482         These shell scripts ignored failure of the binary test-exclude,
2483         so making the latter return 77 didn't cause them to be skipped.
2484         * tests/test-exclude5.sh: Exit with test-exclude's error status
2485         when that program fails.  Revamp to use init.sh.
2486         * tests/test-exclude2.sh: Likewise.
2487
2488         test-exclude: fix a typo
2489         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2490
2491 2011-11-11  Bruno Haible  <bruno@clisp.org>
2492
2493         obstack: Fix compilation error on MSVC 9.
2494         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2495
2496 2011-11-11  Jim Meyering  <meyering@redhat.com>
2497
2498         test-exclude: skip tests rather than failing on deficient systems
2499         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2500         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2501         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2502         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2503
2504 2011-11-10  Bruno Haible  <bruno@clisp.org>
2505
2506         ptsname_r test: Avoid gcc warning on glibc systems.
2507         * tests/test-ptsname_r.c (null_ptr): New function.
2508         (test_errors): Use it.
2509
2510 2011-11-10  Bruno Haible  <bruno@clisp.org>
2511
2512         ptsname_r: Avoid compilation error on OSF/1 5.1.
2513         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2515         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2516         function is not declared or incompatibly declared.
2517         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2518         * modules/ptsname_r (Depends-on, configure.ac): Update.
2519         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2520
2521 2011-11-10  Bruno Haible  <bruno@clisp.org>
2522
2523         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2524         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2525         When cross-compiling, guess yes on all platforms except AIX.
2526         Reported by Ludovic Courtès <ludo@gnu.org>.
2527
2528 2011-11-09  Bruno Haible  <bruno@clisp.org>
2529
2530         ptsname_r tests: Fix bugs.
2531         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2532         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2533
2534 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2535
2536         fstatat: work with cross-compilation
2537         Problem reported by Ludovic Courtès in
2538         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2539         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2540         "cross-compiling" and assume the bug is present.  Replace
2541         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2542         an inverted sense, to be more conservative about our assumptions.
2543         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2544
2545 2011-11-09  Bruno Haible  <bruno@clisp.org>
2546
2547         Improve MODULES.html output.
2548         * modules/mkfifoat (Description): Use the word "function".
2549         * modules/readlinkat (Description): Likewise.
2550         * modules/symlinkat (Description): Likewise.
2551
2552 2011-11-09  Eric Blake  <eblake@redhat.com>
2553
2554         ptsname_r-tests: new test module
2555         * modules/ptsname_r-tests: New module.
2556         * tests/test-ptsname_r.c: New file.
2557
2558         ptsname_r: new module
2559         * modules/ptsname_r: New module.
2560         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2561         * lib/ptsname.c (__ptsname_r): Split...
2562         * lib/ptsname_r.c: ...into new file.
2563         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2564         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2565         * modules/stdlib (Makefile.am): Substitute witnesses.
2566         * lib/stdlib.in.h (ptsname_r): Declare it.
2567         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2568         * MODULES.html.sh (Misc): Likewise.
2569         * modules/ptsname (Depends-on): Alter dependency.
2570         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2571
2572 2011-11-09  Jim Meyering  <meyering@redhat.com>
2573
2574         announce-gen: be more concise when there's only one URL+tarball
2575         * build-aux/announce-gen (get_tool_versions): When you distribute
2576         only one type of tarball, combine the first two "Here are..."
2577         sections and make the key-checking grammar independent of
2578         how many tarballs there are.
2579
2580 2011-11-09  Eric Blake  <eblake@redhat.com>
2581
2582         openpty: provide a stub on mingw
2583         * lib/pty.in.h (includes): Provide forward declarations.
2584         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2585
2586         raise: fix mingw handling of SIGPIPE
2587         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2588
2589 2011-11-08  Bruno Haible  <bruno@clisp.org>
2590
2591         More conditional dependencies.
2592         * modules/faccessat (Depends-on): Add conditions.
2593         * modules/fchmodat (Depends-on): Likewise.
2594         * modules/fchownat (Depends-on): Likewise.
2595         * modules/fstatat (Depends-on): Likewise.
2596         * modules/mkfifoat (Depends-on): Likewise.
2597         * modules/readlinkat (Depends-on): Likewise.
2598         * modules/symlinkat (Depends-on): Likewise.
2599         * modules/unlinkat (Depends-on): Likewise.
2600         * modules/utimensat (Depends-on): Likewise.
2601         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2602         * modules/linkat (Depends-on): Refine the conditions.
2603         * modules/renameat (Depends-on): Likewise.
2604
2605 2011-11-08  Bruno Haible  <bruno@clisp.org>
2606
2607         faccessat: Move AC_LIBOBJ invocation to module description.
2608         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2609         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2610         invocation from here...
2611         * modules/faccessat (configure.ac): ... to here. Invoke
2612         gl_PREREQ_FACCESSAT.
2613
2614 2011-11-08  Bruno Haible  <bruno@clisp.org>
2615
2616         faccessat: Simplify autoconf macro.
2617         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2618         gl_FUNC_EUIDACCESS.
2619
2620 2011-11-08  Bruno Haible  <bruno@clisp.org>
2621
2622         renameat: Fix dependencies.
2623         * modules/renameat (Depends-on): Add stdbool.
2624
2625 2011-11-08  Bruno Haible  <bruno@clisp.org>
2626
2627         mkfifoat: Fix module description.
2628         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2629         not gl_UNISTD_MODULE_INDICATOR.
2630
2631 2011-11-08  Bruno Haible  <bruno@clisp.org>
2632
2633         fstatat: Remove unused dependency.
2634         * modules/fstatat (Depends-on): Remove fstat.
2635
2636 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2637
2638         GNUmakefile: behave when Makefile is missing.
2639         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2640
2641 2011-11-08  Bruno Haible  <bruno@clisp.org>
2642
2643         openat: Conditionalize dependencies.
2644         * lib/openat.c: Reduce the scope of some #includes.
2645         * modules/openat (Depends-on): Add conditions.
2646
2647 2011-11-07  Jim Meyering  <meyering@redhat.com>
2648
2649         maint.mk: extract GPG key ID without using a temporary file
2650         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2651         without using a temporary file.  Based on a suggestion from Werner Koch
2652         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2653
2654 2011-11-07  Eric Blake  <eblake@redhat.com>
2655
2656         grantpt: fix typo
2657         * lib/stdlib.in.h (grantpt): Check correct function.
2658
2659         maint.mk: silence new syntax check
2660         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2661
2662 2011-11-06  Bruno Haible  <bruno@clisp.org>
2663
2664         Doc about floating-point and math API.
2665         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2666         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2667
2668 2011-11-06  Bruno Haible  <bruno@clisp.org>
2669
2670         stdalign tests: Skip the test when compiled by Sun C.
2671         * tests/test-stdalign.c (main): Skip the test on Sun C.
2672
2673 2011-11-06  Bruno Haible  <bruno@clisp.org>
2674
2675         ansi-c++-opt: Complete the 2011-06-05 change.
2676         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2677         does not support namespaces, set the variable to "no", not to ":".
2678
2679 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2680
2681         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2682
2683 2011-11-06  Bruno Haible  <bruno@clisp.org>
2684
2685         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2686         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2687         (minus_zerol) [HP-UX]: New macro.
2688         (unary_minus) [HP-UX]: New function.
2689         (copysignl) [HP-UX]: Use unary_minus function.
2690
2691 2011-11-06  Bruno Haible  <bruno@clisp.org>
2692
2693         ldexp, ldexpf, ldexpl: Enhance tests.
2694         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2695         and tests/test-ldexpl.c.
2696         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2697         LDEXP, MIN_EXP, MAX_EXP): New macros.
2698         Include test-ldexp.h.
2699         (main): Just call test_function.
2700         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2701         infinity.h, nan.h.
2702         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2703         MAX_EXP): New macros.
2704         Include test-ldexp.h.
2705         (x, y): Remove variables.
2706         (main): Just call test_function.
2707         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2708         infinity.h, nan.h.
2709         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2710         MAX_EXP): New macros.
2711         Include test-ldexp.h.
2712         (x, y): Remove variables.
2713         (main): Just call test_function.
2714         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2715         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2716         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2717         (Depends-on): Add isnand-nolibm, signbit, float.
2718         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2719         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2720         (Depends-on): Add isnanf-nolibm, signbit, float.
2721
2722 2011-11-06  Bruno Haible  <bruno@clisp.org>
2723
2724         math tests: Cosmetics.
2725         * tests/test-math-c++.cc: Reorder declarations.
2726
2727 2011-11-05  Bruno Haible  <bruno@clisp.org>
2728
2729         fma*: Simplify test.
2730         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2731         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2732
2733         Tests for module 'fmal'.
2734         * modules/fmal-tests: New file.
2735         * tests/test-fmal1.c: New file.
2736         * tests/test-fmal2.c: New file.
2737
2738         New module 'fmal'.
2739         * lib/math.in.h (fmal): New declaration.
2740         * lib/fmal.c: New file.
2741         * m4/fmal.m4: New file.
2742         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2744         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2745         REPLACE_FMAL.
2746         * modules/fmal: New file.
2747         * doc/posix-functions/fmal.texi: Mention the new module and the various
2748         bugs.
2749
2750         Tests for module 'fmaf'.
2751         * modules/fmaf-tests: New file.
2752         * tests/test-fmaf1.c: New file.
2753         * tests/test-fmaf2.c: New file.
2754
2755         New module 'fmaf'.
2756         * lib/math.in.h (fmaf): New declaration.
2757         * lib/fmaf.c: New file.
2758         * m4/fmaf.m4: New file.
2759         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2760         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2761         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2762         REPLACE_FMAF.
2763         * modules/fmaf: New file.
2764         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2765         bugs.
2766
2767         Tests for module 'fma'.
2768         * modules/fma-tests: New file.
2769         * tests/test-fma1.c: New file.
2770         * tests/test-fma1.h: New file.
2771         * tests/test-fma2.c: New file.
2772         * tests/test-fma2.h: New file.
2773
2774         New module 'fma'.
2775         * lib/math.in.h (fma): New declaration.
2776         * lib/fma.c: New file.
2777         * m4/fma.m4: New file.
2778         * m4/fegetround.m4: New file.
2779         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2780         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2781         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2782         REPLACE_FMA.
2783         * modules/fma: New file.
2784         * doc/posix-functions/fma.texi: Mention the new module and the various
2785         bugs.
2786
2787         Extend gl_MATHFUNC.
2788         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2789         Support 'void' as argument type.
2790         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2791
2792 2011-11-05  Jim Meyering  <meyering@redhat.com>
2793
2794         maint.mk: also prohibit inclusion of dirent.h without use
2795         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2796
2797 2011-11-05  Bruno Haible  <bruno@clisp.org>
2798
2799         ldexpl tests: Avoid test failure on MSVC 9.
2800         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2801         value. Needed in order to enforce the conversion from a value greater
2802         than LDBL_MAX to Infinity.
2803
2804 2011-11-05  Bruno Haible  <bruno@clisp.org>
2805
2806         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2807         * modules/at-internal: New file, extracted from modules/openat.
2808         * modules/openat-h: New file.
2809         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2810         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2811         * modules/openat (Description): Add reference to POSIX function.
2812         (Files): Remove lib/openat.h, lib/openat-proc.c.
2813         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2814         intprops, unistd.
2815         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2816         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2817         gl_FCNTL_MODULE_INDICATOR.
2818         (Include): Remove unistd.h, openat.h.
2819         * modules/areadlinkat (Files): Add lib/at-func.c.
2820         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2821         openat-die, openat-h, save-cwd.
2822         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2823         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2824         openat-die, openat-h, save-cwd, unistd.
2825         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2826         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2827         openat-h, save-cwd. Remove fcntl-h, openat.
2828         * modules/fchmodat (Files): Remove lib/openat.h.
2829         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2830         openat, stdbool, unistd.
2831         * modules/fchownat (Files): Remove lib/openat.h.
2832         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2833         openat, stdbool, sys_stat.
2834         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2835         lib/openat-proc.c.
2836         (Depends-on): Add at-internal.
2837         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2838         * modules/fstatat (Files): Remove lib/openat.h.
2839         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2840         stdbool, unistd.
2841         * modules/fts (Depends-on): Add openat-h.
2842         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2843         openat.
2844         * modules/mkdirat (Files): Remove lib/openat.h.
2845         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2846         openat, stdbool, sys_stat.
2847         * modules/mkfifoat (Files): Add lib/at-func.c.
2848         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2849         openat-h, save-cwd. Remove fcntl-h, openat.
2850         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2851         * modules/readlinkat (Files): Add lib/at-func.c.
2852         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2853         openat-h, save-cwd. Remove fcntl-h, openat.
2854         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2855         openat.
2856         * modules/selinux-at (Files): Add lib/at-func.c.
2857         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2858         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2859         * modules/symlinkat (Files): Add lib/at-func.c.
2860         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2861         openat-h, save-cwd. Remove fcntl-h, openat.
2862         * modules/unlinkat (Files): Remove lib/openat.h.
2863         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2864         stdbool.
2865         * modules/utimensat (Files): Add lib/at-func.c.
2866         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2867         openat-die, openat-h, save-cwd.
2868         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2869         * modules/fdutimensat-tests (Depends-on): Add openat.
2870         * modules/fstatat-tests (Depends-on): Add openat-h.
2871         * modules/readlinkat-tests (Depends-on): Add openat.
2872         * modules/symlinkat-tests (Depends-on): Add openat.
2873
2874 2011-11-05  Bruno Haible  <bruno@clisp.org>
2875
2876         openat: Include <stdbool.h>.
2877         * lib/openat.c: Include <stdbool.h>.
2878
2879 2011-11-04  Bruno Haible  <bruno@clisp.org>
2880
2881         fchownat, renameat, unlinkat: Fix dependencies.
2882         * modules/fchownat (Depends-on): Add fstatat.
2883         * modules/renameat (Depends-on): Likewise.
2884         * modules/unlinkat (Depends-on): Likewise.
2885
2886 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2887
2888         openat: remove direct dependency on dirent
2889         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2890         and hasn't been needed ever since fdopendir was split into its own
2891         module on 2009-08-31.
2892         * modules/openat (Depends-on): Remove dirent.
2893
2894 2011-11-04  Bruno Haible  <bruno@clisp.org>
2895
2896         renameat: Optimize code size.
2897         * modules/renameat (configure.ac): Don't compile at-func2.c if
2898         REPLACE_RENAMEAT is 1.
2899
2900 2011-11-04  Bruno Haible  <bruno@clisp.org>
2901
2902         openat tests: Fix file list.
2903         * modules/openat-tests (Files): Add tests/test-open.h.
2904
2905 2011-11-04  Bruno Haible  <bruno@clisp.org>
2906
2907         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2908         * modules/fchmodat (Depends-on): Add openat-die.
2909         * modules/fchownat (Depends-on): Likewise.
2910         * modules/linkat (Depends-on): Likewise.
2911         * modules/renameat (Depends-on): Likewise.
2912         * modules/openat (Depends-on): Add dirent.
2913
2914 2011-11-04  Jim Meyering  <meyering@redhat.com>
2915
2916         at-func*.c: fix comments
2917         * lib/at-func2.c: Correct/improve first-line comment.
2918         * lib/at-func.c: Correct grammar in first-line comment.
2919
2920 2011-11-04  Bruno Haible  <bruno@clisp.org>
2921
2922         New module 'mkdirat', split off from module 'openat'.
2923         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2924         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2925         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2926         * modules/mkdirat: New file, extracted from modules/openat.
2927         * modules/openat (Files): Remove lib/mkdirat.c.
2928         (Depends-on): Remove mkdir.
2929         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2930         (Include): Remove <sys/stat.h>.
2931         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2932         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2933         tests/test-mkdir.h.
2934         (Depends-on): Remove ignore-value.
2935         (Makefile.am): Remove rules for test-mkdirat.
2936         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2937         of module 'openat'.
2938         * NEWS: Mention the change.
2939
2940 2011-11-04  Bruno Haible  <bruno@clisp.org>
2941
2942         closedir: Avoid warning on mingw.
2943         * lib/closedir.c: Include <unistd.h>.
2944
2945 2011-11-04  Bruno Haible  <bruno@clisp.org>
2946
2947         New module 'fstatat', split off from module 'openat'.
2948         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2949         defined.
2950         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2951         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2952         gl_FUNC_FSTATAT.
2953         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2954         * modules/fstatat: New file, extracted from modules/openat.
2955         * modules/openat (Files): Remove lib/fstatat.c.
2956         (Depends-on): Remove lstat.
2957         (configure.ac): Remove AC_LIBOBJ of fstatat.
2958         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2959         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2960         tests/test-lstat.h, tests/test-stat.h.
2961         (Depends-on): Remove getcwd-lgpl.
2962         (Makefile.am): Remove rules for test-fstatat.
2963         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2964         of module 'openat'.
2965         * NEWS: Mention the change.
2966         * modules/getcwd (Depends-on): Add fstatat.
2967         * modules/linkat (Depends-on): Likewise.
2968         * modules/mkfifoat-tests (Depends-on): Likewise.
2969         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2970
2971 2011-11-03  Bruno Haible  <bruno@clisp.org>
2972
2973         New module 'unlinkat', split off from module 'openat'.
2974         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2975         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2976         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2977         * modules/unlinkat: New file, extracted from modules/openat. Correct
2978         the dependency conditions.
2979         * modules/openat (Files): Remove lib/unlinkat.c.
2980         (Depends-on): Remove rmdir, unlink.
2981         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2982         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2983         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2984         tests/test-rmdir.h, tests/test-unlink.h.
2985         (Depends-on): Remove unlinkdir.
2986         (Makefile.am): Remove rules for test-unlinkat.
2987         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2988         of module 'openat'.
2989         * NEWS: Mention the change.
2990         * modules/linkat-tests (Depends-on): Add unlinkat.
2991         * modules/mkfifoat-tests (Depends-on): Likewise.
2992         * modules/readlinkat-tests (Depends-on): Likewise.
2993
2994 2011-11-02  Bruno Haible  <bruno@clisp.org>
2995
2996         New module 'fchmodat', split off from module 'openat'.
2997         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2998         defined.
2999         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3000         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3001         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3002         * modules/fchmodat: New file, extracted from modules/openat.
3003         * modules/openat (Files): Remove lib/fchmodat.c.
3004         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3005         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3006         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3007         (Makefile.am): Remove rules for test-fchmodat.
3008         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3009         of module 'openat'.
3010         * NEWS: Mention the change.
3011
3012 2011-11-02  Jim Meyering  <meyering@redhat.com>
3013
3014         putenv: indent #definition of "environ" to placate cppi
3015         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3016
3017         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3018         Git logs are often treated as immutable, because editing them
3019         changes the SHA1 checksums of all descendants.  Thus, errors in
3020         git logs tend to stay there forever.  However, when we generate
3021         a ChangeLog file -- typically for distribution -- from that git log,
3022         we can actually make corrections in the generated file.  The key
3023         lies in recording in machine-readable/applicable form the desired
3024         corrections.  See --help for description and an example.
3025         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3026         (usage): Describe it; alphabetize option descriptions.
3027         (main): Honor the new option, carefully.
3028
3029 2011-11-01  Jim Meyering  <meyering@redhat.com>
3030
3031         gitlog-to-changelog: avoid an infloop
3032         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3033         that ends up being empty.
3034
3035 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3036
3037         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3038         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3039         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3040         contains (possibly-quoted) backslashes.  This should avoid
3041         all-too-common shell bugs if COMPLICATED contains backslashes in
3042         the "wrong" places.  Reported by David Evans in
3043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3044         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3045         because we want ASCII ranges.  Is there some reason we don't use
3046         the C locale everywhere in this script?
3047         (func_module, top level): Avoid unwanted pathname expansion when
3048         $repo_url_prefix or $repo_url_suffix_repl contain shell
3049         metacharacters like '?' and '*'.
3050
3051 2011-11-01  Bruno Haible  <bruno@clisp.org>
3052
3053         fchownat: Improve description.
3054         * modules/fchownat (Description): Add link to function.
3055
3056 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3057
3058         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3059         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3060         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3061         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3062
3063 2011-11-01  Bruno Haible  <bruno@clisp.org>
3064
3065         alignof: Avoid collision with stdalign module.
3066         * lib/alignof.h (alignof): Remove macro.
3067         * NEWS: Mention the change.
3068         Reported by Paul Eggert.
3069
3070 2011-11-01  Bruno Haible  <bruno@clisp.org>
3071
3072         New module 'fchownat', split off from module 'openat'.
3073         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3074         defined.
3075         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3076         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3077         invoke gl_FUNC_FCHOWNAT.
3078         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3079         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3080         * modules/fchownat: New file, extracted from modules/openat.
3081         * modules/openat (Files): Remove lib/fchownat.c.
3082         (Depends-on): Remove lchown.
3083         (configure.ac): Remove AC_LIBOBJ of fchownat.
3084         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3085         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3086         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3087         (Depends-on): Remove mgetgroups, usleep, stat-time.
3088         (configure.ac): Remove test for getegid.
3089         (Makefile.am): Remove rules for test-fchownat.
3090         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3091         of module 'openat'.
3092         * NEWS: Mention the change.
3093
3094 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3095
3096         stdalign: port better to MSVC and to Sun C 5.11
3097         This fixes some of the problems reported by Bruno Haible in
3098         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3099         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3100         shortcomings of MSVC and of Sun C 5.11.
3101         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3102         around __declspec arg.
3103         * modules/stdalign-tests (Files): Add tests/macros.h.
3104         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3105         Include macros.h, for ASSERT.
3106         (DECLARE_ALIGNED): Remove.
3107         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3108         to catch bug), and to 1 if not (simplifies the rest of the code).
3109         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3110         (CHECK_AUTO): Remove.
3111         (CHECK_ALIGNED): Check only the alignment of the static vars,
3112         since auto var alignment isn't supported by Sun C 5.11.
3113         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3114         ASSERT failures are easier to diagnose.
3115
3116 2011-10-31  Bruno Haible  <bruno@clisp.org>
3117
3118         doc about some IRIX 5.3 problems.
3119         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3120         on IRIX 5.3.
3121         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3122         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3123         5.3.
3124         * doc/posix-functions/grantpt.texi: Likewise.
3125         * doc/posix-functions/unlockpt.texi: Likewise.
3126         * doc/posix-functions/lgamma.texi: Likewise.
3127         * doc/posix-functions/nextafter.texi: Likewise.
3128         * doc/posix-functions/remainder.texi: Likewise.
3129         * doc/posix-functions/select.texi: Mention misplaced declaration on
3130         IRIX 5.3.
3131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3132
3133 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3134
3135         gitlog-to-changelog: fix git-log invocation.
3136         git-log mishandles date strings before 1970-01-01 UTC, and there is
3137         no use to specify --since=1970-01-01 by default anyway.
3138         * build-aux/gitlog-to-changelog: By default, when no --since option
3139         was given, do not specify explicit --since option to git-log.
3140
3141 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3142
3143         gitlog-to-changelog: new option --append-dot.
3144         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3145         first non-blank line of each commit message terminated with a dot.
3146
3147 2011-10-30  Bruno Haible  <bruno@clisp.org>
3148
3149         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3150         * lib/ffsl.h: Include <config.h>.
3151         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3152
3153 2011-10-30  Jim Meyering  <meyering@redhat.com>
3154
3155         GNUmakefile: reenable "make syntax-check" for most projects
3156         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3157         build-aux variable", "syntax-check" would do nothing but succeed with
3158         the "No version control files detected..." diagnostic (unless you
3159         happened to override _build-aux via cfg.mk).
3160         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3161         to precede inclusion of maint.mk.  Otherwise, these variables would
3162         be used undefined in any project that does not override the default.
3163
3164 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3165
3166         gitlog-to-changelog: treat a message with only blank lines as empty.
3167         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3168         trailing blank lines before the code that issues a warning about an
3169         empty commit message.
3170
3171 2011-10-30  Jim Meyering  <meyering@redhat.com>
3172
3173         test-parse-datetime.c: avoid new DST-related false positive test failure
3174         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3175         based on the time/date we'll convert, not the current time.
3176         Otherwise, the moment we cross a DST boundary like today's in
3177         Europe, (CEST to CET), that offset ends up being one hour off.
3178
3179 2011-10-27  Bruno Haible  <bruno@clisp.org>
3180
3181         fstat: Tweak documentation.
3182         * modules/fstat (Description): More precise description.
3183
3184 2011-10-27  Bruno Haible  <bruno@clisp.org>
3185
3186         Update documentation regarding 'largefile' module.
3187         * doc/posix-functions/fstat.texi: Tweak wording.
3188         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3189         problems with huge directories and/or small ino_t types.
3190         * doc/posix-functions/readdir.texi: Likewise.
3191         * doc/posix-functions/rewinddir.texi: Likewise.
3192
3193 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3194
3195         maint.mk: don't maintain a second build-aux variable.
3196         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3197         depends on GNUmakefile, which already maintains a cfg.mk
3198         overridable $(_build-aux) for projects with a non-standard
3199         build-aux directory location, although without the $(srcdir)
3200         prefix.  Use that variable consistently instead of introducing a
3201         second one.  Adjust all call sites.
3202
3203 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3204
3205         Add stdalign module and use it in other modules.
3206         This is based on a previous proposal by Bruno Haible
3207         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3208
3209         stdalign: new module
3210         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3211         * modules/stdalign: New files.
3212         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3213         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3214
3215         stdalign-tests: new module
3216         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3217
3218         argp: use stdalign
3219         * lib/argp-parse.c: Include <stdalign.h>.
3220         (alignof): Remove.
3221         * modules/argp (Depends-on): Add stdalign.
3222
3223         crypto libraries: use stdalign
3224         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3225         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3226         Do not include <stdlib.h> twice, in md4.c.
3227         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3228         because we are accessing a pointer's bit-pattern, not a size.
3229         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3230         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3231         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3232         * modules/crypto/sha512: Likewise.
3233
3234         sys_socket: use stdalign, not alignof
3235         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3236         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3237
3238 2011-10-27  Bruno Haible  <bruno@clisp.org>
3239
3240         raise test: Avoid a test failure on Linux/MIPS.
3241         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3242         because 99 is a valid signal on Linux/MIPS.
3243
3244 2011-10-27  Bruno Haible  <bruno@clisp.org>
3245
3246         nonblocking tests: Fix test failure on Linux/MIPS.
3247         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3248         Set to 270000.
3249
3250 2011-10-27  Bruno Haible  <bruno@clisp.org>
3251
3252         utimensat: Work around problem on Linux/hppa.
3253         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3254         values.
3255         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3256
3257 2011-10-25  Jim Meyering  <meyering@redhat.com>
3258
3259         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3260         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3261         after symbols like NULL, size_t, etc.
3262         Reported by Alfred M. Szmidt.
3263
3264         maint.mk: exempt ENODATA from a syntax-check rule
3265         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3266         from the sc_prohibit_always-defined_macros syntax-check rule.
3267         Add a comment.  See this for more details:
3268         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3269
3270 2011-10-23  Jim Meyering  <meyering@redhat.com>
3271
3272         fts: close parent dir FD before returning from post-traversal fts_read
3273         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3274         unlink A, even though an FD open on A remained.  This is suboptimal
3275         (holding a file descriptor open longer than needed), but otherwise not
3276         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3277         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3278         that represents a real problem: it causes the removal of A to fail
3279         with e.g., "rm: cannot remove `A': Device or resource busy"
3280
3281         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3282         directory file descriptors.  After completing the final, FTS_DP,
3283         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3284         cache, but then proceeded to add a new FD to it via the subsequent
3285         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3286         final file descriptor would be closed only via fts_close's call to
3287         fd_ring_clear.  Now, it is usually closed earlier, via the final
3288         FTS_DP-returning fts_read call.
3289         * lib/fts.c (restore_initial_cwd): New function, converted from
3290         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3291         Update callers.
3292         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3293         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3294
3295 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3296             Bruno Haible  <bruno@clisp.org>
3297             Jim Meyering  <jim@meyering.net>
3298
3299         readme-release: improve safety of release prep instructions.
3300         * README-release: Don't git pull all branches when only master
3301         is needed for the release process.
3302         Run make maintainer-clean before changing trees and merging.
3303         Don't try to run ./configure right after git pull in case files
3304         that influence the bootstrap process have changed, move the
3305         ./configure step to after running ./bootstrap.
3306         Don't bootstrap "one last time"... it's the first time!
3307
3308 2011-10-22  Bruno Haible  <bruno@clisp.org>
3309
3310         errno, strerror-override: Support for MSVC 10.
3311         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3312         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3313         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3314         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3315         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3316         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3317         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3318         Assign values compatible with MSVC 10.
3319         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3320         New macros.
3321         (GNULIB_defined_EWINSOCK): New macro.
3322         * lib/strerror-override.c (strerror_override): Update accordingly.
3323         * lib/strerror-override.h: Likewise.
3324         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3325         longer equal to the corresponding errno value.
3326         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3327
3328 2011-10-22  Bruno Haible  <bruno@clisp.org>
3329
3330         perror: Recognize when test program crashes.
3331         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3332         strerror, set gl_cv_func_perror_works to no.
3333         Reported by Daniel Richard G. <skunk@iskunk.org>.
3334
3335         perror: Fix indentation.
3336         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3337
3338 2011-10-22  Bruno Haible  <bruno@clisp.org>
3339
3340         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3341         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3342         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3343         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3344         functions, not as a macro.
3345         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3346         macros.
3347         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3348         absence of macro.
3349         Suggested by Eric Blake.
3350         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3351
3352 2011-10-21  Bruno Haible  <bruno@clisp.org>
3353
3354         relocatable-prog-wrapper: Don't leave object files behind.
3355         * build-aux/install-reloc: Re-synchronize list of .o files to be
3356         removed with list of compilation units.
3357
3358 2011-10-20  Bruno Haible  <bruno@clisp.org>
3359
3360         openpty, posix_openpt: Remove code duplication.
3361         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3362         * lib/openpty.c: Include <stdlib.h>.
3363         (openpty): Use posix_openpt on all platforms except IRIX.
3364         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3365
3366 2011-10-20  Bruno Haible  <bruno@clisp.org>
3367
3368         unlockpt: Detect invalid argument.
3369         * lib/unlockpt.c: Include <fcntl.h>.
3370         (unlockpt): Check whether fd is valid, using fcntl().
3371         * modules/unlockpt (Depends-on): Add fcntl-h.
3372
3373 2011-10-20  Bruno Haible  <bruno@clisp.org>
3374
3375         openpty: Avoid compilation error on AIX 6.1.
3376         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3377
3378 2011-10-20  Bruno Haible  <bruno@clisp.org>
3379
3380         posix_openpt: Support for OpenBSD.
3381         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3382         (posix_openpt) [OpenBSD]: New code.
3383         * lib/grantpt.c: Include <fcntl.h>.
3384         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3385         * modules/grantpt (Depends-on): Add fcntl-h.
3386
3387 2011-10-20  Bruno Haible  <bruno@clisp.org>
3388
3389         posix_openpt test: Coding style.
3390         * tests/test-posix_openpt.c: Use GNU coding style.
3391
3392 2011-10-20  Bruno Haible  <bruno@clisp.org>
3393
3394         grantpt: Support --avoid=pt_chown.
3395         * modules/grantpt (Files): Add lib/pty-private.h.
3396
3397 2011-10-20  Bruno Haible  <bruno@clisp.org>
3398
3399         posix_openpt: Fix autoconf macro.
3400         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3401         unneeded check for _getpty.
3402
3403 2011-10-20  Bruno Haible  <bruno@clisp.org>
3404
3405         openpty: Update comments.
3406         * lib/openpty.c: Add comments about Minix.
3407
3408 2011-10-19  Eric Blake  <eblake@redhat.com>
3409
3410         openpty: relax license
3411         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3412
3413         pt_chown: use configmake to simplify build
3414         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3415
3416         ptsname and others: relax license
3417         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3418         * modules/unlockpt (License): Likewise.
3419         * modules/pt_chown (License): Likewise.
3420         * modules/ptsname (License): Likewise.
3421         * modules/ttyname_r (License): Likewise.
3422
3423 2011-10-19  Jim Meyering  <meyering@redhat.com>
3424
3425         posix_openpt: remove spurious #endif
3426         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3427
3428 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3429
3430         maint.mk: Respect $(build_aux) in web-manual rule.
3431         * top/maint.mk (web-manual): Find gen-announce script in user's
3432         $(build_aux) directory instead of hard-coding 'build-aux'.
3433
3434 2011-10-19  Bruno Haible  <bruno@clisp.org>
3435
3436         posix_openpt: Fix compilation error.
3437         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3438         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3439         Mention the openpty module as an alternative.
3440
3441 2011-10-19  Bruno Haible  <bruno@clisp.org>
3442
3443         Support for old NeXTstep 3.3 frexp().
3444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3445         execution time of the test to 5 seconds.
3446         Reported by Daniel Richard G. <skunk@iskunk.org>.
3447
3448 2011-10-19  Bruno Haible  <bruno@clisp.org>
3449
3450         Support for old NeXTstep 3.3 sed.
3451         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3452         part, use /.../, not \|...|. Escape periods in the header file name.
3453         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3454         Reported by Daniel Richard G. <skunk@iskunk.org>.
3455
3456 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3457
3458         Support for old NeXTstep 3.3 gcc.
3459         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3460         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3461         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3462         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3463         * lib/regex.h (_Restrict_arr_): Likewise.
3464         * lib/regex_internal.h (re_token_t): Likewise.
3465         * lib/regexec.c (check_node_accept_bytes): Likewise.
3466         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3467
3468 2011-10-18  Eric Blake  <eblake@redhat.com>
3469
3470         posix_openpt: new module
3471         * modules/posix_openpt: New module.
3472         * m4/posix_openpt.m4: New file.
3473         * lib/posix_openpt.c: Likewise.
3474         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3475         (gl_STDLIB_H_DEFAULTS): Set defaults.
3476         * modules/stdlib (Makefile.am): Substitute macros.
3477         * lib/stdlib.in.h (posix_openpt): Declare.
3478         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3479         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3480         * modules/posix_openpt-tests: New test module.
3481         * tests/test-posix_openpt.c: New test.
3482
3483 2011-10-15  Bruno Haible  <bruno@clisp.org>
3484
3485         xstrtoll: Fix compilation failure.
3486         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3487         from lib/strtol.c.
3488         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3489         some platforms.
3490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3491
3492 2011-10-15  Bruno Haible  <bruno@clisp.org>
3493
3494         vasnprintf: Optimize bit search operation.
3495         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3496         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3497         gl_DOUBLE_EXPONENT_LOCATION.
3498         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3499         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3500         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3501         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3502         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3503         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3504         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3505         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3506         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3507
3508 2011-10-15  Bruno Haible  <bruno@clisp.org>
3509
3510         vasnprintf: Fix comments.
3511         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3512
3513 2011-10-14  Bruno Haible  <bruno@clisp.org>
3514
3515         Tests for module 'integer_length_ll'.
3516         * modules/integer_length_ll-tests: New file.
3517         * tests/test-integer_length_ll.c: New file.
3518
3519         New module 'integer_length_ll'.
3520         * lib/integer_length_ll.c: New file.
3521         * modules/integer_length_ll: New file.
3522
3523 2011-10-14  Bruno Haible  <bruno@clisp.org>
3524
3525         Tests for module 'integer_length_l'.
3526         * modules/integer_length_l-tests: New file.
3527         * tests/test-integer_length_l.c: New file.
3528
3529         New module 'integer_length_l'.
3530         * lib/integer_length_l.c: New file.
3531         * modules/integer_length_l: New file.
3532
3533 2011-10-14  Bruno Haible  <bruno@clisp.org>
3534
3535         Tests for module 'integer_length'.
3536         * modules/integer_length-tests: New file.
3537         * tests/test-integer_length.c: New file.
3538
3539         New module 'integer_length'.
3540         * lib/integer_length.h: New file.
3541         * lib/integer_length.c: New file.
3542         * modules/integer_length: New file.
3543
3544 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3545
3546         popen: Fix dependency conditions.
3547         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3548
3549 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3550
3551         perror: Fix autoconf test.
3552         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3553         <stdlib.h> and <string.h>.
3554
3555 2011-10-14  Bruno Haible  <bruno@clisp.org>
3556
3557         ffsl: Optimize on 64-bit platforms.
3558         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3559         unrolling.
3560
3561 2011-10-13  Bruno Haible  <bruno@clisp.org>
3562
3563         ffsl: Optimize on 32-bit platforms.
3564         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3565         use ffs() without a loop.
3566
3567         ffsl, ffsll: Optimize for GCC.
3568         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3569         * lib/ffsl.c (GCC_BUILTIN): New macro.
3570         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3571
3572 2011-10-13  Bruno Haible  <bruno@clisp.org>
3573
3574         ffs, bcopy, memset: Support symbol renaming via config.h.
3575         * lib/ffs.c: Include <config.h>.
3576         * lib/bcopy.c: Likewise.
3577         * lib/memset.c: Likewise.
3578
3579 2011-10-10  Bruno Haible  <bruno@clisp.org>
3580
3581         atanl: Simplify for platforms where 'long double' == 'double'.
3582         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3583         alternative implementation.
3584         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3585         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3586         * modules/atanl (Depends-on): Add atan. Update conditions.
3587
3588 2011-10-10  Bruno Haible  <bruno@clisp.org>
3589
3590         acosl: Simplify for platforms where 'long double' == 'double'.
3591         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3592         alternative implementation.
3593         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3594         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3595         * modules/acosl (Depends-on): Add acos. Update conditions.
3596
3597 2011-10-10  Bruno Haible  <bruno@clisp.org>
3598
3599         asinl: Simplify for platforms where 'long double' == 'double'.
3600         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3601         alternative implementation.
3602         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3603         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3604         * modules/asinl (Depends-on): Add asin. Update conditions.
3605
3606 2011-10-10  Bruno Haible  <bruno@clisp.org>
3607
3608         tanl: Simplify for platforms where 'long double' == 'double'.
3609         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3610         implementation.
3611         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3612         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3613         * modules/tanl (Depends-on): Add tan. Update conditions.
3614         (configure.ac): Don't compile trigl.c if
3615         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3616
3617 2011-10-10  Bruno Haible  <bruno@clisp.org>
3618
3619         cosl: Simplify for platforms where 'long double' == 'double'.
3620         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3621         implementation.
3622         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3623         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3624         * modules/cosl (Depends-on): Add cos. Update conditions.
3625         (configure.ac): Don't compile sincosl.c and trigl.c if
3626         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3627
3628 2011-10-10  Bruno Haible  <bruno@clisp.org>
3629
3630         sinl: Simplify for platforms where 'long double' == 'double'.
3631         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3632         implementation.
3633         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3634         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3635         * modules/sinl (Depends-on): Add sin. Update conditions.
3636         (configure.ac): Don't compile sincosl.c and trigl.c if
3637         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3638
3639 2011-10-10  Bruno Haible  <bruno@clisp.org>
3640
3641         logl: Simplify for platforms where 'long double' == 'double'.
3642         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3643         implementation.
3644         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3645         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3646         * modules/logl (Depends-on): Add log. Update conditions.
3647
3648 2011-10-10  Bruno Haible  <bruno@clisp.org>
3649
3650         expl: Simplify for platforms where 'long double' == 'double'.
3651         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3652         implementation.
3653         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3654         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3655         * modules/expl (Depends-on): Add exp. Update conditions.
3656
3657 2011-10-10  Bruno Haible  <bruno@clisp.org>
3658
3659         sqrtl: Simplify for platforms where 'long double' == 'double'.
3660         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3661         alternative implementation.
3662         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3663         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3664         * modules/sqrtl (Depends-on): Update conditions.
3665
3666 2011-10-10  Bruno Haible  <bruno@clisp.org>
3667
3668         ldexpl: Simplify for platforms where 'long double' == 'double'.
3669         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3670         alternative implementation.
3671         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3672         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3673         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3674
3675 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3676
3677         ffsll: set correct witness
3678         * modules/ffsll (configure.ac): Fix typo.
3679
3680 2011-10-10  Bruno Haible  <bruno@clisp.org>
3681
3682         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3683         * lib/printf-frexpl.c: Include <config.h>.
3684         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3685         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3686         second time.
3687         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3688         gl_LONG_DOUBLE_VS_DOUBLE.
3689         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3690         conditions.
3691
3692 2011-10-10  Bruno Haible  <bruno@clisp.org>
3693
3694         frexpl: Simplify for platforms where 'long double' == 'double'.
3695         * lib/frexpl.c: Include <config.h>.
3696         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3697         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3698         time.
3699         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3700         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3701         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3702         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3703         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3704         conditions.
3705
3706 2011-10-10  Jim Meyering  <meyering@redhat.com>
3707
3708         test-renameat: don't leave behind a temporary file
3709         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3710           ERROR: files left in build directory after distclean:
3711           ./gltests/test-renameat.too
3712           make[1]: *** [distcleancheck] Error 1
3713         Reported by Tom G. Christensen.
3714
3715 2011-10-09  Bruno Haible  <bruno@clisp.org>
3716
3717         rint: Determine RINT_LIBM correctly on AIX 7.
3718         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3719         directly, not only through a function pointer. Also accept an optional
3720         4th argument with extra code.
3721         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3722         rintf() call by gcc when optimizing.
3723
3724         mathfunc.m4: Refactor.
3725         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3726         m4 variable.
3727
3728 2011-10-09  Bruno Haible  <bruno@clisp.org>
3729
3730         rintl: Simplify for platforms where 'long double' == 'double'.
3731         * lib/rintl.c: Include <config.h>.
3732         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3733         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3734         time.
3735         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3736         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3737         * modules/rintl (Depends-on): Add rint. Update conditions.
3738
3739 2011-10-09  Bruno Haible  <bruno@clisp.org>
3740
3741         roundl: Simplify for platforms where 'long double' == 'double'.
3742         * lib/roundl.c: Include <config.h>.
3743         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3744         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3745         time.
3746         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3747         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3748         * modules/roundl (Depends-on): Add round. Update conditions.
3749
3750 2011-10-09  Bruno Haible  <bruno@clisp.org>
3751
3752         truncl: Simplify for platforms where 'long double' == 'double'.
3753         * lib/truncl.c: Include <config.h>.
3754         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3755         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3756         time.
3757         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3758         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3759         * modules/truncl (Depends-on): Add trunc. Update conditions.
3760
3761 2011-10-09  Bruno Haible  <bruno@clisp.org>
3762
3763         ceill: Simplify for platforms where 'long double' == 'double'.
3764         * lib/ceill.c: Include <config.h>.
3765         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3766         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3767         time.
3768         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3769         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3770         * modules/ceill (Depends-on): Add ceil. Update conditions.
3771
3772 2011-10-09  Bruno Haible  <bruno@clisp.org>
3773
3774         floorl: Simplify for platforms where 'long double' == 'double'.
3775         * lib/floorl.c: Include <config.h>.
3776         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3777         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3778         time.
3779         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3780         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3781         * modules/floorl (Depends-on): Add floor. Update conditions.
3782
3783 2011-10-09  Bruno Haible  <bruno@clisp.org>
3784
3785         rint: Fix ordering constraints.
3786         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3787         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3788         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3789
3790 2011-10-09  Bruno Haible  <bruno@clisp.org>
3791
3792         copysignl: Simplify for platforms where 'long double' == 'double'.
3793         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3794         alternative.
3795         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3796         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3797         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3798
3799 2011-10-09  Bruno Haible  <bruno@clisp.org>
3800
3801         Tests for module 'rintl'.
3802         * modules/rintl-tests: New file.
3803         * tests/test-rintl.c: New file.
3804
3805         New module 'rintl'.
3806         * lib/math.in.h (rintl): New declaration.
3807         * lib/rintl.c: New file.
3808         * m4/rintl.m4: New file.
3809         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3810         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3811         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3812         * modules/rintl: New file.
3813         * tests/test-math-c++.cc: Check the declaration of rintl.
3814         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3815         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3816         * doc/posix-functions/rintl.texi: Mention the new module.
3817
3818 2011-10-09  Bruno Haible  <bruno@clisp.org>
3819
3820         Tests for module 'rintf'.
3821         * modules/rintf-tests: New file.
3822         * tests/test-rintf.c: New file.
3823
3824         New module 'rintf'.
3825         * lib/math.in.h (rintf): New declaration.
3826         * lib/rintf.c: New file.
3827         * m4/rintf.m4: New file.
3828         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3829         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3830         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3831         * modules/rintf: New file.
3832         * tests/test-math-c++.cc: Check the declaration of rintf.
3833         * doc/posix-functions/rintf.texi: Mention the new module.
3834
3835 2011-10-09  Bruno Haible  <bruno@clisp.org>
3836
3837         rint: Support for MSVC.
3838         * lib/math.in.h (rint): New declaration.
3839         * lib/rint.c: New file.
3840         * m4/rint.m4: New file.
3841         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3843         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3844         * modules/rint (Description): Fix.
3845         (Files): Add lib/rint.c, m4/rint.m4.
3846         (Depends-on): Add math.
3847         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3848         gl_MATH_MODULE_INDICATOR.
3849         * tests/test-math-c++.cc: Check the declaration of rint.
3850         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3851         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3852         * doc/posix-functions/rint.texi: Mention the replacement provided by
3853         the module.
3854
3855         rint tests: More tests.
3856         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3857         minus-zero.h, infinity.h, nan.h.
3858         (main): Skip the test if the current rounding mode is not standard. Add
3859         tests for negative numbers, minus zero, infinity, NaN.
3860         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3861         tests/nan.h.
3862         (Depends-on): Add isnand-nolibm.
3863
3864 2011-10-09  Bruno Haible  <bruno@clisp.org>
3865
3866         Tests for module 'copysignl'.
3867         * modules/copysignl-tests: New file.
3868         * tests/test-copysignl.c: New file.
3869
3870         New module 'copysignl'.
3871         * lib/math.in.h (copysignl): New declaration.
3872         * lib/copysignl.c: New file.
3873         * m4/copysignl.m4: New file.
3874         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3875         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3876         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3877         HAVE_COPYSIGNL.
3878         * modules/copysignl: New file.
3879         * tests/test-math-c++.cc: Check the declaration of copysignl.
3880         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3881         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3882         * doc/posix-functions/copysignl.texi: Mention the new module.
3883
3884 2011-10-09  Bruno Haible  <bruno@clisp.org>
3885
3886         Tests for module 'copysignf'.
3887         * modules/copysignf-tests: New file.
3888         * tests/test-copysignf.c: New file.
3889
3890         New module 'copysignf'.
3891         * lib/math.in.h (copysignf): New declaration.
3892         * lib/copysignf.c: New file.
3893         * m4/copysignf.m4: New file.
3894         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3895         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3896         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3897         HAVE_COPYSIGNF.
3898         * modules/copysignf: New file.
3899         * tests/test-math-c++.cc: Check the declaration of copysignf.
3900         * doc/posix-functions/copysignf.texi: Mention the new module.
3901
3902 2011-10-09  Bruno Haible  <bruno@clisp.org>
3903
3904         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3905         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3906         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3907         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3908         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3909         gl_SIGNAL_H_DEFAULTS.
3910
3911 2011-10-09  Bruno Haible  <bruno@clisp.org>
3912
3913         poll: Make macro safer.
3914         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3915         ac_cv_header_poll_h is not set.
3916
3917 2011-10-09  Bruno Haible  <bruno@clisp.org>
3918
3919         copysign: Provide replacement.
3920         * lib/math.in.h (copysign): New declaration.
3921         * lib/copysign.c: New file.
3922         * m4/copysign.m4: New file.
3923         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3924         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3925         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3926         HAVE_COPYSIGN.
3927         * modules/copysign (Description): Clarify.
3928         (Files): Add lib/copysign.c, m4/copysign.m4.
3929         (Depends-on): Add math, signbit.
3930         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3931         gl_MATH_MODULE_INDICATOR.
3932         * tests/test-math-c++.cc: Check the declaration of copysign.
3933         * doc/posix-functions/copysign.texi: Mention the effects of the module
3934         on Minix and MSVC.
3935
3936 2011-10-09  Bruno Haible  <bruno@clisp.org>
3937
3938         isinf: Ensure macro on AIX 5.1.
3939         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3940         macro.
3941         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3942
3943 2011-10-09  Bruno Haible  <bruno@clisp.org>
3944
3945         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3946         * modules/snprintf-posix-tests (configure.ac): Require
3947         gl_LONG_DOUBLE_VS_DOUBLE.
3948         * modules/sprintf-posix-tests (configure.ac): Likewise.
3949         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3950         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3951         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3952         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3953         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3954         tests on platforms where 'long double' is the same as 'double'.
3955         * tests/test-sprintf-posix.h (test_function): Likewise.
3956         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3957         * tests/test-vasprintf-posix.c (test_function): Likewise.
3958
3959         *printf: Fix for platforms where 'long double' == 'double'.
3960         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3961         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3962         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3963         * modules/fprintf-posix (Files): Likewise.
3964         * modules/obstack-printf-posix (Files): Likewise.
3965         * modules/snprintf-posix (Files): Likewise.
3966         * modules/sprintf-posix (Files): Likewise.
3967         * modules/vasnprintf (Files): Likewise.
3968         * modules/vasnprintf-posix (Files): Likewise.
3969         * modules/vasprintf-posix (Files): Likewise.
3970         * modules/vdprintf-posix (Files): Likewise.
3971         * modules/vfprintf-posix (Files): Likewise.
3972         * modules/vsnprintf-posix (Files): Likewise.
3973         * modules/vsprintf-posix (Files): Likewise.
3974         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3975         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3976         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3977         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3978         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3979         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3980         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3981
3982         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3983         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3984         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3985         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3986         'long double'.
3987         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3988
3989         isinf: Fix for platforms where 'long double' == 'double'.
3990         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3991         Don't blindly assume 80-bit 'long double'.
3992
3993         isfinite: Fix for platforms where 'long double' == 'double'.
3994         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3995         Don't blindly assume 80-bit 'long double'.
3996
3997         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3998         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3999         * modules/isfinite-tests (configure.ac): Require
4000         gl_LONG_DOUBLE_VS_DOUBLE.
4001         * modules/isinf-tests (configure.ac): Likewise.
4002         * modules/isnan-tests (configure.ac): Likewise.
4003         * modules/isnanl-tests (configure.ac): Likewise.
4004         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4005         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4006         tests on platforms where 'long double' is the same as 'double'.
4007         * tests/test-isinf.c (test_isinfl): Likewise.
4008         * tests/test-isnan.c (test_long_double): Likewise.
4009         * tests/test-isnanl.h (main): Likewise.
4010
4011 2011-10-08  Bruno Haible  <bruno@clisp.org>
4012
4013         Tests for module 'tanhf'.
4014         * modules/tanhf-tests: New file.
4015         * tests/test-tanhf.c: New file.
4016
4017         New module 'tanhf'.
4018         * lib/math.in.h (tanhf): New declaration.
4019         * lib/tanhf.c: New file.
4020         * m4/tanhf.m4: New file.
4021         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4023         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4024         * modules/tanhf: New file.
4025         * tests/test-math-c++.cc: Check the declaration of tanhf.
4026         * doc/posix-functions/tanhf.texi: Mention the new module.
4027
4028         tanh: Use a .m4 file.
4029         * m4/tanh.m4: New file.
4030         * modules/tanh (Files): Add it.
4031         (configure.ac): Just invoke gl_FUNC_TANH.
4032
4033 2011-10-08  Bruno Haible  <bruno@clisp.org>
4034
4035         Tests for module 'coshf'.
4036         * modules/coshf-tests: New file.
4037         * tests/test-coshf.c: New file.
4038
4039         New module 'coshf'.
4040         * lib/math.in.h (coshf): New declaration.
4041         * lib/coshf.c: New file.
4042         * m4/coshf.m4: New file.
4043         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4045         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4046         * modules/coshf: New file.
4047         * tests/test-math-c++.cc: Check the declaration of coshf.
4048         * doc/posix-functions/coshf.texi: Mention the new module.
4049
4050         cosh: Use a .m4 file.
4051         * m4/cosh.m4: New file.
4052         * modules/cosh (Files): Add it.
4053         (configure.ac): Just invoke gl_FUNC_COSH.
4054
4055 2011-10-08  Bruno Haible  <bruno@clisp.org>
4056
4057         Tests for module 'sinhf'.
4058         * modules/sinhf-tests: New file.
4059         * tests/test-sinhf.c: New file.
4060
4061         New module 'sinhf'.
4062         * lib/math.in.h (sinhf): New declaration.
4063         * lib/sinhf.c: New file.
4064         * m4/sinhf.m4: New file.
4065         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4067         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4068         * modules/sinhf: New file.
4069         * tests/test-math-c++.cc: Check the declaration of sinhf.
4070         * doc/posix-functions/sinhf.texi: Mention the new module.
4071
4072         sinh: Use a .m4 file.
4073         * m4/sinh.m4: New file.
4074         * modules/sinh (Files): Add it.
4075         (configure.ac): Just invoke gl_FUNC_SINH.
4076
4077 2011-10-08  Bruno Haible  <bruno@clisp.org>
4078
4079         Tests for module 'atan2f'.
4080         * modules/atan2f-tests: New file.
4081         * tests/test-atan2f.c: New file.
4082
4083         New module 'atan2f'.
4084         * lib/math.in.h (atan2f): New declaration.
4085         * lib/atan2f.c: New file.
4086         * m4/atan2f.m4: New file.
4087         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4089         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4090         * modules/atan2f: New file.
4091         * tests/test-math-c++.cc: Check the declaration of atan2f.
4092         * doc/posix-functions/atan2f.texi: Mention the new module.
4093
4094         atan2: Use a .m4 file.
4095         * m4/atan2.m4: New file.
4096         * modules/atan2 (Files): Add it.
4097         (configure.ac): Just invoke gl_FUNC_ATAN2.
4098
4099 2011-10-08  Bruno Haible  <bruno@clisp.org>
4100
4101         Tests for module 'atanf'.
4102         * modules/atanf-tests: New file.
4103         * tests/test-atanf.c: New file.
4104
4105         New module 'atanf'.
4106         * lib/math.in.h (atanf): New declaration.
4107         * lib/atanf.c: New file.
4108         * m4/atanf.m4: New file.
4109         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4111         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4112         * modules/atanf: New file.
4113         * tests/test-math-c++.cc: Check the declaration of atanf.
4114         * doc/posix-functions/atanf.texi: Mention the new module.
4115
4116         atan: Use a .m4 file.
4117         * m4/atan.m4: New file.
4118         * modules/atan (Files): Add it.
4119         (configure.ac): Just invoke gl_FUNC_ATAN.
4120
4121 2011-10-08  Bruno Haible  <bruno@clisp.org>
4122
4123         Tests for module 'acosf'.
4124         * modules/acosf-tests: New file.
4125         * tests/test-acosf.c: New file.
4126
4127         New module 'acosf'.
4128         * lib/math.in.h (acosf): New declaration.
4129         * lib/acosf.c: New file.
4130         * m4/acosf.m4: New file.
4131         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4133         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4134         * modules/acosf: New file.
4135         * tests/test-math-c++.cc: Check the declaration of acosf.
4136         * doc/posix-functions/acosf.texi: Mention the new module.
4137
4138         acos: Use a .m4 file.
4139         * m4/acos.m4: New file.
4140         * modules/acos (Files): Add it.
4141         (configure.ac): Just invoke gl_FUNC_ACOS.
4142
4143 2011-10-08  Bruno Haible  <bruno@clisp.org>
4144
4145         Tests for module 'asinf'.
4146         * modules/asinf-tests: New file.
4147         * tests/test-asinf.c: New file.
4148
4149         New module 'asinf'.
4150         * lib/math.in.h (asinf): New declaration.
4151         * lib/asinf.c: New file.
4152         * m4/asinf.m4: New file.
4153         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4155         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4156         * modules/asinf: New file.
4157         * tests/test-math-c++.cc: Check the declaration of asinf.
4158         * doc/posix-functions/asinf.texi: Mention the new module.
4159
4160         asin: Use a .m4 file.
4161         * m4/asin.m4: New file.
4162         * modules/asin (Files): Add it.
4163         (configure.ac): Just invoke gl_FUNC_ASIN.
4164
4165 2011-10-08  Bruno Haible  <bruno@clisp.org>
4166
4167         Tests for module 'tanf'.
4168         * modules/tanf-tests: New file.
4169         * tests/test-tanf.c: New file.
4170
4171         New module 'tanf'.
4172         * lib/math.in.h (tanf): New declaration.
4173         * lib/tanf.c: New file.
4174         * m4/tanf.m4: New file.
4175         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4177         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4178         * modules/tanf: New file.
4179         * tests/test-math-c++.cc: Check the declaration of tanf.
4180         * doc/posix-functions/tanf.texi: Mention the new module.
4181
4182         tan: Use a .m4 file.
4183         * m4/tan.m4: New file.
4184         * modules/tan (Files): Add it.
4185         (configure.ac): Just invoke gl_FUNC_TAN.
4186
4187 2011-10-08  Bruno Haible  <bruno@clisp.org>
4188
4189         Tests for module 'cosf'.
4190         * modules/cosf-tests: New file.
4191         * tests/test-cosf.c: New file.
4192
4193         New module 'cosf'.
4194         * lib/math.in.h (cosf): New declaration.
4195         * lib/cosf.c: New file.
4196         * m4/cosf.m4: New file.
4197         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4199         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4200         * modules/cosf: New file.
4201         * tests/test-math-c++.cc: Check the declaration of cosf.
4202         * doc/posix-functions/cosf.texi: Mention the new module.
4203
4204         cos: Use a .m4 file.
4205         * m4/cos.m4: New file.
4206         * modules/cos (Files): Add it.
4207         (configure.ac): Just invoke gl_FUNC_COS.
4208
4209 2011-10-08  Bruno Haible  <bruno@clisp.org>
4210
4211         Tests for module 'sinf'.
4212         * modules/sinf-tests: New file.
4213         * tests/test-sinf.c: New file.
4214
4215         New module 'sinf'.
4216         * lib/math.in.h (sinf): New declaration.
4217         * lib/sinf.c: New file.
4218         * m4/sinf.m4: New file.
4219         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4221         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4222         * modules/sinf: New file.
4223         * tests/test-math-c++.cc: Check the declaration of sinf.
4224         * doc/posix-functions/sinf.texi: Mention the new module.
4225
4226         sin: Use a .m4 file.
4227         * m4/sin.m4: New file.
4228         * modules/sin (Files): Add it.
4229         (configure.ac): Just invoke gl_FUNC_SIN.
4230
4231 2011-10-08  Bruno Haible  <bruno@clisp.org>
4232
4233         Tests for module 'powf'.
4234         * modules/powf-tests: New file.
4235         * tests/test-powf.c: New file.
4236
4237         New module 'powf'.
4238         * lib/math.in.h (powf): New declaration.
4239         * lib/powf.c: New file.
4240         * m4/powf.m4: New file.
4241         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4243         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4244         * modules/powf: New file.
4245         * tests/test-math-c++.cc: Check the declaration of powf.
4246         * doc/posix-functions/powf.texi: Mention the new module.
4247
4248         pow: Use a .m4 file.
4249         * m4/pow.m4: New file.
4250         * modules/pow (Files): Add it.
4251         (configure.ac): Just invoke gl_FUNC_POW.
4252
4253 2011-10-08  Bruno Haible  <bruno@clisp.org>
4254
4255         Tests for module 'log10f'.
4256         * modules/log10f-tests: New file.
4257         * tests/test-log10f.c: New file.
4258
4259         New module 'log10f'.
4260         * lib/math.in.h (log10f): New declaration.
4261         * lib/log10f.c: New file.
4262         * m4/log10f.m4: New file.
4263         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4265         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4266         * modules/log10f: New file.
4267         * tests/test-math-c++.cc: Check the declaration of log10f.
4268         * doc/posix-functions/log10f.texi: Mention the new module.
4269
4270         log10: Use a .m4 file.
4271         * m4/log10.m4: New file.
4272         * modules/log10 (Files): Add it.
4273         (configure.ac): Just invoke gl_FUNC_LOG10.
4274
4275 2011-10-08  Bruno Haible  <bruno@clisp.org>
4276
4277         Tests for module 'logf'.
4278         * modules/logf-tests: New file.
4279         * tests/test-logf.c: New file.
4280
4281         New module 'logf'.
4282         * lib/math.in.h (logf): New declaration.
4283         * lib/logf.c: New file.
4284         * m4/logf.m4: New file.
4285         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4287         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4288         * modules/logf: New file.
4289         * tests/test-math-c++.cc: Check the declaration of logf.
4290         * doc/posix-functions/logf.texi: Mention the new module.
4291
4292         log: Use a .m4 file.
4293         * m4/log.m4: New file.
4294         * modules/log (Files): Add it.
4295         (configure.ac): Just invoke gl_FUNC_LOG.
4296
4297 2011-10-08  Bruno Haible  <bruno@clisp.org>
4298
4299         Tests for module 'expf'.
4300         * modules/expf-tests: New file.
4301         * tests/test-expf.c: New file.
4302
4303         New module 'expf'.
4304         * lib/math.in.h (expf): New declaration.
4305         * lib/expf.c: New file.
4306         * m4/expf.m4: New file.
4307         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4309         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4310         * modules/expf: New file.
4311         * tests/test-math-c++.cc: Check the declaration of expf.
4312         * doc/posix-functions/expf.texi: Mention the new module.
4313
4314         exp: Use a .m4 file.
4315         * m4/exp.m4: New file.
4316         * modules/exp (Files): Add it.
4317         (configure.ac): Just invoke gl_FUNC_EXP.
4318
4319 2011-10-08  Bruno Haible  <bruno@clisp.org>
4320
4321         Tests for module 'sqrtf'.
4322         * modules/sqrtf-tests: New file.
4323         * tests/test-sqrtf.c: New file.
4324
4325         New module 'sqrtf'.
4326         * lib/math.in.h (sqrtf): New declaration.
4327         * lib/sqrtf.c: New file.
4328         * m4/sqrtf.m4: New file.
4329         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4331         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4332         * modules/sqrtf: New file.
4333         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4334         * doc/posix-functions/sqrtf.texi: Mention the new module.
4335
4336 2011-10-08  Bruno Haible  <bruno@clisp.org>
4337
4338         Tests: Avoid link failures w.r.t. libintl.
4339         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4340         $(LIBINTL).
4341         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4342         $(LIBINTL).
4343         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4344         against $(LIBINTL).
4345         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4346         $(LIBINTL).
4347         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4348         $(LIBINTL).
4349         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4350
4351 2011-10-08  Bruno Haible  <bruno@clisp.org>
4352
4353         pow tests: Defeat compiler optimizations.
4354         * tests/test-pow.c (main): Assign arguments to x and y before use.
4355
4356 2011-10-08  Bruno Haible  <bruno@clisp.org>
4357
4358         gnulib-tool: Improve last commit.
4359         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4360         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4361         ignore dependencies that are not among the modules list.
4362
4363 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4364
4365         gnulib-tool: don't follow dependencies to avoided modules
4366         This fixes a bug that is related to the previous one.
4367         * gnulib-tool (func_modules_transitive_closure)
4368         (func_emit_autoconf_snippets):
4369         Check whether a dependency is acceptable before using it.
4370         (--extract-dependencies): Report an error if --avoid is also used,
4371         since this combination of options is not yet supported.
4372
4373         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4374         Problem reported by Peter Dyballa in
4375         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4376         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4377         when echoing "$condition".
4378
4379 2011-10-07  Bruno Haible  <bruno@clisp.org>
4380
4381         Fix documentation about math functions on MacOS X.
4382         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4383         MacOS X 10.5.
4384         * doc/posix-functions/fdim.texi: Likewise.
4385         * doc/posix-functions/feclearexcept.texi: Likewise.
4386         * doc/posix-functions/fegetenv.texi: Likewise.
4387         * doc/posix-functions/fegetround.texi: Likewise.
4388         * doc/posix-functions/feholdexcept.texi: Likewise.
4389         * doc/posix-functions/feraiseexcept.texi: Likewise.
4390         * doc/posix-functions/fesetenv.texi: Likewise.
4391         * doc/posix-functions/fesetround.texi: Likewise.
4392         * doc/posix-functions/fetestexcept.texi: Likewise.
4393         * doc/posix-functions/feupdateenv.texi: Likewise.
4394         * doc/posix-functions/fmax.texi: Likewise.
4395         * doc/posix-functions/fmin.texi: Likewise.
4396         * doc/posix-functions/log2.texi: Likewise.
4397         * doc/posix-functions/modff.texi: Likewise.
4398         * doc/posix-functions/nan.texi: Likewise.
4399         * doc/posix-functions/nanf.texi: Likewise.
4400         * doc/posix-functions/nextafterf.texi: Likewise.
4401         * doc/posix-functions/remquo.texi: Likewise.
4402
4403 2011-10-07  Bruno Haible  <bruno@clisp.org>
4404
4405         modff: Drop assumption about library that defines modff.
4406         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4407         AC_CHECK_FUNCS.
4408         * modules/modff (Files): Add m4/mathfunc.m4.
4409
4410 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4411
4412         raise tests: Avoid a GCC warning.
4413         * tests/test-raise.c (handler): Use _Noreturn.
4414
4415 2011-10-07  Bruno Haible  <bruno@clisp.org>
4416
4417         Tests for module 'ldexpf'.
4418         * modules/ldexpf-tests: New file.
4419         * tests/test-ldexpf.c: New file.
4420
4421         New module 'ldexpf'.
4422         * lib/math.in.h (ldexpf): New declaration.
4423         * lib/ldexpf.c: New file.
4424         * m4/ldexpf.m4: New file.
4425         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4427         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4428         * modules/ldexpf: New file.
4429         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4430         * doc/posix-functions/ldexpf.texi: Mention the new module.
4431
4432 2011-10-06  Bruno Haible  <bruno@clisp.org>
4433
4434         frexpf: Work around problems on IRIX and mingw.
4435         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4437         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4438         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4439         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4440         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4441         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4442
4443 2011-10-06  Bruno Haible  <bruno@clisp.org>
4444
4445         fabsf: Drop assumption about library that defines fabsf.
4446         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4447         AC_CHECK_FUNCS.
4448         * modules/fabsf (Files): Add m4/mathfunc.m4.
4449
4450 2011-10-06  Bruno Haible  <bruno@clisp.org>
4451
4452         frexpf: Drop assumption about library that defines frexpf.
4453         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4454         'int *', 'float *', 'long double *', 'float', 'long double'.
4455         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4456         AC_CHECK_FUNCS.
4457         * modules/frexpf (Files): Add m4/mathfunc.m4.
4458
4459         Tests for module 'frexpf'.
4460         * modules/frexpf-tests: New file.
4461         * tests/test-frexpf.c: New file.
4462
4463         New module 'frexpf'.
4464         * lib/math.in.h (frexpf): New declaration.
4465         * lib/frexpf.c: New file.
4466         * m4/frexpf.m4: New file.
4467         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4469         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4470         * modules/frexpf: New file.
4471         * tests/test-math-c++.cc: Check the declaration of frexpf.
4472         * doc/posix-functions/frexpf.texi: Mention the new module.
4473
4474 2011-10-06  Bruno Haible  <bruno@clisp.org>
4475
4476         math: Sort function declarations of math.in.h.
4477         * lib/math.in.h (frexp, logb): Move declarations.
4478
4479 2011-10-05  Bruno Haible  <bruno@clisp.org>
4480
4481         Tests for module 'modff'.
4482         * modules/modff-tests: New file.
4483         * tests/test-modff.c: New file.
4484
4485         New module 'modff'.
4486         * lib/math.in.h (modff): New declaration.
4487         * lib/modff.c: New file.
4488         * m4/modff.m4: New file.
4489         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4491         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4492         * modules/modff: New file.
4493         * tests/test-math-c++.cc: Check the declaration of modff.
4494         * doc/posix-functions/modff.texi: Mention the new module.
4495
4496         modf tests: Make test sharper.
4497         * tests/test-modf.c (main): Strengthen upper bound.
4498
4499         modf: Use a .m4 file.
4500         * m4/modf.m4: New file.
4501         * modules/modf (Files): Add it.
4502         (configure.ac): Just invoke gl_FUNC_MODF.
4503
4504 2011-10-05  Bruno Haible  <bruno@clisp.org>
4505
4506         Tests for module 'fmodf'.
4507         * modules/fmodf-tests: New file.
4508         * tests/test-fmodf.c: New file.
4509
4510         New module 'fmodf'.
4511         * lib/math.in.h (fmodf): New declaration.
4512         * lib/fmodf.c: New file.
4513         * m4/fmodf.m4: New file.
4514         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4516         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4517         * modules/fmodf: New file.
4518         * tests/test-math-c++.cc: Check the declaration of fmodf.
4519         * doc/posix-functions/fmodf.texi: Mention the new module.
4520
4521         fmod: Use a .m4 file.
4522         * m4/fmod.m4: New file.
4523         * modules/fmod (Files): Add it.
4524         (configure.ac): Just invoke gl_FUNC_FMOD.
4525
4526 2011-10-05  Bruno Haible  <bruno@clisp.org>
4527
4528         Tests for module 'fabsf'.
4529         * modules/fabsf-tests: New file.
4530         * tests/test-fabsf.c: New file.
4531
4532         New module 'fabsf'.
4533         * lib/math.in.h (fabsf): New declaration.
4534         * lib/fabsf.c: New file.
4535         * m4/fabsf.m4: New file.
4536         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4538         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4539         * modules/fabsf: New file.
4540         * tests/test-math-c++.cc: Check the declaration of fabsf.
4541         * doc/posix-functions/fabsf.texi: Mention the new module.
4542
4543         fabs: Use a .m4 file.
4544         * m4/fabs.m4: New file.
4545         * modules/fabs (Files): Add it.
4546         (configure.ac): Just invoke gl_FUNC_FABS.
4547
4548 2011-10-05  Jim Meyering  <meyering@redhat.com>
4549
4550         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4551         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4552         ls -lL regression introduced in coreutils-8.12, it does so at the
4553         cost of an additional stat call in the common case.  Besides, now
4554         that the kernel change that prompted commit 95f7c57f has been reverted
4555         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4556         we have no use for commit 95f7c57f, "file-has-acl: use
4557         acl_extended_file_nofollow if available".
4558
4559 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4560
4561         file-has-acl: revert unintended change in behavior of ls -L
4562         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4563         derived from...
4564         (file_has_acl): ...code here.  Call it.
4565         This problem was introduced with 2011-07-22 commit 95f7c57f,
4566         "file-has-acl: use acl_extended_file_nofollow if available".
4567         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4568
4569 2011-10-03  Bruno Haible  <bruno@clisp.org>
4570
4571         poll: Avoid link errors on MSVC.
4572         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4573         * modules/poll (Depends-on): Add sockets.
4574         (Link): New section.
4575         * NEWS: Mention the change.
4576         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4577         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4578         $(LIB_POLL) instead of $(LIBSOCKET).
4579
4580 2011-10-03  Bruno Haible  <bruno@clisp.org>
4581
4582         sys_select tests: Fix link error on MSVC 9.
4583         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4584         with $(LIB_SELECT) instead of $(LIBSOCKET).
4585
4586 2011-10-03  Bruno Haible  <bruno@clisp.org>
4587
4588         sys_select: Fix compilation error on mingw.
4589         * lib/sys_select.in.h: On native Windows, include <io.h>.
4590
4591 2011-10-03  Bruno Haible  <bruno@clisp.org>
4592
4593         wmemset: Support for MSVC.
4594         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4595         whether wmemset() exists.
4596
4597 2011-10-03  Bruno Haible  <bruno@clisp.org>
4598
4599         wmemmove: Support for MSVC.
4600         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4601         whether wmemmove() exists.
4602
4603 2011-10-03  Bruno Haible  <bruno@clisp.org>
4604
4605         wmemcpy: Support for MSVC.
4606         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4607         whether wmemcpy() exists.
4608
4609 2011-10-03  Bruno Haible  <bruno@clisp.org>
4610
4611         wmemcmp: Support for MSVC.
4612         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4613         whether wmemcmp() exists.
4614
4615 2011-10-03  Bruno Haible  <bruno@clisp.org>
4616
4617         wmemchr: Support for MSVC.
4618         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4619         whether wmemchr() exists.
4620
4621 2011-10-03  Bruno Haible  <bruno@clisp.org>
4622
4623         glthread/*, strsignal: Support for MSVC.
4624         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4625         including <winsock.h> on MSVC 9.
4626         * lib/glthread/lock.h: Likewise.
4627         * lib/glthread/thread.h: Likewise.
4628         * lib/glthread/tls.h: Likewise.
4629         * lib/glthread/yield.h: Likewise.
4630         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4631         if HAVE_UNISTD_H is false.
4632         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4633
4634 2011-10-03  Bruno Haible  <bruno@clisp.org>
4635
4636         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4637         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4638         Set to 100000.
4639
4640 2011-10-03  Bruno Haible  <bruno@clisp.org>
4641
4642         acl: Fix specification.
4643         * lib/file-has-acl.c (file_has_acl): Fix specification.
4644
4645 2011-10-03  Bruno Haible  <bruno@clisp.org>
4646
4647         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4648         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4649         (compute_curr_prefix, shared_library_fullname,
4650         find_shared_library_fullname, get_shared_library_fullname, relocate):
4651         Use it together with PIC && INSTALLDIR.
4652         Reported by <jojelino@gmail.com>
4653         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4654
4655 2011-10-01  Jim Meyering  <meyering@redhat.com>
4656
4657         maint.mk: adjust a release-related rule not to require use of gzip
4658         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4659         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4660         projects that build only .tar.xz files.  Also fix an erroneous test.
4661
4662         test-linkat: don't leave behind a temporary file
4663         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4664         Otherwise, coreutils' "make distcheck" would fail with this:
4665           Only in /c/cu/tests/torture/coreutils/test/\
4666             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4667           make[2]: *** [my-distcheck] Error 1
4668
4669         float, math: add omitted file
4670         * lib/itold.c: Add file, required for yesterday's float change.
4671
4672 2011-10-01  Bruno Haible  <bruno@clisp.org>
4673
4674         isinf: Fix for OpenBSD/x86.
4675         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4676         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4677         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4678
4679 2011-10-01  Bruno Haible  <bruno@clisp.org>
4680
4681         isfinite: Fix syntax error in configure test.
4682         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4683
4684         isfinite: Fix typo.
4685         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4686         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4687
4688 2011-10-01  Bruno Haible  <bruno@clisp.org>
4689
4690         nonblocking tests: Fix test failure on Linux/IA-64.
4691         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4692         Set to 270000.
4693
4694 2011-10-01  Bruno Haible  <bruno@clisp.org>
4695
4696         mkfifoat tests: Fix a test failure on mingw.
4697         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4698         with error ENOSYS.
4699
4700 2011-09-30  Bruno Haible  <bruno@clisp.org>
4701
4702         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4703         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4704         'long double'. Set REPLACE_ITOLD.
4705         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4706         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4707         * lib/itold.c: New file.
4708         * modules/float (Files): Add lib/itold.c.
4709         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4710         (Makefile.am): Substitute REPLACE_ITOLD.
4711         * modules/math (Depends-on): Add float.
4712         (Makefile.am): Substitute REPLACE_ITOLD.
4713         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4714         * doc/posix-headers/math.texi: Likewise.
4715         * doc/posix-functions/logl.texi: Likewise.
4716
4717 2011-09-30  Bruno Haible  <bruno@clisp.org>
4718
4719         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4720         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4721         Set to 140000.
4722
4723 2011-09-30  Bruno Haible  <bruno@clisp.org>
4724
4725         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4726         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4727         invocation, say "right after AC_PROG_CC_STDC", not "right after
4728         AC_PROG_CC".
4729         Reported by Gary V. Vaughan <gary@gnu.org>.
4730
4731 2011-09-30  Bruno Haible  <bruno@clisp.org>
4732
4733         Centralize C99 requirement.
4734         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4735         * modules/stdarg (configure.ac-early): Invoke it instead of
4736         AC_PROG_CC_STDC.
4737         Reported by Gary V. Vaughan and Paul Eggert.
4738
4739 2011-09-29  Bruno Haible  <bruno@clisp.org>
4740
4741         float: Fix LDBL_MAX value on Linux/PowerPC.
4742         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4743         on Linux/PowerPC.
4744         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4745         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4746         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4747         platform.
4748         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4749
4750 2011-09-29  Bruno Haible  <bruno@clisp.org>
4751
4752         doc: Improve doc about gl_EARLY.
4753         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4754         AC_PROG_CC_STDC invocation.
4755         Reported by Gary V. Vaughan <gary@gnu.org>.
4756
4757 2011-09-28  Bruno Haible  <bruno@clisp.org>
4758
4759         fgetc, fputc, fread, fwrite tests: Fix link error.
4760         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4761         on non-MSVC platforms.
4762         * tests/test-fputc.c (main): Likewise.
4763         * tests/test-fread.c (main): Likewise.
4764         * tests/test-fwrite.c (main): Likewise.
4765         Reported by Jim Meyering.
4766
4767 2011-09-27  Bruno Haible  <bruno@clisp.org>
4768
4769         fputc, fwrite tests: Avoid test failure on MSVC.
4770         * tests/test-fgetc.c: Include msvc-inval.h.
4771         (main): Invoke gl_msvc_inval_ensure_handler.
4772         * tests/test-fputc.c: Include msvc-inval.h.
4773         (main): Invoke gl_msvc_inval_ensure_handler.
4774         * tests/test-fread.c: Include msvc-inval.h.
4775         (main): Invoke gl_msvc_inval_ensure_handler.
4776         * tests/test-fwrite.c: Include msvc-inval.h.
4777         (main): Invoke gl_msvc_inval_ensure_handler.
4778         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4779         * modules/fputc-tests (Depends-on): Likewise.
4780         * modules/fread-tests (Depends-on): Likewise.
4781         * modules/fwrite-tests (Depends-on): Likewise.
4782
4783 2011-09-27  Bruno Haible  <bruno@clisp.org>
4784
4785         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4786         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4787         (raise): Remove older, duplicated declaration.
4788         (_gl_raise_SIGPIPE): New declaration.
4789         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4790         (rpl_raise): Remove function.
4791         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4792         a gnulib-defined SIGPIPE here.
4793         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4794         'sigprocmask' has detected missing signal-blocking and the module
4795         'sigpipe' is enabled.
4796         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4797
4798 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4799
4800         base64-tests: avoid memory leak
4801         * tests/test-base64.c (main): Plug memory leak.
4802
4803         base32: new module
4804         * modules/base32: New module.
4805         * lib/base32.c: New file.
4806         * lib/base32.h: Likewise.
4807         * m4/base32.m4: Likewise.
4808         * modules/base32-tests: New test.
4809         * tests/test-base32.c: Likewise.
4810         * MODULES.html.sh (Misc): Mention it.
4811
4812 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4813
4814         gnulib: use more-standard license notice wording
4815         * gnulib-tool (func_emit_copyright_notice): When emitting a
4816         license notice into a file, use the standard wording as suggested
4817         by the current information for GNU maintainers, except say "file"
4818         rather than "program".  The new wording gives a license version
4819         number, which addresses an issue raised by Glenn Morris in
4820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4821         * m4/onceonly.m4: Use that same wording here, too.
4822
4823         dup2: minor simplification
4824         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4825         as lib/dup2.c no longer uses 'inline'.
4826
4827 2011-09-25  Bruno Haible  <bruno@clisp.org>
4828
4829         strings: Fix compilation error on MSVC.
4830         * lib/strings.in.h: Include <stddef.h> for size_t.
4831
4832 2011-09-25  Bruno Haible  <bruno@clisp.org>
4833
4834         fflush et al.: Document limitation on MSVC.
4835         * doc/posix-functions/fflush.texi: Document possible crash in handling
4836         mode other than DEFAULT_HANDLING.
4837         * doc/posix-functions/fgetc.texi: Likewise.
4838         * doc/posix-functions/fputc.texi: Likewise.
4839         * doc/posix-functions/fread.texi: Likewise.
4840         * doc/posix-functions/fwrite.texi: Likewise.
4841
4842 2011-09-25  Bruno Haible  <bruno@clisp.org>
4843
4844         msvc-inval: Allow three invalid parameter handling modes.
4845         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4846         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4847         macros.
4848         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4849         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4850         SANE_LIBRARY_HANDLING as a no-op.
4851         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4852         <stdlib.h>.
4853         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4854
4855 2011-09-25  Bruno Haible  <bruno@clisp.org>
4856
4857         msvc-inval: Make handler multithread-safe.
4858         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4859         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4860         declarations.
4861         (gl_msvc_inval_current): New declaration.
4862         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4863         Operate on the structure returned by gl_msvc_inval_current().
4864         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4865         Remove varaiables.
4866         (tls_index, tls_initialized): New variables.
4867         (not_per_thread): New variable.
4868         (gl_msvc_inval_current): New function.
4869         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4870         returned by gl_msvc_inval_current().
4871
4872 2011-09-25  Bruno Haible  <bruno@clisp.org>
4873
4874         msvc-inval: Install handler globally.
4875         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4876         !_MSC_VER.
4877         (gl_msvc_invalid_parameter_handler): Remove declaration.
4878         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4879         declarations.
4880         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4881         Install the handler globally, don't uninstall it.
4882         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4883         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4884         currently valid, call RaiseException instead.
4885         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4886         for !_MSC_VER.
4887
4888 2011-09-25  Bruno Haible  <bruno@clisp.org>
4889
4890         strerror_r-posix: Fix for MSVC 9.
4891         * lib/strerror_r.c (local_snprintf): New function.
4892         (snprintf): Define to local_snprintf, not to _snprintf.
4893
4894 2011-09-25  Bruno Haible  <bruno@clisp.org>
4895
4896         ftruncate: Support for MSVC 9.
4897         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4898         (chsize_nothrow): New function.
4899         (chsize): Redefine as a macro.
4900         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4901         * modules/ftruncate (Depends-on): Add msvc-inval.
4902
4903 2011-09-25  Bruno Haible  <bruno@clisp.org>
4904
4905         New module 'fstat'.
4906         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4907         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4908         * lib/fchdir.c (rpl_fstat): Remove function.
4909         * m4/fstat.m4: New file.
4910         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4911         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4912         declared.
4913         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4914         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4915         * modules/fstat: New file.
4916         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4917         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4918         is set.
4919         * doc/posix-functions/fstat.texi: Mention the new module and the
4920         problem on MSVC.
4921         * NEWS: Mention the change.
4922         * modules/acl (Depends-on): Add fstat.
4923         * modules/chdir-safer (Depends-on): Likewise.
4924         * modules/chown (Depends-on): Likewise.
4925         * modules/copy-file (Depends-on): Likewise.
4926         * modules/fchdir (Depends-on): Likewise.
4927         * modules/fdopendir (Depends-on): Likewise.
4928         * modules/fopen (Depends-on): Likewise.
4929         * modules/fts (Depends-on): Likewise.
4930         * modules/getcwd (Depends-on): Likewise.
4931         * modules/isapipe (Depends-on): Likewise.
4932         * modules/linkat (Depends-on): Likewise.
4933         * modules/lseek (Depends-on): Likewise.
4934         * modules/mkdir-p (Depends-on): Likewise.
4935         * modules/open (Depends-on): Likewise.
4936         * modules/openat (Depends-on): Likewise.
4937         * modules/read-file (Depends-on): Likewise.
4938         * modules/renameat (Depends-on): Likewise.
4939         * modules/utimens (Depends-on): Likewise.
4940
4941 2011-09-25  Bruno Haible  <bruno@clisp.org>
4942
4943         linkat: Fix compilation on MSVC 9.
4944         * lib/linkat.c: Don't include <stdint.h>.
4945
4946 2011-09-25  Bruno Haible  <bruno@clisp.org>
4947
4948         fclose: Support for MSVC 9.
4949         * lib/fclose.c: Include msvc-inval.h.
4950         (fclose_nothrow): New function.
4951         (rpl_fclose): Use it.
4952         * modules/fclose (Depends-on): Add msvc-inval.
4953         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4954
4955 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4956
4957         dup2: minor simplifications
4958         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4959         that it's a performance win.
4960         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4961         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4962
4963 2011-09-24  Jim Meyering  <meyering@redhat.com>
4964
4965         test-futimens: avoid a warning from gcc -Wshadow
4966         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4967         to avoid a shadowing warning.
4968
4969 2011-09-24  Bruno Haible  <bruno@clisp.org>
4970
4971         fdopen: Support for MSVC 9.
4972         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4973         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4974         * lib/fdopen.c: Include msvc-inval.h.
4975         (fdopen_nothrow): New function.
4976         (rpl_fdopen): Use it.
4977         * modules/fdopen (Depends-on): Add msvc-inval.
4978         * modules/fclose-tests (Depends-on): Add fdopen.
4979         * modules/fflush-tests (Depends-on): Likewise.
4980         * modules/fgetc-tests (Depends-on): Likewise.
4981         * modules/fputc-tests (Depends-on): Likewise.
4982         * modules/fread-tests (Depends-on): Likewise.
4983         * modules/freopen-tests (Depends-on): Likewise.
4984         * modules/fseeko-tests (Depends-on): Likewise.
4985         * modules/ftello-tests (Depends-on): Likewise.
4986         * modules/fwrite-tests  (Depends-on): Likewise.
4987         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4988
4989 2011-09-24  Bruno Haible  <bruno@clisp.org>
4990
4991         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4992         * modules/fgetc-tests (Depends-on): Add unistd.
4993         * modules/fputc-tests (Depends-on): Likewise.
4994         * modules/fread-tests (Depends-on): Likewise.
4995         * modules/fwrite-tests (Depends-on): Likewise.
4996
4997 2011-09-24  Bruno Haible  <bruno@clisp.org>
4998
4999         dup: Simplify autoconf test.
5000         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5001         on gl_MSVC_INVAL's result.
5002
5003 2011-09-24  Bruno Haible  <bruno@clisp.org>
5004
5005         Tests for function fwrite().
5006         * modules/fwrite-tests: New file.
5007         * tests/test-fwrite.c: New file.
5008         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5009
5010         Tests for function fread().
5011         * modules/fread-tests: New file.
5012         * tests/test-fread.c: New file.
5013         * modules/stdio-tests (Depends-on): Add fread-tests.
5014
5015         Activate fputc tests.
5016         * modules/stdio-tests (Depends-on): Add fputc-tests.
5017
5018         Enhance fgetc, fputc tests.
5019         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5020         * tests/test-fputc.c (main): Likewise.
5021
5022 2011-09-24  Bruno Haible  <bruno@clisp.org>
5023
5024         write: Support for MSVC 9.
5025         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5026         is not 1.
5027         * lib/write.c (write_nothrow): New function.
5028         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5029         not 1. Use write_nothrow.
5030         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5031         invalid parameter handler.
5032         (gl_PREREQ_WRITE): New macro.
5033         * modules/write (Depends-on): Add msvc-inval.
5034         (configure.ac): Invoke gl_PREREQ_WRITE.
5035         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5036
5037 2011-09-24  Bruno Haible  <bruno@clisp.org>
5038
5039         read: Fix last commit.
5040         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5041
5042 2011-09-24  Bruno Haible  <bruno@clisp.org>
5043
5044         dup2: Fix last commit.
5045         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5046         (rpl_dup2): Disable fcntl workaround on native Windows.
5047
5048         sigprocmask: Make code safer.
5049         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5050         section that changes macro definitions for this compilation unit.
5051
5052 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5053
5054         dup2: clarify by coalescing Windows-specific material
5055         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5056         "msvc-nothrow.h"' to the Windows-specific section, so that the
5057         Emacs source need not contain these include files.
5058         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5059         Windows-specific fixes into this function rather than just the
5060         nothrow fix, as this shortens and clarifies the code.  Always
5061         define as a function, as that's a bit cleaner than having it be
5062         sometimes a function and sometimes a macro.
5063         (rpl_dup2): Move the Windows-specific stuff out of here and into
5064         ms_windows_dup2.  Don't protect the Haiku-related fix with
5065         "#if !defined __linux__", as the same code also works around
5066         a Linux kernel bug, and it doesn't add any system calls on any
5067         platform.  Add comment about FreeBSD 6.1.
5068
5069         sigprocmask: move #include directive
5070         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5071         Windows-specific section, so that the Emacs source need not
5072         contain msvc-inval.h.
5073
5074 2011-09-23  Bruno Haible  <bruno@clisp.org>
5075
5076         read: Support for MSVC 9.
5077         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5078         is not 1.
5079         * lib/read.c (read_nothrow): New function.
5080         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5081         read_nothrow.
5082         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5083         invalid parameter handler.
5084         (gl_PREREQ_READ): New macro.
5085         * modules/read (Depends-on): Add msvc-inval.
5086         (configure.ac): Invoke gl_PREREQ_READ.
5087         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5088
5089 2011-09-23  Bruno Haible  <bruno@clisp.org>
5090
5091         close: Support for MSVC 9.
5092         * lib/close.c: Include <errno.h>, msvc-inval.h.
5093         (close_nothrow): New function.
5094         (rpl_close): Use it.
5095         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5096         invalid parameter handler.
5097         * modules/close (Depends-on): Add msvc-inval.
5098         * modules/dup2-tests (Depends-on): Add close.
5099         * modules/dup3-tests (Depends-on): Likewise.
5100         * modules/fcntl-tests (Depends-on): Likewise.
5101         * modules/spawn-pipe-tests (Depends-on): Likewise.
5102         * modules/unistd-safer-tests (Depends-on): Likewise.
5103         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5104
5105 2011-09-23  Bruno Haible  <bruno@clisp.org>
5106
5107         New module 'dup'.
5108         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5109         Allow replacement.
5110         * lib/dup.c: New file.
5111         * lib/fchdir.c (rpl_dup): Remove function.
5112         * m4/dup.m4: New file.
5113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5114         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5115         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5116         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5117         * modules/dup: New file.
5118         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5119         'dup' module is in use.
5120         * modules/fdopendir (Depends-on): Add dup.
5121         * modules/fdutimensat-tests (Depends-on): Likewise.
5122         * modules/fts (Depends-on): Likewise.
5123         * modules/futimens-tests (Depends-on): Likewise.
5124         * modules/posix_spawnp-tests (Depends-on): Likewise.
5125         * modules/unistd-safer-tests (Depends-on): Likewise.
5126         * modules/utimens-tests (Depends-on): Likewise.
5127         * doc/posix-functions/dup.texi: Mention the new module and the problem
5128         on MSVC.
5129
5130 2011-09-23  Bruno Haible  <bruno@clisp.org>
5131
5132         getdtablesize: Support for MSVC 9.
5133         * lib/getdtablesize.c: Include msvc-inval.h.
5134         (_setmaxstdio_nothrow): New function.
5135         (_setmaxstdio): Redefine it.
5136         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5137         * modules/getdtablesize (Depends-on): Add msvc-inval.
5138         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5139
5140 2011-09-23  Bruno Haible  <bruno@clisp.org>
5141
5142         signal-h: Rename from signal.
5143         * modules/signal-h: Renamed from modules/signal.
5144         * modules/pthread_sigmask (Depends-on): Update.
5145         * modules/raise (Depends-on): Likewise.
5146         * modules/sigaction (Depends-on): Likewise.
5147         * modules/sigpipe (Depends-on): Likewise.
5148         * modules/sigprocmask (Depends-on): Likewise.
5149         * modules/sys_select (Depends-on): Likewise.
5150         * modules/signal-h-tests: Renamed from modules/signal-tests.
5151         (Files, Depends-on, Makefile.am): Update.
5152         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5153         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5154         (Files, Makefile.am): Update.
5155         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5156         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5157         * modules/signal: New placeholder file.
5158         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5159         * doc/posix-headers/signal.texi: Update.
5160         * NEWS: Mention the change.
5161
5162 2011-09-23  Bruno Haible  <bruno@clisp.org>
5163
5164         sigprocmask: Avoid crashes through signal() on MSVC 9.
5165         * lib/sigprocmask.c: Include msvc-inval.h.
5166         (signal_nothrow): New function.
5167         (signal): Redefine it.
5168         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5169         * modules/sigprocmask (Depends-on): Add msvc-inval.
5170         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5171
5172 2011-09-23  Bruno Haible  <bruno@clisp.org>
5173
5174         Tests for module 'raise'.
5175         * modules/raise-tests: New file.
5176         * tests/test-raise.c: New file.
5177
5178         raise: Support for MSVC.
5179         * lib/signal.in.h (raise): New declaration.
5180         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5181         for native Windows platforms.
5182         * m4/raise.m4: New file.
5183         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5184         HAVE_RAISE, REPLACE_RAISE.
5185         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5186         REPLACE_RAISE.
5187         * modules/raise (Status, Notice): Remove fields.
5188         (Files): Add m4/raise.m4.
5189         (Depends-on): Add signal, msvc-inval.
5190         (configure.ac): Use the common idioms.
5191         (Maintainer): Add me.
5192         * tests/test-signal-c++.cc: Check the signature of raise.
5193         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5194
5195 2011-09-23  Bruno Haible  <bruno@clisp.org>
5196
5197         pipe2: Fix compilation on pre-C99 compilers.
5198         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5199
5200 2011-09-23  Bruno Haible  <bruno@clisp.org>
5201
5202         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5203         * lib/msvc-nothrow.h: New file.
5204         * lib/msvc-nothrow.c: New file.
5205         * m4/msvc-nothrow.m4: New file.
5206         * modules/msvc-nothrow: New file.
5207         * lib/dup2.c: Include msvc-nothrow.h.
5208         (rpl_dup2): No need to protect _get_osfhandle call here.
5209         * lib/accept4.c: Include msvc-nothrow.h.
5210         * lib/error.c: Likewise.
5211         * lib/fcntl.c: Likewise.
5212         * lib/lseek.c: Likewise.
5213         * lib/nonblocking.c: Likewise.
5214         * lib/poll.c: Likewise.
5215         * lib/read.c: Likewise.
5216         * lib/select.c: Likewise.
5217         * lib/sockets.h: Likewise.
5218         * lib/sockets.c: Likewise.
5219         * lib/stdio-read.c: Likewise.
5220         * lib/stdio-write.c: Likewise.
5221         * lib/write.c: Likewise.
5222         * lib/w32sock.h: Likewise.
5223         * lib/w32spawn.h: Likewise.
5224         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5225         * lib/fsync.c: Likewise.
5226         * lib/isapipe.c: Likewise.
5227         * modules/dup2 (Depends-on): Add msvc-nothrow.
5228         * modules/accept4 (Depends-on): Likewise.
5229         * modules/error (Depends-on): Likewise.
5230         * modules/fcntl (Depends-on): Likewise.
5231         * modules/lseek (Depends-on): Likewise.
5232         * modules/nonblocking (Depends-on): Likewise.
5233         * modules/poll (Depends-on): Likewise.
5234         * modules/read (Depends-on): Likewise.
5235         * modules/select (Depends-on): Likewise.
5236         * modules/sockets (Depends-on): Likewise.
5237         * modules/sigpipe (Depends-on): Likewise.
5238         * modules/write (Depends-on): Likewise.
5239         * modules/accept (Depends-on): Likewise.
5240         * modules/bind (Depends-on): Likewise.
5241         * modules/connect (Depends-on): Likewise.
5242         * modules/gethostname (Depends-on): Likewise.
5243         * modules/getpeername (Depends-on): Likewise.
5244         * modules/getsockname (Depends-on): Likewise.
5245         * modules/getsockopt (Depends-on): Likewise.
5246         * modules/ioctl (Depends-on): Likewise.
5247         * modules/listen (Depends-on): Likewise.
5248         * modules/recv (Depends-on): Likewise.
5249         * modules/recvfrom (Depends-on): Likewise.
5250         * modules/send (Depends-on): Likewise.
5251         * modules/sendto (Depends-on): Likewise.
5252         * modules/setsockopt (Depends-on): Likewise.
5253         * modules/shutdown (Depends-on): Likewise.
5254         * modules/socket (Depends-on): Likewise.
5255         * modules/execute (Depends-on): Likewise.
5256         * modules/spawn-pipe (Depends-on): Likewise.
5257         * modules/flock (Depends-on): Likewise.
5258         * modules/fsync (Depends-on): Likewise.
5259         * modules/isapipe (Depends-on): Likewise.
5260         * tests/test-cloexec.c: Include msvc-nothrow.h.
5261         * tests/test-dup-safer.c: Likewise.
5262         * tests/test-dup2.c: Likewise.
5263         * tests/test-dup3.c: Likewise.
5264         * tests/test-fcntl.c: Likewise.
5265         * tests/test-pipe.c: Likewise.
5266         * tests/test-pipe2.c: Likewise.
5267         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5268         * modules/unistd-safer-tests (Depends-on): Likewise.
5269         * modules/dup2-tests (Depends-on): Likewise.
5270         * modules/dup3-tests (Depends-on): Likewise.
5271         * modules/fcntl-tests (Depends-on): Likewise.
5272         * modules/pipe-posix-tests (Depends-on): Likewise.
5273         * modules/pipe2-tests (Depends-on): Likewise.
5274
5275 2011-09-23  Bruno Haible  <bruno@clisp.org>
5276
5277         dup2: Make code more maintainable.
5278         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5279         (rpl_dup2): Use it.
5280         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5281         * modules/dup2 (configure.ac): Invoke it.
5282         Reported by Paul Eggert.
5283
5284 2011-09-23  Bruno Haible  <bruno@clisp.org>
5285
5286         msvc-inval: Fix compilation error.
5287         * lib/msvc-inval.h: Include <excpt.h>.
5288
5289 2011-09-23  Bruno Haible  <bruno@clisp.org>
5290
5291         mkdir: Tweak for MSVC 9.
5292         * lib/sys_stat.in.h: Update comments.
5293         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5294
5295         Tests for module 'chdir'.
5296         * modules/chdir-tests: New file.
5297         * tests/test-chdir.c: New file.
5298
5299         New module 'chdir'.
5300         * modules/chdir: New file.
5301         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5302         (chdir): New declaration.
5303         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5304         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5305         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5306         * tests/test-unistd-c++.cc: Check signature of chdir.
5307         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5308         * modules/chdir-long (Depends-on): Add chdir.
5309         * modules/fchdir (Depends-on): Likewise.
5310         * modules/rename (Depends-on): Likewise.
5311         * modules/savewd (Depends-on): Likewise.
5312
5313         rmdir: Support for mingw, MSVC 9.
5314         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5315         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5316
5317         getcwd: Tweak for MSVC 9.
5318         * lib/unistd.in.h: Update comments.
5319         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5320
5321 2011-09-22  Bruno Haible  <bruno@clisp.org>
5322
5323         strerror_r-posix: Avoid a link error on MSVC.
5324         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5325         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5326
5327 2011-09-22  Bruno Haible  <bruno@clisp.org>
5328
5329         select: Avoid link errors on MSVC.
5330         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5331         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5332         * modules/pselect (Link): Likewise.
5333         * NEWS: Mention the change.
5334         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5335         test-select-stdin against $(LIB_SELECT).
5336         * modules/pselect-tests (Makefile.am): Link test-pselect against
5337         $(LIB_SELECT).
5338
5339 2011-09-22  Bruno Haible  <bruno@clisp.org>
5340
5341         select: Avoid compilation error on MSVC.
5342         * lib/select.c: Don't include <stdbool.h>.
5343
5344 2011-09-21  Bruno Haible  <bruno@clisp.org>
5345
5346         Consolidate all uses of PATH_MAX in *.m4 files.
5347         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5348         macros.
5349         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5350         and gl_PATHMAX_SNIPPET.
5351         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5352         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5353         * modules/chdir-long (Files): Add m4/pathmax.m4.
5354         * modules/getcwd (Files): Likewise.
5355
5356 2011-09-21  Bruno Haible  <bruno@clisp.org>
5357
5358         ftruncate: Un-deprecate, concentrate on Win32 support.
5359         * modules/ftruncate (Status, Notice): Remove sections.
5360         (Depends-on): Add largefile.
5361         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5362         non-mingw platforms.
5363         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5364         include <io.h>.
5365         * modules/perror-tests (Depends-on): Add ftruncate.
5366         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5367         'ftruncate' module.
5368
5369 2011-09-21  Bruno Haible  <bruno@clisp.org>
5370
5371         Add dependencies to new dirent related modules.
5372         * modules/opendir (Depends-on): Add closedir.
5373         * modules/getcwd (Depends-on): Add opendir, closedir.
5374         * modules/dirent-safer-tests (Depends-on): Likewise.
5375         * modules/fdopendir-tests (Depends-on): Likewise.
5376         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5377         * modules/renameat-tests (Depends-on): Likewise.
5378
5379 2011-09-21  Bruno Haible  <bruno@clisp.org>
5380
5381         opendir: Avoid compilation error on mingw.
5382         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5383         * modules/opendir (Depends-on): Add unistd.
5384
5385 2011-09-21  Bruno Haible  <bruno@clisp.org>
5386
5387         ftruncate tests: Avoid a test failure on mingw.
5388         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5389
5390 2011-09-21  Bruno Haible  <bruno@clisp.org>
5391
5392         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5393         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5394         native Windows.
5395
5396 2011-09-21  Bruno Haible  <bruno@clisp.org>
5397
5398         New module 'fdopen'.
5399         * lib/stdio.in.h (fdopen): New declaration.
5400         * lib/fdopen.c: New file.
5401         * m4/fdopen.m4: New file.
5402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5403         REPLACE_FDOPEN.
5404         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5405         REPLACE_FDOPEN.
5406         * modules/fdopen: New file.
5407         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5408         * tests/test-stdio-c++.cc: Check signature of fdopen.
5409         * doc/posix-functions/fdopen.texi: Mention the new module.
5410
5411 2011-09-21  Bruno Haible  <bruno@clisp.org>
5412
5413         unlockpt tests: Avoid test failure on NetBSD 5.1.
5414         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5415         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5416
5417 2011-09-21  Bruno Haible  <bruno@clisp.org>
5418
5419         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5420         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5421         * tests/test-getlogin_r.c (main): Likewise.
5422
5423 2011-09-20  Bruno Haible  <bruno@clisp.org>
5424
5425         time tests: Don't require pid_t.
5426         * doc/posix-headers/time.texi: Revert last change.
5427         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5428         * tests/test-time.c: Comment out the check for pid_t.
5429
5430 2011-09-20  Bruno Haible  <bruno@clisp.org>
5431
5432         fsync tests: Avoid a test failure on mingw.
5433         * tests/test-fsync.c (main): Allow a failure with EIO.
5434
5435 2011-09-20  Bruno Haible  <bruno@clisp.org>
5436
5437         euidaccess: Update comments.
5438         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5439
5440 2011-09-20  Bruno Haible  <bruno@clisp.org>
5441
5442         Ensure EBADF returns for socket functions on mingw.
5443         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5444         descriptor is invalid.
5445         * lib/bind.c (rpl_bind): Likewise.
5446         * lib/connect.c (rpl_connect): Likewise.
5447         * lib/getpeername.c (rpl_getpeername): Likewise.
5448         * lib/getsockname.c (rpl_getsockname): Likewise.
5449         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5450         * lib/listen.c (rpl_listen): Likewise.
5451         * lib/recv.c (rpl_recv): Likewise.
5452         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5453         * lib/send.c (rpl_send): Likewise.
5454         * lib/sendto.c (rpl_sendto): Likewise.
5455         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5456         * lib/shutdown.c (rpl_shutdown): Likewise.
5457
5458 2011-09-20  Bruno Haible  <bruno@clisp.org>
5459
5460         select tests: EBADF tests.
5461         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5462         test_bad_fd): New functions.
5463         (test_function): Invoke also test_bad_fd.
5464
5465 2011-09-20  Bruno Haible  <bruno@clisp.org>
5466
5467         Tests for module 'posix_spawn_file_actions_addopen.
5468         * modules/posix_spawn_file_actions_addopen-tests: New file.
5469         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5470
5471         Tests for module 'posix_spawn_file_actions_adddup2'.
5472         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5473         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5474
5475         Tests for module 'posix_spawn_file_actions_addclose'.
5476         * modules/posix_spawn_file_actions_addclose-tests: New file.
5477         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5478
5479 2011-09-20  Bruno Haible  <bruno@clisp.org>
5480
5481         Tests for module 'unlockpt'.
5482         * modules/unlockpt-tests: New file.
5483         * tests/test-unlockpt.c: New file.
5484         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5485
5486         Tests for module 'grantpt'.
5487         * modules/grantpt-tests: New file.
5488         * tests/test-grantpt.c: New file.
5489         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5490
5491 2011-09-20  Bruno Haible  <bruno@clisp.org>
5492
5493         freopen tests: EBADF tests.
5494         * tests/test-freopen.c: Include errno.h, unistd.h.
5495         (main): Add tests for EBADF, commented out for the moment.
5496
5497         fclose tests: EBADF tests.
5498         * tests/test-fclose.c (main): Add tests for EBADF.
5499
5500         fflush tests: EBADF tests.
5501         * tests/test-fflush.c: Include errno.h, macros.h.
5502         (main): Add tests for EBADF.
5503
5504         ftello tests: EBADF tests.
5505         * tests/test-ftello4.sh: New file.
5506         * tests/test-ftello4.c: New file.
5507         * modules/ftello-tests (Files): Add them.
5508         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5509
5510         fseeko tests: EBADF tests.
5511         * tests/test-fseeko4.sh: New file.
5512         * tests/test-fseeko4.c: New file.
5513         * modules/fseeko-tests (Files): Add them.
5514         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5515
5516         Tests for function fputc().
5517         * modules/fputc-tests: New file.
5518         * tests/test-fputc.c: New file.
5519         * modules/stdio-tests (Depends-on): Add fputc-tests.
5520
5521         Tests for function fgetc().
5522         * modules/fgetc-tests: New file.
5523         * tests/test-fgetc.c: New file.
5524         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5525
5526         Tests for function fdopen().
5527         * modules/fdopen-tests: New file.
5528         * tests/test-fdopen.c: New file.
5529         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5530
5531         Tests for module 'vdprintf'.
5532         * modules/vdprintf-tests: New file.
5533         * tests/test-vdprintf.c: New file.
5534
5535         Tests for module 'dprintf'.
5536         * modules/dprintf-tests: New file.
5537         * tests/test-dprintf.c: New file.
5538
5539 2011-09-20  Bruno Haible  <bruno@clisp.org>
5540
5541         Tests for module 'ioctl'.
5542         * modules/ioctl-tests: New file.
5543         * tests/test-ioctl.c: New file.
5544
5545 2011-09-20  Bruno Haible  <bruno@clisp.org>
5546
5547         fcntl tests: EBADF tests.
5548         * tests/test-fcntl.c (main): Add more tests for EBADF.
5549
5550 2011-09-20  Bruno Haible  <bruno@clisp.org>
5551
5552         utimensat tests: EBADF tests.
5553         * tests/test-utimensat.c (main): Add tests for EBADF.
5554
5555         renameat tests: EBADF tests.
5556         * tests/test-renameat.c (main): Add tests for EBADF.
5557
5558         mkfifoat tests: EBADF tests.
5559         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5560
5561         readlinkat tests: EBADF tests.
5562         * tests/test-readlinkat.c (main): Add tests for EBADF.
5563
5564         symlinkat tests: EBADF tests.
5565         * tests/test-symlinkat.c (main): Add tests for EBADF.
5566
5567         linkat tests: EBADF tests.
5568         * tests/test-linkat.c (main): Add tests for EBADF.
5569
5570         Tests for module 'faccessat'.
5571         * modules/faccessat-tests: New file.
5572         * tests/test-faccessat.c: New file.
5573
5574         fdopendir tests: EBADF tests.
5575         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5576
5577         openat tests: EBADF tests.
5578         * tests/test-fchownat.c (main): Add tests for EBADF.
5579         * tests/test-fstatat.c (main): Likewise.
5580         * tests/test-mkdirat.c (main): Likewise.
5581         * tests/test-openat.c (main): Likewise.
5582         * tests/test-unlinkat.c (main): Likewise.
5583         * tests/test-fchmodat.c: New file.
5584         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5585         (Makefile.am): Also run 'test-fchmodat'.
5586
5587 2011-09-20  Bruno Haible  <bruno@clisp.org>
5588
5589         utimens, futimens, fdutimensat tests: EBADF tests.
5590         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5591
5592         Tests for function fstat().
5593         * modules/fstat-tests: New file.
5594         * tests/test-fstat.c: New file.
5595         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5596
5597 2011-09-20  Bruno Haible  <bruno@clisp.org>
5598
5599         test-ttyname_r tests: EBADF tests.
5600         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5601
5602         Tests for module 'isatty'.
5603         * modules/isatty-tests: New file.
5604         * tests/test-isatty.c: New file.
5605
5606         Tests for module 'write'.
5607         * modules/write-tests: New file.
5608         * tests/test-write.c: New file.
5609
5610         Tests for module 'read'.
5611         * modules/read-tests: New file.
5612         * tests/test-read.c: New file.
5613
5614         pwrite tests: EBADF tests.
5615         * tests/test-pwrite.c (main): Add tests for EBADF.
5616
5617         pread tests: EBADF tests.
5618         * tests/test-pread.c (main): Add tests for EBADF.
5619
5620         lseek tests: EBADF tests.
5621         * tests/test-lseek.c (main): Add more tests for EBADF.
5622
5623         Tests for module 'ftruncate'.
5624         * modules/ftruncate-tests: New file.
5625         * tests/test-ftruncate.sh: New file.
5626         * tests/test-ftruncate.c: New file.
5627
5628         fsync tests: EBADF tests.
5629         * tests/test-fsync.c (main): Add more tests for EBADF.
5630
5631         fdatasync tests: EBADF tests.
5632         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5633
5634         Tests for module 'fchown'.
5635         * modules/fchown-tests: New file.
5636         * tests/test-fchown.c: New file.
5637
5638         Tests for module 'fchmod'.
5639         * modules/fchmod-tests: New file.
5640         * tests/test-fchmod.c: New file.
5641
5642         fchdir tests: EBADF tests.
5643         * tests/test-fchdir.c (main): Add more tests for EBADF.
5644
5645         dup2 tests: EBADF tests.
5646         * tests/test-dup2.c (main): Add more tests for EBADF.
5647
5648         Tests for module 'dup'.
5649         * modules/dup-tests: New file.
5650         * tests/test-dup.c: New file.
5651
5652         Tests for module 'close'.
5653         * modules/close-tests: New file.
5654         * tests/test-close.c: New file.
5655
5656 2011-09-20  Bruno Haible  <bruno@clisp.org>
5657
5658         Tests for module 'shutdown'.
5659         * modules/shutdown-tests: New file.
5660         * tests/test-shutdown.c: New file.
5661
5662         Tests for module 'setsockopt'.
5663         * modules/setsockopt-tests: New file.
5664         * tests/test-setsockopt.c: New file.
5665
5666         Tests for module 'sendto'.
5667         * modules/sendto-tests: New file.
5668         * tests/test-sendto.c: New file.
5669
5670         Tests for module 'send'.
5671         * modules/send-tests: New file.
5672         * tests/test-send.c: New file.
5673
5674         Tests for module 'recvfrom'.
5675         * modules/recvfrom-tests: New file.
5676         * tests/test-recvfrom.c: New file.
5677
5678         Tests for module 'recv'.
5679         * modules/recv-tests: New file.
5680         * tests/test-recv.c: New file.
5681
5682         Tests for module 'listen'.
5683         * modules/listen-tests: New file.
5684         * tests/test-listen.c: New file.
5685
5686         Tests for module 'getsockopt'.
5687         * modules/getsockopt-tests: New file.
5688         * tests/test-getsockopt.c: New file.
5689
5690         Tests for module 'getsockname'.
5691         * modules/getsockname-tests: New file.
5692         * tests/test-getsockname.c: New file.
5693
5694         Tests for module 'getpeername'.
5695         * modules/getpeername-tests: New file.
5696         * tests/test-getpeername.c: New file.
5697
5698         Tests for module 'connect'.
5699         * modules/connect-tests: New file.
5700         * tests/test-connect.c: New file.
5701
5702         Tests for module 'bind'.
5703         * modules/bind-tests: New file.
5704         * tests/test-bind.c: New file.
5705
5706         accept4 tests: Fix for native Windows.
5707         * tests/test-accept4.c: Include sockets.h.
5708         (main): Invoke gl_sockets_startup.
5709         * modules/accept4-tests (Depends-on): Add sockets.
5710
5711         accept tests: Fix for native Windows.
5712         * tests/test-accept.c: Include sockets.h.
5713         (main): Invoke gl_sockets_startup.
5714         * modules/accept-tests (Depends-on): Add sockets.
5715
5716 2011-09-19  Bruno Haible  <bruno@clisp.org>
5717
5718         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5719         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5720         do...while(0).
5721         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5722         Suggested by Paul Eggert.
5723
5724 2011-09-19  Bruno Haible  <bruno@clisp.org>
5725
5726         sched: Ensure pid_t is defined.
5727         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5728         not define pid_t.
5729         * lib/sched.in.h: Include <sys/types.h>.
5730         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5732
5733 2011-09-19  Bruno Haible  <bruno@clisp.org>
5734
5735         msvc-inval: Ensure the entire expansion is a single statement.
5736         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5737         of braces.
5738
5739 2011-09-19  Jim Meyering  <meyering@redhat.com>
5740
5741         tests: use printf, not echo in init.sh's warn_ function
5742         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5743         misbehave when given strings containing a backslash or starting
5744         with e.g., -n.  James Youngman suggested setting IFS.
5745
5746 2011-09-19  Eric Blake  <eblake@redhat.com>
5747
5748         futimens: enhance test
5749         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5750         closed non-negative fd.
5751
5752         date: accept 'hence' as opposite of 'ago'
5753         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5754         * tests/test-parse-datetime.c (main): Enhance test.
5755         Suggested by Jesse Wilson.
5756
5757 2011-09-19  Jim Meyering  <meyering@redhat.com>
5758
5759         getcwd: don't fail in a deep directory on a system without openat
5760         Before this change, getcwd would fail when called from a directory
5761         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5762         the non-openat implementation used "..", "../..", "../../..", etc.
5763         to access ancestor directories.  With too many, that string would
5764         be longer than PATH_MAX.
5765         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5766         using gnulib's openat replacement.
5767         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5768         we're using the replacement function.
5769
5770 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5771
5772         maint.mk: avoid warnings from perl about missing files
5773         * top/maint.mk (def_sym_regex): Ignore files listed in
5774         $(gl_other_headers_) that do not exist, say because a project
5775         does not use a corresponding module.
5776
5777 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5778
5779         stat: use pathmax.h only if needed
5780         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5781         This is better for Emacs, which does not have a mingw port and
5782         therefore can avoid the pathmax module.
5783
5784         utimens: remove dependency on dup2
5785         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5786         to work around the Linux kernel bug.
5787         * modules/utimens (Depends-on): Remove dup2.
5788
5789 2011-09-18  Bruno Haible  <bruno@clisp.org>
5790
5791         inet_ntop, inet_pton: Look for it also in libresolv.
5792         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5793         libnsl, search for it in libresolv.
5794         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5795         Needed on Solaris 7.
5796
5797 2011-09-18  Bruno Haible  <bruno@clisp.org>
5798
5799         accept, accept4 tests: Avoid link error on Solaris.
5800         * modules/accept-tests (Makefile.am): Link test-accept against
5801         $(LIBSOCKET).
5802         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5803         $(LIBSOCKET).
5804
5805         accept4: Avoid link error on Solaris.
5806         * modules/accept4 (Link): New section.
5807
5808         socket functions: Avoid link errors on Solaris.
5809         * modules/accept (Depends-on): Add socketlib.
5810         (Link): New section.
5811         * modules/bind (Depends-on): Add socketlib.
5812         (Link): New section.
5813         * modules/connect (Depends-on): Add socketlib.
5814         (Link): New section.
5815         * modules/getpeername (Depends-on): Add socketlib.
5816         (Link): New section.
5817         * modules/getsockname (Depends-on): Add socketlib.
5818         (Link): New section.
5819         * modules/getsockopt (Depends-on): Add socketlib.
5820         (Link): New section.
5821         * modules/listen (Depends-on): Add socketlib.
5822         (Link): New section.
5823         * modules/recv (Depends-on): Add socketlib.
5824         (Link): New section.
5825         * modules/recvfrom (Depends-on): Add socketlib.
5826         (Link): New section.
5827         * modules/send (Depends-on): Add socketlib.
5828         (Link): New section.
5829         * modules/sendto (Depends-on): Add socketlib.
5830         (Link): New section.
5831         * modules/setsockopt (Depends-on): Add socketlib.
5832         (Link): New section.
5833         * modules/shutdown (Depends-on): Add socketlib.
5834         (Link): New section.
5835         * modules/socket (Depends-on): Add socketlib.
5836         (Link): New section.
5837
5838 2011-09-18  Bruno Haible  <bruno@clisp.org>
5839
5840         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5841         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5842         than 5 seconds.
5843         * modules/ptsname-tests (configure.ac): Test for alarm.
5844
5845 2011-09-18  Bruno Haible  <bruno@clisp.org>
5846
5847         posix_spawn_file_actions_add*: Fix module dependencies.
5848         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5849         posix_spawn_file_actions_init.
5850         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5851         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5852
5853 2011-09-18  Bruno Haible  <bruno@clisp.org>
5854
5855         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5856         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5857         * tests/test-renameat.c (main): Likewise.
5858
5859 2011-09-18  Bruno Haible  <bruno@clisp.org>
5860
5861         Tests for module 'accept4'.
5862         * modules/accept4-tests: New file.
5863         * tests/test-accept4.c: New file.
5864
5865 2011-09-18  Bruno Haible  <bruno@clisp.org>
5866
5867         Tests for module 'accept'.
5868         * modules/accept-tests: New file.
5869         * tests/test-accept.c: New file.
5870
5871 2011-09-18  Bruno Haible  <bruno@clisp.org>
5872
5873         dup2: Support for MSVC.
5874         * lib/dup2.c: Include msvc-inval.h.
5875         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5876         _get_osfhandle calls.
5877         * modules/dup2 (Depends-on): Add msvc-inval.
5878         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5879
5880         New module 'msvc-inval'.
5881         * lib/msvc-inval.h: New file.
5882         * lib/msvc-inval.c: New file.
5883         * m4/msvc-inval.m4: New file.
5884         * modules/msvc-inval: New file.
5885
5886 2011-09-17  Bruno Haible  <bruno@clisp.org>
5887
5888         Tests for module 'pclose'.
5889         * modules/pclose-tests: New file.
5890
5891         New module 'pclose'.
5892         * lib/stdio.in.h (pclose): New declaration.
5893         * lib/pclose.c: New file.
5894         * m4/pclose.m4: New file.
5895         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5896         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5897         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5898         * modules/pclose: New file.
5899         * modules/popen-tests (Depends-on): Add pclose.
5900         * modules/popen-safer-tests (Depends-on): Likewise.
5901         * doc/posix-functions/pclose.texi: Mention the new module.
5902
5903 2011-09-17  Bruno Haible  <bruno@clisp.org>
5904
5905         popen: Support for MSVC.
5906         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5907         * lib/popen.c (popen): Provide alternate definition for native Windows.
5908         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5909         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5910         * modules/popen (Depends-on, configure.ac): Update condition.
5911         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5912         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5913         fixed.
5914
5915 2011-09-17  Bruno Haible  <bruno@clisp.org>
5916
5917         isnanl, isnand, isnanf: Work around MSVC bug.
5918         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5919
5920 2011-09-17  Bruno Haible  <bruno@clisp.org>
5921
5922         sys_socket tests: Fix recent mistake.
5923         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5924
5925 2011-09-17  Bruno Haible  <bruno@clisp.org>
5926
5927         putenv: Support for MSVC.
5928         * modules/putenv (Depends-on): Add environ.
5929         * lib/putenv.c (environ): Disable declaration.
5930         * lib/unistd.in.h: Update comment.
5931
5932 2011-09-17  Bruno Haible  <bruno@clisp.org>
5933
5934         math: Avoid macro redefinition warnings on MSVC.
5935         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5936         Undefine before redefining.
5937
5938 2011-09-17  Bruno Haible  <bruno@clisp.org>
5939
5940         doc: Mention functions which are declared as macros.
5941         * doc/posix-functions/*[fl].texi: Mention that some functions are
5942         defined as macros with arguments only.
5943
5944 2011-09-17  Bruno Haible  <bruno@clisp.org>
5945
5946         Add dependencies to new dirent related modules.
5947         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5948         * modules/fts (Depends-on): Likewise.
5949         * modules/glob (Depends-on): Likewise.
5950         * modules/savedir (Depends-on): Likewise.
5951         * modules/scandir (Depends-on): Likewise.
5952         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5953         * modules/fdopendir (Depends-on): Add opendir.
5954
5955 2011-09-17  Bruno Haible  <bruno@clisp.org>
5956
5957         inet_pton: Support for MSVC on Windows Vista or newer.
5958         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5959         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5960         HAVE_DECL_INET_PTON is defined.
5961         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5962         On platforms with <winsock2.h>, test whether inet_pton is declared in
5963         <ws2tcpip.h>. If so, arrange to replace it.
5964         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5965         REPLACE_INET_PTON.
5966         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5967         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5968         (Depends-on, configure.ac): Update condition.
5969         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5970
5971 2011-09-17  Bruno Haible  <bruno@clisp.org>
5972
5973         inet_ntop: Support for MSVC on Windows Vista or newer.
5974         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5975         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5976         HAVE_DECL_INET_NTOP is defined.
5977         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5978         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5979         <ws2tcpip.h>. If so, arrange to replace it.
5980         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5981         REPLACE_INET_NTOP.
5982         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5983         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5984         (Depends-on, configure.ac): Update condition.
5985         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5986
5987 2011-09-16  Eric Blake  <eblake@redhat.com>
5988
5989         test-fsync: yet another enhancement
5990         * tests/test-fsync.c (main): Also test behavior on read-only text
5991         file.
5992
5993 2011-09-16  Bruno Haible  <bruno@clisp.org>
5994
5995         Enhance fsync, fdatasync tests.
5996         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5997         * tests/test-fdatasync.c (main): Likewise.
5998
5999 2011-09-16  Bruno Haible  <bruno@clisp.org>
6000
6001         Support for MSVC compiler: Ensure mode_t gets defined.
6002         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6003         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6004         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6005         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6006         * tests/test-fcntl-h.c: Check that mode_t is defined.
6007         * tests/test-sys_stat.c: Likewise.
6008         * tests/test-sys_types.c: Likewise.
6009         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6010         * doc/posix-headers/sys_stat.texi: Likewise.
6011         * doc/posix-headers/sys_types.texi: Likewise.
6012
6013 2011-09-16  Bruno Haible  <bruno@clisp.org>
6014
6015         sys_stat: Support for MSVC.
6016         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6017         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6018         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6019         MSVC.
6020
6021 2011-09-16  Bruno Haible  <bruno@clisp.org>
6022
6023         Support for MSVC compiler: Ensure off_t gets defined.
6024         * lib/unistd.in.h: Include <sys/types.h>.
6025         * tests/test-fcntl-h.c: Check that off_t is defined.
6026         * tests/test-sys_stat.c: Likewise.
6027         * tests/test-sys_types.c: Likewise.
6028
6029 2011-09-16  Eric Blake  <eblake@redhat.com>
6030
6031         fdatasync: port to Solaris
6032         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6033         * modules/fdatasync (Link): Document it.
6034         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6035
6036         fdatasync: port to MacOS X 10.7
6037         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6038         declared.
6039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6040         * modules/unistd (Makefile.am): Substitute it.
6041         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6042         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6043
6044         fdatasync: minor improvements
6045         * modules/fdatasync (Depends-on): Add condition for fsync.
6046         * lib/fdatasync.c (fdatasync): Add comment.
6047         * tests/test-unistd-c++.cc: Test fdatasync.
6048
6049         unistd: update refs to newer POSIX
6050         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6051         Suggested by Bruno Haible.
6052
6053         fdatasync: new module
6054         * modules/fsync (Description): Document difference to fdatasync.
6055         * modules/fdatasync: New module.
6056         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6057         * lib/fdatasync.c (fdatasync): Likewise.
6058         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6059         defaults.
6060         * modules/unistd (Makefile.am): Set witnesses.
6061         * lib/unistd.in.h (fdatasync): Declare.
6062         * MODULES.html.sh: Document it.
6063         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6064         * modules/fdatasync-tests: New test.
6065         * tests/test-fdatasync.c: Likewise.
6066
6067 2011-09-16  Eric Blake  <eblake@redhat.com>
6068
6069         test-fsync: enhance tests
6070         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6071         * tests/test-fsync.c (main): Enhance test.
6072
6073 2011-09-15  Bruno Haible  <bruno@clisp.org>
6074
6075         Support for MSVC compiler: Ensure ssize_t gets defined.
6076         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6077         * doc/posix-headers/stdio.texi: Likewise.
6078         * modules/stdio (Depends-on): Add ssize_t.
6079         * modules/sys_socket (Depends-on): Likewise.
6080         * modules/sys_types (Depends-on): Likewise.
6081         * modules/sys_uio (Depends-on): Likewise.
6082         * modules/unistd (Depends-on): Likewise.
6083         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6084         * tests/test-sys_types.c: Check that ssize_t is defined.
6085
6086 2011-09-14  Bruno Haible  <bruno@clisp.org>
6087
6088         Avoid using #, the m4 comment starter character, near brackets.
6089         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6090         delimiter character in sed expressions.
6091         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6092         Suggested by Eric Blake.
6093
6094         Properly quote AC_CHECK_DECLS' 4th argument.
6095         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6096         argument.
6097         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6098         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6099         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6100         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6101         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6102         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6103         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6104         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6105         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6106         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6107         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6108         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6109         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6110         * m4/isinf.m4 (gl_ISINF): Likewise.
6111         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6112         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6113         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6114         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6115         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6116         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6117         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6118         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6119         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6120         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6121         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6122         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6124         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6125         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6126         Reported by Eric Blake.
6127
6128         Properly quote AC_CHECK_DECL's 4th argument.
6129         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6130         argument.
6131         * m4/argp.m4 (gl_ARGP): Likewise.
6132         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6133         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6134         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6135         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6136         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6137         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6138         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6139         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6140         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6141         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6142         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6143         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6144         Reported by Eric Blake.
6145
6146 2011-09-14  Eric Blake  <eblake@redhat.com>
6147
6148         opendir: avoid compile warning
6149         * lib/opendir.c (includes): Always include errno.h.
6150         Reported by Tatsuro MATSUOKA.
6151
6152 2011-09-14  Jim Meyering  <meyering@redhat.com>
6153
6154         maint.mk: sc_tight_scope: propagate failure from sub-make
6155         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6156         Reported by Martin von Gagern.
6157
6158 2011-09-13  Bruno Haible  <bruno@clisp.org>
6159
6160         tempname: Support for MSVC.
6161         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6162         MSVC.
6163         * modules/tempname (Depends-on): Add fcntl-h.
6164
6165 2011-09-13  Bruno Haible  <bruno@clisp.org>
6166
6167         sys_time: Support for MSVC.
6168         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6169         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6170         include <winsock2.h>.
6171         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6172         function declarations that collide with POSIX.
6173         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6174         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6175
6176 2011-09-13  Bruno Haible  <bruno@clisp.org>
6177
6178         stat: Support for MSVC.
6179         * lib/stat.c: Include pathmax.h.
6180         * modules/stat (Depends-on): Add pathmax.
6181
6182         pathmax: Support for native Windows.
6183         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6184
6185 2011-09-12  Bruno Haible  <bruno@clisp.org>
6186
6187         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6188         * lib/dirent.in.h (struct dirent): New type.
6189         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6190         DT_WHT): New macros.
6191         (DIR): New type.
6192         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6193         (readdir, rewinddir): New declarations.
6194         * lib/dirent-private.h: New file.
6195         * lib/opendir.c: New file.
6196         * lib/readdir.c: New file.
6197         * lib/rewinddir.c: New file.
6198         * lib/closedir.c: New file.
6199         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6200         * m4/opendir.m4: New file.
6201         * m4/readdir.m4: New file.
6202         * m4/rewinddir.m4: New file.
6203         * m4/closedir.m4: New file.
6204         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6205         REPLACE_CLOSEDIR here.
6206         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6207         readdir, rewinddir are declared.
6208         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6209         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6210         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6211         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6212         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6213         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6214         * modules/opendir: New file.
6215         * modules/readdir: New file.
6216         * modules/rewinddir: New file.
6217         * modules/closedir: New file.
6218         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6219         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6220         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6221         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6222         * NEWS: Mention the 'fchdir' change.
6223
6224 2011-09-11  Bruno Haible  <bruno@clisp.org>
6225
6226         asm-underscore.m4: Support for MSVC.
6227         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6228         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6229
6230 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6231
6232         Doc about crypt functions.
6233         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6234         needing for _GNU_SOURCE to get crypt.
6235         * doc/posix-functions/encrypt.texi: Likewise.
6236         * doc/posix-functions/setkey.texi: Likewise.
6237
6238 2011-09-11  Bruno Haible  <bruno@clisp.org>
6239
6240         doc: Update regarding MSVC 9.
6241         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6242         tested".
6243         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6244         * doc/posix-headers/*.texi: Likewise.
6245         * doc/pastposix-functions/*.texi: Likewise.
6246         * doc/glibc-functions/*.texi: Likewise.
6247         * doc/glibc-headers/*.texi: Likewise.
6248
6249 2011-09-11  Bruno Haible  <bruno@clisp.org>
6250
6251         unistd et al.: Don't assume <unistd.h> exists.
6252         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6253         does not exist.
6254         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6255         exist. But include <stdlib.h>.
6256         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6257         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6258         symlink() does not exist.
6259         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6260         include <io.h> instead.
6261         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6262         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6263         include <direct.h> instead.
6264         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6265         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6266         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6267         <io.h> instead.
6268         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6269         correctly if the system does not have hard links.
6270         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6271         <direct.h> instead.
6272         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6273         it when looking for function declarations.
6274         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6275         <direct.h> and <io.h> instead.
6276         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6277
6278 2011-09-11  Bruno Haible  <bruno@clisp.org>
6279
6280         strcase: Support for MSVC.
6281         * modules/strcase (Status, Notice): Remove obsoletion mark.
6282         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6283         * doc/posix-functions/strncasecmp.texi: Likewise.
6284
6285         strings: Don't assume <strings.h> exists.
6286         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6287         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6288         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6289         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6290
6291 2011-09-11  Bruno Haible  <bruno@clisp.org>
6292
6293         dirent: Don't assume <dirent.h> exists.
6294         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6295         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6296         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6297         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6298
6299 2011-09-11  Bruno Haible  <bruno@clisp.org>
6300
6301         Fix wint_t on MSVC.
6302         * lib/wchar.in.h (wint_t): On MSVC, override it.
6303         * lib/wctype.in.h (wint_t): Likewise.
6304         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6305         MSVC.
6306         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6307         * doc/posix-headers/wctype.texi: Likewise.
6308
6309 2011-09-11  Bruno Haible  <bruno@clisp.org>
6310
6311         sys_types: Fix typo.
6312         * lib/sys_types.in.h: Fix typo in comment.
6313         Reported by Paul Eggert.
6314
6315         Support for MSVC compiler: Ensure size_t gets defined.
6316         * modules/strings (Depends-on): Add 'sys_types'.
6317         * modules/sys_uio (Depends-on): Likewise.
6318         * lib/sys_uio.in.h: Update comment.
6319
6320         C++ tests for module 'sys_types'.
6321         * modules/sys_types-c++-tests: New file.
6322         * tests/test-sys_types-c++.cc: New file.
6323
6324         Tests for module 'sys_types'.
6325         * modules/sys_types-tests: New file.
6326         * tests/test-sys_types.c: New file.
6327
6328         New module 'sys_types'.
6329         * lib/sys_types.in.h: New file.
6330         * m4/sys_types_h.m4: New file.
6331         * modules/sys_types: New file.
6332         * doc/posix-headers/sys_types.texi: Mention the new module and the
6333         size_t problem on MSVC 9.
6334
6335 2011-09-11  Bruno Haible  <bruno@clisp.org>
6336
6337         Support for MSVC compiler: Avoid division by a literal 0.
6338         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6340         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6341         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6342         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6343         * tests/infinity.h: New file.
6344         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6345         on MSVC.
6346         * tests/test-ceilf1.c: Include infinity.h.
6347         (main): Use Infinityf.
6348         * tests/test-ceil1.c: Include infinity.h.
6349         (main): Use Infinityd.
6350         * tests/test-ceill.c: Include infinity.h.
6351         (main): Use Infinityl.
6352         * tests/test-dprintf-posix.c: Include infinity.h.
6353         (test_function): Use Infinityd.
6354         * tests/test-floorf1.c: Include infinity.h.
6355         (main): Use Infinityf.
6356         * tests/test-floor1.c: Include infinity.h.
6357         (main): Use Infinityd.
6358         * tests/test-floorl.c: Include infinity.h.
6359         (main): Use Infinityl.
6360         * tests/test-fprintf-posix.c: Include infinity.h.
6361         (test_function): Use Infinityd.
6362         * tests/test-frexp.c: Include infinity.h.
6363         (main): Use Infinityd.
6364         * tests/test-frexpl.c: Include infinity.h.
6365         (main): Use Infinityl.
6366         * tests/test-isfinite.c: Include infinity.h.
6367         (test_isfinitef): Use Infinityf.
6368         (test_isfinited): Use Infinityd.
6369         (test_isfinitel): Use Infinityl.
6370         * tests/test-isinf.c: Include infinity.h.
6371         (test_isinff): Use Infinityf.
6372         (test_isinfd): Use Infinityd.
6373         (test_isinfl): Use Infinityl.
6374         * tests/test-isnan.c: Include infinity.h.
6375         (test_float): Use Infinityf.
6376         (test_double): Use Infinityd.
6377         (test_long_double): Use Infinityl.
6378         * tests/test-isnanf.h: Include infinity.h.
6379         (main): Use Infinityf.
6380         * tests/test-isnand.h: Include infinity.h.
6381         (main): Use Infinityd.
6382         * tests/test-isnanl.h: Include infinity.h.
6383         (main): Use Infinityl.
6384         * tests/test-ldexpl.c: Include infinity.h.
6385         (main): Use Infinityl.
6386         * tests/test-printf-posix.h: Include infinity.h.
6387         (test_function): Use Infinityd.
6388         * tests/test-roundf1.c: Include infinity.h.
6389         (main): Use Infinityf.
6390         * tests/test-round1.c: Include infinity.h.
6391         (main): Use Infinityd.
6392         * tests/test-roundl.c: Include infinity.h.
6393         (main): Use Infinityl.
6394         * tests/test-signbit.c: Include infinity.h.
6395         (test_signbitf): Use Infinityf.
6396         (test_signbitd): Use Infinityd.
6397         (test_signbitl): Use Infinityl.
6398         * tests/test-snprintf-posix.h: Include infinity.h.
6399         (test_function): Use Infinityd, Infinityl.
6400         * tests/test-sprintf-posix.h: Include infinity.h.
6401         (test_function): Use Infinityd, Infinityl.
6402         * tests/test-truncf1.c: Include infinity.h.
6403         (main): Use Infinityf.
6404         * tests/test-trunc1.c: Include infinity.h.
6405         (main): Use Infinityd.
6406         * tests/test-truncl.c: Include infinity.h.
6407         (main): Use Infinityl.
6408         * tests/test-vasnprintf-posix.c: Include infinity.h.
6409         (test_function): Use Infinityd, Infinityl.
6410         * tests/test-vasprintf-posix.c: Include infinity.h.
6411         (test_function): Use Infinityd, Infinityl.
6412         * modules/ceilf-tests (Files): Add tests/infinity.h.
6413         * modules/ceil-tests (Files): Likewise.
6414         * modules/ceill-tests (Files): Likewise.
6415         * modules/dprintf-posix-tests (Files): Likewise.
6416         * modules/floorf-tests (Files): Likewise.
6417         * modules/floor-tests (Files): Likewise.
6418         * modules/floorl-tests (Files): Likewise.
6419         * modules/fprintf-posix-tests (Files): Likewise.
6420         * modules/frexp-tests (Files): Likewise.
6421         * modules/frexp-nolibm-tests (Files): Likewise.
6422         * modules/frexpl-tests (Files): Likewise.
6423         * modules/frexpl-nolibm-tests (Files): Likewise.
6424         * modules/isfinite-tests (Files): Likewise.
6425         * modules/isinf-tests (Files): Likewise.
6426         * modules/isnan-tests (Files): Likewise.
6427         * modules/isnanf-tests (Files): Likewise.
6428         * modules/isnanf-nolibm-tests (Files): Likewise.
6429         * modules/isnand-tests (Files): Likewise.
6430         * modules/isnand-nolibm-tests (Files): Likewise.
6431         * modules/isnanl-tests (Files): Likewise.
6432         * modules/isnanl-nolibm-tests (Files): Likewise.
6433         * modules/ldexpl-tests (Files): Likewise.
6434         * modules/printf-posix-tests (Files): Likewise.
6435         * modules/roundf-tests (Files): Likewise.
6436         * modules/round-tests (Files): Likewise.
6437         * modules/roundl-tests (Files): Likewise.
6438         * modules/signbit-tests (Files): Likewise.
6439         * modules/snprintf-posix-tests (Files): Likewise.
6440         * modules/sprintf-posix-tests (Files): Likewise.
6441         * modules/truncf-tests (Files): Likewise.
6442         * modules/trunc-tests (Files): Likewise.
6443         * modules/truncl-tests (Files): Likewise.
6444         * modules/vasnprintf-posix-tests (Files): Likewise.
6445         * modules/vasprintf-posix-tests (Files): Likewise.
6446         * modules/vdprintf-posix-tests (Files): Likewise.
6447         * modules/vfprintf-posix-tests (Files): Likewise.
6448         * modules/vprintf-posix-tests (Files): Likewise.
6449         * modules/vsnprintf-posix-tests (Files): Likewise.
6450         * modules/vsprintf-posix-tests (Files): Likewise.
6451         * modules/xprintf-posix-tests (Files): Likewise.
6452
6453 2011-09-11  Bruno Haible  <bruno@clisp.org>
6454
6455         Ensure pid_t gets defined.
6456         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6457         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6458         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6459         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6460         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6461         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6462         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6464         * tests/test-fcntl-h.c: Check that pid_t is defined.
6465         * tests/test-sched.c: Likewise.
6466         * tests/test-termios.c: Likewise.
6467         * tests/test-time.c: Likewise.
6468         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6469         * doc/posix-headers/signal.texi: Likewise.
6470         * doc/posix-headers/sys_types.texi: Likewise.
6471         * doc/posix-headers/time.texi: Likewise.
6472
6473 2011-09-11  Bruno Haible  <bruno@clisp.org>
6474
6475         acl: Fix compilation on Solaris 10 (older version).
6476         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6477         of ACE_EVERYONE.
6478         * lib/set-mode-acl.c (qset_acl): Likewise.
6479         Reported by Christian Jullien <eligis@orange.fr>.
6480
6481 2011-09-10  Bruno Haible  <bruno@clisp.org>
6482
6483         iconv, unsetenv: Add support for MSVC compiler.
6484         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6485         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6486
6487 2011-09-10  Bruno Haible  <bruno@clisp.org>
6488
6489         *printf: Add support for MSVC compiler.
6490         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6491         handles the exception caused by the %n directive. When cross-compiling,
6492         guess no on native Windows.
6493         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6494         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6495         emulate it through vsnprintf.
6496         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6497         * doc/posix-functions/dprintf.texi: Update documentation regarding
6498         MSVC 9.
6499         * doc/posix-functions/fprintf.texi: Likewise.
6500         * doc/posix-functions/printf.texi: Likewise.
6501         * doc/posix-functions/snprintf.texi: Likewise.
6502         * doc/posix-functions/sprintf.texi: Likewise.
6503         * doc/posix-functions/swprintf.texi: Likewise.
6504         * doc/posix-functions/vdprintf.texi: Likewise.
6505         * doc/posix-functions/vfprintf.texi: Likewise.
6506         * doc/posix-functions/vprintf.texi: Likewise.
6507         * doc/posix-functions/vsnprintf.texi: Likewise.
6508         * doc/posix-functions/vsprintf.texi: Likewise.
6509         * doc/glibc-functions/asprintf.texi: Likewise.
6510         * doc/glibc-functions/obstack_printf.texi: Likewise.
6511         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6512         * doc/glibc-functions/vasprintf.texi: Likewise.
6513
6514 2011-09-10  Bruno Haible  <bruno@clisp.org>
6515
6516         nocrash: Add support for native Windows.
6517         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6518
6519 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6520             Bruno Haible  <bruno@clisp.org>
6521
6522         absolute-header, include-next: Add support for MSVC compiler.
6523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6524         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6525         directory separator in #line directives.
6526         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6527         recognize also backslash as directory separator in #line directives.
6528
6529 2011-09-08  Jim Meyering  <meyering@redhat.com>
6530
6531         maint.mk: mark the post-release commit log with "maint: " prefix
6532         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6533         one-line commit-log summary.
6534
6535 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6536             Bruno Haible  <bruno@clisp.org>
6537
6538         Doc about crypt functions.
6539         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6540         systems.
6541         * doc/posix-functions/encrypt.texi: Likewise.
6542         * doc/posix-functions/setkey.texi: Likewise.
6543
6544 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6545
6546         * lib/gc.h: Fix copyright header.
6547
6548 2011-09-07  Bruno Haible  <bruno@clisp.org>
6549
6550         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6551         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6552         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6553
6554 2011-09-07  Bruno Haible  <bruno@clisp.org>
6555
6556         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6557         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6558         * lib/freopen.c: Likewise.
6559         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6560         * lib/lstat.c: Likewise.
6561         * lib/stat.c: Likewise.
6562         * lib/open.c: Use different syntax for include of <fcntl.h>.
6563         * lib/openat.c: Include fcntl.h again, explicitly.
6564
6565 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6566
6567         parse-datetime: document the newly accepted format
6568         * doc/parse-datetime.texi (Combined date and time of day items):
6569         New section.
6570
6571 2011-09-06  Bruno Haible  <bruno@clisp.org>
6572
6573         acl: Fix a test failure on newer Solaris 10 with ZFS.
6574         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6575         ENOSYS as no ACL.
6576         Reported by Jim Meyering.
6577
6578 2011-09-06  Bruno Haible  <bruno@clisp.org>
6579
6580         acl: Update for AIX >= 5.3 with NFS.
6581         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6582         ENOSYS as no ACL.
6583
6584         acl: Fix a test failure on AIX >= 5.3 with NFS.
6585         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6586         as no ACL.
6587
6588 2011-09-06  Bruno Haible  <bruno@clisp.org>
6589
6590         acl: Fix a test failure on IRIX 6.5 with NFS.
6591         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6592         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6593         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6594         * lib/copy-acl.c (qcopy_acl): Likewise.
6595
6596 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6597
6598         openat: port to AIX 7.1 with large files
6599         AIX 7.1 does a "#define openat open64at" if large files are in use,
6600         so we can't simply #undef openat.  Use the orig_openat trick (similar
6601         to orig_open in lib/open.c) to work around the problem.  Problem
6602         reported by Kevin Brott for GNU tar, in the thread containing
6603         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6604         * lib/openat.c (__need_system_fcntl_h): Define first.
6605         Include <fcntl.h> and <sys/types.h> before undefining.
6606         (orig_openat) [HAVE_OPENAT]: New inline function.
6607         (openat) [HAVE_OPENAT]: Do not undef.
6608         (rpl_openat): Use orig_openat, not openat.
6609
6610 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6611             Bruno Haible  <bruno@clisp.org>
6612
6613         acl: Avoid errors on NonStop Kernel.
6614         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6615         ENOTSUP errors.
6616
6617 2011-09-05  Bruno Haible  <bruno@clisp.org>
6618
6619         acl: Clean up Solaris code.
6620         * lib/acl-internal.h: Remove no-op #if.
6621         * lib/file-has-acl.c: Likewise.
6622         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6623         * lib/copy-acl.c (qcopy_acl): Likewise.
6624
6625 2011-09-05  Bruno Haible  <bruno@clisp.org>
6626
6627         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6628         binaries built on the original Solaris 10.
6629         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6630         trivial.
6631
6632 2011-09-05  Bruno Haible  <bruno@clisp.org>
6633
6634         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6635         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6636         10.
6637         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6638         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6639         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6640         instead of acl_get, facl_get, acl_set, facl_set.
6641
6642 2011-09-05  Bruno Haible  <bruno@clisp.org>
6643
6644         copy-file: Try unit tests on more file systems.
6645         * tests/test-copy-file-1.sh: New file.
6646         * tests/test-copy-file-2.sh: New file.
6647         * modules/copy-file-tests (Files): Add them.
6648         (Makefile.am): Add them to TESTS.
6649
6650         acl: Try unit tests on more file systems.
6651         * tests/test-file-has-acl-1.sh: New file.
6652         * tests/test-file-has-acl-2.sh: New file.
6653         * tests/test-set-mode-acl-1.sh: New file.
6654         * tests/test-set-mode-acl-2.sh: New file.
6655         * tests/test-copy-acl-1.sh: New file.
6656         * tests/test-copy-acl-2.sh: New file.
6657         * modules/acl-tests (Files): Add them.
6658         (Makefile.am): Add them to TESTS.
6659
6660 2011-09-04  Bruno Haible  <bruno@clisp.org>
6661
6662         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6663         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6664         10.
6665         (OLD_ALLOW, OLD_DENY): New macros.
6666         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6667         ACE_ACCESS_ALLOWED_ACE_TYPE.
6668         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6669         ACE_ACCESS_DENIED_ACE_TYPE.
6670         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6671         (NEW_ACE_EXECUTE): Fix value.
6672         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6673         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6674         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6675         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6676         NEW_ACE_SYNCHRONIZE): New macros.
6677         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6678         instead of acl_fromtext, acl_set, facl_set.
6679         Fixes a coreutils/tests/cp/perm failure.
6680
6681 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6682
6683         openat: test for fstatat (..., 0) bug
6684         Further testing with tar suggests that fstatat (..., 0)
6685         does not work in general, on AIX 7.1; see
6686         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6687         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6688         replacement fstatat (which is what older AIX releases were using
6689         anyway).
6690         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6691         use is now changed to orig_fstatat.  This was probably the right
6692         thing to do anyway.
6693         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6694         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6695         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6696         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6697         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6698         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6699         if the bug is found.
6700
6701         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6702         This tests for another fstatat bug on AIX 7.1:
6703         fstatat (AT_FDCWD, ..., 0) does not work.  See
6704         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6705         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6706         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6707         (rpl_fstatat): Adjust so that it works around either (or both)
6708         bugs if present.
6709         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6710
6711 2011-09-03  Karl Berry  <karl@gnu.org>
6712
6713         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6714         in index entries.
6715
6716 2011-09-02  Bruno Haible  <bruno@clisp.org>
6717
6718         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6719         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6720         values of AR, ARFLAGS, RANLIB.
6721         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6722
6723 2011-09-02  Bruno Haible  <bruno@clisp.org>
6724
6725         Find 'ar' program that fits with --host argument.
6726         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6727
6728 2011-09-02  Bruno Haible  <bruno@clisp.org>
6729
6730         tests: init.sh: Support any non-GNU diff.
6731         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6732         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6733         Solaris 8.
6734
6735 2011-09-02  Bruno Haible  <bruno@clisp.org>
6736
6737         tests: init.sh: work also with any non-GNU diff that supports -u
6738         * tests/init.sh: Relax check for diff -u support.
6739         Rather than checking for GNU diff via --version, simply check
6740         for support for -u itself.  Useful at least on OpenBSD 4.9,
6741         AIX 7.1, IRIX 6.5, and Solaris 10.
6742
6743 2011-09-01  Bruno Haible  <bruno@clisp.org>
6744
6745         strtoimax, strtoumax: Document problem on HP-UX 11.
6746         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6747         * doc/posix-functions/strtoumax.texi: Likewise.
6748
6749 2011-09-01  Bruno Haible  <bruno@clisp.org>
6750
6751         strtoumax: Avoid link error on OSF/1 with DTK cc.
6752         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6753         defined as a function.
6754         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6755         strtoumax is defined, not whether it is declared.
6756
6757 2011-09-01  Bruno Haible  <bruno@clisp.org>
6758
6759         strtoimax: Avoid link error on OSF/1 with DTK cc.
6760         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6761         defined as a function.
6762         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6763         strtoimax is defined, not whether it is declared.
6764
6765 2011-09-01  Bruno Haible  <bruno@clisp.org>
6766
6767         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6768         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6769         as a function.
6770         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6771         whether it is declared.
6772
6773 2011-09-01  Bruno Haible  <bruno@clisp.org>
6774
6775         imaxabs: Avoid link error on OSF/1 with DTK cc.
6776         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6777         as a function.
6778         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6779         whether it is declared.
6780
6781 2011-09-01  Bruno Haible  <bruno@clisp.org>
6782
6783         Tests for module 'strtoumax'.
6784         * modules/strtoumax-tests: New file.
6785         * tests/test-strtoumax.c: New file.
6786
6787         Tests for module 'strtoimax'.
6788         * modules/strtoimax-tests: New file.
6789         * tests/test-strtoimax.c: New file.
6790
6791         Tests for module 'imaxdiv'.
6792         * modules/imaxdiv-tests: New file.
6793         * tests/test-imaxdiv.c: New file.
6794
6795         Tests for module 'imaxabs'.
6796         * modules/imaxabs-tests: New file.
6797         * tests/test-imaxabs.c: New file.
6798
6799 2011-09-01  Bruno Haible  <bruno@clisp.org>
6800
6801         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6802         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6803         pthread_create.
6804
6805 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6806
6807         openat: work around AIX 7.1 fstatat issue
6808         This should fix the problem that was not properly fixed
6809         in the previous change, dated 2011-08-30.
6810         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6811         __need_system_stat_h defined.
6812         (orig_fstatat) [HAVE_FSTATAT]: New function.
6813         (rpl_fstatat): Go back to the old way of doing things,
6814         except call orig_fstatat instead of fstatat.
6815         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6816         Remove unnecessary check whether fstatat fills in st_size etc.
6817
6818 2011-09-01  Bruno Haible  <bruno@clisp.org>
6819
6820         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6821         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6822         just include the system's header.
6823
6824 2011-08-31  Jim Meyering  <meyering@redhat.com>
6825
6826         tests: avoid spurious assertion failure in test-float.c on ppc64
6827         * tests/test-float.c (test_long_double): Comment out an assertion,
6828         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6829         with gcc-4.4.4.
6830
6831         maint: indent with spaces, not TABs
6832         I need to get in the habit of running gnulib's "make check".
6833         Both of these would have been caught.
6834         * m4/largefile.m4: Indent with spaces, not TABs.
6835         * lib/parse-datetime.y (iso_8601_time): Likewise.
6836         Spotted by Pádraig Brady.
6837
6838         test-parse-datetime.c: accommodate a relatively strict gcc warning
6839         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6840         to avoid a warning from gcc's -Werror=missing-declarations.
6841         Insert a few spaces-before-funcall-parenthesis.
6842
6843 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6844
6845         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6846         The parser now accepts ISO 8601 date-time strings with "T" as the
6847         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6848         with a space between the date and time strings.  Now it also parses
6849         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6850         variants like "2004-02-29T16:21:42.333-07:00"
6851         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6852         of day representation using the 'T' separator character.
6853         * doc/parse-datetime.texi (General date syntax): replace use of
6854         deprecated --iso-8601 option with --rfc-3339 in example of date
6855         command output formats that can be parsed.
6856         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6857         lib/parse-datetime.y.
6858         (gmt_offset): New function.
6859         (main): Add additional test cases to validate ISO8601 extended
6860         date and time of day parsing.
6861
6862 2011-08-31  Bruno Haible  <bruno@clisp.org>
6863
6864         freopen: Documentation.
6865         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6866         name.
6867         Reported by Claudio Bley <claudio.bley@gmail.com>.
6868
6869 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6870
6871         freopen: Don't crash if the filename argument is NULL.
6872         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6873         NULL.
6874
6875 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6876
6877         openat: work around AIX 7.1 fstatat bug
6878         Problem reported by Kevin Brott for GNU tar, in the thread containing
6879         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6880         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6881         FSTATAT_ST_SIZE_ETC_BROKEN.
6882         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6883         rpl_fstatat.
6884         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6885         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6886         AC_CHECK_FUNCS_ONCE for fstatat.
6887         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6888         fchmodat, mkdirat, openat and unlinkat.
6889
6890 2011-08-30  Bruno Haible  <bruno@clisp.org>
6891
6892         Avoid endless recursions if config.h includes some header files.
6893         * lib/fopen.c (__need_FILE): Define already before including config.h.
6894         * lib/freopen.c (__need_FILE): Likewise.
6895         * lib/open.c (__need_system_fcntl_h): Likewise.
6896         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6897         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6898         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6899
6900 2011-08-25  Karl Berry  <karl@gnu.org>
6901
6902         * config/srclist.txt (ylwrap): new try.
6903         * build-aux/ylwrap: new file.
6904
6905 2011-08-23  Bruno Haible  <bruno@clisp.org>
6906
6907         tmpdir: Use a good default directory on native Windows.
6908         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6909         (P_tmpdir): Default to _P_tmpdir on native Windows.
6910         (path_search): On native Windows, try the value returned by GetTempPath
6911         before trying P_tmpdir.
6912         * modules/tmpdir (Depends-on): Add pathmax.
6913         Suggested by John Darrington <john@darrington.wattle.id.au>.
6914
6915 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6916
6917         doc: fix typo in README-release
6918         * top/README-release: Capitalize first word of a sentence.
6919
6920 2011-08-19  Jim Meyering  <meyering@redhat.com>
6921
6922         fts: do not exhaust memory when processing million-entry directories
6923         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6924         directory would require about 256*N bytes of memory.  Thus, it was
6925         easy to construct a directory too large to be processed by any of
6926         those tools.  With this change, fts' maximum memory utilization is
6927         now limited to around 30MB.
6928         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6929         (fts_read): When we've processed the final entry (i.e., when
6930         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6931         using the parent entry to read any remaining entries.  Dispatch
6932         depending on what fts_build returns:
6933         - NULL+stop, aka failure: stop
6934         - NULL otherwise: move up in the dir hierarchy
6935         - non-NULL: handle this new entry
6936         (fts_build): Declare and use new local, continue_readdir.
6937         Prepare to be called from fts_read, when the entries
6938         from a partially-read directory have just been exhausted.
6939         In that case, we'll skip the opendir and instead use the parent's
6940         fts_dirp and derive dir_fd from that.
6941         Finally, in the readdir loop, if we read max_entries entries,
6942         exit the loop ensuring *not* to call closedir.  This is required
6943         so that fts_dirp can be reused on a subsequent call.
6944         Prompted by Ben England's report of memory exhaustion in find
6945         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6946
6947         maint: fts: move decl of `dp' down into while loop; split a long line
6948         * lib/fts.c (fts_build): No semantic change.
6949
6950         fts: add/use new struct member, fts_dirp
6951         We are about to use this to manage any directory with
6952         too many entries to read all of them into memory at once.
6953         To do that, we'll need to save the DIR* pointer in each
6954         affected FTSENT struct.
6955         * lib/fts_.h: Include <dirent.h>.
6956         (struct FTSENT) [fts_dirp]: New member.
6957         * lib/fts.c (closedir_and_clear): Define.
6958         Use it in place of closedir so that we are sure to
6959         clear the new fts_dirp member when done with it.
6960         (fts_alloc): Initialize the new member.
6961         (fts_lfree): Free, if needed.
6962
6963         maint: fts: give __opendir2 a new parameter and rename
6964         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6965         than surreptitiously using sole caller's "dir_fd".
6966         (fts_opendir): Rename from __opendir2.
6967
6968         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6969         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6970
6971         maint: fts.c: correct off-by-one indentation
6972         * lib/fts.c (fts_build): Correct indentation, change style
6973         of a couple of block comments, and bracing style.
6974
6975         maint: fts.c: move __opendir2 #define "up" out of function body
6976         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6977
6978         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6979         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6980         out for a long time and besides was useful only on BSD systems.
6981
6982 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6983
6984         regex: port to Stratus OpenVOS
6985         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6986         define to empty, rather than attempting nonportable optimizations.
6987         Problem reported by Paul Green in:
6988         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6989         and fix suggested by Eric Blake in:
6990         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6991
6992 2011-08-17  Eric Blake  <eblake@redhat.com>
6993
6994         getcwd: fix test failures on mingw
6995         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6996         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6997         test if long directory cannot be created, and allow mingw errno.
6998
6999         getcwd-lgpl: fix m4 to match relaxed test for BSD
7000         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7001         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7002         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7003         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7004         signature problem.
7005
7006         getcwd: fix compilation on mingw64
7007         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7008         getcwd.
7009         Reported by Marc-André Lureau.
7010
7011         pipe2: silence compiler warning
7012         * lib/pipe2.c (pipe2): Hide label if it is not used.
7013
7014 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7015
7016         relocatable-prog: fix link error
7017         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7018         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7019         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7020         into modules/relocatable-lib without noticing that
7021         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7022         also needs to build relocatable.c.
7023
7024 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7025
7026         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7027         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7028         shell code: it contained a 'break' that was not in a loop.
7029         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7030         via a shell-language loop; this may have been true in old Autoconf
7031         versions, but it's not true in Autoconf 2.68.  I found this bug
7032         when testing coreutils git on Solaris 8, whose shell complains
7033         about the syntax error.
7034
7035 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7036
7037         * lib/base64.c: Fix comment to reference RFC 4648.
7038         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7039         <gvtulder@gmail.com>.
7040
7041 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7042
7043         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7044
7045         po/Makefile.in.in: fix make -q problem
7046         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7047         rule, since there's no file named 'check-macro-version' and its
7048         use as a file breaks make -q.
7049         (all): Don't depend on check-macro-version.
7050         (CHECK_MACRO_VERSION): New macro.
7051         (stamp-po): Use it.
7052
7053         configmake: fix make -q problem
7054         * modules/configmake (configmake.h): Update configmake.h's time stamp
7055         even if the file does not change.  Otherwise, 'make -q' fails.
7056         Problem reported by Simon Josefsson in
7057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7058
7059 2011-08-11  Jim Meyering  <meyering@redhat.com>
7060
7061         git-version-gen: correct the advice in a comment
7062         * build-aux/git-version-gen: Correct comment.
7063         Don't recommend to list .tarball-version in .gitignore.
7064
7065 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7066
7067         base64: fix off-by-one buffer size bug
7068         Problem and (trivial) fix reported by Gijs van Tulder in
7069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7070         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7071         * tests/test-base64.c (main): Catch the bug.
7072
7073 2011-08-10  Eric Blake  <eblake@redhat.com>
7074
7075         closein: correct comments
7076         * lib/closein.c (close_stdin): Improve comments.
7077
7078 2011-08-09  Bruno Haible  <bruno@clisp.org>
7079
7080         More tests for 'fseeko'.
7081         * tests/test-fseeko3.c: New file, from Eric Blake.
7082         * tests/test-fseeko3.sh: New file.
7083         * modules/fseeko-tests (Files): Add them.
7084         (TESTS): Add test-fseeko3.sh.
7085         (check_PROGRAMS): Add test-fseeko3.
7086
7087 2011-08-09  Eric Blake  <eblake@redhat.com>
7088
7089         fseeko: remove unneeded hack
7090         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7091
7092         fseeko: fix bug on glibc
7093         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7094         Reported by John W. Eaton.
7095
7096 2011-08-08  Bruno Haible  <bruno@clisp.org>
7097
7098         unictype/base: Fix interoperability with preinstalled libunistring.
7099         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7100         Reported by Simon Josefsson.
7101
7102 2011-08-08  Bruno Haible  <bruno@clisp.org>
7103
7104         iswblank: Detect declaration correctly.
7105         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7106         AC_CHECK_DECLS invocation.
7107
7108 2011-08-08  Bruno Haible  <bruno@clisp.org>
7109
7110         tcgetsid: Detect declaration correctly.
7111         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7112         AC_CHECK_DECLS invocation.
7113         Reported by Simon Josefsson.
7114
7115 2011-08-08  Eric Blake  <eblake@redhat.com>
7116
7117         largefile: fix typo that regressed large file support
7118         * modules/largefile (configure.ac-early): Fix section name.
7119
7120 2011-08-06  Karl Berry  <karl@gnu.org>
7121
7122         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7123         a separate module.
7124
7125 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7126
7127         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7128         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7129         get prototype for free.
7130
7131 2011-08-04  Bruno Haible  <bruno@clisp.org>
7132
7133         Tests for module 'pathmax'.
7134         * modules/pathmax-tests: New file.
7135         * tests/test-pathmax.c: New file.
7136
7137         canonicalize-lgpl: Support larger filenames on the Hurd.
7138         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7139         Reported by Paul Eggert.
7140
7141         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7142         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7143         * lib/chdir-long.h: Include pathmax.h.
7144         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7145         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7146         (PATH_MAX): Remove code that is done by pathmax.h.
7147         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7148         * lib/tmpfile.c: Add a comment.
7149         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7150         * modules/chdir-long (Depends-on): Add pathmax.
7151         * modules/getcwd (Depends-on): Add pathmax.
7152         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7153         is not defined.
7154         * doc/posix-headers/limits.texi: Mention the pathmax module.
7155         * NEWS: Mention the change.
7156
7157 2011-08-02  Bruno Haible  <bruno@clisp.org>
7158
7159         pthread_sigmask: Actually use results of gl_THREADLIB.
7160         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7161         gl_THREADLIB, not gl_[]THREADLIB.
7162         Reported by Eric Blake.
7163
7164 2011-08-02  Jim Meyering  <meyering@redhat.com>
7165
7166         maint.mk: relax the default _gl_TS_function_match regexp
7167         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7168         space between function name and "(" in an "extern" declaration.
7169         That would fail to match a decl with no space there: extern void foo();
7170
7171 2011-07-31  Iain Nicol  <iain@thenicols.net>
7172
7173         git-version-gen: document that EXTRA_DIST must include .version
7174         * build-aux/git-version-gen: In the how-to-use comment, document
7175         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7176         will fail when run from an unpacked distribution tarball.
7177
7178 2011-08-01  Bruno Haible  <bruno@clisp.org>
7179
7180         wctype-h: Fix last change.
7181         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7182         REPLACE_TOWLOWER to 0.
7183         Reported by Sam Steingold <sds@gnu.org>.
7184
7185 2011-07-31  Bruno Haible  <bruno@clisp.org>
7186
7187         frexpl: Update autoconf test.
7188         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7189         according to changes of 2011-06-20.
7190
7191 2011-07-31  Bruno Haible  <bruno@clisp.org>
7192
7193         sys_utsname: Add support for Minix.
7194         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7195         <sys/utsname.h>.
7196         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7197         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7198
7199 2011-07-31  Bruno Haible  <bruno@clisp.org>
7200
7201         strings: Add support for Minix.
7202         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7203         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7204         * doc/posix-headers/strings.texi: Document the Minix problem.
7205
7206 2011-07-31  Bruno Haible  <bruno@clisp.org>
7207
7208         wctype-h: Add support for Minix.
7209         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7210         REPLACE_TOWLOWER.
7211         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7212         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7213         REPLACE_ISWCNTRL.
7214
7215 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7216
7217         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7218         This is a performance improvement for 64-bit hosts: it causes the
7219         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7220
7221 2011-07-31  Bruno Haible  <bruno@clisp.org>
7222
7223         stdioext: Add support for Minix.
7224         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7225         * lib/fpurge.c (fpurge): Likewise.
7226         * lib/freadahead.c (freadahead): Likewise.
7227         * lib/freadable.c (freadable): Likewise.
7228         * lib/freading.c (freading): Likewise.
7229         * lib/freadptr.c (freadptr): Likewise.
7230         * lib/freadseek.c (freadptrinc): Likewise.
7231         * lib/fseeko.c (rpl_fseeko): Likewise.
7232         * lib/fseterr.c (fseterr): Likewise.
7233         * lib/fwritable.c (fwritable): Likewise.
7234         * lib/fwriting.c (fwriting): Likewise.
7235         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7236         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7237
7238 2011-07-31  Bruno Haible  <bruno@clisp.org>
7239
7240         errno: Port to Minix.
7241         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7242         ECONNABORTED are defined.
7243         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7244         GNULIB_defined_ECONNABORTED): New macros.
7245         * lib/strerror-override.h (strerror_override): Test also
7246         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7247         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7248         ECONNABORTED.
7249         * doc/posix-headers/errno.texi: Mention the Minix problem.
7250
7251 2011-07-31  Bruno Haible  <bruno@clisp.org>
7252
7253         Work around declaration collisions on Minix.
7254         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7255         defined, set REPLACE_MBSINIT.
7256         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7257         defined, set REPLACE_MBRTOWC.
7258         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7259         set REPLACE_MBRLEN.
7260         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7261         defined, set REPLACE_MBSRTOWCS.
7262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7263         defined, set REPLACE_WCRTOMB.
7264         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7265         defined, set REPLACE_WCSRTOMBS.
7266
7267 2011-07-31  Bruno Haible  <bruno@clisp.org>
7268
7269         Add support for Minix with ACK compiler.
7270         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7271         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7272         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7273
7274 2011-07-31  Bruno Haible  <bruno@clisp.org>
7275
7276         Documentation about Minix.
7277         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7278         * doc/glibc-headers/*.texi: Likewise.
7279         * doc/posix-functions/*.texi: Likewise.
7280         * doc/glibc-functions/*.texi: Likewise.
7281
7282 2011-07-31  Bruno Haible  <bruno@clisp.org>
7283
7284         snippet/warn-on-use: Fix indentation.
7285         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7286
7287 2011-07-25  Jim Meyering  <meyering@redhat.com>
7288
7289         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7290         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7291         commands.
7292
7293 2011-07-27  Jim Meyering  <meyering@redhat.com>
7294
7295         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7296         * top/maint.mk (gl_extract_significant_defines_): Now that
7297         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7298         gnulib/lib/signal.in.h, and now that we recommend to
7299         define-if-undefined those two symbols in application code,
7300         we must filter them out of the "significant" list.
7301         This avoids a "make syntax-check" failure in coreutils.
7302
7303 2011-07-26  Eric Blake  <eblake@redhat.com>
7304
7305         warnings: add comments about previous patch
7306         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7307         * m4/include_next.m4: Likewise.
7308         * m4/warn-on-use.m4: Likewise.
7309         * m4/warnings.m4: Likewise, and simplify use.
7310         Suggested by Stefano Lattarini.
7311
7312         include-next, warnings: support older autoconf
7313         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7314         AS_VAR_PUSHDEF in a way that works with older autoconf.
7315         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7316         Reported by Daniel P. Berrange.
7317
7318 2011-07-25  Bruno Haible  <bruno@clisp.org>
7319
7320         fseek, ftell: Fix doc.
7321         * doc/posix-functions/fseek.texi: Reword statement about
7322         AC_SYS_LARGEFILE.
7323         * doc/posix-functions/ftell.texi: Likewise.
7324
7325 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7326             Bruno Haible  <bruno@clisp.org>
7327
7328         Add dependencies to the 'largefile' module.
7329         * modules/fopen (Depends-on): Add 'largefile'.
7330         * modules/freopen (Depends-on): Likewise.
7331         * modules/fseeko (Depends-on): Likewise.
7332         * modules/ftello (Depends-on): Likewise.
7333         * modules/glob (Depends-on): Likewise.
7334         * modules/lseek (Depends-on): Likewise.
7335         * modules/lstat (Depends-on): Likewise.
7336         * modules/mkostemp (Depends-on): Likewise.
7337         * modules/mkostemps (Depends-on): Likewise.
7338         * modules/mkstemp (Depends-on): Likewise.
7339         * modules/mkstemps (Depends-on): Likewise.
7340         * modules/open (Depends-on): Likewise.
7341         * modules/openat (Depends-on): Likewise.
7342         * modules/pread (Depends-on): Likewise.
7343         * modules/pwrite (Depends-on): Likewise.
7344         * modules/scandir (Depends-on): Likewise.
7345         * modules/stat (Depends-on): Likewise.
7346         * modules/tmpfile (Depends-on): Likewise.
7347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7348         since the containing module now depends on the largefile module.
7349         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7350         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7351         off_t is fixed by gnulib.
7352         * doc/posix-functions/freopen.texi: Likewise.
7353         * doc/posix-functions/fseeko.texi: Likewise.
7354         * doc/posix-functions/fstatat.texi: Likewise.
7355         * doc/posix-functions/ftello.texi: Likewise.
7356         * doc/posix-functions/glob.texi: Likewise.
7357         * doc/posix-functions/lseek.texi: Likewise.
7358         * doc/posix-functions/lstat.texi: Likewise.
7359         * doc/posix-functions/mkstemp.texi: Likewise.
7360         * doc/posix-functions/open.texi: Likewise.
7361         * doc/posix-functions/openat.texi: Likewise.
7362         * doc/posix-functions/pread.texi: Likewise.
7363         * doc/posix-functions/pwrite.texi: Likewise.
7364         * doc/posix-functions/scandir.texi: Likewise.
7365         * doc/posix-functions/stat.texi: Likewise.
7366         * doc/posix-functions/tmpfile.texi: Likewise.
7367         * doc/glibc-functions/mkostemp.texi: Likewise.
7368         * doc/glibc-functions/mkostemps.texi: Likewise.
7369         * doc/glibc-functions/mkstemps.texi: Likewise.
7370
7371 2011-07-25  Bruno Haible  <bruno@clisp.org>
7372
7373         fcntl: Move AC_LIBOBJ invocation to module description.
7374         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7375         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7376
7377         fcntl: Remove call-in from fchdir.m4.
7378         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7380
7381         dup3: Remove potential call-in from fchdir.m4.
7382         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7383         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7384
7385         dup2: Move AC_LIBOBJ invocation to module description.
7386         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7387         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7388         Don't invoke AC_LIBOBJ.
7389         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7390
7391         dup2: Remove call-in from fchdir.m4.
7392         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7393         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7394
7395         fclose: Move AC_LIBOBJ invocation to module description.
7396         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7397         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7398         to 1.
7399         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7400
7401         fclose: Remove call-in from close.m4.
7402         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7403         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7404
7405         close: Move AC_LIBOBJ invocation to module description.
7406         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7407         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7408         1.
7409         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7410
7411         close: Remove call-in from fchdir.m4.
7412         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7413         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7414
7415         open: Move AC_LIBOBJ invocation to module description.
7416         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7417         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7418         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7419
7420         open: Remove call-in from fchdir.m4.
7421         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7423
7424         fchdir: Start to remove gl_REPLACE_* idiom.
7425         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7426         (gl_FUNC_FCHDIR): Invoke it.
7427
7428 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7429
7430         * lib/ftell.c (ftell): Comment out cast.
7431
7432         close: use gl_REPLACE_FCLOSE only if defined
7433         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7434         is defined.  The close module doesn't depend on the fclose module
7435         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7436         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7437         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7438
7439 2011-07-24  Jim Meyering  <meyering@redhat.com>
7440
7441         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7442         * tests/test-select.h (test_function): Declare as "static".
7443
7444 2011-07-24  Bruno Haible  <bruno@clisp.org>
7445
7446         doc: Mention the effects of AC_SYS_LARGEFILE.
7447         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7448         on this function.
7449         * doc/posix-functions/aio_error.texi: Likewise.
7450         * doc/posix-functions/aio_fsync.texi: Likewise.
7451         * doc/posix-functions/aio_read.texi: Likewise.
7452         * doc/posix-functions/aio_return.texi: Likewise.
7453         * doc/posix-functions/aio_suspend.texi: Likewise.
7454         * doc/posix-functions/aio_write.texi: Likewise.
7455         * doc/posix-functions/fgetpos.texi: Likewise.
7456         * doc/posix-functions/fopen.texi: Likewise.
7457         * doc/posix-functions/freopen.texi: Likewise.
7458         * doc/posix-functions/fsetpos.texi: Likewise.
7459         * doc/posix-functions/fstatvfs.texi: Likewise.
7460         * doc/posix-functions/ftruncate.texi: Likewise.
7461         * doc/posix-functions/ftw.texi: Likewise.
7462         * doc/posix-functions/getrlimit.texi: Likewise.
7463         * doc/posix-functions/glob.texi: Likewise.
7464         * doc/posix-functions/lio_listio.texi: Likewise.
7465         * doc/posix-functions/lockf.texi: Likewise.
7466         * doc/posix-functions/mkstemp.texi: Likewise.
7467         * doc/posix-functions/mmap.texi: Likewise.
7468         * doc/posix-functions/nftw.texi: Likewise.
7469         * doc/posix-functions/openat.texi: Likewise.
7470         * doc/posix-functions/opendir.texi: Likewise.
7471         * doc/posix-functions/posix_fadvise.texi: Likewise.
7472         * doc/posix-functions/posix_fallocate.texi: Likewise.
7473         * doc/posix-functions/pread.texi: Likewise.
7474         * doc/posix-functions/pwrite.texi: Likewise.
7475         * doc/posix-functions/readdir.texi: Likewise.
7476         * doc/posix-functions/readdir_r.texi: Likewise.
7477         * doc/posix-functions/rewinddir.texi: Likewise.
7478         * doc/posix-functions/scandir.texi: Likewise.
7479         * doc/posix-functions/seekdir.texi: Likewise.
7480         * doc/posix-functions/setrlimit.texi: Likewise.
7481         * doc/posix-functions/statvfs.texi: Likewise.
7482         * doc/posix-functions/telldir.texi: Likewise.
7483         * doc/posix-functions/tmpfile.texi: Likewise.
7484         * doc/posix-functions/truncate.texi: Likewise.
7485         * doc/glibc-functions/fallocate.texi: Likewise.
7486         * doc/glibc-functions/fstatfs.texi: Likewise.
7487         * doc/glibc-functions/fts_children.texi: Likewise.
7488         * doc/glibc-functions/fts_read.texi: Likewise.
7489         * doc/glibc-functions/getdirentries.texi: Likewise.
7490         * doc/glibc-functions/mkostemp.texi: Likewise.
7491         * doc/glibc-functions/mkostemps.texi: Likewise.
7492         * doc/glibc-functions/mkstemps.texi: Likewise.
7493         * doc/glibc-functions/preadv.texi: Likewise.
7494         * doc/glibc-functions/pwritev.texi: Likewise.
7495         * doc/glibc-functions/sendfile.texi: Likewise.
7496         * doc/glibc-functions/statfs.texi: Likewise.
7497
7498 2011-07-24  Bruno Haible  <bruno@clisp.org>
7499
7500         doc: Fix typo.
7501         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7502
7503 2011-07-24  Bruno Haible  <bruno@clisp.org>
7504
7505         doc: Mention fsusage.
7506         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7507
7508 2011-07-24  Bruno Haible  <bruno@clisp.org>
7509
7510         doc: Mention new glibc headers and functions.
7511         * doc/glibc-headers/gshadow.texi: New file.
7512         * doc/glibc-functions/endsgent.texi: New file.
7513         * doc/glibc-functions/fgetsgent.texi: New file.
7514         * doc/glibc-functions/fgetsgent_r.texi: New file.
7515         * doc/glibc-functions/getsgent.texi: New file.
7516         * doc/glibc-functions/getsgent_r.texi: New file.
7517         * doc/glibc-functions/getsgnam.texi: New file.
7518         * doc/glibc-functions/getsgnam_r.texi: New file.
7519         * doc/glibc-functions/putsgent.texi: New file.
7520         * doc/glibc-functions/setsgent.texi: New file.
7521         * doc/glibc-functions/sgetsgent.texi: New file.
7522         * doc/glibc-functions/sgetsgent_r.texi: New file.
7523         * doc/glibc-functions/malloc_info.texi: New file.
7524         * doc/glibc-functions/preadv.texi: New file.
7525         * doc/glibc-functions/pwritev.texi: New file.
7526         * doc/glibc-functions/register_printf_modifier.texi: New file.
7527         * doc/glibc-functions/register_printf_specifier.texi: New file.
7528         * doc/glibc-functions/register_printf_type.texi: New file.
7529         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7530         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7531         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7532         * doc/glibc-functions/pthread_getname_np.texi: New file.
7533         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7534         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7535         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7536         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7537         * doc/glibc-functions/pthread_setname_np.texi: New file.
7538         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7539         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7540         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7541         * doc/glibc-functions/qsort_r.texi: New file.
7542         * doc/glibc-functions/quick_exit.texi: New file.
7543         * doc/glibc-functions/syncfs.texi: New file.
7544         * doc/gnulib.texi: Include them.
7545         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7546         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7547         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7548         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7549         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7550         * doc/glibc-functions/execvpe.texi: Likewise.
7551
7552 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7553
7554         ftell: don't include <unistd.h>
7555         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7556         guaranteed to define off_t, and the ftell module depends on the
7557         stdio module.
7558
7559         ftell: do not assume wraparound signed arithmetic
7560         * lib/ftell.c: Include <limits.h>.
7561         (ftell): Don't assume wraparound signed arithmetic.
7562
7563 2011-07-24  Bruno Haible  <bruno@clisp.org>
7564
7565         close: No longer depend on module 'fclose'.
7566         * modules/close (Depends-on): Remove fclose.
7567         * NEWS: Mention the change.
7568         Suggested by Sam Steingold <sds@gnu.org>.
7569
7570 2011-07-24  Bruno Haible  <bruno@clisp.org>
7571
7572         fsusage: Enable large volume support on AIX >= 5.2.
7573         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7574         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7575         instead of STAT_STATVFS.
7576         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7577
7578         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7579         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7580         f_blocks field only on MacOS X.
7581
7582         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7583         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7584         * modules/fsusage (Depends-on): Add largefile.
7585
7586 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7587
7588         * README: Modernize discussion of signed integers.
7589         Assuming overflow wraparound is no longer safe.
7590         Mention ones' complement and signed magnitude.
7591
7592 2011-07-22  Bruno Haible  <bruno@clisp.org>
7593
7594         select tests, pselect tests: Refactor.
7595         * tests/test-select.h: New file, extracted from tests/test-select.c.
7596         (select_fn): New type.
7597         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7598         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7599         test_pipe): Add my_select argument.
7600         (test_function): Renamed from main. Add my_select argument.
7601         * tests/test-select.c: Move most code to tests/test-select.h. Include
7602         test-select.h.
7603         * modules/select-tests (Files): Add tests/test-select.h.
7604         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7605         (my_select, main): New functions.
7606         * modules/pselect-tests (Files): Add tests/test-select.h,
7607         tests/macros.h, tests/signature.h.
7608         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7609         (configure.ac): Check for <sys/wait.h>.
7610
7611 2011-07-22  Bruno Haible  <bruno@clisp.org>
7612
7613         sys_select tests: Check the signature of FD_*.
7614         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7615         signature tests from here...
7616         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7617         here.
7618         * modules/sys_select-tests (Files): Add tests/signature.h.
7619
7620 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7621
7622         largefile: new module, replacing large-inode
7623         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7624         * MODULES.html.sh: Add largefile, remove large-inode.
7625         * modules/largefile, m4/largefile.m4: New files.
7626         * modules/large-inode, m4/large-inode.m4: Remove.
7627
7628         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7629         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7630         implementations that use only 32 bits to count blocks.
7631         On typical hosts with 1024-byte blocks, this fails with file
7632         systems as small as 4 TiB.  Problem reported by Herb Wartens
7633         <http://debbugs.gnu.org/9140> and this should also fix a similar
7634         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7635
7636         large-inode: New module
7637         * MODULES.html.sh: Add it.
7638         * modules/large-inode, m4/large-inode.m4: New files.
7639
7640         extensions: Enable extensions on MacOS X 10.5 and later.
7641         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7642
7643 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7644
7645         file-has-acl: use acl_extended_file_nofollow if available
7646         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7647         (acl_extended_file): New macro.
7648         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7649         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7650
7651 2011-07-21  Bruno Haible  <bruno@clisp.org>
7652
7653         Declare system functions in a way that works with C++.
7654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7655         declare fdopendir as extern "C".
7656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7657         declare frexpl as extern "C".
7658         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7659         declare gai_strerror as extern "C".
7660         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7661         programs, declare gai_strerror as extern "C".
7662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7663         declare getlogin_r as extern "C".
7664         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7665         as extern "C".
7666         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7667         declare ldexpl as extern "C".
7668         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7669         as extern "C".
7670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7671         program, declare getmntinfo as extern "C".
7672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7673         stpncpy as extern "C".
7674         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7675         program, declare __xpg_strerror_r as extern "C".
7676         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7677         strndup as extern "C".
7678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7679         declare memset and bzero as extern "C".
7680         Reported by Sam Steingold <sds@gnu.org>.
7681
7682 2011-07-12  Jim Meyering  <meyering@redhat.com>
7683
7684         maint.mk: prohibit inclusion of "verify.h" without use
7685         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7686
7687 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7688
7689         timer-time: A new module to check for timer_settime()
7690         * m4/timer_time.m4: Check for the posix function.
7691         * modules/timer-time: Add the new module.
7692         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7693         Mention it.
7694
7695 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7696             Bruno Haible  <bruno@clisp.org>
7697
7698         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7699         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7700         not defined, assume POSIX threads and look for pthread_sigmask in
7701         $LIBS, without changing $CPPFLAGS.
7702
7703 2011-07-19  Bruno Haible  <bruno@clisp.org>
7704
7705         strstr: Update cross-compilation guess.
7706         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7707         CPUs, guess no, in view of glibc
7708         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7709         Suggested by Eric Blake. Reported by Reuben Thomas.
7710
7711 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7712
7713         getopt-gnu: suppress core dumps from detection code
7714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7715         to suppress core dumps that may well occur on glibc systems.
7716         * modules/getopt-gnu: Depend on nocrash.
7717
7718 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7719
7720         pthread_sigmask: ensure usleep is declared
7721         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7722         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7723
7724 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7725
7726         doc: Document NonStop portability issues.
7727         * doc/posix-functions/sigaction.texi (sigaction):
7728         * doc/posix-headers/signal.texi (signal.h):
7729         Document NonStop.  See Joachim Schmitz in
7730         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7731
7732 2011-07-15  Bruno Haible  <bruno@clisp.org>
7733
7734         ffsl, ffsll: Avoid unportable behaviour.
7735         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7736
7737 2011-07-15  Bruno Haible  <bruno@clisp.org>
7738
7739         ffs: More tests.
7740         * tests/test-ffs.c (NBITS): New macro.
7741         (main): Add more tests.
7742         * tests/test-ffsl.c (NBITS): New macro.
7743         (main): Add more tests.
7744         * tests/test-ffsll.c (NBITS): New macro.
7745         (main): Add more tests.
7746
7747 2011-07-15  Eric Blake  <eblake@redhat.com>
7748
7749         ffsl, ffsll: new modules
7750         * modules/ffsl: New file.
7751         * modules/ffsll: Likewise.
7752         * m4/ffsl.m4: Likewise.
7753         * m4/ffsll.m4: Likewise.
7754         * lib/ffsl.c: Likewise.
7755         * lib/ffsl.h: Likewise.
7756         * lib/ffsll.c: Likewise.
7757         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7758         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7759         * modules/string (Makefile.am): Substitute witnesses.
7760         * lib/strings.in.h (ffsl, ffsll): Declare.
7761         * modules/ffsl-tests: New test file.
7762         * modules/ffsll-tests: Likewise.
7763         * tests/test-ffsl.c: Likewise.
7764         * tests/test-ffsll.c: Likewise.
7765         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7766         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7767         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7768
7769         ffs: fix m4 prerequisite
7770         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7771
7772         ffs: avoid undefined behavior
7773         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7774         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7775         Reported by Bruno Haible.
7776
7777 2011-07-12  Bruno Haible  <bruno@clisp.org>
7778
7779         pthread_sigmask: Rely on module 'threadlib'.
7780         * modules/pthread_sigmask (Depends-on): Add threadlib.
7781         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7782         is defined.
7783
7784 2011-07-12  Bruno Haible  <bruno@clisp.org>
7785
7786         regex: Depend on module 'strcase'.
7787         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7788
7789 2011-07-12  Jim Meyering  <meyering@redhat.com>
7790
7791         warn-on-use: fix typo in file name
7792         * modules/snippet/warn-on-use (Files): Correct file name:
7793         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7794
7795 2011-07-12  Bruno Haible  <bruno@clisp.org>
7796
7797         strings: Document module.
7798         * doc/posix-headers/strings.texi: Mention module 'strings'.
7799
7800 2011-07-12  Bruno Haible  <bruno@clisp.org>
7801
7802         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7803         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7804         (Files, Makefile.am): Update.
7805         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7806         * modules/stdlib (Depends-on): Update.
7807
7808 2011-07-12  Bruno Haible  <bruno@clisp.org>
7809
7810         * NEWS: Mention the changes.
7811
7812         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7813         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7814         (Files, Makefile.am): Update.
7815         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7816         * modules/arpa_inet (Depends-on): Update.
7817         * modules/ctype (Depends-on): Update.
7818         * modules/dirent (Depends-on): Update.
7819         * modules/fcntl-h (Depends-on): Update.
7820         * modules/glob (Depends-on): Update.
7821         * modules/iconv-h (Depends-on): Update.
7822         * modules/inttypes-incomplete (Depends-on): Update.
7823         * modules/langinfo (Depends-on): Update.
7824         * modules/locale (Depends-on): Update.
7825         * modules/math (Depends-on): Update.
7826         * modules/netdb (Depends-on): Update.
7827         * modules/poll-h (Depends-on): Update.
7828         * modules/pty (Depends-on): Update.
7829         * modules/search (Depends-on): Update.
7830         * modules/signal (Depends-on): Update.
7831         * modules/spawn (Depends-on): Update.
7832         * modules/stdio (Depends-on): Update.
7833         * modules/stdlib (Depends-on): Update.
7834         * modules/string (Depends-on): Update.
7835         * modules/strings (Depends-on): Update.
7836         * modules/sys_file (Depends-on): Update.
7837         * modules/sys_ioctl (Depends-on): Update.
7838         * modules/sys_select (Depends-on): Update.
7839         * modules/sys_socket (Depends-on): Update.
7840         * modules/sys_stat (Depends-on): Update.
7841         * modules/sys_time (Depends-on): Update.
7842         * modules/sys_times (Depends-on): Update.
7843         * modules/sys_utsname (Depends-on): Update.
7844         * modules/sys_wait (Depends-on): Update.
7845         * modules/termios (Depends-on): Update.
7846         * modules/time (Depends-on): Update.
7847         * modules/unistd (Depends-on): Update.
7848         * modules/wchar (Depends-on): Update.
7849         * modules/wctype-h (Depends-on): Update.
7850         * MODULES.html.sh (Support for building libraries and executables):
7851         Update.
7852
7853         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7854         * modules/snippet/unused-parameter: Renamed from
7855         modules/unused-parameter.
7856         (Files, Makefile.am): Update.
7857         * build-aux/snippet/unused-parameter.h: Renamed from
7858         build-aux/unused-parameter.h.
7859         * modules/selinux-h (Depends-on): Update.
7860         * modules/unistr/base (Depends-on): Update.
7861         * MODULES.html.sh (Core language properties): Update.
7862
7863         Rename module 'link-warning' to 'snippet/link-warning'.
7864         * modules/snippet/link-warning: Renamed from modules/link-warning.
7865         (Files, Makefile.am): Update.
7866         * build-aux/snippet/link-warning.h: Renamed from
7867         build-aux/link-warning.h.
7868         * MODULES.html.sh (Support for building libraries and executables):
7869         Update.
7870
7871         Rename module 'c++defs' to 'snippet/c++defs'.
7872         * modules/snippet/c++defs: Renamed from modules/c++defs.
7873         (Files, Makefile.am): Update.
7874         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7875         * modules/arpa_inet (Depends-on): Update.
7876         * modules/ctype (Depends-on): Update.
7877         * modules/dirent (Depends-on): Update.
7878         * modules/fcntl-h (Depends-on): Update.
7879         * modules/glob (Depends-on): Update.
7880         * modules/iconv-h (Depends-on): Update.
7881         * modules/langinfo (Depends-on): Update.
7882         * modules/locale (Depends-on): Update.
7883         * modules/math (Depends-on): Update.
7884         * modules/netdb (Depends-on): Update.
7885         * modules/poll-h (Depends-on): Update.
7886         * modules/pty (Depends-on): Update.
7887         * modules/search (Depends-on): Update.
7888         * modules/signal (Depends-on): Update.
7889         * modules/spawn (Depends-on): Update.
7890         * modules/stdio (Depends-on): Update.
7891         * modules/stdlib (Depends-on): Update.
7892         * modules/string (Depends-on): Update.
7893         * modules/strings (Depends-on): Update.
7894         * modules/sys_ioctl (Depends-on): Update.
7895         * modules/sys_select (Depends-on): Update.
7896         * modules/sys_socket (Depends-on): Update.
7897         * modules/sys_stat (Depends-on): Update.
7898         * modules/sys_time (Depends-on): Update.
7899         * modules/sys_wait (Depends-on): Update.
7900         * modules/termios (Depends-on): Update.
7901         * modules/time (Depends-on): Update.
7902         * modules/unistd (Depends-on): Update.
7903         * modules/wchar (Depends-on): Update.
7904         * modules/wctype-h (Depends-on): Update.
7905
7906         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7907         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7908         (Files, Makefile.am): Update.
7909         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7910         * modules/argv-iter (Depends-on): Update.
7911         * modules/arpa_inet (Depends-on): Update.
7912         * modules/dirent (Depends-on): Update.
7913         * modules/fcntl-h (Depends-on): Update.
7914         * modules/fnmatch (Depends-on): Update.
7915         * modules/getopt-posix (Depends-on): Update.
7916         * modules/glob (Depends-on): Update.
7917         * modules/iconv-h (Depends-on): Update.
7918         * modules/inttypes-incomplete (Depends-on): Update.
7919         * modules/locale (Depends-on): Update.
7920         * modules/math (Depends-on): Update.
7921         * modules/netdb (Depends-on): Update.
7922         * modules/search (Depends-on): Update.
7923         * modules/signal (Depends-on): Update.
7924         * modules/spawn (Depends-on): Update.
7925         * modules/stdio (Depends-on): Update.
7926         * modules/stdlib (Depends-on): Update.
7927         * modules/string (Depends-on): Update.
7928         * modules/strings (Depends-on): Update.
7929         * modules/sys_socket (Depends-on): Update.
7930         * modules/sys_stat (Depends-on): Update.
7931         * modules/sys_time (Depends-on): Update.
7932         * modules/sys_times (Depends-on): Update.
7933         * modules/sys_utsname (Depends-on): Update.
7934         * modules/time (Depends-on): Update.
7935         * modules/unistd (Depends-on): Update.
7936         * modules/wchar (Depends-on): Update.
7937         * MODULES.html.sh (Support for building libraries and executables):
7938         Update.
7939
7940 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7941
7942         Improvements on _Noreturn and related modules.
7943
7944         modules/_Exit-tests: test _Noreturn too
7945         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7946         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7947         (main): Use them.
7948
7949         stdnoreturn, stdnoreturn-tests: remove modules
7950         They're not needed here and a bit premature for use elsewhere.  See
7951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7952         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7953         * tests/test-stdnoreturn.c: Remove files.
7954         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7955         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7956         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7957         and using noreturn.
7958         * modules/openat, modules/sigpipe-die, modules/xalloc:
7959         * modules/xmemdup0, modules/xstrtol:
7960         Remove dependency on stdnoreturn.
7961
7962         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7963         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7964         Reparenthesize to avoid GCC warning.
7965         Support Microsoft's syntax.
7966         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7967
7968         _Noreturn-tests: remove module
7969         * modules/_Noreturn-tests: Remove.
7970         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7971         * tests/test-_Noreturn.c: Remove.
7972         * tests/test-stdnoreturn.c: Merge from the old
7973         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7974
7975 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7976
7977         _Noreturn, stdnoreturn, and related modules.
7978
7979         * top/maint.mk: Adjust to new noreturn support.
7980         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7981         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7982
7983         xalloc: use stdnoreturn.h
7984         * lib/xalloc.h: Include <stdnoreturn.h>.
7985         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7986         * modules/xalloc (Depends-on): Add stdnoreturn.
7987
7988         xstrtol: use stdnoreturn.h
7989         * lib/xstrtol.h: Include <stdnoreturn.h>.
7990         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7991         * modules/xstrtol (Depends-on): Add stdnoreturn.
7992
7993         xmemdup0: use stdnoreturn.h
7994         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7995         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7996         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7997
7998         sigpipe-die: use stdnoreturn.h
7999         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8000         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8001         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8002
8003         openat: use stdnoreturn.h
8004         * lib/openat.h: Include <stdnoreturn.h>.
8005         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8006         * modules/openat (Depends-on): Add stdnoreturn.
8007
8008         * lib/openat-die.c (openat_save_fail): Modernize comment.
8009
8010         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8011
8012         * lib/glthread/thread.h: Modernize comment.
8013
8014         obstack: use _Noreturn
8015         * lib/obstack.c (__attribute__): Remove macro.
8016         (print_and_abort): Use _Noreturn.
8017
8018         c-stack: use _Noreturn
8019         * lib/c-stack.c (die, overflow_handler, segv_handler):
8020         Use _Noreturn rather than __attribute__((noreturn)).
8021
8022         argmatch-tests, exclude_tests: use _Noreturn
8023         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8024         Remove.
8025         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8026
8027         stdlib: use _Noreturn
8028         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8029         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8030         * modules/stdlib (Depends-on): Add _Noreturn.
8031         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8032
8033         stdnoreturn-tests: new module
8034         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8035
8036         stdnoreturn: new module
8037         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8038         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8039
8040         _Noreturn-tests: new module
8041         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8042
8043         _Noreturn: new module
8044         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8045         New section, mentioning it.
8046         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8047
8048         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8049
8050 2011-07-11  Eric Blake  <eblake@redhat.com>
8051
8052         ffs: new module
8053         * modules/ffs: New file.
8054         * m4/ffs.m4: Likewise.
8055         * lib/ffs.c: Likewise.
8056         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8057         * modules/strings (Makefile.am): Substitute witness.
8058         (Depends-on): Add c++defs.
8059         * lib/strings.in.h (ffs): Declare.
8060         * modules/ffs-tests: New test file.
8061         * tests/test-ffs.c: Test new module.
8062         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8063         * doc/posix-functions/ffs.texi (ffs): Likewise.
8064
8065         regex: avoid compiler warning
8066         * lib/regex.c (includes): Include <strings.h>, for use of
8067         strcasecmp in regcomp.c.
8068         Reported by Joachim Schmitz.
8069
8070 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8071
8072         stdint: respect system's intmax_t if INTMAX_MAX
8073         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8074         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8075         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8076         long but int64_t is long long, and where we will clash with the
8077         system intmax_t if we override it.  See
8078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8079         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8080         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8081         similarly for UINTMAX_C.
8082
8083 2011-07-08  Bruno Haible  <bruno@clisp.org>
8084
8085         pthread_sigmask tests: Avoid a compiler warning.
8086         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8087         non-zero.
8088
8089         sigprocmask tests: A better way to avoid a compiler warning.
8090         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8091         (main): Complain if system() returns non-zero.
8092         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8093
8094 2011-07-08  Bruno Haible  <bruno@clisp.org>
8095
8096         pthread_sigmask: Work around IRIX bug.
8097         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8098         bug.
8099         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8100         there may be unblocked pending signals.
8101         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8102
8103 2011-07-08  Bruno Haible  <bruno@clisp.org>
8104
8105         pthread_sigmask: Work around Cygwin bug.
8106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8107         bug.
8108         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8109         the system's pthread_sigmask function.
8110         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8111
8112 2011-07-08  Bruno Haible  <bruno@clisp.org>
8113
8114         pthread_sigmask: Work around bug in single-threaded implementation.
8115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8116         FreeBSD, HP-UX, Solaris bug.
8117         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8118         * lib/pthread_sigmask.c: Include <stddef.h>.
8119         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8120         the system's pthread_sigmask function.
8121         * modules/pthread_sigmask (configure.ac): Invoke
8122         gl_PREREQ_PTHREAD_SIGMASK.
8123         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8124         HP-UX, Solaris.
8125
8126 2011-07-08  Eric Blake  <eblake@redhat.com>
8127
8128         test-sigprocmask: avoid compiler warning
8129         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8130         * tests/test-sigprocmask.c (main): Use it to silence warning.
8131         Reported by Jim Meyering.
8132
8133         test-snprintf: avoid compiler warning
8134         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8135         * tests/test-vsnprintf.c (main): Likewise.
8136         Reported by Jim Meyering.
8137
8138 2011-07-08  Bruno Haible  <bruno@clisp.org>
8139
8140         Tests for module 'pthread_sigmask'.
8141         * modules/pthread_sigmask-tests: New file.
8142         * tests/test-pthread_sigmask1.c: New file, based on
8143         tests/test-sigprocmask.c.
8144         * tests/test-pthread_sigmask2.c: New file.
8145
8146 2011-07-08  Jim Meyering  <meyering@redhat.com>
8147
8148         test-getopt.h: avoid warning about an unused variable
8149         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8150
8151 2011-07-07  Jim Meyering  <meyering@redhat.com>
8152
8153         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8154         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8155         now that it no longer contains leading TABs.
8156         Remove unused "url=FIXME" statement.
8157
8158 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8159
8160         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8161         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8162         When gl_THREADLIB is not in use, assume that the POSIX sematics
8163         are desired.  This is better for Emacs, which uses POSIX semantics
8164         on GNUish and/or POSIXish platforms, and does not use threads at
8165         all otherwise.
8166
8167         pthread_sigmask: fix typo when testing for libraries
8168         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8169         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8170
8171 2011-07-08  Eric Blake  <eblake@redhat.com>
8172
8173         fts: introduce FTS_NOATIME
8174         * lib/fts_.h (FTS_NOATIME): New bit flag.
8175         (FTS_OPTIONMASK): Adjust.
8176         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8177         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8178
8179 2011-07-08  Bruno Haible  <bruno@clisp.org>
8180
8181         Tests for module 'thread'.
8182         * modules/thread-tests: New file.
8183         * tests/test-thread_self.c: New file.
8184         * tests/test-thread_create.cc: New file.
8185
8186 2011-07-08  Bruno Haible  <bruno@clisp.org>
8187
8188         thread: Avoid gcc warnings when using gl_thread_self().
8189         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8190         'void *'.
8191         (gl_thread_self_pointer): Update.
8192
8193 2011-07-07  Bruno Haible  <bruno@clisp.org>
8194
8195         signal-c++-tests: Check declaration of pthread_sigmask.
8196         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8197         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8198         $(LIB_PTHREAD_SIGMASK).
8199
8200 2011-07-07  Bruno Haible  <bruno@clisp.org>
8201
8202         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8203         * lib/signal.in.h (pthread_sigmask): Override if
8204         REPLACE_PTHREAD_SIGMASK is 1.
8205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8206         REPLACE_PTHREAD_SIGMASK.
8207         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8208         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8209         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8210         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8211         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8212
8213 2011-07-07  Bruno Haible  <bruno@clisp.org>
8214
8215         pthread_sigmask: Ensure declaration in <signal.h>.
8216         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8217         include <pthread.h>.
8218         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8219         problem.
8220
8221 2011-07-07  Bruno Haible  <bruno@clisp.org>
8222
8223         pthread_sigmask: Document the module.
8224         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8225
8226 2011-07-07  Bruno Haible  <bruno@clisp.org>
8227
8228         pthread_sigmask: Follow gnulib conventions.
8229         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8230         gl_PTHREAD_SIGMASK.
8231         * modules/pthread_sigmask (configure.ac): Update.
8232
8233 2011-07-07  Bruno Haible  <bruno@clisp.org>
8234
8235         pthread_sigmask: Make declaration C++ safe.
8236         * lib/signal.in.h: In two special conditions, just do an #include_next.
8237         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8238         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8239         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8240         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8241         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8242         not REPLACE_PTHREAD_MASK.
8243         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8244         not REPLACE_PTHREAD_MASK.
8245         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8246
8247 2011-07-07  Bruno Haible  <bruno@clisp.org>
8248
8249         pthread_sigmask: Fix return value.
8250         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8251         * lib/pthread_sigmask.c: New file.
8252         * modules/pthread_sigmask (Files): Add it.
8253         (configure.ac): Invoke AC_LIBOBJ.
8254
8255 2011-07-07  Eric Blake  <eblake@redhat.com>
8256
8257         getopt: more portable argv creation
8258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8259         const, use char arrays rather than strings.
8260         Suggested by Paul Eggert.
8261
8262 2011-07-07  Bruno Haible  <bruno@clisp.org>
8263
8264         Tests for module 'sigprocmask'.
8265         * modules/sigprocmask-tests: New file.
8266         * tests/test-sigprocmask.c: New file.
8267
8268 2011-07-07  Bruno Haible  <bruno@clisp.org>
8269
8270         float tests: Tweak.
8271         * tests/test-float.c (main): Tweak skip message.
8272
8273 2011-07-07  Eric Blake  <eblake@redhat.com>
8274
8275         getopt: avoid compiler warning during configure
8276         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8277         assigning string literals to non-const pointer.
8278
8279         getopt-gnu: avoid crash in glibc getopt
8280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8281         * tests/test-getopt.h (test_getopt): Enhance test.
8282         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8283         * doc/posix-functions/getopt.texi (getopt): Document it.
8284         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8285         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8286         Likewise.
8287
8288 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8289
8290         getopt: handle W; without long options in getopt [BZ #12922]
8291         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8292         but no long options are defined, just return 'W'.
8293
8294 2011-07-07  Bruno Haible  <bruno@clisp.org>
8295
8296         Avoid literal tabs.
8297         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8298         variable containing a tab instead of a literal tab.
8299         Reported by Jim Meyering.
8300
8301 2011-07-07  Bruno Haible  <bruno@clisp.org>
8302
8303         Comments.
8304         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8305
8306 2011-07-06  Bruno Haible  <bruno@clisp.org>
8307
8308         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8309         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8310         <winsock2.h>.
8311         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8312         lib/sys_socket.in.h.
8313         (close, gethostname): Hide declarations from <winsock2.h>.
8314         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8315         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8316         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8317         (select): Don't override if gnulib's <sys/select.h> was already
8318         included.
8319         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8320         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8321         setsockopt, shutdown, select): Tweak indentation.
8322
8323 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8324
8325         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8326         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8327         in an application that does not use the sys_select module.
8328
8329 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8330
8331         poll: do not return 0 on timeout=-1
8332         * lib/poll.c: Loop with yield if no events occured
8333
8334 2011-07-06  Eric Blake  <eblake@redhat.com>
8335
8336         pthread_sigmask: always replace when not using pthread
8337         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8338         replacement when using some threading other than pthread.  Fix
8339         logic bug.
8340
8341 2011-07-06  Bruno Haible  <bruno@clisp.org>
8342
8343         Comments.
8344         * m4/printf.m4: Update comments about mingw.
8345
8346 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8347
8348         sys_select: define sigset_t more portably
8349         * lib/sys_select.in.h: Always include <sys/types.h>, since
8350         we now need sigset_t and mingw defines it there.
8351         Include <signal.h> before split inclusion guard, to avoid
8352         mishaps on Solaris, whose <signal.h> eventually includes us.
8353         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8354         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8355         which come from ...
8356         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8357         gl_CHECK_TYPE_SIGSET_T.
8358         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8359         does the real work.
8360         * modules/sys_select (Depends-on): Add 'signal'.
8361
8362         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8363         Suggested by Bruno Haible.
8364
8365         pselect: Use pthread_sigmask, not sigprocmask.
8366         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8367         multithreaded apps better than sigprocmask does.
8368         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8369         sigprocmask directly.
8370
8371 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8372
8373         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8374         Don't #undef,  since we don't need any underlying pselect.
8375         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8376         (Depends-on): Add select.
8377         (Link): Add $(LIBSOCKET).
8378         These changes suggested by Bruno Haible.
8379
8380         pselect: document better
8381         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8382         * doc/posix-functions/pselect.texi (pselect): Document new module.
8383
8384         pthread_sigmask: new module
8385         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8386         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8387         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8388         This is done only as a macro; I don't know how well that'll
8389         work for C++.  Move <sys/types.h> include before the include_next,
8390         to avoid mishap on Solaris.
8391         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8392         * modules/signal (Makefile.am): Substitute the check's results.
8393         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8394
8395         test-pselect: new module
8396         * modules/pselect-tests, tests/test-pselect.c: New files.
8397         * tests/test-select.c, tests/test-sys_select-c++.cc:
8398         If TEST_PSELECT is defined, test pselect instead of testing select.
8399
8400         * tests/test-sys_select.c (sigset_t): Test for it, too.
8401         Suggested by Bruno Haible.
8402
8403 2011-07-05  Eric Blake  <eblake@redhat.com>
8404
8405         snprintf: guarantee %1$d, for libintl
8406         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8407         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8408         * doc/posix-functions/snprintf.texi (snprintf): Update.
8409         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8410         * tests/test-snprintf.c (main): Enhance test.
8411         * tests/test-vsnprintf.c (main): Likewise.
8412
8413 2011-07-05  Jim Meyering  <meyering@redhat.com>
8414
8415         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8416         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8417         per Bruno's request, to accommodate this idiom (no space after "#")
8418         even when the function is inside an #if block:
8419         char *
8420         gets (char *s)
8421         #undef gets
8422         {
8423           ...
8424         }
8425
8426 2011-07-04  Jim Meyering  <meyering@redhat.com>
8427
8428         maint: indent with spaces, not TABs, and add a rule to check this
8429         * tests/test-userspec.c: Indent with spaces, not TABs.
8430         * tests/test-argp.c: Likewise.
8431         * tests/test-c-stack2.sh: Likewise.
8432         * tests/test-parse-duration.sh: Likewise
8433         * m4/strtod.m4: Likewise.
8434         * m4/alloca.m4: Likewise.
8435         * m4/pselect.m4: Likewise.
8436         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8437
8438 2011-07-03  Jim Meyering  <meyering@redhat.com>
8439
8440         maint.mk: correct omissions in prohibit_argmatch_without_use check
8441         This rule would mistakenly report that argmatch.h is included without
8442         use even when both the argmatch and invalid_arg macro were used.
8443         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8444         of argmatch and invalid_arg.
8445
8446 2011-07-03  Bruno Haible  <bruno@clisp.org>
8447
8448         Comments about EINTR.
8449         * lib/safe-read.h: Explain the purpose of this module.
8450         * lib/safe-write.h: Likewise.
8451         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8452         module.
8453         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8454         module.
8455         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8456
8457 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8458
8459         xnanosleep: Rewrite to use new dtotimespec module.
8460         It has the conversion code that used to be in xnanosleep.
8461         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8462         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8463         (TIME_T_MAX): Remove.
8464         (xnanosleep): Rewrite in terms of dtotimespec.
8465         * modules/xnanosleep (Depends-on): Add dtotimespec.
8466         Remove intprops, stdbool.
8467
8468         timespec-add, timespec-sub: new modules
8469         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8470         * lib/timespec-add.c, lib/timespec-sub.c:
8471         * modules/timespec-add, modules/timespec-sub: New files.
8472
8473         dtotimespec: new module
8474         * lib/timespec.h (dtotimespec): New decl.
8475         * lib/dtotimespec.c, modules/dtotimespec: New files.
8476
8477         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8478
8479         pselect: new module
8480         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8481         (pselect): New decls.
8482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8483         since the standard pselect decl uses 'restrict'.
8484         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8485         HAVE_PSELECT, REPLACE_PSELECT.
8486         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8487         HAVE_PSELECT, REPLACE_PSELECT.
8488         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8489
8490         sys_select: don't depend on sys_socket
8491         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8492         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8493         This fix works on GNU and GNU-like platforms, but has not been tested
8494         on native Windows.
8495         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8497         gl_HEADER_SYS_SOCKET.
8498         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8499         gl_PREREQ_SYS_H_WINSOCK2.
8500
8501 2011-06-29  Eric Blake  <eblake@redhat.com>
8502
8503         pipe2: fix C89 compile problem
8504         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8505         Reported by Bruno Haible.
8506
8507         pipe, pipe2: don't corrupt fd on error
8508         * lib/pipe.c (pipe): Leave fd unchanged on error.
8509         * lib/pipe2.c (pipe2): Likewise.
8510         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8511         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8512
8513 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8514
8515         mmap-anon: do not use regular expressions inadvertently
8516         * m4/mmap-anon.m4: Remove trailing period from strings sought
8517         in the output.
8518
8519 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8520
8521         nanosleep: fix integer overflow problem
8522         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8523         arithmetic wraps around on overflow.
8524
8525         nanosleep: simplify carrying
8526         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8527         first call to the underyling nanosleep, not for the last one.
8528         This doesn't fix any bugs, but it simplifies the computation of
8529         the remaining delay.  Found while auditing integer overflow issues.
8530
8531         dup2: remove test for existence of fcntl
8532         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8533         "#if HAVE_FCNTL", in the configure-time test program.
8534         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8535         and therefore speeds up "configure" a bit.  Found while
8536         adding the dup2 module to Emacs.
8537
8538 2011-06-24  Eric Blake  <eblake@redhat.com>
8539
8540         maint.mk: enhance useless header checks
8541         * top/maint.mk (_sc_header_without_use): Check both include
8542         styles.
8543         (sc_prohibit_assert_without_use)
8544         (sc_prohibit_close_stream_without_use)
8545         (sc_prohibit_getopt_without_use)
8546         (sc_prohibit_quotearg_without_use)
8547         (sc_prohibit_quote_without_use)
8548         (sc_prohibit_long_options_without_use)
8549         (sc_prohibit_inttostr_without_use)
8550         (sc_prohibit_ignore_value_without_use)
8551         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8552         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8553         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8554         (sc_prohibit_hash_pjw_without_use)
8555         (sc_prohibit_safe_read_without_use)
8556         (sc_prohibit_argmatch_without_use)
8557         (sc_prohibit_canonicalize_without_use)
8558         (sc_prohibit_root_dev_ino_without_use)
8559         (sc_prohibit_openat_without_use)
8560         (sc_prohibit_c_ctype_without_use)
8561         (sc_prohibit_signal_without_use)
8562         (sc_prohibit_stdio--_without_use)
8563         (sc_prohibit_stdio-safer_without_use)
8564         (sc_prohibit_strings_without_use)
8565         (sc_prohibit_intprops_without_use)
8566         (sc_prohibit_stddef_without_use)
8567         (sc_prohibit_xfreopen_without_use): Update clients.
8568
8569 2011-06-24  Jim Meyering  <meyering@redhat.com>
8570
8571         syntax-check: keep one maint.mk rule in sync with its header
8572         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8573         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8574         I prefer to avoid temporary files here, so use <(...), but that
8575         is not supported by /bin/sh, so...
8576         (SHELL): Define to /bin/bash.
8577
8578 2011-06-24  Eric Blake  <eblake@redhat.com>
8579
8580         maint.mk: update sc_prohibit_intprops_without_use
8581         * top/maint.mk (_intprops_names): Match recent changes.
8582
8583 2011-06-24  Bruno Haible  <bruno@clisp.org>
8584
8585         strerror-override: No-op tweak.
8586         * lib/strerror-override.h (strerror_override): Reorder conditions,
8587         for consistency with lib/strerror-override.c.
8588
8589 2011-06-23  Eric Blake  <eblake@redhat.com>
8590
8591         maint.mk: test further PATH_MAX issues
8592         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8593         (sc_prohibit_path_max_allocation): ...and also test alloca.
8594         Suggested by Jim Meyering.
8595
8596 2011-06-22  Eric Blake  <eblake@redhat.com>
8597
8598         maint.mk: add syntax-check to avoid char[PATH_MAX]
8599         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8600
8601         stat: be robust to PATH_MAX definition
8602         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8603         * modules/stat (Depends-on): Add verify.
8604
8605         link: work around IRIX bug
8606         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8607         * lib/link.c (rpl_link): Work around it.
8608         * tests/test-link.h (test_link): Enhance test.
8609         * doc/posix-functions/link.texi (link): Document the bug.
8610
8611         getopt: silence clang warning
8612         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8613         dereference.
8614         Reported by Gustavo Martin Domato.
8615
8616 2011-06-22  Jim Meyering  <meyering@redhat.com>
8617
8618         bootstrap: do not insert a blank line into each .gitignore file
8619         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8620
8621 2011-06-21  Eric Blake  <eblake@redhat.com>
8622
8623         perror: test for output mismatch
8624         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8625         perror on IRIX.
8626
8627         strerror_r: fix OpenBSD behavior on out-of-range
8628         * lib/strerror_r.c (strerror_r): Always use maximal string.
8629         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8630
8631         strerror_r: fix OpenBSD behavior on 0
8632         * lib/strerror-override.c (strerror_override): Also override 0
8633         when needed.
8634         * lib/strerror-override.h (strerror_override): Likewise.
8635         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8636         earlier.
8637         * lib/strerror_r.c (strerror_r): Likewise.
8638         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8639         behavior...
8640         (gl_FUNC_STRERROR_0): ...into new macro.
8641         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8642         is overridden.
8643         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8644         * modules/strerror-override (Files): Add strerror.m4.
8645         (configure.ac): Also provide override for 0 when needed.
8646         * doc/posix-functions/strerror.texi (strerror): Document this.
8647         * doc/posix-functions/perror.texi (perror): Likewise.
8648
8649         perror: adjust array size
8650         * modules/perror (Depends-on): Add strerror-override.
8651         * lib/perror.c (perror): Use it to avoid magic number.
8652
8653         strerror-override: reduce size
8654         * lib/strerror-override.c (strerror_override): Use fewer lines.
8655
8656 2011-06-20  Bruno Haible  <bruno@clisp.org>
8657
8658         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8659         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8660
8661 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8662
8663         alloca: port to compilers that can optimize like GCC 4.6.0
8664         * lib/alloca.c (find_stack_direction): New signature, taken from
8665         Autoconf git.  This works with GCC 4.6.0.  This code should never
8666         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8667         be used with other compilers that optimize as well as GCC 4.6.0 does.
8668         (alloca): Adjust to new signature.
8669         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8670         New macro, which patches Autoconf in a similar way.
8671
8672         c-stack: stop worrying about stack direction
8673         * lib/c-stack.c (find_stack_direction): Remove.
8674         (segv_handler): Don't worry about stack direction growth, as it's
8675         too much of a pain to configure this correctly, given how compilers
8676         are optimizing-away our stack-growth detection code.  Instead, assume
8677         that any access to just before or just after the stack is OK.
8678         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8679         Don't require AC_FUNC_ALLOCA; no longer needed.
8680
8681 2011-06-20  Eric Blake  <eblake@redhat.com>
8682
8683         test-stat: don't allocate PATH_MAX bytes
8684         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8685         PATH_MAX-sized buffer.
8686         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8687         * modules/stat-tests (Depends-on): Likewise.
8688         * tests/test-fstatat.c (includes): Drop pathmax.h.
8689         * tests/test-stat.c (includes): Likewise.
8690         Reported by Bruno Haible.
8691
8692 2011-06-20  Bruno Haible  <bruno@clisp.org>
8693
8694         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8695         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8696         * lib/float.c: New file.
8697         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8698         REPLACE_FLOAT_LDBL.
8699         * modules/float (Files): Add lib/float.c.
8700         (configure.ac): Invoke AC_LIBOBJ.
8701         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8702
8703 2011-06-20  Bruno Haible  <bruno@clisp.org>
8704
8705         Tests for module 'float'.
8706         * modules/float-tests: New file.
8707         * tests/test-float.c: New file.
8708
8709 2011-06-19  Bruno Haible  <bruno@clisp.org>
8710
8711         isinf: Coding style.
8712         * lib/isinf.c: Use GNU coding style.
8713
8714 2011-06-19  Bruno Haible  <bruno@clisp.org>
8715
8716         linkat test: Avoid test failure on AIX 7.1.
8717         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8718         * tests/test-link.h (test_link): Likewise.
8719
8720 2011-06-19  Bruno Haible  <bruno@clisp.org>
8721
8722         pread test: Avoid test failure on OpenBSD 4.9.
8723         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8724
8725 2011-06-19  Bruno Haible  <bruno@clisp.org>
8726
8727         sprintf-posix: Fix test failure on AIX 7.1.
8728         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8729         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8730         on AIX.
8731         * doc/posix-functions/fprintf.texi: Likewise.
8732         * doc/posix-functions/printf.texi: Likewise.
8733         * doc/posix-functions/snprintf.texi: Likewise.
8734         * doc/posix-functions/sprintf.texi: Likewise.
8735         * doc/posix-functions/vdprintf.texi: Likewise.
8736         * doc/posix-functions/vfprintf.texi: Likewise.
8737         * doc/posix-functions/vprintf.texi: Likewise.
8738         * doc/posix-functions/vsnprintf.texi: Likewise.
8739         * doc/posix-functions/vsprintf.texi: Likewise.
8740
8741 2011-06-19  Bruno Haible  <bruno@clisp.org>
8742
8743         roundl-ieee: Fix test failure on AIX 7.1.
8744         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8745         * doc/posix-functions/roundl.texi: Mention problem with negative
8746         arguments.
8747
8748 2011-06-19  Bruno Haible  <bruno@clisp.org>
8749
8750         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8751         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8752         * doc/posix-functions/round.texi: Mention problem with negative
8753         arguments.
8754         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8755
8756 2011-06-19  Bruno Haible  <bruno@clisp.org>
8757
8758         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8759         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8760         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8761         * doc/posix-functions/roundf.texi: Mention problem with negative
8762         arguments.
8763         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8764
8765 2011-06-19  Bruno Haible  <bruno@clisp.org>
8766
8767         ceilf-ieee: Work around bug on MacOS X 10.5.
8768         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8769
8770         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8771         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8772         IEEE compliant, avoid compiler optimizations.
8773         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8774         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8775         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8776         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8777         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8778         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8780         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8781         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8782         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8783
8784 2011-06-19  Bruno Haible  <bruno@clisp.org>
8785
8786         ceilf-ieee: Work around bug on AIX 7.1.
8787         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8788         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8789
8790 2011-06-19  Bruno Haible  <bruno@clisp.org>
8791
8792         ceil-ieee: Work around bug on AIX 7.1.
8793         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8794         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8795
8796 2011-06-18  Bruno Haible  <bruno@clisp.org>
8797
8798         fsync test: Avoid test failure on MacOS X and AIX.
8799         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8800         EINVAL.
8801
8802 2011-06-18  Bruno Haible  <bruno@clisp.org>
8803
8804         openat, fdopendir tests: Fix link errors.
8805         * modules/openat-tests (Depends-on): Add progname.
8806         * modules/fdopendir-tests (Depends-on): Likewise.
8807         * tests/test-fchownat.c: Include progname.h.
8808         (main): Call set_program_name.
8809         * tests/test-fstatat.c: Include progname.h.
8810         (main): Call set_program_name.
8811         * tests/test-mkdirat.c: Include progname.h.
8812         (main): Call set_program_name.
8813         * tests/test-openat.c: Include progname.h.
8814         (main): Call set_program_name.
8815         * tests/test-unlinkat.c: Include progname.h.
8816         (main): Call set_program_name.
8817         * tests/test-fdopendir.c: Include progname.h.
8818         (main): Call set_program_name.
8819
8820 2011-06-18  Bruno Haible  <bruno@clisp.org>
8821
8822         Doc update.
8823         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8824         HP-UX.
8825         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8826
8827 2011-06-18  Bruno Haible  <bruno@clisp.org>
8828
8829         getcwd tests: Avoid compilation error on HP-UX 11.31.
8830         * modules/getcwd-tests (Depends-on): Add pathmax.
8831         * tests/test-getcwd.c: Include pathmax.h.
8832
8833 2011-06-18  Bruno Haible  <bruno@clisp.org>
8834
8835         isfinite, isinf: Fix link error on AIX 6 and 7.
8836         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8837         needed, also test the macro with a 'float' argument.
8838         * m4/isinf.m4 (gl_ISINF): Likewise.
8839
8840 2011-06-18  Bruno Haible  <bruno@clisp.org>
8841
8842         getloadavg: Don't clobber LIBS. Regression from previous commit.
8843         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8844         AC_CHECK_LIB from here...
8845         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8846         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8847         gl_func_getloadavg_done.
8848         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8849
8850 2011-06-18  Bruno Haible  <bruno@clisp.org>
8851
8852         clean-temp: Improve documentation.
8853         * lib/clean-temp.h: Explain better how to use this module.
8854         Reported by John Darrington <john@darrington.wattle.id.au>.
8855
8856 2011-06-17  Bruno Haible  <bruno@clisp.org>
8857
8858         pread, pwrite: Avoid cc warning on AIX.
8859         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8860         (pwrite): Likewise.
8861
8862 2011-06-17  Bruno Haible  <bruno@clisp.org>
8863
8864         spawn-pipe tests: Fix link error.
8865         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8867
8868 2011-06-17  Bruno Haible  <bruno@clisp.org>
8869
8870         Tests: Remove unnecessary dependency.
8871         * modules/canonicalize-tests (Depends-on): Remove progname.
8872         * modules/chown-tests (Depends-on): Likewise.
8873         * modules/dirname-tests (Depends-on): Likewise.
8874         * modules/fdopendir-tests (Depends-on): Likewise.
8875         * modules/fdutimensat-tests (Depends-on): Likewise.
8876         * modules/hash-tests (Depends-on): Likewise.
8877         * modules/lchown-tests (Depends-on): Likewise.
8878         * modules/linkat-tests (Depends-on): Likewise.
8879         * modules/renameat-tests (Depends-on): Likewise.
8880         * modules/spawn-pipe-tests (Depends-on): Likewise.
8881         * modules/utimensat-tests (Depends-on): Likewise.
8882
8883 2011-06-17  Bruno Haible  <bruno@clisp.org>
8884
8885         spawn-pipe tests: Fix link error.
8886         * tests/test-spawn-pipe-child.c: Undefine fflush.
8887
8888 2011-06-17  Bruno Haible  <bruno@clisp.org>
8889
8890         Fix tests link errors.
8891         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8892         * modules/chown-tests (Makefile.am): Don't link test-chown with
8893         LIBINTL.
8894         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8895         LIBINTL.
8896         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8897         LIBINTL.
8898         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8899         LIBINTL.
8900
8901 2011-06-16  Bruno Haible  <bruno@clisp.org>
8902
8903         crypto/gc-sha1: Fix recent regression.
8904         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8905         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8906
8907         crypto/gc-md5: Fix recent regression.
8908         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8909
8910         crypto/gc-md4: Fix recent regression.
8911         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8912         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8913
8914         crypto/gc-arctwo: Fix recent regression.
8915         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8916         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8917
8918         crypto/gc-rijndael: Fix recent regression.
8919         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8920         (configure.ac): Invoke AC_LIBOBJ here.
8921         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8923
8924         crypto/gc-hmac-sha1: Fix recent regression.
8925         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8926         (configure.ac): Invoke AC_LIBOBJ here.
8927         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8928         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8929
8930         crypto/gc-hmac-md5: Fix recent regression.
8931         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8932         (configure.ac): Invoke AC_LIBOBJ here.
8933         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8934         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8935
8936         crypto/gc-des: Fix recent regression.
8937         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8938         (configure.ac): Invoke AC_LIBOBJ here.
8939         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8940         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8941
8942         crypto/gc-arcfour: Fix recent regression.
8943         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8944         (configure.ac): Invoke AC_LIBOBJ here.
8945         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8946         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8947
8948 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8949
8950         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8951         After the 2011-05-21 change, this macro requires
8952         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8953         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8954
8955 2011-06-16  Bruno Haible  <bruno@clisp.org>
8956
8957         fprintftime: Move AC_LIBOBJ invocations to module description.
8958         * m4/fprintftime.m4: Remove file.
8959         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8960         (configure.ac): Remove gl_FPRINTFTIME call.
8961         (Makefile.am): Augment lib_SOURCES.
8962         Reported by Jim Meyering.
8963
8964 2011-06-16  Bruno Haible  <bruno@clisp.org>
8965
8966         tmpfile-safer: Finish 2011-05-23 commit.
8967         * m4/stdio-safer.m4: Really remove file.
8968         Reported by Jim Meyering.
8969
8970 2011-06-16  Bruno Haible  <bruno@clisp.org>
8971
8972         syntax-check: Fix typo.
8973         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8974         printf-posix.m4.
8975         Reported by Jim Meyering.
8976
8977 2011-06-13  Jim Meyering  <meyering@redhat.com>
8978
8979         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8980         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8981
8982 2011-05-23  Bruno Haible  <bruno@clisp.org>
8983
8984         yesno: Move AC_LIBOBJ invocations to module description.
8985         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8986         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8987
8988 2011-05-23  Bruno Haible  <bruno@clisp.org>
8989
8990         xstrtol: Move AC_LIBOBJ invocations to module description.
8991         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8992         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8993
8994 2011-05-23  Bruno Haible  <bruno@clisp.org>
8995
8996         xstrtold: Move AC_LIBOBJ invocations to module description.
8997         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8998         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8999
9000 2011-05-23  Bruno Haible  <bruno@clisp.org>
9001
9002         xstrtod: Move AC_LIBOBJ invocations to module description.
9003         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9004         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9005
9006 2011-05-23  Bruno Haible  <bruno@clisp.org>
9007
9008         xnanosleep: Move AC_LIBOBJ invocations to module description.
9009         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9010         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9011
9012 2011-05-23  Bruno Haible  <bruno@clisp.org>
9013
9014         xgetcwd: Move AC_LIBOBJ invocations to module description.
9015         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9016         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9017
9018 2011-05-23  Bruno Haible  <bruno@clisp.org>
9019
9020         xalloc: Move AC_LIBOBJ invocations to module description.
9021         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9022         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9023
9024 2011-05-23  Bruno Haible  <bruno@clisp.org>
9025
9026         write-any-file: Move AC_LIBOBJ invocations to module description.
9027         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9028         invocation.
9029         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9030
9031 2011-05-23  Bruno Haible  <bruno@clisp.org>
9032
9033         utimens: Move AC_LIBOBJ invocations to module description.
9034         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9035         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9036
9037 2011-05-23  Bruno Haible  <bruno@clisp.org>
9038
9039         utimecmp: Move AC_LIBOBJ invocations to module description.
9040         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9041         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9042
9043 2011-05-23  Bruno Haible  <bruno@clisp.org>
9044
9045         userspec: Move AC_LIBOBJ invocations to module description.
9046         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9047         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9048
9049 2011-05-23  Bruno Haible  <bruno@clisp.org>
9050
9051         unlinkdir: Move AC_LIBOBJ invocations to module description.
9052         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9053         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9054
9055 2011-05-23  Bruno Haible  <bruno@clisp.org>
9056
9057         unistd-safer: Move AC_LIBOBJ invocations to module description.
9058         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9059         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9060
9061 2011-05-23  Bruno Haible  <bruno@clisp.org>
9062
9063         tempname: Move AC_LIBOBJ invocations to module description.
9064         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9065         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9066
9067 2011-05-23  Bruno Haible  <bruno@clisp.org>
9068
9069         strftime: Move AC_LIBOBJ invocations to module description.
9070         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9071         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9072
9073 2011-05-23  Bruno Haible  <bruno@clisp.org>
9074
9075         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9076         * m4/stdlib-safer.m4: Remove file.
9077         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9078         (configure.ac): Remove gl_STDLIB_SAFER call.
9079         (Makefile.am): Augment lib_SOURCES.
9080
9081 2011-05-23  Bruno Haible  <bruno@clisp.org>
9082
9083         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9084         * m4/stdio-safer.m4: Remove file.
9085         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9086         (configure.ac): Remove gl_TMPFILE_SAFER call.
9087         (Makefile.am): Augment lib_SOURCES.
9088
9089 2011-05-23  Bruno Haible  <bruno@clisp.org>
9090
9091         popen-safer: Move AC_LIBOBJ invocations to module description.
9092         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9093         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9094         (configure.ac): Remove gl_POPEN_SAFER call.
9095         (Makefile.am): Augment lib_SOURCES.
9096
9097 2011-05-23  Bruno Haible  <bruno@clisp.org>
9098
9099         freopen-safer: Move AC_LIBOBJ invocations to module description.
9100         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9101         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9102         (configure.ac): Remove gl_FREOPEN_SAFER call.
9103         (Makefile.am): Augment lib_SOURCES.
9104
9105 2011-05-23  Bruno Haible  <bruno@clisp.org>
9106
9107         fopen-safer: Move AC_LIBOBJ invocations to module description.
9108         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9109         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9110         (configure.ac): Remove gl_FOPEN_SAFER call.
9111         (Makefile.am): Augment lib_SOURCES.
9112
9113 2011-05-23  Bruno Haible  <bruno@clisp.org>
9114
9115         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9116         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9117         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9118
9119 2011-05-23  Bruno Haible  <bruno@clisp.org>
9120
9121         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9122         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9123         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9124
9125 2011-05-23  Bruno Haible  <bruno@clisp.org>
9126
9127         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9128         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9129         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9130
9131 2011-05-23  Bruno Haible  <bruno@clisp.org>
9132
9133         settime: Move AC_LIBOBJ invocations to module description.
9134         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9135         * modules/settime (Makefile.am): Augment lib_SOURCES.
9136
9137 2011-05-23  Bruno Haible  <bruno@clisp.org>
9138
9139         savedir: Move AC_LIBOBJ invocations to module description.
9140         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9141         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9142
9143 2011-05-23  Bruno Haible  <bruno@clisp.org>
9144
9145         save-cwd: Move AC_LIBOBJ invocations to module description.
9146         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9147         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9148
9149 2011-05-23  Bruno Haible  <bruno@clisp.org>
9150
9151         same: Move AC_LIBOBJ invocations to module description.
9152         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9153         * modules/same (Makefile.am): Augment lib_SOURCES.
9154
9155 2011-05-23  Bruno Haible  <bruno@clisp.org>
9156
9157         safe-write: Move AC_LIBOBJ invocations to module description.
9158         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9159         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9160         instead of gl_SAFE_WRITE.
9161         (Makefile.am): Augment lib_SOURCES.
9162
9163 2011-05-23  Bruno Haible  <bruno@clisp.org>
9164
9165         safe-read: Move AC_LIBOBJ invocations to module description.
9166         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9167         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9168         of gl_SAFE_READ.
9169         (Makefile.am): Augment lib_SOURCES.
9170
9171 2011-05-23  Bruno Haible  <bruno@clisp.org>
9172
9173         safe-alloc: Move AC_LIBOBJ invocations to module description.
9174         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9175         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9176
9177 2011-05-23  Bruno Haible  <bruno@clisp.org>
9178
9179         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9180         * m4/rijndael.m4: Remove file.
9181         * modules/crypto/rijndael (Files): Remove it.
9182         (configure.ac): Remove gl_RIJNDAEL call.
9183         (Makefile.am): Augment lib_SOURCES.
9184
9185 2011-05-23  Bruno Haible  <bruno@clisp.org>
9186
9187         readtokens: Move AC_LIBOBJ invocations to module description.
9188         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9189         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9190
9191 2011-05-23  Bruno Haible  <bruno@clisp.org>
9192
9193         read-file: Move AC_LIBOBJ invocations to module description.
9194         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9195         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9196         of gl_FUNC_READ_FILE.
9197         (Makefile.am): Augment lib_SOURCES.
9198
9199 2011-05-23  Bruno Haible  <bruno@clisp.org>
9200
9201         quotearg: Move AC_LIBOBJ invocations to module description.
9202         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9203         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9204
9205 2011-05-23  Bruno Haible  <bruno@clisp.org>
9206
9207         quote: Move AC_LIBOBJ invocations to module description.
9208         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9209         * modules/quote (Makefile.am): Augment lib_SOURCES.
9210
9211 2011-05-23  Bruno Haible  <bruno@clisp.org>
9212
9213         posixver: Move AC_LIBOBJ invocations to module description.
9214         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9215         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9216
9217 2011-05-23  Bruno Haible  <bruno@clisp.org>
9218
9219         posixtm: Move AC_LIBOBJ invocations to module description.
9220         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9221         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9222
9223 2011-05-23  Bruno Haible  <bruno@clisp.org>
9224
9225         physmem: Move AC_LIBOBJ invocations to module description.
9226         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9227         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9228
9229 2011-05-23  Bruno Haible  <bruno@clisp.org>
9230
9231         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9232         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9233         invocation.
9234         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9235
9236 2011-05-23  Bruno Haible  <bruno@clisp.org>
9237
9238         mpsort: Move AC_LIBOBJ invocations to module description.
9239         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9240         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9241
9242 2011-05-23  Bruno Haible  <bruno@clisp.org>
9243
9244         modechange: Move AC_LIBOBJ invocations to module description.
9245         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9246         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9247
9248 2011-05-23  Bruno Haible  <bruno@clisp.org>
9249
9250         mkdir-p: Move AC_LIBOBJ invocations to module description.
9251         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9252         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9253
9254 2011-05-23  Bruno Haible  <bruno@clisp.org>
9255
9256         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9257         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9258         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9259
9260 2011-05-23  Bruno Haible  <bruno@clisp.org>
9261
9262         mgetgroups: Move AC_LIBOBJ invocations to module description.
9263         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9264         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9265
9266 2011-05-23  Bruno Haible  <bruno@clisp.org>
9267
9268         memxor: Move AC_LIBOBJ invocations to module description.
9269         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9270         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9271
9272 2011-05-23  Bruno Haible  <bruno@clisp.org>
9273
9274         memcoll: Move AC_LIBOBJ invocations to module description.
9275         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9276         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9277
9278 2011-05-23  Bruno Haible  <bruno@clisp.org>
9279
9280         memcasecmp: Move AC_LIBOBJ invocations to module description.
9281         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9282         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9283
9284 2011-05-23  Bruno Haible  <bruno@clisp.org>
9285
9286         crypto/md5: Move AC_LIBOBJ invocations to module description.
9287         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9288         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9289
9290 2011-05-23  Bruno Haible  <bruno@clisp.org>
9291
9292         crypto/md4: Move AC_LIBOBJ invocations to module description.
9293         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9294         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9295
9296 2011-05-23  Bruno Haible  <bruno@clisp.org>
9297
9298         crypto/md2: Move AC_LIBOBJ invocations to module description.
9299         * m4/md2.m4: Remove file.
9300         * modules/crypto/md2 (Files): Remove it.
9301         (configure.ac): Remove gl_MD2 call.
9302         (Makefile.am): Augment lib_SOURCES.
9303
9304 2011-05-23  Bruno Haible  <bruno@clisp.org>
9305
9306         long-options: Move AC_LIBOBJ invocations to module description.
9307         * m4/long-options.m4: Remove file.
9308         * modules/long-options (Files): Remove it.
9309         (configure.ac): Remove gl_LONG_OPTIONS call.
9310         (Makefile.am): Augment lib_SOURCES.
9311
9312 2011-05-23  Bruno Haible  <bruno@clisp.org>
9313
9314         i-ring: Move AC_LIBOBJ invocations to module description.
9315         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9316         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9317
9318 2011-05-23  Bruno Haible  <bruno@clisp.org>
9319
9320         idcache: Move AC_LIBOBJ invocations to module description.
9321         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9322         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9323
9324 2011-05-23  Bruno Haible  <bruno@clisp.org>
9325
9326         human: Move AC_LIBOBJ invocations to module description.
9327         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9328         * modules/human (Makefile.am): Augment lib_SOURCES.
9329
9330 2011-05-23  Bruno Haible  <bruno@clisp.org>
9331
9332         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9333         * m4/hmac-sha1.m4: Remove file.
9334         * modules/crypto/hmac-sha1 (Files): Remove it.
9335         (configure.ac): Remove gl_HMAC_SHA1 call.
9336         (Makefile.am): Augment lib_SOURCES.
9337
9338 2011-05-23  Bruno Haible  <bruno@clisp.org>
9339
9340         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9341         * m4/hmac-md5.m4: Remove file.
9342         * modules/crypto/hmac-md5 (Files): Remove it.
9343         (configure.ac): Remove gl_HMAC_MD5 call.
9344         (Makefile.am): Augment lib_SOURCES.
9345
9346 2011-05-23  Bruno Haible  <bruno@clisp.org>
9347
9348         hash: Move AC_LIBOBJ invocations to module description.
9349         * m4/hash.m4: Remove file.
9350         * modules/hash (Files): Remove it.
9351         (configure.ac): Remove gl_HASH call.
9352         (Makefile.am): Augment lib_SOURCES.
9353
9354 2011-05-23  Bruno Haible  <bruno@clisp.org>
9355
9356         hard-locale: Move AC_LIBOBJ invocations to module description.
9357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9358         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9359
9360 2011-05-23  Bruno Haible  <bruno@clisp.org>
9361
9362         getugroups: Move AC_LIBOBJ invocations to module description.
9363         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9364         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9365
9366 2011-05-23  Bruno Haible  <bruno@clisp.org>
9367
9368         gettime: Move AC_LIBOBJ invocations to module description.
9369         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9370         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9371
9372 2011-05-23  Bruno Haible  <bruno@clisp.org>
9373
9374         getndelim2: Move AC_LIBOBJ invocations to module description.
9375         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9376         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9377
9378 2011-05-23  Bruno Haible  <bruno@clisp.org>
9379
9380         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9381         * m4/gc-pbkdf2-sha1.m4: Remove file.
9382         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9383         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9384         (Makefile.am): Augment lib_SOURCES.
9385
9386 2011-05-23  Bruno Haible  <bruno@clisp.org>
9387
9388         fts: Move AC_LIBOBJ invocations to module description.
9389         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9390         * modules/fts (configure.ac): ... to here.
9391
9392 2011-05-23  Bruno Haible  <bruno@clisp.org>
9393
9394         file-type: Move AC_LIBOBJ invocations to module description.
9395         * m4/file-type.m4: Remove file.
9396         * modules/file-type (Files): Remove it.
9397         (configure.ac): Remove gl_FILE_TYPE call.
9398         (Makefile.am): Augment lib_SOURCES.
9399
9400 2011-05-23  Bruno Haible  <bruno@clisp.org>
9401
9402         filenamecat*: Respect rules for use of AC_LIBOBJ.
9403         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9404         Remove AC_LIBOBJ invocation.
9405         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9406         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9407
9408 2011-05-23  Bruno Haible  <bruno@clisp.org>
9409
9410         filemode: Move AC_LIBOBJ invocations to module description.
9411         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9412         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9413
9414 2011-05-23  Bruno Haible  <bruno@clisp.org>
9415
9416         openat-safer: Move AC_LIBOBJ invocations to module description.
9417         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9418         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9419
9420 2011-05-23  Bruno Haible  <bruno@clisp.org>
9421
9422         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9423         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9424         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9425
9426 2011-05-23  Bruno Haible  <bruno@clisp.org>
9427
9428         exclude: Move AC_LIBOBJ invocations to module description.
9429         * m4/exclude.m4: Remove file.
9430         * modules/exclude (Files): Remove it.
9431         (configure.ac): Remove gl_EXCLUDE call.
9432         (Makefile.am): Augment lib_SOURCES.
9433
9434 2011-05-23  Bruno Haible  <bruno@clisp.org>
9435
9436         dirname*: Respect rules for use of AC_LIBOBJ.
9437         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9438         invocations.
9439         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9440         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9441
9442 2011-05-23  Bruno Haible  <bruno@clisp.org>
9443
9444         dirent-safer: Move AC_LIBOBJ invocations to module description.
9445         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9446         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9447
9448 2011-05-23  Bruno Haible  <bruno@clisp.org>
9449
9450         crypto/des: Move AC_LIBOBJ invocations to module description.
9451         * m4/des.m4: Remove file.
9452         * modules/crypto/des (Files): Remove it.
9453         (configure.ac): Remove gl_DES call.
9454         (Makefile.am): Augment lib_SOURCES.
9455
9456 2011-05-23  Bruno Haible  <bruno@clisp.org>
9457
9458         cycle-check: Move AC_LIBOBJ invocations to module description.
9459         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9460         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9461
9462 2011-05-23  Bruno Haible  <bruno@clisp.org>
9463
9464         c-strtold: Move AC_LIBOBJ invocations to module description.
9465         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9466         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9467
9468 2011-05-23  Bruno Haible  <bruno@clisp.org>
9469
9470         c-strtod: Move AC_LIBOBJ invocations to module description.
9471         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9472         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9473
9474 2011-05-23  Bruno Haible  <bruno@clisp.org>
9475
9476         crc: Move AC_LIBOBJ invocations to module description.
9477         * m4/crc.m4: Remove file.
9478         * modules/crc (Files): Remove it.
9479         (configure.ac): Remove gl_CRC call.
9480         (Makefile.am): Augment lib_SOURCES.
9481
9482 2011-05-23  Bruno Haible  <bruno@clisp.org>
9483
9484         close-stream: Move AC_LIBOBJ invocations to module description.
9485         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9486         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9487
9488 2011-05-23  Bruno Haible  <bruno@clisp.org>
9489
9490         closeout: Move AC_LIBOBJ invocations to module description.
9491         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9492         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9493
9494 2011-05-23  Bruno Haible  <bruno@clisp.org>
9495
9496         closein: Move AC_LIBOBJ invocations to module description.
9497         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9498         * modules/closein (Makefile.am): Augment lib_SOURCES.
9499
9500 2011-05-23  Bruno Haible  <bruno@clisp.org>
9501
9502         cloexec: Move AC_LIBOBJ invocations to module description.
9503         * m4/cloexec.m4: Remove file.
9504         * modules/cloexec (Files): Remove it.
9505         (configure.ac): Remove gl_CLOEXEC call.
9506         (Makefile.am): Augment lib_SOURCES.
9507
9508 2011-05-23  Bruno Haible  <bruno@clisp.org>
9509
9510         check-version: Move AC_LIBOBJ invocations to module description.
9511         * m4/check-version.m4: Remove file.
9512         * modules/check-version (Files): Remove it.
9513         (configure.ac): Remove gl_CHECK_VERSION call.
9514         (Makefile.am): Augment lib_SOURCES.
9515
9516 2011-05-23  Bruno Haible  <bruno@clisp.org>
9517
9518         chdir-safer: Move AC_LIBOBJ invocations to module description.
9519         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9520         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9521
9522 2011-05-23  Bruno Haible  <bruno@clisp.org>
9523
9524         canonicalize: Move AC_LIBOBJ invocations to module description.
9525         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9526         AC_LIBOBJ invocation.
9527         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9528
9529 2011-05-23  Bruno Haible  <bruno@clisp.org>
9530
9531         canon-host: Move AC_LIBOBJ invocations to module description.
9532         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9533         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9534         instead of gl_CANON_HOST.
9535         (Makefile.am): Augment lib_SOURCES.
9536
9537 2011-05-23  Bruno Haible  <bruno@clisp.org>
9538
9539         backupfile: Move AC_LIBOBJ invocations to module description.
9540         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9541         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9542
9543 2011-05-23  Bruno Haible  <bruno@clisp.org>
9544
9545         argmatch: Move AC_LIBOBJ invocations to module description.
9546         * m4/argmatch.m4: Remove file.
9547         * modules/argmatch (Files): Remove it.
9548         (configure.ac): Remove gl_ARGMATCH call.
9549         (Makefile.am): Augment lib_SOURCES.
9550
9551 2011-05-23  Bruno Haible  <bruno@clisp.org>
9552
9553         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9554         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9555         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9556
9557 2011-05-23  Bruno Haible  <bruno@clisp.org>
9558
9559         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9560         * m4/arcfour.m4: Remove file.
9561         * modules/crypto/arcfour (Files): Remove it.
9562         (configure.ac): Remove gl_ARCFOUR call.
9563         (Makefile.am): Augment lib_SOURCES.
9564
9565 2011-05-22  Bruno Haible  <bruno@clisp.org>
9566
9567         write: Move AC_LIBOBJ invocations to module description.
9568         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9569         * modules/write (configure.ac): ... to here.
9570
9571 2011-05-22  Bruno Haible  <bruno@clisp.org>
9572
9573         wmemset: Move AC_LIBOBJ invocations to module description.
9574         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9575         here...
9576         * modules/wmemset (configure.ac): ... to here.
9577
9578 2011-05-22  Bruno Haible  <bruno@clisp.org>
9579
9580         wmemmove: Move AC_LIBOBJ invocations to module description.
9581         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9582         here...
9583         * modules/wmemmove (configure.ac): ... to here.
9584
9585 2011-05-22  Bruno Haible  <bruno@clisp.org>
9586
9587         wmemcpy: Move AC_LIBOBJ invocations to module description.
9588         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9589         here...
9590         * modules/wmemcpy (configure.ac): ... to here.
9591
9592 2011-05-22  Bruno Haible  <bruno@clisp.org>
9593
9594         wmemcmp: Move AC_LIBOBJ invocations to module description.
9595         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9596         here...
9597         * modules/wmemcmp (configure.ac): ... to here.
9598
9599 2011-05-22  Bruno Haible  <bruno@clisp.org>
9600
9601         wmemchr: Move AC_LIBOBJ invocations to module description.
9602         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9603         here...
9604         * modules/wmemchr (configure.ac): ... to here.
9605
9606 2011-05-22  Bruno Haible  <bruno@clisp.org>
9607
9608         wcswidth: Move AC_LIBOBJ invocations to module description.
9609         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9610         here...
9611         * modules/wcswidth (configure.ac): ... to here.
9612
9613 2011-05-22  Bruno Haible  <bruno@clisp.org>
9614
9615         wcwidth: Respect rules for use of AC_LIBOBJ.
9616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9617         invocation from here...
9618         * modules/wcwidth (configure.ac): ... to here.
9619         (Depends-on): Update conditions.
9620
9621 2011-05-22  Bruno Haible  <bruno@clisp.org>
9622
9623         wctype: Move AC_LIBOBJ invocations to module description.
9624         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9625         invocation from here...
9626         * modules/wctype (configure.ac): ... to here.
9627         (Depends-on): Update conditions.
9628
9629 2011-05-22  Bruno Haible  <bruno@clisp.org>
9630
9631         wctrans: Move AC_LIBOBJ invocations to module description.
9632         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9633         invocation from here...
9634         * modules/wctrans (configure.ac): ... to here.
9635
9636 2011-05-22  Bruno Haible  <bruno@clisp.org>
9637
9638         wctomb: Move AC_LIBOBJ invocations to module description.
9639         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9640         invocations from here...
9641         * modules/wctomb (configure.ac): ... to here.
9642
9643 2011-05-22  Bruno Haible  <bruno@clisp.org>
9644
9645         wctob: Move AC_LIBOBJ invocations to module description.
9646         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9647         gl_PREREQ_WCTOB invocations from here...
9648         * modules/wctob (configure.ac): ... to here.
9649         (Depends-on): Update conditions.
9650
9651 2011-05-22  Bruno Haible  <bruno@clisp.org>
9652
9653         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9654         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9655         here...
9656         * modules/wcsxfrm (configure.ac): ... to here.
9657
9658 2011-05-22  Bruno Haible  <bruno@clisp.org>
9659
9660         wcstok: Move AC_LIBOBJ invocations to module description.
9661         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9662         * modules/wcstok (configure.ac): ... to here.
9663
9664 2011-05-22  Bruno Haible  <bruno@clisp.org>
9665
9666         wcsstr: Move AC_LIBOBJ invocations to module description.
9667         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9668         * modules/wcsstr (configure.ac): ... to here.
9669
9670 2011-05-22  Bruno Haible  <bruno@clisp.org>
9671
9672         wcsspn: Move AC_LIBOBJ invocations to module description.
9673         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9674         * modules/wcsspn (configure.ac): ... to here.
9675
9676 2011-05-22  Bruno Haible  <bruno@clisp.org>
9677
9678         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9679         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9680         gl_PREREQ_WCSRTOMBS invocations from here...
9681         * modules/wcsrtombs (configure.ac): ... to here.
9682
9683 2011-05-22  Bruno Haible  <bruno@clisp.org>
9684
9685         wcsrchr: Move AC_LIBOBJ invocations to module description.
9686         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9687         here...
9688         * modules/wcsrchr (configure.ac): ... to here.
9689
9690 2011-05-22  Bruno Haible  <bruno@clisp.org>
9691
9692         wcspbrk: Move AC_LIBOBJ invocations to module description.
9693         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9694         here...
9695         * modules/wcspbrk (configure.ac): ... to here.
9696
9697 2011-05-22  Bruno Haible  <bruno@clisp.org>
9698
9699         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9700         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9701         gl_PREREQ_WCSNRTOMBS invocations from here...
9702         * modules/wcsnrtombs (configure.ac): ... to here.
9703
9704 2011-05-22  Bruno Haible  <bruno@clisp.org>
9705
9706         wcsnlen: Move AC_LIBOBJ invocations to module description.
9707         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9708         here...
9709         * modules/wcsnlen (configure.ac): ... to here.
9710
9711 2011-05-22  Bruno Haible  <bruno@clisp.org>
9712
9713         wcsncpy: Move AC_LIBOBJ invocations to module description.
9714         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9715         here...
9716         * modules/wcsncpy (configure.ac): ... to here.
9717
9718 2011-05-22  Bruno Haible  <bruno@clisp.org>
9719
9720         wcsncmp: Move AC_LIBOBJ invocations to module description.
9721         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9722         here...
9723         * modules/wcsncmp (configure.ac): ... to here.
9724
9725 2011-05-22  Bruno Haible  <bruno@clisp.org>
9726
9727         wcsncat: Move AC_LIBOBJ invocations to module description.
9728         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9729         here...
9730         * modules/wcsncat (configure.ac): ... to here.
9731
9732 2011-05-22  Bruno Haible  <bruno@clisp.org>
9733
9734         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9735         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9736         from here...
9737         * modules/wcsncasecmp (configure.ac): ... to here.
9738
9739 2011-05-22  Bruno Haible  <bruno@clisp.org>
9740
9741         wcslen: Move AC_LIBOBJ invocations to module description.
9742         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9743         * modules/wcslen (configure.ac): ... to here.
9744
9745 2011-05-22  Bruno Haible  <bruno@clisp.org>
9746
9747         wcsdup: Move AC_LIBOBJ invocations to module description.
9748         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9749         * modules/wcsdup (configure.ac): ... to here.
9750
9751 2011-05-22  Bruno Haible  <bruno@clisp.org>
9752
9753         wcscspn: Move AC_LIBOBJ invocations to module description.
9754         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9755         here...
9756         * modules/wcscspn (configure.ac): ... to here.
9757
9758 2011-05-22  Bruno Haible  <bruno@clisp.org>
9759
9760         wcscpy: Move AC_LIBOBJ invocations to module description.
9761         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9762         * modules/wcscpy (configure.ac): ... to here.
9763
9764 2011-05-22  Bruno Haible  <bruno@clisp.org>
9765
9766         wcscoll: Move AC_LIBOBJ invocations to module description.
9767         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9768         here...
9769         * modules/wcscoll (configure.ac): ... to here.
9770
9771 2011-05-22  Bruno Haible  <bruno@clisp.org>
9772
9773         wcscmp: Move AC_LIBOBJ invocations to module description.
9774         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9775         * modules/wcscmp (configure.ac): ... to here.
9776
9777 2011-05-22  Bruno Haible  <bruno@clisp.org>
9778
9779         wcschr: Move AC_LIBOBJ invocations to module description.
9780         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9781         * modules/wcschr (configure.ac): ... to here.
9782
9783 2011-05-22  Bruno Haible  <bruno@clisp.org>
9784
9785         wcscat: Move AC_LIBOBJ invocations to module description.
9786         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9787         * modules/wcscat (configure.ac): ... to here.
9788
9789 2011-05-22  Bruno Haible  <bruno@clisp.org>
9790
9791         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9792         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9793         here...
9794         * modules/wcscasecmp (configure.ac): ... to here.
9795
9796 2011-05-22  Bruno Haible  <bruno@clisp.org>
9797
9798         wcrtomb: Move AC_LIBOBJ invocations to module description.
9799         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9800         invocations from here...
9801         * modules/wcrtomb (configure.ac): ... to here.
9802
9803 2011-05-22  Bruno Haible  <bruno@clisp.org>
9804
9805         wcpncpy: Move AC_LIBOBJ invocations to module description.
9806         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9807         here...
9808         * modules/wcpncpy (configure.ac): ... to here.
9809
9810 2011-05-22  Bruno Haible  <bruno@clisp.org>
9811
9812         wcpcpy: Move AC_LIBOBJ invocations to module description.
9813         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9814         * modules/wcpcpy (configure.ac): ... to here.
9815
9816 2011-05-22  Bruno Haible  <bruno@clisp.org>
9817
9818         waitpid: Move AC_LIBOBJ invocations to module description.
9819         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9820         invocation from here...
9821         * modules/waitpid (configure.ac): ... to here.
9822
9823 2011-05-22  Bruno Haible  <bruno@clisp.org>
9824
9825         utimensat: Move AC_LIBOBJ invocations to module description.
9826         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9827         here...
9828         * modules/utimensat (configure.ac): ... to here.
9829
9830 2011-05-22  Bruno Haible  <bruno@clisp.org>
9831
9832         usleep: Move AC_LIBOBJ invocations to module description.
9833         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9834         here...
9835         * modules/usleep (configure.ac): ... to here.
9836
9837 2011-05-22  Bruno Haible  <bruno@clisp.org>
9838
9839         unlockpt: Move AC_LIBOBJ invocations to module description.
9840         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9841         gl_PREREQ_UNLOCKPT invocations from here...
9842         * modules/unlockpt (configure.ac): ... to here.
9843
9844 2011-05-22  Bruno Haible  <bruno@clisp.org>
9845
9846         unlink: Respect rules for use of AC_LIBOBJ.
9847         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9848         * modules/unlink (configure.ac): ... to here.
9849
9850 2011-05-22  Bruno Haible  <bruno@clisp.org>
9851
9852         uname: Move AC_LIBOBJ invocations to module description.
9853         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9854         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9855         here...
9856         * modules/uname (configure.ac): ... to here.
9857
9858 2011-05-22  Bruno Haible  <bruno@clisp.org>
9859
9860         ttyname_r: Move AC_LIBOBJ invocations to module description.
9861         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9862         gl_PREREQ_TTYNAME_R invocations from here...
9863         * modules/ttyname_r (configure.ac): ... to here.
9864
9865 2011-05-22  Bruno Haible  <bruno@clisp.org>
9866
9867         tsearch: Move AC_LIBOBJ invocations to module description.
9868         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9869         invocations from here...
9870         * modules/tsearch (configure.ac): ... to here.
9871
9872 2011-05-22  Bruno Haible  <bruno@clisp.org>
9873
9874         towctrans: Move AC_LIBOBJ invocations to module description.
9875         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9876         AC_LIBOBJ invocation from here...
9877         * modules/towctrans (configure.ac): ... to here.
9878
9879 2011-05-22  Bruno Haible  <bruno@clisp.org>
9880
9881         tmpfile: Move AC_LIBOBJ invocations to module description.
9882         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9883         invocations from here...
9884         * modules/tmpfile (configure.ac): ... to here.
9885
9886 2011-05-22  Bruno Haible  <bruno@clisp.org>
9887
9888         times: Move AC_LIBOBJ invocations to module description.
9889         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9890         * modules/times (configure.ac): ... to here.
9891
9892 2011-05-22  Bruno Haible  <bruno@clisp.org>
9893
9894         time_r: Move AC_LIBOBJ invocations to module description.
9895         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9896         invocations from here...
9897         * modules/time_r (configure.ac): ... to here.
9898
9899 2011-05-22  Bruno Haible  <bruno@clisp.org>
9900
9901         timegm: Move AC_LIBOBJ invocations to module description.
9902         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9903         invocations from here...
9904         * modules/timegm (configure.ac): ... to here.
9905
9906 2011-05-22  Bruno Haible  <bruno@clisp.org>
9907
9908         tcgetsid: Move AC_LIBOBJ invocations to module description.
9909         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9910         and gl_PREREQ_TCGETSID invocations from here...
9911         * modules/tcgetsid (configure.ac): ... to here.
9912         (Depends-on): Update conditions.
9913
9914 2011-05-22  Bruno Haible  <bruno@clisp.org>
9915
9916         symlinkat: Move AC_LIBOBJ invocations to module description.
9917         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9918         here...
9919         * modules/symlinkat (configure.ac): ... to here.
9920
9921 2011-05-22  Bruno Haible  <bruno@clisp.org>
9922
9923         symlink: Move AC_LIBOBJ invocations to module description.
9924         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9925         here...
9926         * modules/symlink (configure.ac): ... to here.
9927
9928 2011-05-22  Bruno Haible  <bruno@clisp.org>
9929
9930         strverscmp: Move AC_LIBOBJ invocations to module description.
9931         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9932         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9933         from here...
9934         * modules/strverscmp (configure.ac): ... to here.
9935
9936 2011-05-22  Bruno Haible  <bruno@clisp.org>
9937
9938         strtok_r: Move AC_LIBOBJ invocations to module description.
9939         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9940         and gl_PREREQ_STRTOK_R invocations from here...
9941         * modules/strtok_r (configure.ac): ... to here.
9942         (Depends-on): Update conditions.
9943
9944 2011-05-22  Bruno Haible  <bruno@clisp.org>
9945
9946         strtoumax: Move AC_LIBOBJ invocations to module description.
9947         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9948         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9949         from here...
9950         * modules/strtoumax (configure.ac): ... to here.
9951
9952 2011-05-22  Bruno Haible  <bruno@clisp.org>
9953
9954         strtoimax: Move AC_LIBOBJ invocations to module description.
9955         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9956         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9957         from here...
9958         * modules/strtoimax (configure.ac): ... to here.
9959
9960 2011-05-22  Bruno Haible  <bruno@clisp.org>
9961
9962         strtoull: Move AC_LIBOBJ invocations to module description.
9963         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9965         from here...
9966         * modules/strtoull (configure.ac): ... to here.
9967
9968 2011-05-22  Bruno Haible  <bruno@clisp.org>
9969
9970         strtoll: Move AC_LIBOBJ invocations to module description.
9971         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9973         here...
9974         * modules/strtoll (configure.ac): ... to here.
9975
9976 2011-05-22  Bruno Haible  <bruno@clisp.org>
9977
9978         strtoul: Move AC_LIBOBJ invocations to module description.
9979         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9980         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9981         * modules/strtoul (configure.ac): ... to here.
9982
9983 2011-05-22  Bruno Haible  <bruno@clisp.org>
9984
9985         strtol: Move AC_LIBOBJ invocations to module description.
9986         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9987         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9988         * modules/strtol (configure.ac): ... to here.
9989
9990 2011-05-22  Bruno Haible  <bruno@clisp.org>
9991
9992         strtod: Move AC_LIBOBJ invocations to module description.
9993         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9994         invocations from here...
9995         * modules/strtod (configure.ac): ... to here.
9996
9997 2011-05-22  Bruno Haible  <bruno@clisp.org>
9998
9999         strstr*: Move AC_LIBOBJ invocations to module description.
10000         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10001         invocations from here...
10002         * modules/strstr-simple (configure.ac): ... to here.
10003         * modules/strstr (configure.ac): ... and here.
10004
10005 2011-05-22  Bruno Haible  <bruno@clisp.org>
10006
10007         strsignal: Move AC_LIBOBJ invocations to module description.
10008         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10009         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10010         * modules/strsignal (configure.ac): ... to here.
10011         (Depends-on): Update conditions.
10012
10013 2011-05-22  Bruno Haible  <bruno@clisp.org>
10014
10015         strsep: Move AC_LIBOBJ invocations to module description.
10016         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10018         here...
10019         * modules/strsep (configure.ac): ... to here.
10020
10021 2011-05-22  Bruno Haible  <bruno@clisp.org>
10022
10023         strptime: Move AC_LIBOBJ invocations to module description.
10024         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10025         gl_PREREQ_STRPTIME invocations from here...
10026         * modules/strptime (configure.ac): ... to here.
10027
10028 2011-05-22  Bruno Haible  <bruno@clisp.org>
10029
10030         strpbrk: Move AC_LIBOBJ invocations to module description.
10031         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10032         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10033         here...
10034         * modules/strpbrk (configure.ac): ... to here.
10035
10036 2011-05-22  Bruno Haible  <bruno@clisp.org>
10037
10038         strnlen: Move AC_LIBOBJ invocations to module description.
10039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10040         invocations from here...
10041         * modules/strnlen (configure.ac): ... to here.
10042
10043 2011-05-22  Bruno Haible  <bruno@clisp.org>
10044
10045         strndup: Move AC_LIBOBJ invocations to module description.
10046         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10047         invocations from here...
10048         * modules/strndup (configure.ac): ... to here.
10049         (Depends-on): Update conditions.
10050
10051 2011-05-22  Bruno Haible  <bruno@clisp.org>
10052
10053         strncat: Move AC_LIBOBJ invocations to module description.
10054         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10055         invocations from here...
10056         * modules/strncat (configure.ac): ... to here.
10057
10058 2011-05-22  Bruno Haible  <bruno@clisp.org>
10059
10060         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10061         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10062         invocations from here...
10063         * modules/strdup (configure.ac): ... to here.
10064         * modules/strdup-posix (configure.ac): ... and here.
10065
10066 2011-05-22  Bruno Haible  <bruno@clisp.org>
10067
10068         strcspn: Move AC_LIBOBJ invocations to module description.
10069         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10070         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10071         here...
10072         * modules/strcspn (configure.ac): ... to here.
10073
10074 2011-05-22  Bruno Haible  <bruno@clisp.org>
10075
10076         strchrnul: Move AC_LIBOBJ invocations to module description.
10077         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10078         gl_PREREQ_STRCHRNUL invocations from here...
10079         * modules/strchrnul (configure.ac): ... to here.
10080
10081 2011-05-22  Bruno Haible  <bruno@clisp.org>
10082
10083         strcasestr*: Move AC_LIBOBJ invocations to module description.
10084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10085         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10086         * modules/strcasestr-simple (configure.ac): ... to here.
10087         * modules/strcasestr (configure.ac): ... and here.
10088
10089 2011-05-22  Bruno Haible  <bruno@clisp.org>
10090
10091         strcase: Move AC_LIBOBJ invocations to module description.
10092         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10093         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10094         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10095         gl_PREREQ_STRNCASECMP invocations from here...
10096         * modules/strcase (configure.ac): ... to here.
10097
10098 2011-05-22  Bruno Haible  <bruno@clisp.org>
10099
10100         stpncpy: Move AC_LIBOBJ invocations to module description.
10101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10102         here...
10103         * modules/stpncpy (configure.ac): ... to here.
10104
10105 2011-05-22  Bruno Haible  <bruno@clisp.org>
10106
10107         stpcpy: Move AC_LIBOBJ invocations to module description.
10108         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10109         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10110         here...
10111         * modules/stpcpy (configure.ac): ... to here.
10112
10113 2011-05-21  Bruno Haible  <bruno@clisp.org>
10114
10115         stat: Move AC_LIBOBJ invocations to module description.
10116         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10117         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10118         here...
10119         * modules/stat (configure.ac): ... to here.
10120
10121 2011-05-21  Bruno Haible  <bruno@clisp.org>
10122
10123         sleep: Move AC_LIBOBJ invocations to module description.
10124         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10125         * modules/sleep (configure.ac): ... to here.
10126
10127 2011-05-21  Bruno Haible  <bruno@clisp.org>
10128
10129         signbit: Move AC_LIBOBJ invocations to module description.
10130         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10131         * modules/signbit (configure.ac): ... to here.
10132
10133 2011-05-21  Bruno Haible  <bruno@clisp.org>
10134
10135         sigprocmask: Move AC_LIBOBJ invocations to module description.
10136         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10137         gl_PREREQ_SIGPROMASK invocations from here...
10138         * modules/sigprocmask (configure.ac): ... to here.
10139
10140 2011-05-21  Bruno Haible  <bruno@clisp.org>
10141
10142         sigaction: Move AC_LIBOBJ invocations to module description.
10143         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10144         gl_PREREQ_SIGACTION invocations from here...
10145         * modules/sigaction (configure.ac): ... to here.
10146
10147 2011-05-21  Bruno Haible  <bruno@clisp.org>
10148
10149         sig2str: Move AC_LIBOBJ invocations to module description.
10150         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10152         here...
10153         * modules/sig2str (configure.ac): ... to here.
10154
10155 2011-05-21  Bruno Haible  <bruno@clisp.org>
10156
10157         setlocale: Move AC_LIBOBJ invocations to module description.
10158         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10159         gl_PREREQ_SETLOCALE invocations from here...
10160         * modules/setlocale (configure.ac): ... to here.
10161
10162 2011-05-21  Bruno Haible  <bruno@clisp.org>
10163
10164         unsetenv: Move AC_LIBOBJ invocations to module description.
10165         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10166         and gl_PREREQ_UNSETENV invocations from here...
10167         * modules/unsetenv (configure.ac): ... to here.
10168         (Depends-on): Update.
10169
10170 2011-05-21  Bruno Haible  <bruno@clisp.org>
10171
10172         setenv: Move AC_LIBOBJ invocations to module description.
10173         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10174         here...
10175         * modules/setenv (configure.ac): ... to here.
10176
10177 2011-05-21  Bruno Haible  <bruno@clisp.org>
10178
10179         selinux-h: Move AC_LIBOBJ invocations to module description.
10180         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10181         AC_LIBOBJ invocation from here...
10182         * modules/selinux-h (configure.ac): ... to here.
10183
10184 2011-05-21  Bruno Haible  <bruno@clisp.org>
10185
10186         select: Respect rules for use of AC_LIBOBJ.
10187         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10188         here...
10189         * modules/select (configure.ac): ... to here.
10190
10191 2011-05-21  Bruno Haible  <bruno@clisp.org>
10192
10193         scandir: Move AC_LIBOBJ invocations to module description.
10194         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10195         invocations from here...
10196         * modules/scandir (configure.ac): ... to here.
10197
10198 2011-05-21  Bruno Haible  <bruno@clisp.org>
10199
10200         rpmatch: Move AC_LIBOBJ invocations to module description.
10201         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10203         here...
10204         * modules/rpmatch (configure.ac): ... to here.
10205
10206 2011-05-21  Bruno Haible  <bruno@clisp.org>
10207
10208         rmdir: Respect rules for use of AC_LIBOBJ.
10209         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10210         * modules/rmdir (configure.ac): ... to here.
10211
10212 2011-05-21  Bruno Haible  <bruno@clisp.org>
10213
10214         renameat: Move AC_LIBOBJ invocations to module description.
10215         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10216         here...
10217         * modules/renameat (configure.ac): ... to here.
10218
10219 2011-05-21  Bruno Haible  <bruno@clisp.org>
10220
10221         rename: Respect rules for use of AC_LIBOBJ.
10222         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10223         here...
10224         * modules/rename (configure.ac): ... to here.
10225
10226 2011-05-21  Bruno Haible  <bruno@clisp.org>
10227
10228         remove: Move AC_LIBOBJ invocations to module description.
10229         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10230         here...
10231         * modules/remove (configure.ac): ... to here.
10232
10233 2011-05-21  Bruno Haible  <bruno@clisp.org>
10234
10235         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10236         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10237         macro.
10238         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10239         * modules/relocatable-lib (configure.ac): ... to here.
10240         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10241         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10242
10243 2011-05-21  Bruno Haible  <bruno@clisp.org>
10244
10245         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10246         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10247         here...
10248         * modules/relocatable-prog (configure.ac): ... to here.
10249
10250 2011-05-21  Bruno Haible  <bruno@clisp.org>
10251
10252         regex: Move AC_LIBOBJ invocations to module description.
10253         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10254         invocations from here...
10255         * modules/regex (configure.ac): ... to here.
10256
10257 2011-05-21  Bruno Haible  <bruno@clisp.org>
10258
10259         realloc-*: Move AC_LIBOBJ invocations to module description.
10260         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10261         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10262         AC_LIBOBJ invocations from here...
10263         * modules/realloc-gnu (configure.ac): ... to here.
10264         * modules/realloc-posix (configure.ac): ... and here.
10265
10266 2011-05-21  Bruno Haible  <bruno@clisp.org>
10267
10268         readutmp: Move AC_LIBOBJ invocations to module description.
10269         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10270         * modules/readutmp (configure.ac): ... to here.
10271
10272 2011-05-21  Bruno Haible  <bruno@clisp.org>
10273
10274         readlinkat: Move AC_LIBOBJ invocations to module description.
10275         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10276         here...
10277         * modules/readlinkat (configure.ac): ... to here.
10278
10279 2011-05-21  Bruno Haible  <bruno@clisp.org>
10280
10281         readlink: Move AC_LIBOBJ invocations to module description.
10282         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10283         gl_PREREQ_READLINK invocations from here...
10284         * modules/readlink (configure.ac): ... to here.
10285
10286 2011-05-21  Bruno Haible  <bruno@clisp.org>
10287
10288         readline: Move AC_LIBOBJ invocations to module description.
10289         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10290         gl_PREREQ_READLINE invocations from here...
10291         * modules/readline (configure.ac): ... to here.
10292
10293 2011-05-21  Bruno Haible  <bruno@clisp.org>
10294
10295         read: Move AC_LIBOBJ invocations to module description.
10296         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10297         * modules/read (configure.ac): ... to here.
10298
10299 2011-05-21  Bruno Haible  <bruno@clisp.org>
10300
10301         rawmemchr: Move AC_LIBOBJ invocations to module description.
10302         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10304         from here...
10305         * modules/rawmemchr (configure.ac): ... to here.
10306
10307 2011-05-21  Bruno Haible  <bruno@clisp.org>
10308
10309         random_r: Move AC_LIBOBJ invocations to module description.
10310         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10311         gl_PREREQ_RANDOM_R invocations from here...
10312         * modules/random_r (configure.ac): ... to here.
10313
10314 2011-05-21  Bruno Haible  <bruno@clisp.org>
10315
10316         pwrite: Move AC_LIBOBJ invocations to module description.
10317         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10318         * modules/pwrite (configure.ac): ... to here.
10319
10320 2011-05-21  Bruno Haible  <bruno@clisp.org>
10321
10322         putenv: Move AC_LIBOBJ invocations to module description.
10323         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10324         * modules/putenv (configure.ac): ... to here.
10325
10326 2011-05-21  Bruno Haible  <bruno@clisp.org>
10327
10328         login_tty: Move AC_LIBOBJ invocations to module description.
10329         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10330         * modules/login_tty (configure.ac): ... to here.
10331
10332 2011-05-21  Bruno Haible  <bruno@clisp.org>
10333
10334         openpty: Move AC_LIBOBJ invocations to module description.
10335         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10336         * modules/openpty (configure.ac): ... to here.
10337
10338 2011-05-21  Bruno Haible  <bruno@clisp.org>
10339
10340         forkpty: Move AC_LIBOBJ invocations to module description.
10341         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10342         * modules/forkpty (configure.ac): ... to here.
10343
10344 2011-05-21  Bruno Haible  <bruno@clisp.org>
10345
10346         ptsname: Move AC_LIBOBJ invocations to module description.
10347         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10348         invocations from here...
10349         * modules/ptsname (configure.ac): ... to here.
10350
10351 2011-05-21  Bruno Haible  <bruno@clisp.org>
10352
10353         pread: Move AC_LIBOBJ invocations to module description.
10354         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10355         * modules/pread (configure.ac): ... to here.
10356
10357 2011-05-21  Bruno Haible  <bruno@clisp.org>
10358
10359         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10360         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10361         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10362         * modules/posix_spawn (configure.ac): ... to here.
10363         * modules/posix_spawnp (configure.ac): ... and here.
10364
10365 2011-05-21  Bruno Haible  <bruno@clisp.org>
10366
10367         popen: Move AC_LIBOBJ invocations to module description.
10368         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10369         invocations from here...
10370         * modules/popen (configure.ac): ... to here.
10371
10372 2011-05-21  Bruno Haible  <bruno@clisp.org>
10373
10374         poll: Move AC_LIBOBJ invocations to module description.
10375         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10376         invocations from here...
10377         * modules/poll (configure.ac): ... to here.
10378
10379 2011-05-21  Bruno Haible  <bruno@clisp.org>
10380
10381         pipe-posix: Move AC_LIBOBJ invocations to module description.
10382         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10383         * modules/pipe-posix (configure.ac): ... to here.
10384
10385 2011-05-21  Bruno Haible  <bruno@clisp.org>
10386
10387         openat: Respect rules for use of AC_LIBOBJ.
10388         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10389         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10390         * modules/openat (configure.ac): ... to here.
10391
10392 2011-05-21  Bruno Haible  <bruno@clisp.org>
10393
10394         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10395         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10396         invocation from here...
10397         * modules/obstack-printf (configure.ac): ... to here.
10398         * modules/obstack-printf-posix (configure.ac): ... and here.
10399
10400 2011-05-21  Bruno Haible  <bruno@clisp.org>
10401
10402         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10403         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10404         from here...
10405         * modules/nl_langinfo (configure.ac): ... to here.
10406
10407 2011-05-21  Bruno Haible  <bruno@clisp.org>
10408
10409         nanosleep: Move AC_LIBOBJ invocations to module description.
10410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10411         gl_PREREQ_NANOSLEEP invocations from here...
10412         * modules/nanosleep (configure.ac): ... to here.
10413
10414 2011-05-21  Bruno Haible  <bruno@clisp.org>
10415
10416         mountlist: Move AC_LIBOBJ invocations to module description.
10417         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10418         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10419         * modules/mountlist (configure.ac): ... to here.
10420
10421 2011-05-21  Bruno Haible  <bruno@clisp.org>
10422
10423         mktime: Respect rules for use of AC_LIBOBJ.
10424         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10425         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10426         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10427         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10428         * modules/mktime (configure.ac): ... to here.
10429         * modules/mktime-internal (configure.ac): ... and here.
10430         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10431
10432 2011-05-21  Bruno Haible  <bruno@clisp.org>
10433
10434         mkstemps: Move AC_LIBOBJ invocations to module description.
10435         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10436         here...
10437         * modules/mkstemps (configure.ac): ... to here.
10438
10439 2011-05-21  Bruno Haible  <bruno@clisp.org>
10440
10441         mkstemp: Move AC_LIBOBJ invocations to module description.
10442         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10443         gl_PREREQ_MKSTEMP invocations from here...
10444         * modules/mkstemp (configure.ac): ... to here.
10445
10446 2011-05-21  Bruno Haible  <bruno@clisp.org>
10447
10448         mkostemps: Move AC_LIBOBJ invocations to module description.
10449         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10450         here...
10451         * modules/mkostemps (configure.ac): ... to here.
10452
10453 2011-05-21  Bruno Haible  <bruno@clisp.org>
10454
10455         mkostemp: Move AC_LIBOBJ invocations to module description.
10456         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10457         gl_PREREQ_MKOSTEMP invocations from here...
10458         * modules/mkostemp (configure.ac): ... to here.
10459
10460 2011-05-21  Bruno Haible  <bruno@clisp.org>
10461
10462         mknod: Move AC_LIBOBJ invocations to module description.
10463         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10464         * modules/mknod (configure.ac): ... to here.
10465
10466 2011-05-21  Bruno Haible  <bruno@clisp.org>
10467
10468         mkfifoat: Move AC_LIBOBJ invocations to module description.
10469         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10470         here...
10471         * modules/mkfifoat (configure.ac): ... to here.
10472
10473 2011-05-21  Bruno Haible  <bruno@clisp.org>
10474
10475         mkfifo: Respect rules for use of AC_LIBOBJ.
10476         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10477         here...
10478         * modules/mkfifo (configure.ac): ... to here.
10479
10480 2011-05-21  Bruno Haible  <bruno@clisp.org>
10481
10482         mkdtemp: Move AC_LIBOBJ invocations to module description.
10483         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10484         invocations from here...
10485         * modules/mkdtemp (configure.ac): ... to here.
10486
10487 2011-05-21  Bruno Haible  <bruno@clisp.org>
10488
10489         mkdir: Move AC_LIBOBJ invocations to module description.
10490         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10491         * modules/mkdir (configure.ac): ... to here.
10492
10493 2011-05-21  Bruno Haible  <bruno@clisp.org>
10494
10495         memset: Move AC_LIBOBJ invocations to module description.
10496         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10497         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10498         here...
10499         * modules/memset (configure.ac): ... to here.
10500
10501 2011-05-21  Bruno Haible  <bruno@clisp.org>
10502
10503         memrchr: Move AC_LIBOBJ invocations to module description.
10504         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10505         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10506         here...
10507         * modules/memrchr (configure.ac): ... to here.
10508
10509 2011-05-21  Bruno Haible  <bruno@clisp.org>
10510
10511         mempcpy: Move AC_LIBOBJ invocations to module description.
10512         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10513         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10514         here...
10515         * modules/mempcpy (configure.ac): ... to here.
10516
10517 2011-05-21  Bruno Haible  <bruno@clisp.org>
10518
10519         memmove: Move AC_LIBOBJ invocations to module description.
10520         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10521         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10522         here...
10523         * modules/memmove (configure.ac): ... to here.
10524
10525 2011-05-21  Bruno Haible  <bruno@clisp.org>
10526
10527         memmem*: Move AC_LIBOBJ invocations to module description.
10528         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10529         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10530         here...
10531         (gl_FUNC_MEMMEM): ... and here...
10532         * modules/memmem-simple (configure.ac): ... to here.
10533         * modules/memmem (configure.ac): ... and here.
10534
10535 2011-05-21  Bruno Haible  <bruno@clisp.org>
10536
10537         memcpy: Move AC_LIBOBJ invocations to module description.
10538         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10539         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10540         here...
10541         * modules/memcpy (configure.ac): ... to here.
10542
10543 2011-05-21  Bruno Haible  <bruno@clisp.org>
10544
10545         memcmp: Simplify autoconf macro.
10546         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10547         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10548         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10549
10550 2011-05-21  Bruno Haible  <bruno@clisp.org>
10551
10552         memcmp: Move AC_LIBOBJ invocations to module description.
10553         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10554         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10555         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10556         * modules/memcmp (configure.ac): ... to here.
10557         (Depends-on): Update conditions.
10558
10559 2011-05-21  Bruno Haible  <bruno@clisp.org>
10560
10561         memchr: Respect rules for use of AC_LIBOBJ.
10562         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10563         invocations from here...
10564         * modules/memchr (configure.ac): ... to here.
10565
10566 2011-05-21  Bruno Haible  <bruno@clisp.org>
10567
10568         mbtowc: Move AC_LIBOBJ invocations to module description.
10569         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10570         invocations from here...
10571         * modules/mbtowc (configure.ac): ... to here.
10572
10573 2011-05-21  Bruno Haible  <bruno@clisp.org>
10574
10575         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10576         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10577         gl_PREREQ_MBSRTOWCS invocations from here...
10578         * modules/mbsrtowcs (configure.ac): ... to here.
10579
10580 2011-05-21  Bruno Haible  <bruno@clisp.org>
10581
10582         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10583         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10584         gl_PREREQ_MBSNRTOWCS invocations from here...
10585         * modules/mbsnrtowcs (configure.ac): ... to here.
10586
10587 2011-05-21  Bruno Haible  <bruno@clisp.org>
10588
10589         mbsinit: Move AC_LIBOBJ invocations to module description.
10590         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10591         invocations from here...
10592         * modules/mbsinit (configure.ac): ... to here.
10593
10594 2011-05-21  Bruno Haible  <bruno@clisp.org>
10595
10596         mbrlen: Move AC_LIBOBJ invocations to module description.
10597         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10598         invocations from here...
10599         * modules/mbrlen (configure.ac): ... to here.
10600
10601 2011-05-21  Bruno Haible  <bruno@clisp.org>
10602
10603         mbrtowc: Respect rules for use of AC_LIBOBJ.
10604         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10605         invocations from here...
10606         * modules/mbrtowc (configure.ac): ... to here.
10607
10608 2011-05-21  Bruno Haible  <bruno@clisp.org>
10609
10610         malloc-*: Move AC_LIBOBJ invocations to module description.
10611         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10612         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10613         AC_LIBOBJ invocations from here...
10614         * modules/malloc-gnu (configure.ac): ... to here.
10615         * modules/malloc-posix (configure.ac): ... and here.
10616
10617 2011-05-21  Bruno Haible  <bruno@clisp.org>
10618
10619         lstat, openat: Respect rules for use of AC_LIBOBJ.
10620         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10621         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10622         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10623         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10624         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10625         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10626         here.
10627         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10628
10629 2011-05-21  Bruno Haible  <bruno@clisp.org>
10630
10631         lseek: Move AC_LIBOBJ invocations to module description.
10632         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10633         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10634         * modules/lseek (configure.ac): ... to here.
10635
10636 2011-05-21  Bruno Haible  <bruno@clisp.org>
10637
10638         linkat: Move AC_LIBOBJ invocations to module description.
10639         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10640         here...
10641         * modules/linkat (configure.ac): ... to here.
10642
10643 2011-05-21  Bruno Haible  <bruno@clisp.org>
10644
10645         link: Respect rules for use of AC_LIBOBJ.
10646         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10647         * modules/link (configure.ac): ... to here.
10648
10649 2011-05-21  Bruno Haible  <bruno@clisp.org>
10650
10651         lchown: Move AC_LIBOBJ invocations to module description.
10652         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10653         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10654         * modules/lchown (configure.ac): ... to here.
10655
10656 2011-05-21  Bruno Haible  <bruno@clisp.org>
10657
10658         iswctype: Move AC_LIBOBJ invocations to module description.
10659         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10660         here...
10661         * modules/iswctype (configure.ac): ... to here.
10662
10663 2011-05-21  Bruno Haible  <bruno@clisp.org>
10664
10665         iswblank: Move AC_LIBOBJ invocations to module description.
10666         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10667         here...
10668         * modules/iswblank (configure.ac): ... to here.
10669
10670 2011-05-21  Bruno Haible  <bruno@clisp.org>
10671
10672         atanl: Move AC_LIBOBJ invocations to module description.
10673         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10674         * modules/atanl (configure.ac): ... to here.
10675
10676 2011-05-21  Bruno Haible  <bruno@clisp.org>
10677
10678         acosl: Move AC_LIBOBJ invocations to module description.
10679         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10680         * modules/acosl (configure.ac): ... to here.
10681
10682 2011-05-21  Bruno Haible  <bruno@clisp.org>
10683
10684         asinl: Respect rules for use of AC_LIBOBJ.
10685         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10686         * modules/asinl (configure.ac): ... to here.
10687
10688 2011-05-21  Bruno Haible  <bruno@clisp.org>
10689
10690         tanl: Move AC_LIBOBJ invocations to module description.
10691         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10692         * modules/tanl (configure.ac): ... to here.
10693
10694 2011-05-21  Bruno Haible  <bruno@clisp.org>
10695
10696         cosl: Move AC_LIBOBJ invocations to module description.
10697         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10698         * modules/cosl (configure.ac): ... to here.
10699
10700 2011-05-21  Bruno Haible  <bruno@clisp.org>
10701
10702         sinl: Move AC_LIBOBJ invocations to module description.
10703         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10704         * modules/sinl (configure.ac): ... to here.
10705
10706 2011-05-21  Bruno Haible  <bruno@clisp.org>
10707
10708         logl: Move AC_LIBOBJ invocations to module description.
10709         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10710         * modules/logl (configure.ac): ... to here.
10711
10712 2011-05-21  Bruno Haible  <bruno@clisp.org>
10713
10714         expl: Move AC_LIBOBJ invocations to module description.
10715         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10716         * modules/expl (configure.ac): ... to here.
10717
10718 2011-05-21  Bruno Haible  <bruno@clisp.org>
10719
10720         roundl: Move AC_LIBOBJ invocations to module description.
10721         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10722         * modules/roundl (configure.ac): ... to here.
10723
10724 2011-05-21  Bruno Haible  <bruno@clisp.org>
10725
10726         round: Move AC_LIBOBJ invocations to module description.
10727         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10728         * modules/round (configure.ac): ... to here.
10729
10730 2011-05-21  Bruno Haible  <bruno@clisp.org>
10731
10732         roundf: Move AC_LIBOBJ invocations to module description.
10733         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10734         * modules/roundf (configure.ac): ... to here.
10735
10736 2011-05-21  Bruno Haible  <bruno@clisp.org>
10737
10738         truncl: Move AC_LIBOBJ invocations to module description.
10739         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10740         * modules/truncl (configure.ac): ... to here.
10741
10742 2011-05-21  Bruno Haible  <bruno@clisp.org>
10743
10744         trunc: Move AC_LIBOBJ invocations to module description.
10745         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10746         * modules/trunc (configure.ac): ... to here.
10747
10748 2011-05-21  Bruno Haible  <bruno@clisp.org>
10749
10750         truncf: Move AC_LIBOBJ invocations to module description.
10751         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10752         * modules/truncf (configure.ac): ... to here.
10753
10754 2011-05-21  Bruno Haible  <bruno@clisp.org>
10755
10756         ceill: Move AC_LIBOBJ invocations to module description.
10757         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10758         * modules/ceill (configure.ac): ... to here.
10759
10760 2011-05-21  Bruno Haible  <bruno@clisp.org>
10761
10762         ceil: Move AC_LIBOBJ invocations to module description.
10763         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10764         * modules/ceil (configure.ac): ... to here.
10765
10766 2011-05-21  Bruno Haible  <bruno@clisp.org>
10767
10768         ceilf: Move AC_LIBOBJ invocations to module description.
10769         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10770         * modules/ceilf (configure.ac): ... to here.
10771
10772 2011-05-21  Bruno Haible  <bruno@clisp.org>
10773
10774         floorl: Respect rules for use of AC_LIBOBJ.
10775         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10776         * modules/floorl (configure.ac): ... to here.
10777
10778 2011-05-21  Bruno Haible  <bruno@clisp.org>
10779
10780         floor: Respect rules for use of AC_LIBOBJ.
10781         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10782         * modules/floor (configure.ac): ... to here.
10783
10784 2011-05-21  Bruno Haible  <bruno@clisp.org>
10785
10786         floorf: Move AC_LIBOBJ invocations to module description.
10787         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10788         * modules/floorf (configure.ac): ... to here.
10789
10790 2011-05-20  Bruno Haible  <bruno@clisp.org>
10791
10792         sqrtl: Respect rules for use of AC_LIBOBJ.
10793         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10794         * modules/sqrtl (configure.ac): ... to here.
10795
10796 2011-05-20  Bruno Haible  <bruno@clisp.org>
10797
10798         ldexpl: Respect rules for use of AC_LIBOBJ.
10799         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10800         * modules/ldexpl (configure.ac): ... to here.
10801
10802 2011-05-20  Bruno Haible  <bruno@clisp.org>
10803
10804         frexpl*: Respect rules for use of AC_LIBOBJ.
10805         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10806         invocation from here...
10807         * modules/frexpl (configure.ac): ... to here.
10808         * modules/frexpl-nolibm (configure.ac): ... and here.
10809
10810 2011-05-20  Bruno Haible  <bruno@clisp.org>
10811
10812         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10813         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10814         invocation from here...
10815         * modules/frexp (configure.ac): ... to here.
10816         * modules/frexp-nolibm (configure.ac): ... and here.
10817
10818 2011-05-20  Bruno Haible  <bruno@clisp.org>
10819
10820         isnan: Respect rules for use of AC_LIBOBJ.
10821         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10822         invocations here.
10823         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10824         REPLACE_ISNAN.
10825         * modules/isnand (configure.ac): Likewise.
10826         * modules/isnanl (configure.ac): Likewise.
10827
10828 2011-05-20  Bruno Haible  <bruno@clisp.org>
10829
10830         isnanl*: Respect rules for use of AC_LIBOBJ.
10831         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10832         invocation from here...
10833         * modules/isnanl (configure.ac): ... to here.
10834         * modules/isnanl-nolibm (configure.ac): ... and here.
10835
10836 2011-05-20  Bruno Haible  <bruno@clisp.org>
10837
10838         isnand*: Move AC_LIBOBJ invocations to module description.
10839         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10840         invocation from here...
10841         * modules/isnand (configure.ac): ... to here.
10842         * modules/isnand-nolibm (configure.ac): ... and here.
10843
10844 2011-05-20  Bruno Haible  <bruno@clisp.org>
10845
10846         isnanf*: Move AC_LIBOBJ invocations to module description.
10847         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10848         invocation from here...
10849         * modules/isnanf (configure.ac): ... to here.
10850         * modules/isnanf-nolibm (configure.ac): ... and here.
10851
10852 2011-05-20  Bruno Haible  <bruno@clisp.org>
10853
10854         isnan*: Separate the AC_LIBOBJ invocations.
10855         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10856         AC_LIBOBJ invocation.
10857         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10858         here.
10859         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10860         AC_LIBOBJ invocation.
10861         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10862         here.
10863         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10864         AC_LIBOBJ invocation.
10865         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10866         here.
10867         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10868
10869 2011-05-08  Bruno Haible  <bruno@clisp.org>
10870
10871         isinf: Move AC_LIBOBJ invocations to module description.
10872         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10873         * modules/isinf (configure.ac): ... to here.
10874
10875 2011-05-08  Bruno Haible  <bruno@clisp.org>
10876
10877         isfinite: Move AC_LIBOBJ invocations to module description.
10878         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10879         * modules/isfinite (configure.ac): ... to here.
10880
10881 2011-05-08  Bruno Haible  <bruno@clisp.org>
10882
10883         isblank: Move AC_LIBOBJ invocations to module description.
10884         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10885         here...
10886         * modules/isblank (configure.ac): ... to here.
10887
10888 2011-05-08  Bruno Haible  <bruno@clisp.org>
10889
10890         isapipe: Move AC_LIBOBJ invocations to module description.
10891         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10892         gl_PREREQ_ISAPIPE invocations from here...
10893         * modules/isapipe (configure.ac): ... to here.
10894         (Depends-on): Update condition.
10895
10896 2011-05-08  Bruno Haible  <bruno@clisp.org>
10897
10898         ioctl: Move AC_LIBOBJ invocations to module description.
10899         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10900         invocations from here...
10901         * modules/ioctl (configure.ac): ... to here.
10902         (Depends-on): Update condition.
10903
10904 2011-05-08  Bruno Haible  <bruno@clisp.org>
10905
10906         imaxdiv: Move AC_LIBOBJ invocations to module description.
10907         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10908         invocations from here...
10909         * modules/imaxdiv (configure.ac): ... to here.
10910
10911 2011-05-08  Bruno Haible  <bruno@clisp.org>
10912
10913         imaxabs: Move AC_LIBOBJ invocations to module description.
10914         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10915         invocations from here...
10916         * modules/imaxabs (configure.ac): ... to here.
10917
10918 2011-05-08  Bruno Haible  <bruno@clisp.org>
10919
10920         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10922         AC_LIBOBJ invocations from here...
10923         * modules/getaddrinfo (configure.ac): ... to here.
10924         (Depends-on): Add conditions.
10925
10926 2011-05-08  Bruno Haible  <bruno@clisp.org>
10927
10928         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10930         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10931         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10932         (gl_PREREQ_INET_PTON): ... from here.
10933         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10934         gl_PREREQ_INET_PTON here.
10935         (Depends-on): Update condition.
10936
10937 2011-05-08  Bruno Haible  <bruno@clisp.org>
10938
10939         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10940         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10941         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10942         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10943         (gl_PREREQ_INET_NTOP): ... from here.
10944         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10945         gl_PREREQ_INET_NTOP here.
10946         (Depends-on): Update condition.
10947
10948 2011-05-08  Bruno Haible  <bruno@clisp.org>
10949
10950         iconv_open: Move AC_LIBOBJ invocations to module description.
10951         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10952         AC_LIBOBJ invocations from here...
10953         * modules/iconv_open (configure.ac): ... to here.
10954
10955 2011-05-08  Bruno Haible  <bruno@clisp.org>
10956
10957         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10958         If module 'iconv_open' is among the main modules and module
10959         'iconv_open-utf' is among the tests dependencies, then
10960         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10961         return the special iconv_t values. Therefore iconv() and iconv_close()
10962         must support these special iconv_t values, already in lib, not only in
10963         tests.
10964         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10965         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10966         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10967         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10968         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10969         (Depends-on): Add the dependencies of iconv_open-utf.
10970         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10971         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10972         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10973
10974 2011-05-08  Bruno Haible  <bruno@clisp.org>
10975
10976         group-member: Move AC_LIBOBJ invocations to module description.
10977         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10978         gl_PREREQ_GROUP_MEMBER invocations from here...
10979         * modules/group-member (configure.ac): ... to here.
10980
10981 2011-05-08  Bruno Haible  <bruno@clisp.org>
10982
10983         grantpt: Move AC_LIBOBJ invocations to module description.
10984         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10985         invocations from here...
10986         * modules/grantpt (configure.ac): ... to here.
10987
10988 2011-05-08  Bruno Haible  <bruno@clisp.org>
10989
10990         glob: Move AC_LIBOBJ invocations to module description.
10991         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10992         from here...
10993         * modules/glob (configure.ac): ... to here.
10994
10995 2011-05-08  Bruno Haible  <bruno@clisp.org>
10996
10997         getusershell: Move AC_LIBOBJ invocations to module description.
10998         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10999         Move AC_LIBOBJ invocation from here...
11000         * modules/getusershell (configure.ac): ... to here.
11001         (Depends-on): Update condition.
11002
11003 2011-05-08  Bruno Haible  <bruno@clisp.org>
11004
11005         gettimeofday: Move AC_LIBOBJ invocations to module description.
11006         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11007         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11008         gl_PREREQ_GETTIMEOFDAY invocations from here...
11009         * modules/gettimeofday (configure.ac): ... to here.
11010
11011 2011-05-08  Bruno Haible  <bruno@clisp.org>
11012
11013         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11014         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11015         just gl_FUNC_TZSET.
11016         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11017         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11018         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11019         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11020
11021 2011-05-08  Bruno Haible  <bruno@clisp.org>
11022
11023         getsubopt: Move AC_LIBOBJ invocations to module description.
11024         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11025         gl_PREREQ_GETSUBOPT invocations from here...
11026         * modules/getsubopt (configure.ac): ... to here.
11027
11028 2011-05-08  Bruno Haible  <bruno@clisp.org>
11029
11030         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11031         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11032         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11033         * modules/getpass-gnu (configure.ac): ... to here.
11034
11035 2011-05-08  Bruno Haible  <bruno@clisp.org>
11036
11037         getpass: Move AC_LIBOBJ invocations to module description.
11038         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11039         gl_PREREQ_GETPASS invocations from here...
11040         * modules/getpass (configure.ac): ... to here.
11041
11042 2011-05-08  Bruno Haible  <bruno@clisp.org>
11043
11044         getpagesize: Move AC_LIBOBJ invocations to module description.
11045         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11046         from here...
11047         * modules/getpagesize (configure.ac): ... to here.
11048
11049 2011-05-08  Bruno Haible  <bruno@clisp.org>
11050
11051         getopt: Move AC_LIBOBJ invocations to module description.
11052         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11053         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11054         invocations from here...
11055         * modules/getopt-gnu (configure.ac): ... to here.
11056         * modules/getopt-posix (configure.ac): ... and here.
11057         (Depends-on): Update condition.
11058
11059 2011-05-08  Bruno Haible  <bruno@clisp.org>
11060
11061         getopt, argp: Respect rules for use of AC_LIBOBJ.
11062         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11063         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11064         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11065         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11066
11067 2011-05-08  Bruno Haible  <bruno@clisp.org>
11068
11069         getlogin_r: Move AC_LIBOBJ invocations to module description.
11070         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11071         gl_PREREQ_GETLOGIN_R invocations from here...
11072         * modules/getlogin_r (configure.ac): ... to here.
11073
11074 2011-05-08  Bruno Haible  <bruno@clisp.org>
11075
11076         getlogin: Move AC_LIBOBJ invocations to module description.
11077         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11078         here...
11079         * modules/getlogin (configure.ac): ... to here.
11080
11081 2011-05-08  Bruno Haible  <bruno@clisp.org>
11082
11083         getloadavg: Move AC_LIBOBJ invocations to module description.
11084         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11085         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11086         * modules/getloadavg (configure.ac): ... to here.
11087
11088 2011-05-08  Bruno Haible  <bruno@clisp.org>
11089
11090         gethrxtime: Move AC_LIBOBJ invocations to module description.
11091         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11092         LIB_GETHRXTIME from here...
11093         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11094         invocations from here...
11095         * modules/gethrxtime (configure.ac): ... to here.
11096
11097 2011-05-08  Bruno Haible  <bruno@clisp.org>
11098
11099         gethostname: Move AC_LIBOBJ invocations to module description.
11100         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11101         gl_PREREQ_GETHOSTNAME invocations from here...
11102         * modules/gethostname (configure.ac): ... to here.
11103
11104 2011-05-08  Bruno Haible  <bruno@clisp.org>
11105
11106         getgroups: Move AC_LIBOBJ invocations to module description.
11107         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11108         here...
11109         * modules/getgroups (configure.ac): ... to here.
11110
11111 2011-05-08  Bruno Haible  <bruno@clisp.org>
11112
11113         getdtablesize: Move AC_LIBOBJ invocations to module description.
11114         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11115         invocation from here...
11116         * modules/getdtablesize (configure.ac): ... to here.
11117
11118 2011-05-08  Bruno Haible  <bruno@clisp.org>
11119
11120         getdomainname: Move AC_LIBOBJ invocations to module description.
11121         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11122         gl_PREREQ_GETDOMAINNAME invocations from here...
11123         * modules/getdomainname (configure.ac): ... to here.
11124
11125 2011-05-08  Bruno Haible  <bruno@clisp.org>
11126
11127         getline: Move AC_LIBOBJ invocations to module description.
11128         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11129         invocations from here...
11130         * modules/getline (configure.ac): ... to here.
11131
11132 2011-05-08  Bruno Haible  <bruno@clisp.org>
11133
11134         getline: Simplify.
11135         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11136         It's already handled through the module dependency.
11137
11138 2011-05-08  Bruno Haible  <bruno@clisp.org>
11139
11140         getdelim: Move AC_LIBOBJ invocations to module description.
11141         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11142         and gl_PREREQ_GETDELIM invocations from here...
11143         * modules/getdelim (configure.ac): ... to here.
11144         (Depends-on): Fix condition.
11145
11146 2011-05-08  Bruno Haible  <bruno@clisp.org>
11147
11148         getcwd: Move AC_LIBOBJ invocations to module description.
11149         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11150         invocations from here...
11151         * modules/getcwd (configure.ac): ... to here.
11152
11153 2011-05-08  Bruno Haible  <bruno@clisp.org>
11154
11155         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11156         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11157         here...
11158         * modules/getcwd-lgpl (configure.ac): ... to here.
11159
11160 2011-05-07  Bruno Haible  <bruno@clisp.org>
11161
11162         crypto/gc: Move AC_LIBOBJ invocations to module description.
11163         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11164         * modules/crypto/gc (configure.ac): ... to here.
11165
11166 2011-05-07  Bruno Haible  <bruno@clisp.org>
11167
11168         fwriting: Move AC_LIBOBJ invocations to module description.
11169         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11170         here...
11171         * modules/fwriting (configure.ac): ... to here.
11172
11173 2011-05-07  Bruno Haible  <bruno@clisp.org>
11174
11175         fwritable: Move AC_LIBOBJ invocations to module description.
11176         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11177         here...
11178         * modules/fwritable (configure.ac): ... to here.
11179
11180 2011-05-07  Bruno Haible  <bruno@clisp.org>
11181
11182         futimens: Move AC_LIBOBJ invocations to module description.
11183         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11184         here...
11185         * modules/futimens (configure.ac): ... to here.
11186
11187 2011-05-07  Bruno Haible  <bruno@clisp.org>
11188
11189         ftruncate: Move AC_LIBOBJ invocations to module description.
11190         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11191         gl_PREREQ_FTRUNCATE invocations from here...
11192         * modules/ftruncate (configure.ac): ... to here.
11193
11194 2011-05-07  Bruno Haible  <bruno@clisp.org>
11195
11196         fsync: Move AC_LIBOBJ invocations to module description.
11197         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11198         invocations from here...
11199         * modules/fsync (configure.ac): ... to here.
11200
11201 2011-05-07  Bruno Haible  <bruno@clisp.org>
11202
11203         fsusage: Move AC_LIBOBJ invocations to module description.
11204         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11205         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11206         * modules/fsusage (configure.ac): ... to here.
11207
11208 2011-05-07  Bruno Haible  <bruno@clisp.org>
11209
11210         freopen: Move AC_LIBOBJ invocations to module description.
11211         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11212         invocations from here...
11213         * modules/freopen (configure.ac): ... to here.
11214
11215 2011-05-07  Bruno Haible  <bruno@clisp.org>
11216
11217         free: Move AC_LIBOBJ invocations to module description.
11218         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11219         invocations from here...
11220         * modules/free (configure.ac): ... to here.
11221
11222 2011-05-07  Bruno Haible  <bruno@clisp.org>
11223
11224         freadable: Move AC_LIBOBJ invocations to module description.
11225         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11226         here...
11227         * modules/freadable (configure.ac): ... to here.
11228
11229 2011-05-07  Bruno Haible  <bruno@clisp.org>
11230
11231         fpurge: Move AC_LIBOBJ invocations to module description.
11232         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11233         invocations from here...
11234         * modules/fpurge (configure.ac): ... to here.
11235
11236 2011-05-07  Bruno Haible  <bruno@clisp.org>
11237
11238         fpending: Move AC_LIBOBJ invocations to module description.
11239         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11240         gl_FUNC_FPENDING.
11241         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11242         invocations from here...
11243         * modules/fpending (configure.ac): ... to here.
11244
11245 2011-05-07  Bruno Haible  <bruno@clisp.org>
11246
11247         fopen: Move AC_LIBOBJ invocations to module description.
11248         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11249         invocations from here...
11250         * modules/fopen (configure.ac): ... to here.
11251
11252 2011-05-07  Bruno Haible  <bruno@clisp.org>
11253
11254         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11255         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11256         gl_FUNC_FNMATCH_POSIX.
11257         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11258         invocations from here...
11259         * modules/fnmatch (configure.ac): ... to here.
11260         * modules/fnmatch-gnu (configure.ac): ... and here.
11261
11262 2011-05-07  Bruno Haible  <bruno@clisp.org>
11263
11264         flock: Move AC_LIBOBJ invocations to module description.
11265         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11266         invocations from here...
11267         * modules/flock (configure.ac): ... to here.
11268
11269 2011-05-07  Bruno Haible  <bruno@clisp.org>
11270
11271         fileblocks: Move AC_LIBOBJ invocations to module description.
11272         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11273         gl_PREREQ_FILEBLOCKS invocations from here...
11274         * modules/fileblocks (configure.ac): ... to here.
11275
11276 2011-05-06  Bruno Haible  <bruno@clisp.org>
11277
11278         fflush: Move AC_LIBOBJ invocations to module description.
11279         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11280         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11281         invocations from here...
11282         * modules/fflush (configure.ac): ... to here.
11283
11284 2011-05-06  Bruno Haible  <bruno@clisp.org>
11285
11286         fdopendir: Move AC_LIBOBJ invocations to module description.
11287         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11288         here...
11289         * modules/fdopendir (configure.ac): ... to here.
11290         (Depends-on): Improve conditions.
11291
11292 2011-05-06  Bruno Haible  <bruno@clisp.org>
11293
11294         _Exit: Move AC_LIBOBJ invocations to module description.
11295         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11296         invocations from here...
11297         * modules/_Exit (configure.ac): ... to here.
11298
11299 2011-05-21  Bruno Haible  <bruno@clisp.org>
11300
11301         euidaccess: Respect rules for use of AC_LIBOBJ.
11302         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11303         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11304         from here...
11305         * modules/euidaccess (configure.ac): ... to here.
11306
11307 2011-05-06  Bruno Haible  <bruno@clisp.org>
11308
11309         error: Move AC_LIBOBJ invocations to module description.
11310         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11311         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11312         invocations from here...
11313         * modules/error (configure.ac): ... to here.
11314
11315 2011-05-06  Bruno Haible  <bruno@clisp.org>
11316
11317         duplocale: Move AC_LIBOBJ invocations to module description.
11318         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11319         gl_PREREQ_DUPLOCALE invocations from here...
11320         * modules/duplocale (configure.ac): ... to here.
11321
11322 2011-05-05  Bruno Haible  <bruno@clisp.org>
11323
11324         dirfd: Move AC_LIBOBJ invocations to module description.
11325         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11326         gl_FUNC_DIRFD.
11327         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11328         here...
11329         * modules/dirfd (configure.ac): ... to here.
11330         (Depends-on): Fix condition.
11331
11332 2011-05-05  Bruno Haible  <bruno@clisp.org>
11333
11334         chown: Respect rules for use of AC_LIBOBJ.
11335         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11336         * modules/chown (configure.ac): ... to here.
11337
11338 2011-05-05  Bruno Haible  <bruno@clisp.org>
11339
11340         chdir-long: Move AC_LIBOBJ invocations to module description.
11341         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11342         gl_PREREQ_CHDIR_LONG invocations from here...
11343         * modules/chdir-long (configure.ac): ... to here.
11344
11345 2011-05-05  Bruno Haible  <bruno@clisp.org>
11346
11347         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11348         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11349         from here...
11350         * modules/canonicalize-lgpl (configure.ac): ... to here.
11351
11352 2011-05-05  Bruno Haible  <bruno@clisp.org>
11353
11354         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11355         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11356         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11357         REPLACE_CALLOC.
11358         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11359         * modules/calloc-gnu (configure.ac): Likewise.
11360
11361 2011-05-05  Bruno Haible  <bruno@clisp.org>
11362
11363         btowc: Move AC_LIBOBJ invocations to module description.
11364         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11365         invocations from here...
11366         * modules/btowc (configure.ac): ... to here.
11367
11368 2011-05-21  Bruno Haible  <bruno@clisp.org>
11369
11370         atexit: Move AC_LIBOBJ invocations to module description.
11371         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11372         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11373         here...
11374         * modules/atexit (configure.ac): ... to here.
11375
11376 2011-05-05  Bruno Haible  <bruno@clisp.org>
11377
11378         atoll: Move AC_LIBOBJ invocations to module description.
11379         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11380         invocations from here...
11381         * modules/atoll (configure.ac): ... to here.
11382
11383 2011-05-05  Bruno Haible  <bruno@clisp.org>
11384
11385         argz: Move AC_LIBOBJ invocations to module description.
11386         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11387         * modules/argz (configure.ac): ... to here.
11388
11389 2011-05-05  Bruno Haible  <bruno@clisp.org>
11390
11391         alphasort: Move AC_LIBOBJ invocations to module description.
11392         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11393         gl_PREREQ_ALPHASORT invocations from here...
11394         * modules/alphasort (configure.ac): ... to here.
11395
11396 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         verify: new macro verify_expr; verify_true deprecated
11399         * NEWS: Mention this.
11400         * doc/verify.texi (Compile-time Assertions): Document this.
11401         * lib/verify.h (verify_true): Deprecate.
11402         (verify_expr): New macro.
11403         * tests/test-verify.c (function): Test verify_expr.
11404
11405 2011-06-14  Jim Meyering  <meyering@redhat.com>
11406
11407         init.sh: give more portable redirection-related advice in a comment
11408         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11409         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11410         for lots of discussion.  Stefano Lattarini suggested the solution
11411         of putting "9>&2" after the command.  Reported by Bruno Haible.
11412
11413 2011-06-13  Bruno Haible  <bruno@clisp.org>
11414
11415         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11416         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11417         'none'.
11418
11419 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11420
11421         ftoastr: use strtof only if HAVE_STRTOF
11422         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11423         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11424         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11425         * modules/ftoastr (configure.ac): Check for strtof.
11426
11427 2011-06-13  Bruno Haible  <bruno@clisp.org>
11428
11429         gnulib-tool: Addendum to 2011-06-08 commit.
11430         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11431         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11432
11433 2011-06-13  Bruno Haible  <bruno@clisp.org>
11434
11435         fseeko: Provide a non-inline replacement of fseek().
11436         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11437         * modules/fseeko (Depends-on): Add fseek.
11438         * modules/fseek (License): Change to LGPLv2+.
11439
11440 2011-06-13  Bruno Haible  <bruno@clisp.org>
11441
11442         ftello: Provide a non-inline replacement of ftell().
11443         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11444         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11445         not have ftello() (such as on mingw).
11446         * modules/ftello (Depends-on): Add ftell.
11447         * modules/ftell (License): Change to LGPLv2+.
11448
11449 2011-05-07  Bruno Haible  <bruno@clisp.org>
11450
11451         ftell: Move AC_LIBOBJ invocations to module description.
11452         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11453         * modules/ftell (configure.ac): ... to here.
11454
11455 2011-05-07  Bruno Haible  <bruno@clisp.org>
11456
11457         ftello: Respect rules for use of AC_LIBOBJ.
11458         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11459         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11460         here...
11461         * modules/ftello (configure.ac): ... to here.
11462
11463 2011-05-07  Bruno Haible  <bruno@clisp.org>
11464
11465         fseeko: Simplify.
11466         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11467         (gl_FUNC_FSEEKO): Inline it here.
11468
11469 2011-05-07  Bruno Haible  <bruno@clisp.org>
11470
11471         fseek: Move AC_LIBOBJ invocations to module description.
11472         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11473         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11474         * modules/fseek (configure.ac): ... to here.
11475
11476 2011-05-07  Bruno Haible  <bruno@clisp.org>
11477
11478         fseek: Respect rules for use of AC_LIBOBJ.
11479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11480         here...
11481         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11482
11483 2011-05-07  Bruno Haible  <bruno@clisp.org>
11484
11485         fseeko: Respect rules for use of AC_LIBOBJ.
11486         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11487         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11488         here...
11489         * modules/fseeko (configure.ac): ... to here.
11490
11491 2011-06-13  Bruno Haible  <bruno@clisp.org>
11492
11493         gnulib-tool: Allow comments in the 'Depends-on' section.
11494         * doc/gnulib.texi (Module description): Mention comment syntax in the
11495         Depends-on section.
11496         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11497
11498 2011-06-13  Bruno Haible  <bruno@clisp.org>
11499
11500         file-set.h: guard __attibute__ use, now that it's not always defined
11501         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11502         versions that support it.  This fixes a coreutils build failure with
11503         the vendor cc on HP-UX 11.31.
11504
11505 2011-06-12  Bruno Haible  <bruno@clisp.org>
11506
11507         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11508         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11509         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11510         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11511         (acl, aclsort): New declarations.
11512         (aclv_nontrivial): New declaration.
11513         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11514         (file_has_acl): Read also the second kind of HP-UX ACLs.
11515         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11516         kind of HP-UX ACLs if the first kind fails.
11517         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11518         second kind of HP-UX ACLs.
11519         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11520         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11521         agree.
11522         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11523         hpuxjfs.
11524         Handle hpuxjfs.
11525         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11526         hpuxjfs.
11527         Handle hpuxjfs.
11528         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11529         (func_test_same_acls): Use both lsacl and getacl.
11530         Handle hpuxjfs.
11531         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11532         (func_test_same_acls): Use both lsacl and getacl.
11533         Handle hpuxjfs.
11534
11535 2011-06-12  Bruno Haible  <bruno@clisp.org>
11536
11537         acl: Complete the 2010-08-10 fix.
11538         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11539         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11540         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11541         explicitly.
11542         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11543         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11544
11545 2011-06-12  Bruno Haible  <bruno@clisp.org>
11546
11547         spawn-pipe tests: Comments.
11548         * tests/test-spawn-pipe-child.c (main): Update comment.
11549         Reported by James Youngman <jay@gnu.org>.
11550
11551 2011-06-11  James Youngman  <jay@gnu.org>
11552
11553         New module 'stat-size'.
11554         * modules/stat-size: New module.  Provides macros for accessing
11555         file size information in instances of struct stat.  Depends on the
11556         fileblocks module because it calls st_blocks.
11557         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11558         * doc/gnulib.texi: Include stat-size.texi.
11559         * doc/stat-size.texi: Documentation for this module.
11560         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11561         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11562         AC_STRUCT_ST_BLOCKS.
11563
11564 2011-06-09  Bruno Haible  <bruno@clisp.org>
11565
11566         thread: Support pthreads-win32.
11567         * lib/glthread/thread.h (gl_thread_self): Define differently on
11568         pthreads-win32.
11569         (gl_null_thread): New declaration.
11570         (gl_thread_self_pointer): New macro.
11571         * lib/glthread/thread.c (gl_null_thread): New constant.
11572         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11573         gl_thread_self.
11574         * tests/test-tls.c: Likewise.
11575         Suggested by Paul Eggert. Reported by Eric Blake.
11576
11577 2011-06-09  Bruno Haible  <bruno@clisp.org>
11578
11579         thread: Fix confusion between NULL and 0.
11580         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11581         Reported by Paul Eggert.
11582
11583 2011-06-09  Bruno Haible  <bruno@clisp.org>
11584
11585         spawn-pipe tests: Avoid test failure on HP-UX 11.
11586         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11587         is closed.
11588
11589 2011-06-09  Bruno Haible  <bruno@clisp.org>
11590
11591         acl tests: Fix compilation error on HP-UX 11.
11592         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11593
11594 2011-06-09  Bruno Haible  <bruno@clisp.org>
11595
11596         rmdir: Avoid test failure on HP-UX 10.20.
11597         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11598         EEXIST.
11599
11600 2011-06-08  Eric Blake  <eblake@redhat.com>
11601
11602         perror: fix test on mingw
11603         * modules/perror-tests (Depends-on): Add dup2.
11604
11605         strerror_r-posix: fix on MacOS
11606         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11607         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11608         logic bug.
11609         * lib/strerror_r.c (strerror_r): Fix the bug.
11610         * lib/strerror.c (strerror): Likewise.
11611         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11612         problem.
11613         * doc/posix-functions/strerror.texi (strerror): Likewise.
11614         * doc/posix-functions/perror.texi (perror): Likewise.
11615         * tests/test-strerror.c (main): Enhance test.
11616         * tests/test-strerror_r.c (main): Likewise.
11617
11618 2011-06-08  Bruno Haible  <bruno@clisp.org>
11619
11620         gnulib-tool: Better isolation between different gnulib-tool invocations.
11621         * gnulib-tool: New option --witness-c-macro.
11622         (witness_c_macro): New variable.
11623         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11624         AM_CPPFLAGS define it as a C macro.
11625         (func_emit_tests_Makefile_am): Likewise.
11626         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11627         read it from there.
11628         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11629         m4_define, not AC_DEFUN.
11630         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11631         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11632         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11633         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11634         s|...|...|, to substitute the values of the GNULIB_* module indicator
11635         variables.
11636         * modules/dirent (Makefile.am): Likewise.
11637         * modules/fcntl-h (Makefile.am): Likewise.
11638         * modules/iconv-h (Makefile.am): Likewise.
11639         * modules/langinfo (Makefile.am): Likewise.
11640         * modules/locale (Makefile.am): Likewise.
11641         * modules/math (Makefile.am): Likewise.
11642         * modules/netdb (Makefile.am): Likewise.
11643         * modules/poll-h (Makefile.am): Likewise.
11644         * modules/pty (Makefile.am): Likewise.
11645         * modules/search (Makefile.am): Likewise.
11646         * modules/signal (Makefile.am): Likewise.
11647         * modules/spawn (Makefile.am): Likewise.
11648         * modules/stdio (Makefile.am): Likewise.
11649         * modules/stdlib (Makefile.am): Likewise.
11650         * modules/string (Makefile.am): Likewise.
11651         * modules/sys_ioctl (Makefile.am): Likewise.
11652         * modules/sys_select (Makefile.am): Likewise.
11653         * modules/sys_socket (Makefile.am): Likewise.
11654         * modules/sys_stat (Makefile.am): Likewise.
11655         * modules/sys_times (Makefile.am): Likewise.
11656         * modules/sys_utsname (Makefile.am): Likewise.
11657         * modules/sys_wait (Makefile.am): Likewise.
11658         * modules/termios (Makefile.am): Likewise.
11659         * modules/time (Makefile.am): Likewise.
11660         * modules/unistd (Makefile.am): Likewise.
11661         * modules/wchar (Makefile.am): Likewise.
11662
11663 2011-06-08  Eric Blake  <eblake@redhat.com>
11664
11665         strerror: simplify replacement
11666         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11667         * modules/strerror (configure.ac): No prereqs needed here...
11668         * modules/strerror-override (configure.ac): ...but this needs it.
11669         (Files): Add file for needed prereq macro.
11670
11671 2011-06-08  Bruno Haible  <bruno@clisp.org>
11672
11673         strerror_r-posix: Tweaks.
11674         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11675         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11676         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11677         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11678         (gl_FUNC_STRERROR_R): ... to here.
11679         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11680
11681 2011-06-07  Eric Blake  <eblake@redhat.com>
11682
11683         perror: document fixed bugs
11684         * doc/posix-functions/perror.texi (perror): Document recent
11685         patches.
11686
11687 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11688
11689         stat-time: get_stat_birthtime failure is better-defined
11690         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11691         return a timestamp whose tv_sec and tv_nsec values are both -1.
11692         Previously, the spec said only that the tv_nsec value was negative.
11693         This upward-compatible change simplifies GNU tar a bit.
11694
11695 2011-06-07  Eric Blake  <eblake@redhat.com>
11696
11697         strerror_r-posix: work around cygwin 1.7.9
11698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11699         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11700         bug without replacing strerror_r.
11701         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11702         strerror_r is buggy, but without requiring strerror_r compilation.
11703         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11704
11705         test-perror: relax test to ignore cygwin bug
11706         * tests/test-perror2.c (main): Relax test on requiring detection
11707         of stream errors, and use unbuffered stream.
11708         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11709         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11710         * doc/posix-functions/fputc.texi (fputc): Likewise.
11711         * doc/posix-functions/fputs.texi (fputs): Likewise.
11712         * doc/posix-functions/fputws.texi (fputws): Likewise.
11713         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11714         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11715         * doc/posix-functions/getopt.texi (getopt): Likewise.
11716         * doc/posix-functions/perror.texi (perror): Likewise.
11717         * doc/posix-functions/printf.texi (printf): Likewise.
11718         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11719         * doc/posix-functions/psignal.texi (psignal): Likewise.
11720         * doc/posix-functions/putc.texi (putc): Likewise.
11721         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11722         Likewise.
11723         * doc/posix-functions/putchar.texi (putchar): Likewise.
11724         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11725         Likewise.
11726         * doc/posix-functions/puts.texi (puts): Likewise.
11727         * doc/posix-functions/putwc.texi (putwc): Likewise.
11728         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11729         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11730         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11731         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11732         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11733         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11734         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11735         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11736
11737 2011-05-22  Bruno Haible  <bruno@clisp.org>
11738
11739         strerror: Move AC_LIBOBJ invocations to module description.
11740         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11741         gl_PREREQ_STRERROR invocations from here...
11742         * modules/strerror (configure.ac): ... to here.
11743
11744 2011-05-21  Bruno Haible  <bruno@clisp.org>
11745
11746         perror: Use common idiom.
11747         * modules/perror (configure.ac): Reorder statements.
11748
11749 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11750
11751         tests: fix usage message in 'mktempd_'
11752         * tests/init.sh (mktempd_): In the usage message, use literal
11753         'mktempd_', not '$ME' (which is even undefined), as the name of
11754         the subroutine.
11755
11756 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11757
11758         tests init: new function 'fatal_', for hard errors
11759         Before this patch, the only way offered by tests/init.sh to
11760         properly signal a hard error was the `framework_failure_'
11761         function.  But the error message issued by that function,
11762         as its name would suggest, refers to a set-up failure in the
11763         testsuite, while hard errors can obviously also be due to
11764         other reasons.  The best way to fix this inconsistency is to
11765         introduce a new function with a more general error message.
11766         * tests/init.sh (fatal_): New function.
11767
11768 2011-06-06  Eric Blake  <eblake@redhat.com>
11769
11770         canonicalize-lgpl: use common idiom
11771         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11772         over newer POSIX -Rf.
11773         Reported by Bruno Haible.
11774
11775         canonicalize-lgpl: work around AIX realpath bug
11776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11777         * doc/posix-functions/realpath.texi (realpath): Document it.
11778         Reported by Bruno Haible.
11779
11780         strerror: work around FreeBSD bug
11781         * lib/strerror.c (strerror): Special case 0.
11782         Reported by Bruno Haible.
11783
11784         strerror-override: avoid bloating errno module
11785         * modules/errno (Files, configure.ac): Move replacement strings...
11786         * modules/strerror-override: ...to new module.
11787         * modules/strerror (Depends-on): Add strerror-override.
11788         * modules/strerror_r-posix (Depends-on): Likewise.
11789         * MODULES.html.sh: Document new module.
11790         Reported by Bruno Haible.
11791
11792 2011-06-06  Bruno Haible  <bruno@clisp.org>
11793
11794         spawn-pipe tests: Rename program.
11795         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11796         * tests/test-spawn-pipe-child.c: Update comment.
11797         * tests/test-spawn-pipe.sh: Update.
11798         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11799
11800         spawn-pipe tests: Link the child program only against libc.
11801         * tests/test-spawn-pipe-child.c: New file, extracted from
11802         tests/test-spawn-pipe.c.
11803         (main): Expect only one argument.
11804         (is_open): New function, copied from tests/test-pipe.c.
11805         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11806         (child_main): Remove function.
11807         (test_pipe): Pass only one argument to the child program.
11808         (main): Remove child process code. Expect the child program's name as
11809         first argument.
11810         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11811         argument.
11812         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11813         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11814         test-spawn-pipe-child against no libraries.
11815
11816 2011-06-06  Bruno Haible  <bruno@clisp.org>
11817
11818         careadlinkat: Avoid mismatch between ssize_t and int.
11819         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11820         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11821
11822 2011-06-06  Jim Meyering  <meyering@redhat.com>
11823
11824         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11825         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11826         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11827
11828 2011-06-05  Bruno Haible  <bruno@clisp.org>
11829
11830         ansi-c++-opt: Interoperability with libtool.
11831         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11832         set the variable to "no", not to ":".
11833         * NEWS: Mention the change.
11834
11835 2011-06-05  Bruno Haible  <bruno@clisp.org>
11836
11837         acl: Fix test failure on AIX 7.
11838         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11839         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11840
11841 2011-06-05  Bruno Haible  <bruno@clisp.org>
11842
11843         pipe-filter-ii: Fix test failure on AIX and IRIX.
11844         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11845         with EAGAIN, retry with a smaller buffer size.
11846
11847 2011-06-05  Bruno Haible  <bruno@clisp.org>
11848
11849         localename: Fix link dependencies.
11850         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11851         * modules/localename-tests (Makefile.am): Link test-localename with
11852         $(LIBTHREAD).
11853
11854 2011-06-05  Bruno Haible  <bruno@clisp.org>
11855
11856         error: Avoid gcc warning.
11857         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11858
11859 2011-06-05  Bruno Haible  <bruno@clisp.org>
11860
11861         unsetenv: Avoid gcc warning.
11862         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11863
11864 2011-06-05  Bruno Haible  <bruno@clisp.org>
11865
11866         setenv: Avoid gcc warning.
11867         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11868
11869 2011-06-05  Bruno Haible  <bruno@clisp.org>
11870
11871         sys_select: Ensure memset is declared also on AIX 7.
11872         * lib/sys_select.in.h: Include <string.h> also on AIX.
11873         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11874         self-contained also on AIX 7.1.
11875
11876 2011-06-04  Jim Meyering  <meyering@redhat.com>
11877
11878         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11879         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11880         function name, "error".
11881         (_gl_translatable_diag_func_re): New configurable variable.
11882
11883 2011-06-04  Bruno Haible  <bruno@clisp.org>
11884
11885         getopt: Avoid gcc warning.
11886         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11887
11888 2011-06-04  Bruno Haible  <bruno@clisp.org>
11889
11890         strerror_r: Fix comments.
11891         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11892         commit.
11893
11894 2011-06-04  Bruno Haible  <bruno@clisp.org>
11895
11896         perror: Fix compilation error.
11897         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11898         Undefine fprintf, not sprintf.
11899         * modules/perror (Depends-on): Remove intprops, verify.
11900
11901 2011-06-04  Bruno Haible  <bruno@clisp.org>
11902
11903         setlocale: Enable replacement on Cygwin 1.5.
11904         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11905         Cygwin 1.5.x.
11906         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11907         LC_CTYPE category also exists on Cygwin 1.5.x.
11908
11909 2011-06-04  Bruno Haible  <bruno@clisp.org>
11910
11911         strerror-override: Don't disable symbol renamings.
11912         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11913         * lib/strerror-override.c: Include config.h.
11914         (strerror_override): Don't undefine.
11915
11916 2011-06-03  Bruno Haible  <bruno@clisp.org>
11917
11918         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11919         * lib/localename.h: Update copyright header.
11920         * lib/localename.c: Likewise.
11921         * lib/relocatable.h: Likewise.
11922         * lib/relocatable.c: Likewise.
11923
11924 2011-06-02  Bruno Haible  <bruno@clisp.org>
11925
11926         doc: Fix a module name.
11927         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11928
11929 2011-06-02  Bruno Haible  <bruno@clisp.org>
11930
11931         pipe2: Remove dependency on 'nonblocking' module.
11932         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11933         O_NONBLOCK is defined by gnulib.
11934         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11935         is zero.
11936         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11937         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11938         defined by gnulib.
11939         (get_nonblocking_flag): New function.
11940         (main): Test O_NONBLOCK flag only if it is nonzero.
11941         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11942
11943 2011-06-03  Jim Meyering  <meyering@redhat.com>
11944
11945         maint: three new prohibit-header-without-use rules
11946         Prohibit use of cloexec.h, posixver.h, same.h without use.
11947         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11948         (sc_prohibit_posixver_without_use): Likewise.
11949         (sc_prohibit_same_without_use): Likewise.
11950
11951 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11952
11953         allocator: 'die' routine is now given requested size
11954         * lib/allocator.h (struct allocator.die): New size arg.
11955         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11956         If the actual problem is an ssize_t limitation, not a size_t or
11957         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11958
11959 2011-06-01  Eric Blake  <eblake@redhat.com>
11960
11961         strerror: drop strerror_r dependency
11962         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11963         * lib/strerror-override.c (strerror_override): ...to new file.
11964         * lib/strerror-override.h: Add prototype.
11965         * lib/strerror-impl.h: Delete.
11966         * lib/strerror.c (strerror): New implementation.
11967         * modules/errno (Files): Add new files.
11968         (configure.ac): Compile new file as appropriate.
11969         * modules/strerror (Files): Drop unused file.
11970         (Depends-on): Drop strerror_r-posix.
11971         * MODULES.html.sh: Document strerror_r-posix.
11972         Requested by Sam Steingold.
11973
11974         perror: call strerror_r directly
11975         * modules/perror (Files): Drop strerror-impl.h.
11976         * lib/perror.c (perror): Use our own stack buffer, rather than
11977         calling a wrapper that uses static storage.
11978         * doc/posix-functions/perror.texi (perror): Document a limitation
11979         of our replacement.
11980
11981         strerror_r: fix includes for FreeBSD
11982         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11983         since we use abort on some platforms.
11984         Reported by Matthias Bolte.
11985
11986 2011-05-31  Bruno Haible  <bruno@clisp.org>
11987
11988         Fix link errors in tests: openat-die uses gettext-h.
11989         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11990         against $(LIBINTL).
11991         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11992         against $(LIBINTL).
11993         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11994         $(LIBINTL).
11995         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11996         against $(LIBINTL).
11997         * modules/linkat-tests (Makefile.am): Link test-linkat against
11998         $(LIBINTL).
11999         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12000         $(LIBINTL).
12001         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12002         against $(LIBINTL).
12003         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12004         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12005         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12006         $(LIBINTL).
12007         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12008         $(LIBINTL).
12009         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12010         $(LIBINTL).
12011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12012
12013 2011-05-31  Bruno Haible  <bruno@clisp.org>
12014
12015         Fix link errors in tests: wait-process uses gettext-h.
12016         * modules/nonblocking-pipe-tests (Makefile.am): Set
12017         test_nonblocking_pipe_main_LDADD.
12018         * modules/nonblocking-socket-tests (Makefile.am): Link
12019         test-nonblocking-socket-main against $(LIBINTL).
12020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12021
12022 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12023
12024         assert-h: work around 'verify' incompatibility
12025         * lib/verify.h: Use @...@ directives, not ifdef.
12026         * modules/assert-h (assert.h): Implement the directives.
12027         (assert.h): Substitute the symbol-prefix more consistently.
12028
12029 2011-05-29  Jim Meyering  <meyering@redhat.com>
12030
12031         trim: remove three superfluous assignments
12032         * lib/trim.c (trim2): Remove three superfluous assignments
12033         and correct brace positioning.
12034
12035 2011-05-29  Bruno Haible  <bruno@clisp.org>
12036
12037         wctype-h: Avoid namespace pollution on Solaris 2.6.
12038         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12039         identifiers.
12040         * doc/posix-headers/wctype.texi: Mention the problem.
12041         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12042
12043 2011-05-28  Jim Meyering  <meyering@redhat.com>
12044
12045         parse-datetime.y: accommodate -Wstrict-overflow
12046         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12047         placate -Wstrict-overflow.
12048
12049         trim: avoid a warning from -O2 -Wstrict-overflow
12050         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12051
12052 2011-05-29  Bruno Haible  <bruno@clisp.org>
12053
12054         gnulib-tool: Fix bug in yesterday's commit.
12055         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12056         twice.
12057
12058 2011-05-29  Bruno Haible  <bruno@clisp.org>
12059
12060         Allow multiple gnulib generated include files to be combined.
12061         * gnulib-tool (func_compute_include_guard_prefix): New function.
12062         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12063         ${gl_include_guard_prefix} references.
12064         (func_import, func_create_testdir): Invoke
12065         func_compute_include_guard_prefix.
12066         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12067         * lib/ctype.in.h: Likewise.
12068         * lib/dirent.in.h: Likewise.
12069         * lib/errno.in.h: Likewise.
12070         * lib/fcntl.in.h: Likewise.
12071         * lib/float.in.h: Likewise.
12072         * lib/getopt.in.h: Likewise.
12073         * lib/iconv.in.h: Likewise.
12074         * lib/langinfo.in.h: Likewise.
12075         * lib/locale.in.h: Likewise.
12076         * lib/math.in.h: Likewise.
12077         * lib/netdb.in.h: Likewise.
12078         * lib/netinet_in.in.h: Likewise.
12079         * lib/poll.in.h: Likewise.
12080         * lib/pthread.in.h: Likewise.
12081         * lib/pty.in.h: Likewise.
12082         * lib/sched.in.h: Likewise.
12083         * lib/se-selinux.in.h: Likewise.
12084         * lib/search.in.h: Likewise.
12085         * lib/signal.in.h: Likewise.
12086         * lib/spawn.in.h: Likewise.
12087         * lib/stdarg.in.h: Likewise.
12088         * lib/stddef.in.h: Likewise.
12089         * lib/stdint.in.h: Likewise.
12090         * lib/stdio.in.h: Likewise.
12091         * lib/stdlib.in.h: Likewise.
12092         * lib/string.in.h: Likewise.
12093         * lib/strings.in.h: Likewise.
12094         * lib/sys_file.in.h: Likewise.
12095         * lib/sys_ioctl.in.h: Likewise.
12096         * lib/sys_select.in.h: Likewise.
12097         * lib/sys_socket.in.h: Likewise.
12098         * lib/sys_stat.in.h: Likewise.
12099         * lib/sys_time.in.h: Likewise.
12100         * lib/sys_times.in.h: Likewise.
12101         * lib/sys_uio.in.h: Likewise.
12102         * lib/sys_utsname.in.h: Likewise.
12103         * lib/sys_wait.in.h: Likewise.
12104         * lib/sysexits.in.h: Likewise.
12105         * lib/termios.in.h: Likewise.
12106         * lib/time.in.h: Likewise.
12107         * lib/unistd.in.h: Likewise.
12108         * lib/wchar.in.h: Likewise.
12109         * lib/wctype.in.h: Likewise.
12110         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12111         * modules/ctype (Makefile.am): Likewise.
12112         * modules/dirent (Makefile.am): Likewise.
12113         * modules/errno (Makefile.am): Likewise.
12114         * modules/fcntl-h (Makefile.am): Likewise.
12115         * modules/float (Makefile.am): Likewise.
12116         * modules/getopt-posix (Makefile.am): Likewise.
12117         * modules/iconv-h (Makefile.am): Likewise.
12118         * modules/langinfo (Makefile.am): Likewise.
12119         * modules/locale (Makefile.am): Likewise.
12120         * modules/math (Makefile.am): Likewise.
12121         * modules/netdb (Makefile.am): Likewise.
12122         * modules/netinet_in (Makefile.am): Likewise.
12123         * modules/poll-h (Makefile.am): Likewise.
12124         * modules/pthread (Makefile.am): Likewise.
12125         * modules/pty (Makefile.am): Likewise.
12126         * modules/sched (Makefile.am): Likewise.
12127         * modules/search (Makefile.am): Likewise.
12128         * modules/selinux-h (Makefile.am): Likewise.
12129         * modules/signal (Makefile.am): Likewise.
12130         * modules/spawn (Makefile.am): Likewise.
12131         * modules/stdarg (Makefile.am): Likewise.
12132         * modules/stddef (Makefile.am): Likewise.
12133         * modules/stdint (Makefile.am): Likewise.
12134         * modules/stdio (Makefile.am): Likewise.
12135         * modules/stdlib (Makefile.am): Likewise.
12136         * modules/string (Makefile.am): Likewise.
12137         * modules/strings (Makefile.am): Likewise.
12138         * modules/sys_file (Makefile.am): Likewise.
12139         * modules/sys_ioctl (Makefile.am): Likewise.
12140         * modules/sys_select (Makefile.am): Likewise.
12141         * modules/sys_socket (Makefile.am): Likewise.
12142         * modules/sys_stat (Makefile.am): Likewise.
12143         * modules/sys_time (Makefile.am): Likewise.
12144         * modules/sys_times (Makefile.am): Likewise.
12145         * modules/sys_uio (Makefile.am): Likewise.
12146         * modules/sys_utsname (Makefile.am): Likewise.
12147         * modules/sys_wait (Makefile.am): Likewise.
12148         * modules/sysexits (Makefile.am): Likewise.
12149         * modules/termios (Makefile.am): Likewise.
12150         * modules/time (Makefile.am): Likewise.
12151         * modules/unistd (Makefile.am): Likewise.
12152         * modules/wchar (Makefile.am): Likewise.
12153         * modules/wctype-h (Makefile.am): Likewise.
12154         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12155
12156 2011-05-29  Bruno Haible  <bruno@clisp.org>
12157
12158         assert-h: Allow multiple gnulib generated replacements to coexist.
12159         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12160
12161 2011-05-29  Bruno Haible  <bruno@clisp.org>
12162
12163         argp: Allow coexistence with strerror_r-posix module.
12164         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12165         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12166         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12167         not the glibc signature.
12168
12169 2011-05-28  Bruno Haible  <bruno@clisp.org>
12170
12171         gnulib-tool: Alternative structure of testdirs, similar to --import.
12172         * gnulib-tool: New option --single-configure.
12173         (func_usage): Document it.
12174         (single_configure): New variable.
12175         (func_modules_transitive_closure_separately,
12176         func_modules_transitive_closure_separately,
12177         func_determine_use_libtests, func_modules_add_dummy_separately,
12178         func_modules_to_filelist_separately): New functions, extracted from
12179         func_import.
12180         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12181         (func_import): Use the new functions.
12182         (func_create_testdir): Set final_modules. Handle $single_configure =
12183         true case.
12184
12185 2011-05-28  Bruno Haible  <bruno@clisp.org>
12186
12187         getloadavg: Remove an unreliable safety check.
12188         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12189         getloadavg.c is in place.
12190         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12191         Reported by Sam Steingold <sds@gnu.org>.
12192
12193 2011-05-28  Bruno Haible  <bruno@clisp.org>
12194
12195         doc: Cleanup yet another file produced by texinfo.tex.
12196         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12197
12198 2011-05-28  Bruno Haible  <bruno@clisp.org>
12199
12200         Finish the conditional dependencies mechanism.
12201         * gnulib-tool: New option --no-conditional-dependencies.
12202         (func_usage): Document it. Don't mark --conditional-dependencies as
12203         experimental.
12204         (cond_dependencies): The possible values can now be true, false, empty.
12205         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12206         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12207         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12208
12209 2011-05-28  Bruno Haible  <bruno@clisp.org>
12210
12211         doc: Use a recent texinfo.tex.
12212         * doc/Makefile (tex_opts): New variable.
12213         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12214
12215 2011-05-28  Jim Meyering  <meyering@redhat.com>
12216
12217         intprops.h: adjust comment to match code change
12218         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12219         only once, it *may* have side effects.  Also fix an unrelated typo.
12220         (_GL_INT_SIGNED): Likewise.
12221
12222 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12223
12224         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12225
12226 2011-05-26  Bruno Haible  <bruno@clisp.org>
12227
12228         mbsrchr: Avoid collision with system function on Interix.
12229         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12230         Reported by Markus Duft <mduft@gentoo.org>.
12231
12232 2011-05-15  James Youngman  <jay@gnu.org>
12233
12234         getopt: for ambiguous options, enumerate the possibilities.
12235         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12236         the ambiguous options when an ambiguous prefix is given. This was
12237         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12238         glibc change was
12239         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12240
12241 2011-05-25  Eric Blake  <eblake@redhat.com>
12242
12243         getcwd: work around mingw bug
12244         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12245         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12246         Reported by Matthias Bolte.
12247
12248 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12249
12250         test-intprops: disable -Wtype-limits diagnostics
12251         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12252         diagnostics.  Otherwise, the integer overflow macros generate many
12253         diagnostics.  Reported by Jim Meyering in
12254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12255
12256         intprops: shorten, to pacify gcc -Woverlength-strings
12257         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12258         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12259         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12260         likely to run afoul of C compiler limits for string constant lengths.
12261         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12262
12263 2011-05-24  Eric Blake  <eblake@redhat.com>
12264
12265         docs: document recently fixed glibc printf bug
12266         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12267         * doc/posix-functions/printf.texi (printf): Likewise.
12268         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12269         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12270
12271         closein-tests: convert to init.sh
12272         * modules/closein-tests (Files): Add init.sh
12273         * tests/test-closein.sh Use it.
12274
12275         yesno-tests: convert to init.sh
12276         * modules/yesno-tests (Files): Add init.sh.
12277         * tests/test-yesno.sh: Use it.
12278
12279         atexit-tests: ensure reliable exit status
12280         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12281         Reported by Bruno Haible.
12282
12283 2011-05-24  Bruno Haible  <bruno@clisp.org>
12284
12285         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12286         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12287         gl_PREREQ_STRERROR_R invocations from here...
12288         * modules/strerror_r-posix (configure.ac): ... to here.
12289
12290 2011-05-24  Eric Blake  <eblake@redhat.com>
12291
12292         strerror_r: fix missing header
12293         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12294
12295         strerror_r: fix AIX test failures
12296         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12297         ERANGE failure.
12298
12299         strerror_r: fix Solaris test failures
12300         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12301         failures.
12302         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12303
12304         strerror_r: enforce POSIX recommendations
12305         * lib/strerror_r.c (safe_copy): New helper method.
12306         (strerror_r): Guarantee a non-empty string.
12307         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12308         recent POSIX rulings and to match our strerror guarantees.
12309         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12310
12311 2011-05-24  Jim Meyering  <meyering@redhat.com>
12312
12313         test-perror2.c: avoid warning about unused variable
12314         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12315
12316 2011-05-24  Eric Blake  <eblake@redhat.com>
12317
12318         perror: avoid spurious test failure on HP-UX
12319         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12320
12321         tests: fix logic bug in init.sh
12322         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12323         shell.
12324
12325 2011-05-24  Jim Meyering  <meyering@redhat.com>
12326
12327         utimensat: do not reference an out-of-scope buffer
12328         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12329         declared in an inner scope, yet "times" would be dereferenced outside
12330         the scope in which "ts" was valid.
12331         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12332         of ts[2] "out/up", so that the use of aliased "times" (via
12333         "times = ts;") does not end up referencing an out-of-scope "ts"
12334
12335         opendir-safer.c: don't clobber errno; don't close negative FD
12336         * lib/opendir-safer.c (opendir_safer):
12337         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12338         file descriptor, and more importantly, don't clobber the
12339         offending errno value with EINVAL.  Before, upon failure
12340         of dup_safer, we would pass the negative file descriptor to
12341         fdopendir, which would clobber errno.
12342
12343 2011-05-23  Bruno Haible  <bruno@clisp.org>
12344
12345         idcache: Fix module description.
12346         * modules/idcache (Include): Set to "idcache.h".
12347
12348 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12349
12350         gnulib-tool: fix portability problem with MacOS sed
12351         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12352         before the "}".  Problem reported by Leo in
12353         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12354         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12355         sed_extract_condition1, sed_extract_condition2.
12356
12357 2011-05-23  Bruno Haible  <bruno@clisp.org>
12358
12359         hash: Simplify autoconf macro.
12360         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12361
12362 2011-05-23  Bruno Haible  <bruno@clisp.org>
12363
12364         getugroups: Fix module description.
12365         * modules/getugroups (Include): Set to "getugroups.h".
12366
12367 2011-05-23  Bruno Haible  <bruno@clisp.org>
12368
12369         linkat: Simplify autoconf macro.
12370         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12371
12372 2011-05-23  Bruno Haible  <bruno@clisp.org>
12373             Eric Blake  <eblake@redhat.com>
12374
12375         linkat, renameat: Update dependencies.
12376         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12377         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12378         symlinkat.
12379
12380 2011-05-23  Jim Meyering  <meyering@redhat.com>
12381
12382         maint.mk: more tight_scope improvements
12383         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12384         (_gl_TS_headers): Define only in if-0'd block.
12385         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12386         sometimes we must *not* use it.  Adjust uses accordingly.
12387         (sc_tight_scope): Use much simpler grep-based test to determine
12388         whether we skip this rule.
12389
12390         maint.mk: generalize/improve the tight-scope rule
12391         * top/maint.mk: Emit a warning when the test is skipped.
12392         (_gl_TS_dir): Add $(srcdir)/ prefix.
12393         (_gl_TS_function_match): Simplify, rather than trying
12394         to enumerate common types.  Otherwise, it would fail to match an
12395         "extern unsigned char const *" declaration in idutils.
12396         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12397         a way to support use of that type of macro.
12398         (_gl_TS_var_match): Simplify regexp.
12399         (_gl_TS_obj_files): New configurable variable.
12400         (_gl_TS_headers): Likewise.
12401
12402 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12403
12404         verify: fix bug when gnulib <assert.h> is also included
12405         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12406         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12407         Perhaps there's a better way, but this fixes the immediate problem.
12408         Problem reported by Bruno Haible in
12409         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12410
12411 2011-05-22  Bruno Haible  <bruno@clisp.org>
12412
12413         xgetcwd: Simplify autoconf macro.
12414         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12415
12416 2011-05-22  Bruno Haible  <bruno@clisp.org>
12417
12418         New module 'mktime-internal'.
12419         * modules/mktime-internal: New file.
12420         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12421         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12422         mktime_internal as a C macro if libc has __mktime_internal.
12423         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12424         conditions.
12425         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12426
12427 2011-05-22  Bruno Haible  <bruno@clisp.org>
12428
12429         timegm: Correct mktime replacement statements.
12430         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12431         defining mktime as a C macro. This completes a 2009-07-28 commit.
12432
12433 2011-05-22  Bruno Haible  <bruno@clisp.org>
12434
12435         timegm: Simplify autoconf macro.
12436         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12437
12438 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12439
12440         clock-time: change to LGPLv2+.
12441         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12442         BSD-like but we have no mark for that; this is good enough for now.
12443
12444 2011-05-21  Bruno Haible  <bruno@clisp.org>
12445
12446         strerror_r: Fix comments.
12447         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12448
12449 2011-05-21  Bruno Haible  <bruno@clisp.org>
12450
12451         relocatable-prog-wrapper: Fix possible link error.
12452         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12453         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12454         (gl_FUNC_SETENV): ... to here.
12455         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12456         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12457
12458 2011-05-21  Bruno Haible  <bruno@clisp.org>
12459
12460         relocatable-prog-wrapper: Assume strerror() exists.
12461         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12462         m4/strerror.m4.
12463         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12464         * lib/relocwrapper.c: Remove mention of strerror module.
12465         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12466         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12467         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12468         C macro.
12469
12470 2011-05-21  Bruno Haible  <bruno@clisp.org>
12471
12472         select: Simplify replacement idiom.
12473         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12474         Win32 platforms.
12475         * lib/sys_select.in.h (select): Simplify accordingly.
12476         * modules/select (Depends-on): Likewise.
12477
12478 2011-05-21  Bruno Haible  <bruno@clisp.org>
12479
12480         mkdir-p: Simplify autoconf macro.
12481         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12482         gl_FUNC_LCHOWN.
12483
12484 2011-05-21  Eric Blake  <eblake@redhat.com>
12485
12486         strerror_r: avoid clobbering strerror on cygwin
12487         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12488         fall back instead to sys_errlist.
12489         * modules/strerror (configure.ac): Add witness.
12490         * tests/test-strerror_r.c (main): Enhance test.
12491         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12492         * tests/test-perror2.c (main): Free memory before exit.
12493
12494 2011-05-21  Bruno Haible  <bruno@clisp.org>
12495
12496         mkdtemp: Use gnulib naming conventions.
12497         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12498         * modules/mkdtemp (configure.ac): Update.
12499
12500 2011-05-20  Eric Blake  <eblake@redhat.com>
12501
12502         strerror_r: avoid corrupting errno on Solaris
12503         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12504         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12505
12506         strerror_r: avoid compiler warning
12507         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12508
12509         strerror_r: simplify AIX code
12510         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12511
12512         test-perror: avoid spurious failure on FreeBSD
12513         * modules/perror-tests (Depends-on): Add strerror, now that
12514         strerror_r no longer pulls it in.
12515
12516 2011-05-20  Bruno Haible  <bruno@clisp.org>
12517
12518         strerror_r-posix: Remove unused dependencies.
12519         * modules/strerror_r-posix (Depends-on): Remove strerror.
12520         Reported by Eric Blake.
12521
12522 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12523
12524         intprops: remove assumption about A|B representation
12525         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12526         is a valid integer if both A and B are.  Although this is true for
12527         all known practical hosts, the C standard doesn't guarantee it,
12528         and the code need not assume it.  Also, this change may work around
12529         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12530         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12531
12532 2011-05-20  Eric Blake  <eblake@redhat.com>
12533
12534         perror: work around FreeBSD bug
12535         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12536         is broken.  Move AC_LIBOBJ...
12537         * modules/perror (configure.ac): Here.
12538         * doc/posix-functions/perror.texi (perror): Document this.
12539         * tests/test-perror2.c (main): Enhance test.
12540
12541         test-perror: check for strerror interactions
12542         * tests/macros.h (STREQ): Add macro.
12543         * modules/perror-tests (Files): Add second test.
12544         * tests/test-perror2.c (main): New file.
12545         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12546
12547         test-perror: rewrite to use init script
12548         * modules/perror-tests (Files): Add init.sh.
12549         * tests/test-perror.sh: Use temporary directory.
12550
12551 2011-05-20  Jim Meyering  <meyering@redhat.com>
12552
12553         maint: replace misused "a" with "an"
12554         * doc/intprops.texi: "a integer"
12555         * doc/regex.texi: "a explanation"
12556         * lib/alignof.h: "a object"
12557         * lib/argmatch.h: "a explanation"
12558         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12559         * lib/stdint.in.h: "a integer"
12560         * lib/userspec.c: "a owner"
12561         * doc/gnulib.texi: Fix "a idea", and reword.
12562
12563 2011-05-19  Jim Meyering  <meyering@redhat.com>
12564
12565         maint: correct misuse of "a" and "an"
12566         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12567         * lib/argp-help.c: "an docum...": s/an/a/
12568         * lib/argp-parse.c: "An vector": s/An/A/
12569         * lib/execute.c: "an native": s/an/a/
12570         * lib/spawn-pipe.c: Likewise.
12571         * lib/gc.h: "an Gc_rc": s/an/a/
12572         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12573         * lib/fts.c: "an stat.st_dev": s/an/a/
12574
12575 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12576
12577         intprops-tests: work around HP-UX 11.23 cc bug with constants
12578         * tests/test-intprops.c (VERIFY): New macro.
12579         (main): Use it, instead of verify, to work around the compiler bug; see
12580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12581
12582         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12583         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12584         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12585         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12586         (_GL_REMAINDER_OVERFLOW): Use it.
12587
12588         intprops-tests: revert unsigned part of previous change
12589         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12590         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12591         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12593
12594 2011-05-19  Bruno Haible  <bruno@clisp.org>
12595
12596         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12597         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12598         strerror_r() returned without filling the buffer.
12599         Reported by Eric Blake.
12600
12601 2011-05-19  Eric Blake  <eblake@redhat.com>
12602
12603         strerror_r: guarantee unchanged errno
12604         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12605         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12606         failure.
12607         * tests/test-strerror_r.c (main): Enhance test.
12608
12609 2011-05-19  Bruno Haible  <bruno@clisp.org>
12610
12611         strerror_r: Reorder #if blocks.
12612         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12613         for consistency with the previous commit.
12614
12615 2011-05-19  Bruno Haible  <bruno@clisp.org>
12616
12617         perror: Avoid clobbering the strerror buffer when possible.
12618         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12619         * lib/strerror.c: Include it.
12620         * modules/strerror (Files): Add lib/strerror-impl.h.
12621         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12622         (my_strerror): New function, defined through lib/strerror-impl.h.
12623         (perror): Use it instead of strerror.
12624         * modules/perror (Files): Add lib/strerror-impl.h.
12625         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12626
12627 2011-05-19  Eric Blake  <eblake@redhat.com>
12628
12629         strerror_r: fix on newer cygwin
12630         * lib/strerror_r.c (strerror_r): Cygwin now has
12631         __xpg_strerror_r, use it.
12632
12633 2011-05-19  Bruno Haible  <bruno@clisp.org>
12634
12635         strerror_r: Avoid clobbering the strerror buffer when possible.
12636         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12637         (sys_nerr, sys_errlist): New declarations.
12638         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12639         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12640         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12641
12642 2011-05-19  Bruno Haible  <bruno@clisp.org>
12643
12644         strerror_r: Fix test failure on mingw.
12645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12646         EXTEND_STRERROR_R.
12647         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12648         macros from errno.in.h instead.
12649
12650 2011-05-19  Eric Blake  <eblake@redhat.com>
12651
12652         strerror: relax test for Solaris
12653         * tests/test-strerror.c (main): Permit Solaris behavior.
12654         * tests/test-strerror_r.c (main): Likewise.
12655
12656         strerror: enforce POSIX ruling on strerror(0)
12657         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12658         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12659         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12660         * doc/posix-functions/strerror.texi (strerror): Document it.
12661         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12662         * tests/test-strerror.c (main): Strengthen test.
12663         * tests/test-strerror_r.c (main): Likewise.
12664
12665 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12666
12667         intprop-tests: port to older and more-pedantic compilers
12668         * modules/intprops-tests (Files): Add tests/macros.h.
12669         * tests/test-intprops.c: Include macros.h.
12670         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12671         it's no longer documented to expand to an integer constant expression.
12672         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12673         argument is floating point, as it's no longer documented to expand
12674         to an integer constant expression in that case.
12675         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12676         compiler bugs reported by Bruno Haible.  See
12677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12678         (U0, U1): New constants, to work around the same bugs.  Also,
12679         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12680
12681         intprops: work around C compiler bugs
12682         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12683         bug in Sun C 5.11 2010/08/13 and other compilers; see
12684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12685
12686         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12687         * doc/intprops.texi (Integer Type Determination): Fix
12688         documentation for TYPE_IS_INTEGER: it returns an constant
12689         expression, not an integer constant expression.  Fix doc for
12690         TYPE_SIGNED: it returns an integer constant expression only if its
12691         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12692         hardly worth documented that way....)
12693
12694 2011-05-18  Bruno Haible  <bruno@clisp.org>
12695
12696         strerror_r: Avoid clobbering the strerror buffer when possible.
12697         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12698         Handle gnulib defined errno values here. When strerror() returns NULL
12699         or an empty string, return EINVAL.
12700         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12701         gnulib defined errno values here.
12702         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12703
12704 2011-05-18  Eric Blake  <eblake@redhat.com>
12705
12706         fnmatch: avoid compiler warning
12707         * lib/fnmatch_loop.c (FCT): Use correct type.
12708         Reported by Matthias Bolte.
12709
12710 2011-05-13  Jim Meyering  <meyering@redhat.com>
12711
12712         maint.mk: three new prohibit_<HDR>_without_use rules
12713         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12714         (sc_prohibit_stdio-safer_without_use): Likewise.
12715         (sc_prohibit_xfreopen_without_use): Likewise.
12716
12717 2011-05-17  Jim Meyering  <meyering@redhat.com>
12718
12719         announce-gen: fail if the NEWS delta is empty
12720         If there's nothing noteworthy in NEWS, then either you forgot
12721         or you shouldn't be releasing.
12722         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12723
12724 2011-05-17  Pádraig Brady <P@draigBrady.com>
12725
12726         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12727         reserved symbols starting with double underscore from the check.
12728
12729 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12730
12731         intprops: add doc
12732         * doc/intprops.texi: New file, documenting intprops.
12733         * doc/gnulib.texi (Particular Modules): Include it.
12734
12735         verify: add doc to gnulib manual and fix example
12736         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12737         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12738         (Compile-time Assertions): Fix example so it can't overflow.
12739
12740 2011-05-17  Jim Meyering  <meyering@redhat.com>
12741
12742         warnings.m4: don't usurp save_CPPFLAGS variable name
12743         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12744
12745         doc: fix typo
12746         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12747
12748 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12749             Bruno Haible  <bruno@clisp.org>
12750
12751         doc: Tweak recent change.
12752         * README (Portability guidelines): Tweak new text.
12753         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12754         Interix 6.1.
12755
12756 2011-05-16  Eric Blake  <eblake@redhat.com>
12757
12758         inttypes: avoid autoconf warning
12759         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12760         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12761
12762 2011-05-16  Sam Steingold <sds@gnu.org>
12763         and Eric Blake  <eblake@redhat.com>
12764
12765         vc-list-files: accept multiple directory operands
12766         * build-aux/vc-list-files: Iterate over all remaining operands.
12767
12768 2011-05-16  Bruno Haible  <bruno@clisp.org>
12769
12770         Fix confusion regarding deprecated modules.
12771         * modules/calloc (Status, Notice): Mark module as deprecated, not
12772         obsolete.
12773         * modules/fnmatch-posix (Status, Notice): Likewise.
12774         * modules/getdate (Status, Notice): Likewise.
12775         * modules/getopt (Status, Notice): Likewise.
12776         * modules/malloc (Status, Notice): Likewise.
12777         * modules/pipe (Status, Notice): Likewise.
12778         * modules/realloc (Status, Notice): Likewise.
12779         * modules/rename-dest-slash (Status, Notice): Likewise.
12780         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12781         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12782         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12783         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12784         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12785
12786 2011-05-16  Bruno Haible  <bruno@clisp.org>
12787
12788         doc: List the target platforms.
12789         * doc/gnulib-intro.texi (Target Platforms): New section.
12790         * doc/gnulib.texi (Introduction): Update menu.
12791         * README (Portability guidelines): Refer to the new section. Update
12792         statement about oldest supported environment. Remove rationale why
12793         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12794         unportable C89 function.
12795         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12796         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12797
12798 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12799
12800         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12801
12802 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12803
12804         intprops-tests: new module
12805         * modules/intprops-tests, tests/test-intprops.c: New files.
12806
12807         intprops: add safe, portable integer overflow checking
12808         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12809         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12810         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12811         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12812         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12813         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12814         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12815         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12816         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12817         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12818         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12819
12820 2011-05-12  James Youngman  <jay@gnu.org>
12821
12822         Add a test for glibc's Bugzilla bug #12378.
12823         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12824         doesn't allow the literal matching of a lone "[" (which is
12825         required by POSIX).
12826         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12827
12828 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12829
12830         Sync glibc change fixing Bugzilla bug #12378.
12831         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12832         beginning and fall back to matching as normal character if the
12833         string ends before the matching ']' is found.  This is what POSIX
12834         requires.
12835
12836 2011-05-13  Eric Blake  <eblake@redhat.com>
12837
12838         getcwd-lgpl: relax test for FreeBSD
12839         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12840         issue.
12841         * tests/test-getcwd-lgpl.c (main): Relax test.
12842         Reported by Matthias Bolte.
12843
12844 2011-05-11  Eric Blake  <eblake@redhat.com>
12845
12846         test-fflush: silence compiler warning
12847         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12848
12849 2011-05-11  Bruno Haible  <bruno@clisp.org>
12850
12851         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12852         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12853         * modules/canonicalize (Depends-on): Add 'nocrash'.
12854         * modules/canonicalize-lgpl (Depends-on): Likewise.
12855         * doc/posix-functions/realpath.texi: Update platforms list.
12856         Reported by Ryan Schmidt <ryandesign@macports.org>.
12857
12858 2011-05-11  Bruno Haible  <bruno@clisp.org>
12859
12860         group-member: Declare function in <unistd.h>.
12861         * lib/unistd.in.h (group_member): New declaration.
12862         * lib/group-member.h: Remove file.
12863         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12864         * tests/test-unistd-c++.cc: Check signature of group_member.
12865         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12866         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12867         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12868         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12869         HAVE_GROUP_MEMBER.
12870         * modules/group-member (Files): Remove lib/group-member.h.
12871         (Depends-on): Add unistd. Specify conditions.
12872         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12873         (Include): Change to <unistd.h>.
12874         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12875         HAVE_GROUP_MEMBER.
12876         * NEWS: Mention the change.
12877         * lib/euidaccess.c: Don't include group-member.h.
12878
12879 2011-05-11  Bruno Haible  <bruno@clisp.org>
12880
12881         group-member: Document module.
12882         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12883         module.
12884
12885 2011-05-11  Bruno Haible  <bruno@clisp.org>
12886
12887         fclose: Fix mistake earlier today.
12888         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12889
12890 2011-05-11  Eric Blake  <eblake@redhat.com>
12891
12892         fclose: preserve fflush errors
12893         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12894         Reported by Jim Meyering.
12895
12896         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12897         * build-aux/bootstrap (check_versions): When no specific version
12898         is required, merely check that the app produces an exit status
12899         that indicates its existence.
12900
12901         maint.mk: drop redundant check
12902         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12903         the same but better.
12904
12905 2011-05-11  Bruno Haible  <bruno@clisp.org>
12906
12907         fclose: Fix possible link error.
12908         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12909         unregister_shadow_fd. Improve comments.
12910         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12911         Eric Blake.
12912
12913 2011-05-11  Jim Meyering  <meyering@redhat.com>
12914
12915         maint.mk: improve "can not" detection and generalize rule name
12916         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12917         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12918         Use the same technique as in sc_prohibit_doubled_word, so that
12919         we recognize "can not" also when the words are separated by a newline.
12920         Suggested by Eric Blake.
12921         (perl_filename_lineno_text_): Define.  Factored out of...
12922         (prohibit_doubled_word_): ...here.  Use the new definition.
12923         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12924         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12925         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12926
12927 2011-05-10  Eric Blake  <eblake@redhat.com>
12928
12929         fclose: avoid double close race when possible
12930         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12931         all but WINDOWS_SOCKETS.
12932
12933 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12934
12935         openat: correct new comment
12936         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12937
12938 2011-05-10  Jim Meyering  <meyering@redhat.com>
12939
12940         openat: add comments
12941         * lib/openat-proc.c (openat_proc_name): Add comments,
12942         mostly from Eric Blake.
12943
12944 2011-05-09  Eric Blake  <eblake@redhat.com>
12945
12946         openat: reduce syscalls in first probe of /proc
12947         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12948         be a directory.  Simplify the probe for .. bugs.
12949         * modules/openat (Depends-on): Drop same-inode.
12950         Reported by Bastien ROUCARIES.
12951
12952 2011-05-09  Jim Meyering  <meyering@redhat.com>
12953
12954         maint.mk: change semantics/name of tight_scope variables
12955         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12956         Rename variables to align with semantics that make them more useful.
12957
12958         maint.mk: tweak new rule's name not to impinge
12959         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12960         (sc_tight_scope): Use new rule name rather than $@-0.
12961
12962         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12963         * top/maint.mk (sc_tight_scope): New rule.
12964         (sc_tight_scope-0): New rule, ifdef'd out.
12965         (_gl_TS_dir): Default.
12966         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12967         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12968
12969 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12970
12971         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12972         Haible <bruno@clisp.org>.
12973
12974 2011-05-08  Bruno Haible  <bruno@clisp.org>
12975
12976         Comments.
12977         * m4/isnanf.m4: Add comment.
12978         * m4/isnanl.m4: Likewise.
12979
12980 2011-05-08  Bruno Haible  <bruno@clisp.org>
12981
12982         glob: Remove obsolete macro.
12983         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12984
12985 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12986
12987         intprops: Sun C 5.11 supports __typeof__
12988         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12989         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12990         which is new.
12991         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12992
12993         intprops: switch to usual gnulib indenting and naming
12994         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12995         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12996
12997         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12998
12999 2011-05-08  Jim Meyering  <meyering@redhat.com>
13000
13001         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13002         * top/maint.mk (release-prep): Use make's --no-print-directory
13003         option when generating the announcement.  This eliminates the
13004         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13005         generated announcement template.
13006
13007 2011-05-08  Bruno Haible  <bruno@clisp.org>
13008
13009         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13010         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13011         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13012
13013 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13014
13015         ignore-value, verify: Omit include files from lib_SOURCES.
13016         * modules/ignore-value, modules/verify (Makefile.am):
13017         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13018         that leads Automake to duplicate use of am__objects_... variables
13019         in Makefile.in.  See
13020         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13021
13022 2011-05-07  Bruno Haible  <bruno@clisp.org>
13023
13024         fclose: Simplify autoconf macro.
13025         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13026         defined.
13027
13028 2011-05-07  Bruno Haible  <bruno@clisp.org>
13029
13030         canonicalize-lgpl: Fix autoconf macro ordering bug.
13031         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13032         gl_STDLIB_H_DEFAULTS.
13033
13034 2011-05-06  Eric Blake  <eblake@redhat.com>
13035
13036         maintainer-makefile: make sc_po_check easier to tune
13037         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13038         to probe for strings, such as an alternate location for gnulib.
13039
13040         fclose: guarantee behavior on seekable stdin
13041         * modules/fclose (Depends-on): Add fflush.
13042         * doc/posix-functions/fclose.texi (fclose): Document this.
13043         * tests/test-fclose.c (main): Make test for this unconditional.
13044
13045 2011-05-06  Bruno Haible  <bruno@clisp.org>
13046
13047         fflush, fpurge: Relicense under LGPLv2+.
13048         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13049         * modules/fpurge (License): Likewise.
13050         With permission from Eric Blake and Jim Meyering.
13051         Suggested by Eric Blake.
13052
13053 2011-05-06  Karl Berry  <karl@gnu.org>
13054
13055         * MODULES.html.sh (func_all_modules): remove exit.
13056
13057 2011-05-06  Jim Meyering  <meyering@redhat.com>
13058
13059         maint.mk: use info-gnu@ as the default only for a stable release
13060         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13061         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13062         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13063         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13064
13065 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13066
13067         assert-h: new module, which supports C1X-style static_assert
13068         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13069         * lib/verify.h: Revamp so that this can be copied into assert.h,
13070         while retaining the ability to use it standalone as before.
13071         Rename private identifiers so as not to encroach on the
13072         standard C namespace, since this is now used by assert.h.
13073         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13074         the old verify_true.
13075         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13076         the old verify_true.  Use _GL_VERIFY_TYPE.
13077         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13078         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13079         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13080         defined when this file is copied into the replacement assert.h.
13081         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13082         and _Static_assert is not built in.
13083         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13084         defined, and use the new macros mentioned above.
13085         * doc/posix-headers/assert.texi: Document this.
13086
13087 2011-05-05  Bruno Haible  <bruno@clisp.org>
13088
13089         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13090         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13091         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13092         gl_REPLACE_FCLOSE here.
13093         * modules/fflush (Depends-on): Remove fclose.
13094         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13095         combination with module 'fclose'.
13096
13097 2011-05-05  Bruno Haible  <bruno@clisp.org>
13098
13099         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13100         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13101         gl_FUNC_FFLUSH.
13102         (gl_FUNC_FFLUSH): Use it.
13103         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13104         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13105         gl_REPLACE_FSEEKO here.
13106
13107 2011-05-05  Bruno Haible  <bruno@clisp.org>
13108
13109         tzset: Relicense under LGPL.
13110         * modules/tzset (License): Change to LGPL.
13111         No agreement needed; it's a no-op.
13112
13113         strtoimax, strtoumax: Relicense under LGPL.
13114         * modules/strtoimax (License): Change to LGPL.
13115         * modules/strtoumax (License): Likewise.
13116         With permission from Jim Meyering, Paul Eggert:
13117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13119
13120         getgroups: Relicense under LGPL.
13121         * modules/getgroups (License): Change to LGPL.
13122         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13125         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13126
13127         nanosleep: Relicense under LGPL.
13128         * modules/nanosleep (License): Change to LGPL.
13129         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13130         Haible:
13131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13132         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13135
13136         futimens: Relicense under LGPL.
13137         * modules/futimens (License): Change to LGPL.
13138         With permission from Eric Blake:
13139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13140
13141         fflush: Relicense under LGPL.
13142         * modules/fflush (License): Change to LGPL.
13143         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13144         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13147
13148         tmpfile: Relicense under LGPL.
13149         * modules/tmpfile (License): Change to LGPL.
13150         With permission from Ben Pfaff:
13151         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13152
13153         isfinite: Relicense under LGPL.
13154         * modules/isfinite (License): Change to LGPL.
13155         With permission from Ben Pfaff, Bruno Haible:
13156         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13157         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13158
13159         acosl..tanl: Relicense under LGPL.
13160         * modules/acosl (License): Change to LGPL.
13161         * modules/asinl (License): Likewise.
13162         * modules/atanl (License): Likewise.
13163         * modules/cosl (License): Likewise.
13164         * modules/expl (License): Likewise.
13165         * modules/logl (License): Likewise.
13166         * modules/sinl (License): Likewise.
13167         * modules/sqrtl (License): Likewise.
13168         * modules/tanl (License): Likewise.
13169         Source code originally from glibc and Paolo Bonzini. Agreements:
13170         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13171         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13172
13173 2011-05-05  Bruno Haible  <bruno@clisp.org>
13174
13175         signal: Define sighandler_t.
13176         * lib/signal.in.h (sighandler_t): New type.
13177         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13178         whether sighandler_t is defined.
13179         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13180         * modules/signal (Depends-on): Add extensions.
13181         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13182         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13183         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13184
13185 2011-05-05  Eric Blake  <eblake@redhat.com>
13186
13187         maint: remove useless REPLACE_*_H macros
13188         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13189         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13190         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13191         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13192         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13193         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13194         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13195         * m4/btowc.m4: Update callers.
13196         * m4/dirfd.m4: Likewise.
13197         * m4/duplocale.m4: Likewise.
13198         * m4/fchdir.m4: Likewise.
13199         * m4/fdopendir.m4: Likewise.
13200         * m4/inet_ntop.m4: Likewise.
13201         * m4/inet_pton.m4: Likewise.
13202         * m4/ioctl.m4: Likewise.
13203         * m4/mbrlen.m4: Likewise.
13204         * m4/mbrtowc.m4: Likewise.
13205         * m4/mbsinit.m4: Likewise.
13206         * m4/mbsnrtowcs.m4: Likewise.
13207         * m4/mbsrtowcs.m4: Likewise.
13208         * m4/poll.m4: Likewise.
13209         * m4/setlocale.m4: Likewise.
13210         * m4/wcrtomb.m4: Likewise.
13211         * m4/wcsnrtombs.m4: Likewise.
13212         * m4/wcsrtombs.m4: Likewise.
13213         * m4/wctob.m4: Likewise.
13214         * m4/wcwidth.m4: Likewise.
13215         * modules/posix_spawn: Likewise.
13216         * modules/posix_spawn_file_actions_addclose: Likewise.
13217         * modules/posix_spawn_file_actions_adddup2: Likewise.
13218         * modules/posix_spawn_file_actions_addopen: Likewise.
13219         * modules/posix_spawn_file_actions_destroy: Likewise.
13220         * modules/posix_spawn_file_actions_init: Likewise.
13221         * modules/posix_spawnattr_destroy: Likewise.
13222         * modules/posix_spawnattr_getflags: Likewise.
13223         * modules/posix_spawnattr_getpgroup: Likewise.
13224         * modules/posix_spawnattr_getschedparam: Likewise.
13225         * modules/posix_spawnattr_getschedpolicy: Likewise.
13226         * modules/posix_spawnattr_getsigdefault: Likewise.
13227         * modules/posix_spawnattr_getsigmask: Likewise.
13228         * modules/posix_spawnattr_init: Likewise.
13229         * modules/posix_spawnattr_setflags: Likewise.
13230         * modules/posix_spawnattr_setpgroup: Likewise.
13231         * modules/posix_spawnattr_setschedparam: Likewise.
13232         * modules/posix_spawnattr_setschedpolicy: Likewise.
13233         * modules/posix_spawnattr_setsigdefault: Likewise.
13234         * modules/posix_spawnattr_setsigmask: Likewise.
13235         * modules/posix_spawnp: Likewise.
13236
13237 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13238
13239         Add option to do-release-commit-and-tag to specify branch.
13240         * build-aux/do-release-commit-and-tag: Add --branch.
13241
13242 2011-05-03  Bruno Haible  <bruno@clisp.org>
13243
13244         Avoid unnecessary compilation units, through conditional dependencies.
13245         * modules/accept (Depends-on): Add conditions to the dependencies.
13246         * modules/acosl (Depends-on): Likewise.
13247         * modules/argz (Depends-on): Likewise.
13248         * modules/asinl (Depends-on): Likewise.
13249         * modules/atanl (Depends-on): Likewise.
13250         * modules/atoll (Depends-on): Likewise.
13251         * modules/bind (Depends-on): Likewise.
13252         * modules/btowc (Depends-on): Likewise.
13253         * modules/canonicalize-lgpl (Depends-on): Likewise.
13254         * modules/ceil (Depends-on): Likewise.
13255         * modules/ceilf (Depends-on): Likewise.
13256         * modules/ceill (Depends-on): Likewise.
13257         * modules/chdir-long (Depends-on): Likewise.
13258         * modules/chown (Depends-on): Likewise.
13259         * modules/close (Depends-on): Likewise.
13260         * modules/connect (Depends-on): Likewise.
13261         * modules/cosl (Depends-on): Likewise.
13262         * modules/dirfd (Depends-on): Likewise.
13263         * modules/dprintf (Depends-on): Likewise.
13264         * modules/dprintf-posix (Depends-on): Likewise.
13265         * modules/error (Depends-on): Likewise.
13266         * modules/euidaccess (Depends-on): Likewise.
13267         * modules/expl (Depends-on): Likewise.
13268         * modules/faccessat (Depends-on): Likewise.
13269         * modules/fchdir (Depends-on): Likewise.
13270         * modules/fclose (Depends-on): Likewise.
13271         * modules/fcntl (Depends-on): Likewise.
13272         * modules/fdopendir (Depends-on): Likewise.
13273         * modules/fflush (Depends-on): Likewise.
13274         * modules/floor (Depends-on): Likewise.
13275         * modules/floorf (Depends-on): Likewise.
13276         * modules/floorl (Depends-on): Likewise.
13277         * modules/fnmatch (Depends-on): Likewise.
13278         * modules/fopen (Depends-on): Likewise.
13279         * modules/fprintf-posix (Depends-on): Likewise.
13280         * modules/frexp (Depends-on): Likewise.
13281         * modules/frexp-nolibm (Depends-on): Likewise.
13282         * modules/frexpl (Depends-on): Likewise.
13283         * modules/frexpl-nolibm (Depends-on): Likewise.
13284         * modules/fseek (Depends-on): Likewise.
13285         * modules/fsusage (Depends-on): Likewise.
13286         * modules/ftell (Depends-on): Likewise.
13287         * modules/ftello (Depends-on): Likewise.
13288         * modules/futimens (Depends-on): Likewise.
13289         * modules/getcwd (Depends-on): Likewise.
13290         * modules/getcwd-lgpl (Depends-on): Likewise.
13291         * modules/getdelim (Depends-on): Likewise.
13292         * modules/getdomainname (Depends-on): Likewise.
13293         * modules/getgroups (Depends-on): Likewise.
13294         * modules/gethostname (Depends-on): Likewise.
13295         * modules/getline (Depends-on): Likewise.
13296         * modules/getlogin_r (Depends-on): Likewise.
13297         * modules/getopt-posix (Depends-on): Likewise.
13298         * modules/getpeername (Depends-on): Likewise.
13299         * modules/getsockname (Depends-on): Likewise.
13300         * modules/getsockopt (Depends-on): Likewise.
13301         * modules/getsubopt (Depends-on): Likewise.
13302         * modules/getusershell (Depends-on): Likewise.
13303         * modules/glob (Depends-on): Likewise.
13304         * modules/grantpt (Depends-on): Likewise.
13305         * modules/iconv_open (Depends-on): Likewise.
13306         * modules/iconv_open-utf (Depends-on): Likewise.
13307         * modules/inet_ntop (Depends-on): Likewise.
13308         * modules/inet_pton (Depends-on): Likewise.
13309         * modules/ioctl (Depends-on): Likewise.
13310         * modules/isapipe (Depends-on): Likewise.
13311         * modules/isfinite (Depends-on): Likewise.
13312         * modules/isinf (Depends-on): Likewise.
13313         * modules/lchown (Depends-on): Likewise.
13314         * modules/ldexpl (Depends-on): Likewise.
13315         * modules/link (Depends-on): Likewise.
13316         * modules/linkat (Depends-on): Likewise.
13317         * modules/listen (Depends-on): Likewise.
13318         * modules/logl (Depends-on): Likewise.
13319         * modules/lstat (Depends-on): Likewise.
13320         * modules/mbrlen (Depends-on): Likewise.
13321         * modules/mbrtowc (Depends-on): Likewise.
13322         * modules/mbsinit (Depends-on): Likewise.
13323         * modules/mbsnrtowcs (Depends-on): Likewise.
13324         * modules/mbsrtowcs (Depends-on): Likewise.
13325         * modules/mbtowc (Depends-on): Likewise.
13326         * modules/memcmp (Depends-on): Likewise.
13327         * modules/mkdir (Depends-on): Likewise.
13328         * modules/mkdtemp (Depends-on): Likewise.
13329         * modules/mkfifo (Depends-on): Likewise.
13330         * modules/mkfifoat (Depends-on): Likewise.
13331         * modules/mknod (Depends-on): Likewise.
13332         * modules/mkostemp (Depends-on): Likewise.
13333         * modules/mkostemps (Depends-on): Likewise.
13334         * modules/mkstemp (Depends-on): Likewise.
13335         * modules/mkstemps (Depends-on): Likewise.
13336         * modules/mktime (Depends-on): Likewise.
13337         * modules/nanosleep (Depends-on): Likewise.
13338         * modules/open (Depends-on): Likewise.
13339         * modules/openat (Depends-on): Likewise.
13340         * modules/perror (Depends-on): Likewise.
13341         * modules/poll (Depends-on): Likewise.
13342         * modules/popen (Depends-on): Likewise.
13343         * modules/posix_spawn (Depends-on): Likewise.
13344         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13345         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13346         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13347         * modules/posix_spawnp (Depends-on): Likewise.
13348         * modules/pread (Depends-on): Likewise.
13349         * modules/printf-posix (Depends-on): Likewise.
13350         * modules/ptsname (Depends-on): Likewise.
13351         * modules/putenv (Depends-on): Likewise.
13352         * modules/pwrite (Depends-on): Likewise.
13353         * modules/readline (Depends-on): Likewise.
13354         * modules/readlink (Depends-on): Likewise.
13355         * modules/readlinkat (Depends-on): Likewise.
13356         * modules/recv (Depends-on): Likewise.
13357         * modules/recvfrom (Depends-on): Likewise.
13358         * modules/regex (Depends-on): Likewise.
13359         * modules/remove (Depends-on): Likewise.
13360         * modules/rename (Depends-on): Likewise.
13361         * modules/renameat (Depends-on): Likewise.
13362         * modules/rmdir (Depends-on): Likewise.
13363         * modules/round (Depends-on): Likewise.
13364         * modules/roundf (Depends-on): Likewise.
13365         * modules/roundl (Depends-on): Likewise.
13366         * modules/rpmatch (Depends-on): Likewise.
13367         * modules/select (Depends-on): Likewise.
13368         * modules/send (Depends-on): Likewise.
13369         * modules/sendto (Depends-on): Likewise.
13370         * modules/setenv (Depends-on): Likewise.
13371         * modules/setlocale (Depends-on): Likewise.
13372         * modules/setsockopt (Depends-on): Likewise.
13373         * modules/shutdown (Depends-on): Likewise.
13374         * modules/sigaction (Depends-on): Likewise.
13375         * modules/signbit (Depends-on): Likewise.
13376         * modules/sigprocmask (Depends-on): Likewise.
13377         * modules/sinl (Depends-on): Likewise.
13378         * modules/sleep (Depends-on): Likewise.
13379         * modules/snprintf (Depends-on): Likewise.
13380         * modules/snprintf-posix (Depends-on): Likewise.
13381         * modules/socket (Depends-on): Likewise.
13382         * modules/sprintf-posix (Depends-on): Likewise.
13383         * modules/sqrtl (Depends-on): Likewise.
13384         * modules/stat (Depends-on): Likewise.
13385         * modules/strchrnul (Depends-on): Likewise.
13386         * modules/strdup-posix (Depends-on): Likewise.
13387         * modules/strerror (Depends-on): Likewise.
13388         * modules/strerror_r-posix (Depends-on): Likewise.
13389         * modules/strndup (Depends-on): Likewise.
13390         * modules/strnlen (Depends-on): Likewise.
13391         * modules/strptime (Depends-on): Likewise.
13392         * modules/strsep (Depends-on): Likewise.
13393         * modules/strsignal (Depends-on): Likewise.
13394         * modules/strstr-simple (Depends-on): Likewise.
13395         * modules/strtod (Depends-on): Likewise.
13396         * modules/strtoimax (Depends-on): Likewise.
13397         * modules/strtok_r (Depends-on): Likewise.
13398         * modules/strtoumax (Depends-on): Likewise.
13399         * modules/symlink (Depends-on): Likewise.
13400         * modules/symlinkat (Depends-on): Likewise.
13401         * modules/tanl (Depends-on): Likewise.
13402         * modules/tcgetsid (Depends-on): Likewise.
13403         * modules/tmpfile (Depends-on): Likewise.
13404         * modules/trunc (Depends-on): Likewise.
13405         * modules/truncf (Depends-on): Likewise.
13406         * modules/truncl (Depends-on): Likewise.
13407         * modules/uname (Depends-on): Likewise.
13408         * modules/unlink (Depends-on): Likewise.
13409         * modules/unlockpt (Depends-on): Likewise.
13410         * modules/unsetenv (Depends-on): Likewise.
13411         * modules/usleep (Depends-on): Likewise.
13412         * modules/utimensat (Depends-on): Likewise.
13413         * modules/vasprintf (Depends-on): Likewise.
13414         * modules/vdprintf (Depends-on): Likewise.
13415         * modules/vdprintf-posix (Depends-on): Likewise.
13416         * modules/vfprintf-posix (Depends-on): Likewise.
13417         * modules/vprintf-posix (Depends-on): Likewise.
13418         * modules/vsnprintf (Depends-on): Likewise.
13419         * modules/vsnprintf-posix (Depends-on): Likewise.
13420         * modules/vsprintf-posix (Depends-on): Likewise.
13421         * modules/wcrtomb (Depends-on): Likewise.
13422         * modules/wcscasecmp (Depends-on): Likewise.
13423         * modules/wcscspn (Depends-on): Likewise.
13424         * modules/wcsdup (Depends-on): Likewise.
13425         * modules/wcsncasecmp (Depends-on): Likewise.
13426         * modules/wcsnrtombs (Depends-on): Likewise.
13427         * modules/wcspbrk (Depends-on): Likewise.
13428         * modules/wcsrtombs (Depends-on): Likewise.
13429         * modules/wcsspn (Depends-on): Likewise.
13430         * modules/wcsstr (Depends-on): Likewise.
13431         * modules/wcstok (Depends-on): Likewise.
13432         * modules/wcswidth (Depends-on): Likewise.
13433         * modules/wctob (Depends-on): Likewise.
13434         * modules/wctomb (Depends-on): Likewise.
13435         * modules/wctype (Depends-on): Likewise.
13436         * modules/wcwidth (Depends-on): Likewise.
13437         * modules/write (Depends-on): Likewise.
13438
13439 2011-05-03  Bruno Haible  <bruno@clisp.org>
13440
13441         Support for conditional dependencies.
13442         * doc/gnulib.texi (Module description): Document the syntax of
13443         conditional dependencies.
13444         * gnulib-tool: New option --conditional-dependencies.
13445         (func_usage): Document it.
13446         (cond_dependencies): New variable.
13447         (func_get_automake_snippet_conditional,
13448         func_get_automake_snippet_unconditional): New functions, extracted from
13449         func_get_automake_snippet.
13450         (func_get_automake_snippet): Use them.
13451         (sed_first_32_chars): New variable.
13452         (func_module_shellfunc_name): New function.
13453         (func_module_shellvar_name): New function.
13454         (func_module_conditional_name): New function.
13455         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13456         func_cond_module_condition): New functions.
13457         (func_modules_transitive_closure): Add support for conditional
13458         dependencies.
13459         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13460         conditional automake snippet in an automake conditional.
13461         (func_emit_autoconf_snippets): Emit shell functions that contain the
13462         code for conditional modules.
13463         (func_import, func_create_testdir): Update specification.
13464
13465 2011-05-03  Eric Blake  <eblake@redhat.com>
13466
13467         test-getaddrinfo: report error information
13468         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13469
13470 2011-05-03  Jim Meyering  <meyering@redhat.com>
13471
13472         bootstrap: avoid build failure when $GZIP is set
13473         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13474         program name.  If defined at all, it is supposed to list gzip options.
13475         Reported by Alan Curry in http://debbugs.gnu.org/8609
13476
13477 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13478
13479         readme-release: new module with release instructions
13480         * modules/readme-release: New module.
13481         * top/README-release: New file, from coreutils, grep, diffutils.
13482         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13483
13484 2011-05-02  Eric Blake  <eblake@redhat.com>
13485
13486         fflush: also replace fclose when fixing fflush
13487         * modules/fflush (Depends-on): Add fclose.
13488         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13489         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13490         memstreams with no backing fd.
13491         * doc/posix-functions/fclose.texi (fclose): Document the use of
13492         fflush module to fix the bug.
13493         * tests/test-fclose.c (main): Relax test when fclose is used in
13494         isolation.
13495
13496         fclose: add some tests
13497         * modules/fclose-tests: New test module.
13498         * tests/test-fclose.c: New file.
13499         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13500
13501         fclose: reduced dependencies
13502         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13503         simpler lseek.
13504         * lib/fclose.c (rpl_fclose): Likewise.
13505         Reported by Simon Josefsson.
13506
13507         exit: drop remaining clients
13508         * modules/argmatch (Depends-on): Replace exit with stdlib.
13509         * modules/copy-file (Depends-on): Likewise.
13510         * modules/execute (Depends-on): Likewise.
13511         * modules/exitfail (Depends-on): Likewise.
13512         * modules/obstack (Depends-on): Likewise.
13513         * modules/pagealign_alloc (Depends-on): Likewise.
13514         * modules/pipe-filter-gi (Depends-on): Likewise.
13515         * modules/pipe-filter-ii (Depends-on): Likewise.
13516         * modules/savewd (Depends-on): Likewise.
13517         * modules/spawn-pipe (Depends-on): Likewise.
13518         * modules/wait-process (Depends-on): Likewise.
13519         * modules/xsetenv (Depends-on): Likewise.
13520         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13521         * modules/git-merge-changelog (Depends-on): Likewise.
13522         * modules/long-options (Depends-on): Likewise.
13523         * modules/pt_chown (Depends-on): Likewise.
13524         * modules/sysexits (Depends-on): Likewise.
13525
13526         freading: relax license from LGPLv3+ to LGPLv2+
13527         * modules/freading (License): Relax LGPL version.
13528
13529 2011-05-02  Bruno Haible  <bruno@clisp.org>
13530
13531         fchdir: Remove unused dependencies.
13532         * modules/fchdir (Depends-on): Remove include_next.
13533
13534 2011-05-02  Bruno Haible  <bruno@clisp.org>
13535
13536         gnulib-tool: Refactor.
13537         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13538         from func_emit_autoconf_snippets.
13539         (func_emit_autoconf_snippets): Use it.
13540
13541 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13542
13543         * NEWS: Document removal of 'exit'.
13544         * modules/exit: Remove file.
13545
13546 2011-05-01  Bruno Haible  <bruno@clisp.org>
13547
13548         Update DEPENDENCIES.
13549         * DEPENDENCIES (gettext): Recommend the newest release.
13550         Reported by Simon Josefsson.
13551
13552 2011-05-01  Bruno Haible  <bruno@clisp.org>
13553
13554         gnulib-tool: Reduce code duplication.
13555         * gnulib-tool (func_emit_autoconf_snippets): New function.
13556         (func_import, func_create_testdir): Use it.
13557
13558 2011-04-30  Eric Blake  <eblake@redhat.com>
13559
13560         fclose: don't fail on non-seekable input stream
13561         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13562         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13563         since fflush is allowed to fail in that case.
13564
13565 2011-04-30  Bruno Haible  <bruno@clisp.org>
13566
13567         dup3: cleanup
13568         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13569
13570 2011-04-30  Bruno Haible  <bruno@clisp.org>
13571
13572         netdb: Make it work in C++ mode.
13573         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13574         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13575         module.
13576         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13577         gl_MODULE_INDICATOR_FOR_TESTS.
13578         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13579         * modules/netdb-c++-tests: New file.
13580         * tests/test-netdb-c++.cc: New file.
13581
13582 2011-04-30  Bruno Haible  <bruno@clisp.org>
13583
13584         New modules 'vfscanf', 'vscanf'.
13585         * modules/vfscanf: New file.
13586         * modules/vscanf: New file.
13587         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13588         here.
13589         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13590         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13591
13592 2011-04-30  Bruno Haible  <bruno@clisp.org>
13593
13594         passfd: Add comments.
13595         * lib/passfd.c: Add comments about platforms.
13596
13597 2011-04-30  Bruno Haible  <bruno@clisp.org>
13598
13599         sys_uio: Make <sys/uio.h> self-contained.
13600         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13601         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13602
13603 2011-04-30  Bruno Haible  <bruno@clisp.org>
13604
13605         sys_socket: Ensure 'struct iovec' definition.
13606         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13607         <sys/socket.h>.
13608         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13609
13610 2011-04-30  Bruno Haible  <bruno@clisp.org>
13611
13612         sys_uio: Protect definition of 'struct iovec'.
13613         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13614         it as a C struct.
13615
13616 2011-04-30  Bruno Haible  <bruno@clisp.org>
13617
13618         manywarnings: fix indentation
13619         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13620
13621 2011-04-30  Pádraig Brady <P@draigBrady.com>
13622
13623         manywarnings: add -Wno-missing-field-initializers if needed.
13624         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13625         option if it's needed to allow initialization with { 0, }
13626
13627 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13628
13629         announce-gen: cosmetic improvement
13630         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13631
13632 2011-04-29  Jim Meyering  <meyering@redhat.com>
13633
13634         vc-list-files: indent with spaces, not TABs
13635         * build-aux/vc-list-files: Convert leading TABs to spaces,
13636         to match the style of most other files in gnulib.
13637
13638         announce-gen: indent with spaces, not TABs
13639         * build-aux/announce-gen: Convert all TABs to spaces, to match
13640         the style of most other files in gnulib.
13641
13642 2011-04-29  Eric Blake  <eblake@redhat.com>
13643
13644         quotearg: avoid uninitialized variable use
13645         * lib/quotearg.c (quoting_options_from_style): Initialize
13646         remaining fields, and ensure that custom styles are only used via
13647         quoting_options rather than quoting_style.
13648
13649 2011-04-29  Jim Meyering  <meyering@redhat.com>
13650
13651         maint.mk: remove unused VC-tag variable
13652         * top/maint.mk (VC-tag): Remove unused variable.
13653
13654 2011-04-29  Bruno Haible  <bruno@clisp.org>
13655
13656         netdb: fix gai_strerror replacements
13657         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13658         * modules/netdb: Substitute it.
13659
13660 2011-04-29  Jim Meyering  <meyering@redhat.com>
13661
13662         test-getcwd.c: avoid new set-but-not-used warning
13663         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13664         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13665         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13666         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13667
13668         test-hash.c: avoid a new shadowing warning
13669         * tests/test-hash.c (main): Don't shadow "dup".
13670
13671 2011-04-28  Eric Blake  <eblake@redhat.com>
13672
13673         getaddrinfo: fix gai_strerror signature
13674         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13675         and work around mingw with UNICODE defined.
13676         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13677         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13678         * modules/netdb (Makefile.am): Substitute it.
13679         * lib/netdb.in.h (gai_strerror): Declare replacement.
13680         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13681         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13682         the fix.
13683
13684         getsockopt: avoid compiler warning
13685         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13686         Reported by Matthias Bolte.
13687
13688         tests: drop unused link dependency
13689         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13690         * modules/dirent-safer-tests (Makefile.am): Likewise.
13691         * modules/fdopendir-tests (Makefile.am): Likewise.
13692         * modules/mkfifoat-tests (Makefile.am): Likewise.
13693         * modules/openat-safer-tests (Makefile.am): Likewise.
13694         * modules/openat-tests (Makefile.am): Likewise.
13695         * modules/readlinkat-tests (Makefile.am): Likewise.
13696         * modules/symlinkat-tests (Makefile.am): Likewise.
13697         * modules/linkat-tests (Makefile.am): Likewise.
13698         (Depends-on): Switch to filenamecat-lgpl.
13699         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13700         LIBINTL.
13701         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13702         * tests/test-linkat.c (main): Don't require xalloc.
13703
13704         hash, mgetgroups: drop xalloc dependency
13705         * lib/hash.c (includes): Adjust includes.
13706         * lib/mgetgroups.c (includes): Likewise.
13707         (xgetgroups): Move...
13708         * lib/xgetgroups.c: ...to new file.
13709         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13710         * modules/xgetgroups: New file, split from...
13711         * modules/mgetgroups: ...here.
13712         (Depends-on): Add xalloc-oversized.
13713         * modules/hash (Depends-on): Likewise.
13714         * modules/hash-tests (Depends-on): Drop xalloc.
13715         (test_hash_LDADD): Drop unused library.
13716         * tests/test-hash.c (main): Break xalloc dependency.
13717         (includes): Drop unused include.
13718
13719         xalloc-oversized: new module
13720         * modules/xalloc-oversized: New module.
13721         * modules/xalloc (Depends-on): Add it.
13722         * lib/xalloc.h (xalloc_oversized): Move...
13723         * lib/xalloc-oversized.h: ...into new file.
13724
13725         utimecmp: drop dependency on xmalloc
13726         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13727         due to memory pressure.
13728         * modules/utimecmp (Depends-on): Drop xalloc.
13729
13730 2011-04-27  Eric Blake  <eblake@redhat.com>
13731
13732         getcwd: fix mingw bugs
13733         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13734         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13735         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13736
13737 2011-04-27  Bruno Haible  <bruno@clisp.org>
13738
13739         mkstemps: Ensure declaration on MacOS X 10.5.
13740         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13741         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13742         MacOS X.
13743
13744 2011-04-27  Bruno Haible  <bruno@clisp.org>
13745
13746         mkstemp: More documentation.
13747         * doc/posix-functions/mkstemp.texi: Document header file problem on
13748         MacOS X.
13749
13750 2011-04-27  Bruno Haible  <bruno@clisp.org>
13751
13752         mkstemp: Tweak configure message when cross-compiling.
13753         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13754         result as a guess.
13755
13756 2011-04-27  Bruno Haible  <bruno@clisp.org>
13757
13758         clean-temp: Clarify what it does.
13759         * lib/clean-temp.h: Add more comments.
13760         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13761         module.
13762         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13763         * doc/glibc-functions/mkstemps.texi: Likewise.
13764         * doc/glibc-functions/mkostemps.texi: Likewise.
13765
13766 2011-04-27  Eric Blake  <eblake@redhat.com>
13767
13768         fchdir: avoid extra chdir and fix test
13769         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13770         getcwd-lgpl.
13771         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13772         have to be canonical.
13773         (canonicalize_file_name): Drop unused macro.
13774         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13775
13776         filenamecat-lgpl: fix licence
13777         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13778         when it was first created.
13779
13780         linkat, renameat: add missing dependency
13781         * modules/linkat (Depends-on): Require getcwd-lgpl.
13782         * modules/renameat (Depends-on): Likewise.
13783
13784         tests: reduce dependencies
13785         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13786         * tests/test-renameat.c (main): Likewise.
13787         * modules/linkat-tests (Depends-on): Relax dependency.
13788         * modules/renameat-tests (Depends-on): Likewise.
13789         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13790         dependency explicit.
13791
13792         save-cwd: reduce default dependency
13793         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13794         * lib/save-cwd.c: Update comments.
13795         * NEWS: Document the semantic change.
13796
13797         getcwd: enhance tests
13798         * tests/test-getcwd-lgpl.c: New file, taken from...
13799         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13800         repeat long path stress tests from m4 probe.
13801         * modules/getcwd-lgpl-tests: New module.
13802         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13803         * m4/getcwd-abort-bug.m4: Update comment.
13804         * m4/getcwd-path-max.m4: Likewise.
13805
13806         getcwd-lgpl: new module
13807         * modules/getcwd-lgpl: New module.
13808         * lib/getcwd-lgpl.c: New file.
13809         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13810         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13811         * modules/getcwd (configure.ac): Set C witness.
13812         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13813
13814         getcwd: tweak comments
13815         * m4/getcwd-abort-bug.m4: Fix comments.
13816         * m4/getcwd-path-max.m4: Likewise.
13817         * m4/getcwd.m4: Likewise.
13818
13819 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13820         and Eric Blake  <eblake@redhat.com>
13821
13822         mkstemp: replace if system version uses wrong permissions
13823         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13824         read/write mode bits set in file created by mkstemp.
13825         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13826
13827 2011-04-27  Eric Blake  <eblake@redhat.com>
13828
13829         passfd: avoid compiler warning
13830         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13831         Reported by Laine Stump.
13832
13833 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13834
13835         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13836         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13837
13838 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13839         and Eric Blake  <eblake@redhat.com>
13840
13841         mkstemp: mention clean-temp module
13842         * lib/mkstemp.c: Add comment.
13843         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13844
13845 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13846
13847         inttypes: also provide default values for 32-bit tests
13848         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13849         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13850
13851 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13852
13853         strtoumax: remove dependency on strtoimax
13854         This is like the strtoull change of yesterday.
13855         * modules/strtoumax (Files): Add lib/strtoimax.c.
13856         (Depends-on): Remove strtoimax and add verify.
13857
13858         inttypes-incomplete: new module
13859         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13860         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13861         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13862         of gl_INTTYPES_H.
13863         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13864         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13865         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13866         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13867         * modules/strtoumax, modules/xstrtol (Depends-on):
13868         Depend on inttypes-incomplete, not inttypes.
13869         * modules/inttypes-incomplete: New module, containing the contents
13870         of the old modules/inttypes module, except that the Files: section
13871         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13872         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13873         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13874         (Depends-on): Depend only on inttypes-incomplete.
13875         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13876
13877         inttypes: omit now-redundant strtoimax and strtoumax work
13878         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13879         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13880
13881         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13882         This supports apps that need pointers to strtoimax and strtoumax,
13883         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13884         nonexistent functions.  See
13885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13886         et seq.
13887         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13888         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13889         a macro.
13890         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13891
13892 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13893
13894         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13895
13896 2011-04-25  Bruno Haible  <bruno@clisp.org>
13897
13898         strtol, strtoul: Mark modules as obsolete.
13899         * modules/strtol (Status, Notice): New sections.
13900         * modules/strtoul (Status, Notice): New sections.
13901
13902 2011-04-25  Bruno Haible  <bruno@clisp.org>
13903
13904         strtod: Remove check for strtod, unless supporting old platforms.
13905         * modules/strtod-obsolete: New file.
13906         * m4/strtod-obsolete.m4: New file.
13907         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13908         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13909         * modules/strtod (Depends-on): Add strtod-obsolete.
13910         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13911
13912 2011-04-25  Bruno Haible  <bruno@clisp.org>
13913
13914         strcase: Make module obsolete.
13915         * modules/strcase (Status, Notice): New sections.
13916
13917 2011-04-25  Bruno Haible  <bruno@clisp.org>
13918
13919         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13920         * modules/dup2-obsolete: New file.
13921         * m4/dup2-obsolete.m4: New file.
13922         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13923         gl_FUNC_DUP2_OBSOLETE is not also defined.
13924         * modules/dup2 (Depends-on): Add dup2-obsolete.
13925         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13926
13927 2011-04-25  Bruno Haible  <bruno@clisp.org>
13928
13929         strnlen: Avoid memchr related link error on old obsolete platforms.
13930         * modules/memchr-obsolete: New file.
13931         * m4/memchr-obsolete.m4: New file.
13932         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13933         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13934         * modules/memchr (Depends-on): Add memchr-obsolete.
13935         * modules/strnlen (Depends-on): Likewise.
13936         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13937
13938 2011-04-25  Jim Meyering  <meyering@redhat.com>
13939
13940         maint.mk: makefile_at_at_check extend and clean up
13941         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13942         in addition to */Makefile.am.
13943         Exempt legitimate uses of @VAR@ notation, e.g.,
13944         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13945         Remove obsolete coreutils-specific comment.
13946         Prompted by discussion here:
13947         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13948
13949 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13950
13951         strtoul: remove dependency on strtol
13952         This is so that 'configure' need not check for strtol merely because
13953         the application needs strtoul.
13954         * modules/strtoul (Files): Add lib/strtol.c.
13955         (Depends-on): Remove strtol.
13956
13957         strtoull: remove dependency on strtoul
13958         This is like the strtoll change.
13959         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13960         (Depends-on): Remove strtoul.
13961
13962         strtoll: remove dependency on strtol
13963         This is so that 'configure' need not check for strtol merely because
13964         the application needs strtoll.
13965         * modules/strtoll (Files): Add lib/strtol.c.
13966         (Depends-on): Remove strtol.
13967
13968 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13969
13970         inttypes: Move some configure check to module 'imaxdiv'.
13971         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13972         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13973         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13974
13975 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13976
13977         inttypes: Move some configure check to module 'imaxabs'.
13978         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13979         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13980         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13981
13982 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         inttypes: Remove configure tests that are not needed since 2009-12-31.
13985         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13986         gl_cv_header_working_inttypes_h.
13987
13988 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13989
13990         * modules/strnlen (Depends-on): Remove memchr.
13991         The strnlen implementation doesn't need the memchr module's fixes; see
13992         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13993
13994         strtol: remove dependency on wchar
13995         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13996         * modules/strtol (Depends-on): Remove wchar.
13997
13998 2011-04-21  Eric Blake  <eblake@redhat.com>
13999
14000         passfd: fix test regression on Linux
14001         * modules/passfd-tests (configure.ac): Correct socketpair check.
14002
14003         passfd: speed up configure and drop unused code
14004         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14005         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14006         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14007         Instead of probing at configure for unix_scm_rights_bsd44_way,
14008         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14009         check to a struct member probe.
14010         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14011         (sendfd, recvfd): Update preprocessor checks.
14012         * modules/passfd (Files): Reflect rename, and drop unused file.
14013         (Depends-on): Drop unused dependency.
14014
14015         passfd: allow compilation on mingw
14016         * modules/sys_socket (Depends-on): Add sys_uio.
14017         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14018         iovec and a minimal struct msghdr.
14019         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14020         * tests/test-sys_socket.c (main): Enhance test.
14021         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14022         guaranteed to provide what we need.
14023         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14024         * modules/passfd-tests (Depends-on): Add sys_wait.
14025         * tests/test-passfd.c (main): Skip test on mingw, for now.
14026         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14027         partial 'struct msghdr' implementation.
14028
14029         sys_uio: new module
14030         * modules/sys_uio: New module.
14031         * modules/sys_uio-tests: Likewise.
14032         * lib/sys_uio.in.h: New file.
14033         * m4/sys_uio_h.m4: Likewise.
14034         * tests/test-sys_uio.c: Likewise.
14035         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14036         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14037
14038 2011-04-20  Jim Meyering  <meyering@redhat.com>
14039
14040         useless-if-before-free: avoid false-positive
14041         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14042         disjunct so that it too requires a terminating ";".  Without that,
14043         this script would identify as useless one statement from gcc that
14044         was not:
14045           if (aligned_ptr)
14046             free (((void **) aligned_ptr) [-1]);
14047
14048 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14049
14050         doc: update users.txt.
14051         * users.txt: Add barcode.
14052
14053 2011-04-19  Bruno Haible  <bruno@clisp.org>
14054
14055         ioctl: Remove link dependency on native Windows.
14056         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14057         (gl_close_fn, gl_ioctl_fn): New types.
14058         (struct fd_hook): Renamed from struct close_hook. Change type of
14059         private_close_fn field. Add private_ioctl_fn field.
14060         (close_hook_fn): Add parameter for primary close method.
14061         (execute_close_hooks, execute_all_close_hooks): Likewise.
14062         (ioctl_hook_fn): New type.
14063         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14064         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14065         argument.
14066         (unregister_fd_hook): Renamed from unregister_close_hook.
14067         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14068         Don't include <unistd.h>.
14069         (close): Remove undef.
14070         (anchor): Update.
14071         (execute_close_hooks): Add argument for primary close method.
14072         (execute_all_close_hooks): Likewise.
14073         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14074         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14075         argument. Allow each argument to be NULL.
14076         (unregister_fd_hook): Renamed from unregister_close_hook.
14077         * lib/close.c (rpl_close): Pass 'close' function pointer to
14078         execute_all_close_hooks.
14079         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14080         (primary_ioctl): New function.
14081         (ioctl): Don't call ioctlsocket here. Instead, call
14082         execute_all_ioctl_hooks.
14083         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14084         close method.
14085         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14086         (fd_sockets_hook): Renamed from close_sockets_hook.
14087         (gl_sockets_startup, gl_sockets_cleanup): Update.
14088         * modules/fd-hook: Renamed from modules/close-hook. Update.
14089         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14090         * modules/sockets (Depends-on): Likewise.
14091         * modules/ioctl (Depends-on): Add fd-hook.
14092         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14093         GNULIB_SOCKET.
14094
14095 2011-04-19  Bruno Haible  <bruno@clisp.org>
14096
14097         Move the support of O_NONBLOCK in open() to the 'open' module.
14098         * modules/nonblocking (Depends-on): Remove 'open'.
14099         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14100         gl_cv_have_open_O_NONBLOCK.
14101         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14102         O_NONBLOCK support.
14103         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14104
14105 2011-04-17  Bruno Haible  <bruno@clisp.org>
14106
14107         pipe2: Simplify code.
14108         * lib/pipe2.c (pipe2): Reduce code duplication.
14109
14110 2011-04-17  Bruno Haible  <bruno@clisp.org>
14111
14112         nonblocking: Add comment.
14113         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14114
14115 2011-04-17  Bruno Haible  <bruno@clisp.org>
14116
14117         nonblocking: Add tests for sockets.
14118         * tests/test-nonblocking-socket.sh: New file.
14119         * tests/test-nonblocking-socket-main.c: New file.
14120         * tests/test-nonblocking-socket-child.c: New file.
14121         * tests/test-nonblocking-socket.h: New file.
14122         * tests/socket-server.h: New file.
14123         * tests/socket-client.h: New file.
14124         * modules/nonblocking-socket-tests: New file.
14125         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14126
14127 2011-04-17  Bruno Haible  <bruno@clisp.org>
14128
14129         nonblocking: Add tests for pipes.
14130         * tests/test-nonblocking-pipe.sh: New file.
14131         * tests/test-nonblocking-pipe-main.c: New file.
14132         * tests/test-nonblocking-pipe-child.c: New file.
14133         * tests/test-nonblocking-pipe.h: New file.
14134         * tests/test-nonblocking-writer.h: New file.
14135         * tests/test-nonblocking-reader.h: New file.
14136         * tests/test-nonblocking-misc.h: New file.
14137         * modules/nonblocking-pipe-tests: New file.
14138         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14139
14140 2011-04-16  Bruno Haible  <bruno@clisp.org>
14141
14142         gettext: Clarify the needed programmer actions.
14143         * modules/gettext (Notice): New field.
14144         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14145
14146 2011-04-16  Bruno Haible  <bruno@clisp.org>
14147
14148         strchrnul: Tweak last commit.
14149         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14150         bug.
14151         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14152         as in _GL_FUNCDECL_SYS.
14153         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14154         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14155
14156 2011-04-15  Eric Blake  <eblake@redhat.com>
14157
14158         strchrnul: work around cygwin bug
14159         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14160         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14161         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14162         * modules/string (Makefile.am): Substitute it.
14163         * lib/string.in.h (strchrnul): Use it.
14164
14165 2011-04-15  Bruno Haible  <bruno@clisp.org>
14166
14167         Don't require lib/stdio-write.c when only module 'stdio' is used.
14168         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14169         invocation.
14170         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14171
14172 2011-04-14  Bruno Haible  <bruno@clisp.org>
14173
14174         Support non-blocking pipe I/O in read() on native Windows.
14175         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14176         (read): New declaration.
14177         * lib/read.c: New file.
14178         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14179         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14180         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14181         vscanf): New declarations.
14182         * lib/stdio-read.c: New file.
14183         * m4/read.m4: New file.
14184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14185         REPLACE_READ.
14186         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14187         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14188         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14189         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14190         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14191         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14192         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14193         * modules/read: New file.
14194         * modules/nonblocking (Files): Add lib/stdio-read.c.
14195         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14196         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14197         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14198         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14199         * modules/pread (Depends-on): Add read.
14200         * modules/safe-read (Depends-on): Likewise.
14201         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14202         gets, scanf, vfscanf, vscanf): Verify signatures.
14203         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14204         problem with non-blocking pipes.
14205         * doc/posix-functions/fgetc.texi: Likewise.
14206         * doc/posix-functions/fgets.texi: Likewise.
14207         * doc/posix-functions/fread.texi: Likewise.
14208         * doc/posix-functions/fscanf.texi: Likewise.
14209         * doc/posix-functions/getc.texi: Likewise.
14210         * doc/posix-functions/getchar.texi: Likewise.
14211         * doc/posix-functions/gets.texi: Likewise.
14212         * doc/posix-functions/scanf.texi: Likewise.
14213         * doc/posix-functions/vfscanf.texi: Likewise.
14214         * doc/posix-functions/vscanf.texi: Likewise.
14215
14216 2011-04-14  Bruno Haible  <bruno@clisp.org>
14217
14218         Support non-blocking pipe I/O in write() on native Windows.
14219         * lib/write.c (rpl_write): Split a write request that failed merely
14220         because the byte count was larger than the pipe buffer's size.
14221         * doc/posix-functions/write.texi: Mention the problem with large byte
14222         counts.
14223
14224 2011-04-14  Bruno Haible  <bruno@clisp.org>
14225
14226         wchar: Ensure that wchar_t gets defined on uClibc.
14227         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14228         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14229
14230 2011-04-13  Bruno Haible  <bruno@clisp.org>
14231
14232         safe-write, full-read: Avoid unnecessary compilation units.
14233         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14234         (Depends-on): Remove safe-read. Add ssize_t.
14235         * modules/full-read (Files): Add lib/full-write.c.
14236         (Depends-on): Add full-write.
14237
14238 2011-04-13  Bruno Haible  <bruno@clisp.org>
14239
14240         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14241         * modules/pwrite (Depends-on): Add 'write'.
14242
14243 2011-04-13  Bruno Haible  <bruno@clisp.org>
14244
14245         Support non-blocking pipe I/O in write() on native Windows.
14246         * lib/unistd.in.h (write): Enable replacement also if
14247         GNULIB_UNISTD_H_NONBLOCKING is 1.
14248         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14249         (rpl_write): When failing to write on a non-blocking pipe, change
14250         errno from ENOSPC to EAGAIN.
14251         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14252         putchar, puts, vfprintf, vprintf): Enable replacement also if
14253         GNULIB_STDIO_H_NONBLOCKING is 1.
14254         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14255         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14256         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14257         CALL_WITH_SIGPIPE_EMULATION.
14258         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14259         * m4/nonblocking.m4: New file.
14260         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14261         for non-blocking I/O support.
14262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14263         GNULIB_UNISTD_H_NONBLOCKING.
14264         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14265         required for non-blocking I/O support.
14266         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14267         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14268         lib/stdio-write.c, m4/asm-underscore.m4.
14269         (Depends-on): Add stdio, unistd.
14270         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14271         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14272         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14273         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14274         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14275         problem with non-blocking pipes.
14276         * doc/posix-functions/fputc.texi: Likewise.
14277         * doc/posix-functions/fputs.texi: Likewise.
14278         * doc/posix-functions/fwrite.texi: Likewise.
14279         * doc/posix-functions/printf.texi: Likewise.
14280         * doc/posix-functions/putc.texi: Likewise.
14281         * doc/posix-functions/putchar.texi: Likewise.
14282         * doc/posix-functions/puts.texi: Likewise.
14283         * doc/posix-functions/vfprintf.texi: Likewise.
14284         * doc/posix-functions/vprintf.texi: Likewise.
14285         * doc/posix-functions/write.texi: Likewise.
14286
14287 2011-04-10  Jim Meyering  <meyering@redhat.com>
14288
14289         maint.mk: prohibit doubled words
14290         Detect them also when they're separated by a newline.
14291         There are 3 ways to customize it:
14292           - disable the test on a per file basis, as usual with rules using
14293             $(VC_LIST_EXCEPT)
14294           - replace the default doubled-word-selecting regexp (affects all files)
14295           - ignore a particular file-vs-doubled-word match
14296         I nearly used that last one to ignore the "is is" match in
14297         coreutils' NEWS file, since the text was "ls -is is ..."
14298         To do that, I would have added this line to cfg.mk:
14299           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14300         but it would have ignored any "is is" match in NEWS.
14301         Low probability, but still...
14302         Instead, I changed the text, slightly:
14303           -  ls -is is now consistent with ls -lis in ignoring values returned
14304           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14305         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14306         (prohibit_doubled_word_): Define.
14307         (sc_prohibit_doubled_word): New rule.
14308         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14309
14310 2011-04-10  Jim Meyering  <meyering@redhat.com>
14311
14312         maint: fix doubled-word typo in comment
14313         * m4/gethostname.m4: s/is is/it is/
14314         * m4/getdomainname.m4: Likewise.
14315
14316 2011-04-10  Jim Meyering  <meyering@redhat.com>
14317
14318         maint: remove doubled word: s/it it/it/
14319         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14320
14321 2011-04-10  Jim Meyering  <meyering@redhat.com>
14322
14323         maint.mk: remove useless semicolon and backslash
14324         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14325         semicolon and backslash.
14326
14327 2011-04-10  Bruno Haible  <bruno@clisp.org>
14328
14329         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14330         * modules/stdint-tests (Depends-on): Add wchar.
14331
14332 2011-04-10  Jim Meyering  <meyering@redhat.com>
14333
14334         maint: remove doubled words in comments, e.g., s/a a/a/
14335         * lib/strptime.c (day_of_the_week): s/the the/the/
14336         * tests/test-chown.h (test_chown): s/a a/a/
14337
14338         test-chown.h: correct a cast
14339         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14340         when the destination is a stat.st_gid.
14341
14342 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14343
14344         getaddrinfo: Fix test for sa_len member.
14345         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14346         include <sys/types.h> before <sys/socket.h>.
14347
14348 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         maint: change "can not" to "cannot"
14351         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14352         boundaries.
14353
14354 2011-04-09  Jim Meyering  <meyering@redhat.com>
14355
14356         maint: change "a a" to "a"
14357         * tests/test-lchown.h (test_lchown): s/a a/a/
14358
14359         maint.mk: prohibit \<the the\>
14360         * top/maint.mk (sc_prohibit_the_the): New rule.
14361
14362         maint: fix "the the" in comment
14363         * lib/count-one-bits.h: s/the the/the/
14364
14365         maint: change "can not" to "cannot"
14366         But do not change the occurrences in maintain.texi or in
14367         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14368         * doc/gnulib-tool.texi: s/can not/cannot/
14369         * doc/posix-functions/accept.texi (accept): Likewise.
14370         * doc/posix-functions/socket.texi (socket): Likewise.
14371         * lib/mbrtowc.c: Likewise.
14372
14373         maint.mk: prohibit use of "can not"
14374         * top/maint.mk (sc_prohibit_can_not): New rule.
14375         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14376
14377 2011-04-09  Bruno Haible  <bruno@clisp.org>
14378
14379         careadlinkat: Guard against misuse of careadlinkatcwd.
14380         * lib/careadlinkat.c: Include <stdlib.h>.
14381         (careadlinkatcwd): Check that the fd argument is as expected.
14382
14383 2011-04-09  Bruno Haible  <bruno@clisp.org>
14384
14385         careadlinkat: Use common coding style.
14386         * lib/careadlinkat.c: Move gnulib includes after system includes.
14387
14388 2011-04-09  Bruno Haible  <bruno@clisp.org>
14389
14390         careadlinkat: Clarify specification.
14391         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14392         (careadlinkatcwd): Add comment.
14393         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14394
14395 2011-04-09  Bruno Haible  <bruno@clisp.org>
14396
14397         areadlinkat: Avoid link error on many platforms.
14398         * modules/areadlinkat (Depends-on): Add areadlink.
14399
14400 2011-04-09  Bruno Haible  <bruno@clisp.org>
14401
14402         allocator, careadlinkat: Fix double-inclusion guard.
14403         * lib/allocator.h: Fix double-inclusion guard.
14404         * lib/careadlinkat.h: Likewise.
14405
14406 2011-04-09  Bruno Haible  <bruno@clisp.org>
14407
14408         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14409         * lib/relocwrapper.c: Update dependencies hierarchy.
14410         * build-aux/install-reloc: Update list of files to be compiled.
14411         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14412         lib/allocator.[hc].
14413
14414 2011-04-08  Eric Blake  <eblake@redhat.com>
14415
14416         strftime: silence gnulib-tool warning
14417         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14418
14419 2011-04-08  Bruno Haible  <bruno@clisp.org>
14420
14421         verify: Fix syntax error with GCC 4.6 in C++ mode.
14422         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14423         (HAVE_STATIC_ASSERT): New macro.
14424         (verify_true, verify): Use 'static_assert' if it is supported and
14425         '_Static_assert' is not supported.
14426
14427 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14428
14429         allocator: New module.
14430         * modules/allocator, lib/allocator.c: New files.
14431         * lib/allocator.h (stdlib_allocator): New decl.
14432         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14433         Remove.  Do not include <stdlib.h>.
14434         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14435         * modules/careadlinkat (Files): Remove lib/allocator.h.
14436         (Depends-on): Add allocator.
14437
14438         stdlib: let modules use system malloc, realloc
14439         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14440         if !_GL_USE_STDLIB_ALLOC.
14441         (malloc, realloc): Limit this change to a smaller scope.
14442
14443         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14444         (malloc, realloc): Don't #undef; no longer needed.
14445         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14446         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14447         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14448         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14449         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14450         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14451         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14452         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14453
14454         careadlinkat: rename members to avoid problem
14455         * lib/allocator.h (struct allocator): Rename members from
14456         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14457         and realloc are #define'd.  Reported by Eric Blake in
14458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14459         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14460
14461 2011-04-08  Eric Blake  <eblake@redhat.com>
14462
14463         nonblocking: reduce dependency
14464         * tests/test-nonblocking.c: Only test sockets when in use.
14465         * modules/nonblocking-tests (Depends-on): Drop socket.
14466         (Makefile.am): Link even if sockets are not present.
14467         * modules/pipe2-tests (Makefile.am): Likewise.
14468         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14469
14470         pipe2: fix O_NONBLOCK support on mingw
14471         * modules/pipe2 (Depends-on): Add nonblocking.
14472         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14473         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14474         * tests/test-nonblocking.c (main): Likewise.
14475         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14476
14477         fcntl-h: fix O_ACCMODE on cygwin
14478         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14479         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14480
14481         pipe-filter: drop O_NONBLOCK workarounds
14482         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14483         * modules/pipe-filter-ii (Depends-on): Likewise.
14484         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14485
14486         nonblocking: provide O_NONBLOCK for mingw
14487         * modules/nonblocking (Depends-on): Add open.
14488         (configure.ac): Set new witness macro.
14489         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14490         * modules/fcntl-h (Makefile.am): Substitute it.
14491         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14492         nonblocking module is in use.
14493         * lib/nonblocking.c: Adjust portability test.
14494         * lib/open.c (open): Don't let native open see gnulib flag.
14495         * tests/test-fcntl-h.c (main): Enhance test.
14496         * tests/test-open.h (test_open): Likewise.
14497         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14498
14499         careadlinkat: fix compilation error on mingw
14500         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14501         within struct allocator.
14502
14503 2011-04-06  Eric Blake  <eblake@redhat.com>
14504
14505         binary-io: relicense under LGPLv2+
14506         * modules/binary-io (License): Relax to LGPLv2+.
14507         Requested for libvirt, and required by pipe2.
14508
14509 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14510
14511         verify: use _Static_assert if available
14512         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14513         (verify_true, verify): Use it if available.  This generates better
14514         diagnostics with GCC 4.6.0 and later.
14515
14516 2011-04-05  Bruno Haible  <bruno@clisp.org>
14517
14518         Remove leftover generated .h files after config.status changed.
14519
14520         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14521         GL_GENERATE_ALLOCA_H.
14522         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14523         GL_GENERATE_ALLOCA_H evaluates to false.
14524
14525         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14526         GL_GENERATE_ARGZ_H.
14527         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14528         evaluates to false.
14529
14530         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14531         GL_GENERATE_BYTESWAP_H.
14532         * modules/byteswap (Makefile.am): Remove byteswap.h if
14533         GL_GENERATE_BYTESWAP_H evaluates to false.
14534
14535         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14536         GL_GENERATE_ERRNO_H.
14537         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14538         evaluates to false.
14539
14540         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14541         GL_GENERATE_FLOAT_H.
14542         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14543         evaluates to false.
14544
14545         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14546         GL_GENERATE_FNMATCH_H.
14547         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14548         GL_GENERATE_FNMATCH_H evaluates to false.
14549
14550         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14551         GL_GENERATE_GLOB_H.
14552         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14553         evaluates to false.
14554
14555         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14556         automake conditional GL_GENERATE_ICONV_H.
14557         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14558         evaluates to false.
14559
14560         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14561         GL_GENERATE_NETINET_IN_H.
14562         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14563         GL_GENERATE_NETINET_IN_H evaluates to false.
14564
14565         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14566         conditional GL_GENERATE_PTHREAD_H.
14567         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14568         * modules/pthread (Makefile.am): Remove pthread.h if
14569         GL_GENERATE_PTHREAD_H evaluates to false.
14570
14571         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14572         GL_GENERATE_SCHED_H.
14573         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14574         evaluates to false.
14575
14576         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14577         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14578         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14579         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14580
14581         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14582         GL_GENERATE_STDARG_H.
14583         * modules/stdarg (Makefile.am): Remove stdarg.h if
14584         GL_GENERATE_STDARG_H evaluates to false.
14585
14586         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14587         GL_GENERATE_STDBOOL_H.
14588         * modules/stdbool (Makefile.am): Remove stdbool.h if
14589         GL_GENERATE_STDBOOL_H evaluates to false.
14590
14591         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14592         conditional GL_GENERATE_STDDEF_H.
14593         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14594         * modules/stddef (Makefile.am): Remove stddef.h if
14595         GL_GENERATE_STDDEF_H evaluates to false.
14596
14597         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14598         GL_GENERATE_STDINT_H.
14599         * modules/stdint (Makefile.am): Remove stdint.h if
14600         GL_GENERATE_STDINT_H evaluates to false.
14601
14602         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14603         GL_GENERATE_SYSEXITS_H.
14604         * modules/sysexits (Makefile.am): Remove sysexits.h if
14605         GL_GENERATE_SYSEXITS_H evaluates to false.
14606
14607         Reported by Karl Berry and Ralf Wildenhues.
14608
14609 2011-04-05  Bruno Haible  <bruno@clisp.org>
14610
14611         Ensure to rebuild generated .h files when config.status has changed.
14612         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14613         config.status.
14614         * modules/ctype (Makefile.am): Likewise.
14615         * modules/dirent (Makefile.am): Likewise.
14616         * modules/errno (Makefile.am): Likewise.
14617         * modules/fcntl-h (Makefile.am): Likewise.
14618         * modules/float (Makefile.am): Likewise.
14619         * modules/getopt-posix (Makefile.am): Likewise.
14620         * modules/glob (Makefile.am): Likewise.
14621         * modules/iconv-h (Makefile.am): Likewise.
14622         * modules/inttypes (Makefile.am): Likewise.
14623         * modules/langinfo (Makefile.am): Likewise.
14624         * modules/locale (Makefile.am): Likewise.
14625         * modules/math (Makefile.am): Likewise.
14626         * modules/netdb (Makefile.am): Likewise.
14627         * modules/netinet_in (Makefile.am): Likewise.
14628         * modules/poll-h (Makefile.am): Likewise.
14629         * modules/pthread (Makefile.am): Likewise.
14630         * modules/pty (Makefile.am): Likewise.
14631         * modules/sched (Makefile.am): Likewise.
14632         * modules/search (Makefile.am): Likewise.
14633         * modules/selinux-h (Makefile.am): Likewise.
14634         * modules/signal (Makefile.am): Likewise.
14635         * modules/spawn (Makefile.am): Likewise.
14636         * modules/stdarg (Makefile.am): Likewise.
14637         * modules/stdbool (Makefile.am): Likewise.
14638         * modules/stddef (Makefile.am): Likewise.
14639         * modules/stdint (Makefile.am): Likewise.
14640         * modules/stdio (Makefile.am): Likewise.
14641         * modules/stdlib (Makefile.am): Likewise.
14642         * modules/string (Makefile.am): Likewise.
14643         * modules/strings (Makefile.am): Likewise.
14644         * modules/sys_file (Makefile.am): Likewise.
14645         * modules/sys_ioctl (Makefile.am): Likewise.
14646         * modules/sys_select (Makefile.am): Likewise.
14647         * modules/sys_socket (Makefile.am): Likewise.
14648         * modules/sys_stat (Makefile.am): Likewise.
14649         * modules/sys_time (Makefile.am): Likewise.
14650         * modules/sys_times (Makefile.am): Likewise.
14651         * modules/sys_utsname (Makefile.am): Likewise.
14652         * modules/sys_wait (Makefile.am): Likewise.
14653         * modules/sysexits (Makefile.am): Likewise.
14654         * modules/termios (Makefile.am): Likewise.
14655         * modules/time (Makefile.am): Likewise.
14656         * modules/unistd (Makefile.am): Likewise.
14657         * modules/wchar (Makefile.am): Likewise.
14658         * modules/wctype-h (Makefile.am): Likewise.
14659         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14660
14661 2011-04-05  Bruno Haible  <bruno@clisp.org>
14662
14663         pipe2: Relicense under LGPLv2+.
14664         * modules/pipe2 (License): Change to LGPLv2+.
14665         Requested by Eric Blake, for libvirt.
14666
14667 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14668
14669         bootstrap: compute gnulib_extra_files after updating build_aux
14670         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14671         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14672
14673 2011-04-05  Eric Blake  <eblake@redhat.com>
14674
14675         bootstrap: preserve git whitelist item sorting
14676         * build-aux/bootstrap (sort_patterns): New function.
14677         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14678
14679 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14680
14681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14682         sc_space_tab check.
14683
14684 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14685
14686         areadlink, areadlinkat: rewrite in terms of careadlinkat
14687         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14688         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14689         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14690         (malloc, realloc): Remove #undefs.
14691         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14692         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14693         readlink, ssize_t, stdint, unistd.
14694         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14695         areadlink, stdint.
14696
14697         careadlinkat: new module
14698         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14699         * modules/careadlinkat: New files, written by me with
14700         a review and feedback from Ben Pfaff in
14701         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14702
14703 2011-04-01  Bruno Haible  <bruno@clisp.org>
14704
14705         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14706         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14707         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14708         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14709         Reported by Bruce Korb <bruce.korb@gmail.com>.
14710
14711 2011-04-01  Bruno Haible  <bruno@clisp.org>
14712
14713         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14714         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14715         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14716         * modules/wcpcpy (Depends-on): Add extensions.
14717         * modules/wcpncpy (Depends-on): Likewise.
14718         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14719         systems.
14720         * doc/posix-functions/wcpncpy.texi: Likewise.
14721         * doc/posix-functions/wcwidth.texi: Likewise.
14722
14723 2011-03-31  Eric Blake  <eblake@redhat.com>
14724
14725         nonblocking: fix mingw test failures
14726         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14727         non-blocking flag on regular file.
14728         (get_nonblocking_flag): Set errno on invalid fd.
14729         * tests/test-nonblocking.c (main): Avoid test failure on
14730         directories if fchdir is not active.
14731         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14732
14733 2011-03-31  Bruno Haible  <bruno@clisp.org>
14734
14735         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14736         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14737         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14738         Reported by Simon Josefsson <simon@josefsson.org>.
14739
14740 2011-03-31  Bruno Haible  <bruno@clisp.org>
14741         and Eric Blake  <eblake@redhat.com>
14742
14743         nonblocking: new module
14744         * modules/nonblocking: New module.
14745         * modules/nonblocking-tests: Likewise.
14746         * lib/nonblocking.h: New file.
14747         * lib/nonblocking.c: Likewise.
14748         * tests/test-nonblocking.c: New test.
14749         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14750
14751 2011-03-30  Bruno Haible  <bruno@clisp.org>
14752
14753         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14754         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14755         instead of 'printf' format for GCC >= 4.4.
14756         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14757         (fprintf, printf, vfprintf, vprintf): Declare with
14758         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14759         the system's vfprintf() function.
14760         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14761
14762 2011-03-30  Eric Blake  <eblake@redhat.com>
14763
14764         passfd: fix scoping bug
14765         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14766         before sendmsg/recvmsg.
14767
14768         passfd: standardize coding conventions
14769         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14770         can be learned at compile time.
14771         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14772         ifdefs.
14773         (sendfd, recvfd): Follow gnulib code conventions.
14774
14775         passfd: fix incorrect sendmsg arguments
14776         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14777         incorrect msg_controllen value.
14778         * modules/passfd-tests (Depends-on): Check for alarm.
14779         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14780         Reported by Bastien ROUCARIES.
14781
14782 2011-03-30  Bruno Haible  <bruno@clisp.org>
14783
14784         c-strcasestr: Relicense under LGPLv2+.
14785         * modules/c-strcasestr (License): Change to LGPLv2+.
14786         Requested by Eric Blake, for libvirt.
14787
14788 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14789
14790         * users.txt: Add libidn2.  Fix libtasn1 link.
14791
14792 2011-03-30  Jim Meyering  <meyering@redhat.com>
14793
14794         tests: readlink* ("",... fails with EINVAL on newer kernels
14795         readlink and readlinkat have typically failed with ENOENT for
14796         the invalid, empty file name,  "".  However, with the advent
14797         of linux-2.6.39, they fail with EINVAL.
14798         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14799         when operating on the empty file name.
14800         * tests/test-readlink.h (test_readlink): Likewise.
14801
14802 2011-03-29  Bruno Haible  <bruno@clisp.org>
14803
14804         Relicense some modules under LGPLv2+, for libidn2.
14805         * modules/array-mergesort (License): Change to LGPLv2+.
14806         * modules/c-strcaseeq (License): Likewise.
14807         * modules/striconveh (License): Likewise.
14808         * modules/striconveha (License): Likewise.
14809         * modules/uniconv/base (License): Likewise.
14810         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14811         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14812         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14813         * modules/unictype/base (License): Likewise.
14814         * modules/unictype/bidiclass-of (License): Likewise.
14815         * modules/unictype/category-M (License): Likewise.
14816         * modules/unictype/category-none (License): Likewise.
14817         * modules/unictype/category-of (License): Likewise.
14818         * modules/unictype/category-test (License): Likewise.
14819         * modules/unictype/category-test-withtable (License): Likewise.
14820         * modules/unictype/combining-class (License): Likewise.
14821         * modules/unictype/joiningtype-of (License): Likewise.
14822         * modules/unictype/scripts (License): Likewise.
14823         * modules/uninorm/base (License): Likewise.
14824         * modules/uninorm/canonical-decomposition (License): Likewise.
14825         * modules/uninorm/composition (License): Likewise.
14826         * modules/uninorm/decompose-internal (License): Likewise.
14827         * modules/uninorm/decomposition-table (License): Likewise.
14828         * modules/uninorm/nfc (License): Likewise.
14829         * modules/uninorm/nfd (License): Likewise.
14830         * modules/uninorm/u32-normalize (License): Likewise.
14831         * modules/unistr/base (License): Likewise.
14832         * modules/unistr/u32-cpy (License): Likewise.
14833         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14834         * modules/unistr/u32-to-u8 (License): Likewise.
14835         * modules/unistr/u32-uctomb (License): Likewise.
14836         * modules/unistr/u8-check (License): Likewise.
14837         * modules/unistr/u8-mblen (License): Likewise.
14838         * modules/unistr/u8-mbtouc (License): Likewise.
14839         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14840         * modules/unistr/u8-mbtoucr (License): Likewise.
14841         * modules/unistr/u8-prev (License): Likewise.
14842         * modules/unistr/u8-strlen (License): Likewise.
14843         * modules/unistr/u8-to-u32 (License): Likewise.
14844         * modules/unistr/u8-uctomb (License): Likewise.
14845         * modules/unitypes (License): Likewise.
14846         Requested by Simon Josefsson.
14847
14848 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14849
14850         lib-symbol-visibility: Add a notice.
14851         * modules/lib-symbol-visibility (Notice): New field.
14852
14853 2011-03-29  Bruno Haible  <bruno@clisp.org>
14854
14855         getaddrinfo: Doc fix.
14856         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14857         section "fixed in Gnulib".
14858
14859 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14860
14861         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14862         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14863
14864 2011-03-26  Bruno Haible  <bruno@clisp.org>
14865
14866         unictype/property-byname: Reduce the number of load-time relocations.
14867         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14868         (UC_PROPERTY_INDEX_*): New enumeration values.
14869         (uc_property_byname): Convert an index from the lookup table to an
14870         uc_property_t.
14871         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14872         values.
14873
14874 2011-03-26  Bruno Haible  <bruno@clisp.org>
14875
14876         unictype/property-byname: Allow omitted word separators and aliases.
14877         * lib/unictype/pr_byname.gperf: Add property names without word
14878         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14879         for 'space'.
14880
14881 2011-03-26  Bruno Haible  <bruno@clisp.org>
14882
14883         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14884         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14885         also hyphens to space.
14886         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14887         without spaces.
14888         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14889
14890 2011-03-26  Bruno Haible  <bruno@clisp.org>
14891
14892         unictype/joiningtype-byname: Recognize long names as well.
14893         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14894         a long name.
14895         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14896         unictype/joiningtype_byname.h.
14897         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14898         * lib/unictype/joiningtype_byname.gperf: New file.
14899         * modules/unictype/joiningtype-byname (Files): Add
14900         lib/unictype/joiningtype_byname.gperf.
14901         (Depends-on): Add gperf.
14902         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14903         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14904         long names.
14905
14906         Tests for module 'unictype/joiningtype-longname'.
14907         * modules/unictype/joiningtype-longname-tests: New file.
14908         * tests/unictype/test-joiningtype_longname.c: New file.
14909
14910         New module 'unictype/joiningtype-longname'.
14911         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14912         * lib/unictype/joiningtype_longname.c: New file.
14913         * modules/unictype/joiningtype-longname: New file.
14914         * modules/unictype/joiningtype-all (Depends-on): Add
14915         unictype/joiningtype-longname.
14916
14917 2011-03-26  Bruno Haible  <bruno@clisp.org>
14918
14919         unictype/bidiclass-byname: Recognize long names as well.
14920         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14921         name.
14922         * lib/unictype/bidi_byname.c: Include <string.h>,
14923         unictype/bidi_byname.h.
14924         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14925         * lib/unictype/bidi_byname.gperf: New file.
14926         * modules/unictype/bidiclass-byname (Files): Add
14927         lib/unictype/bidi_byname.gperf.
14928         (Depends-on): Add gperf.
14929         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14930         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14931         long names.
14932
14933         Tests for module 'unictype/bidiclass-longname'.
14934         * modules/unictype/bidiclass-longname-tests: New file.
14935         * tests/unictype/test-bidi_longname.c: New file.
14936
14937         New module 'unictype/bidiclass-longname'.
14938         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14939         * lib/unictype/bidi_longname.c: New file.
14940         * modules/unictype/bidiclass-longname: New file.
14941         * modules/unictype/bidiclass-all (Depends-on): Add
14942         unictype/bidiclass-longname.
14943
14944 2011-03-26  Bruno Haible  <bruno@clisp.org>
14945
14946         unictype/bidi*: Rename modules.
14947         * modules/unictype/bidiclass-all: Renamed from
14948         modules/unictype/bidicategory-all.
14949         * modules/unictype/bidiclass-name: Renamed from
14950         modules/unictype/bidiclass-name.
14951         (Description): Update.
14952         * modules/unictype/bidiclass-name-tests: Renamed from
14953         modules/unictype/bidicategory-name-tests.
14954         * modules/unictype/bidiclass-byname: Renamed from
14955         modules/unictype/bidicategory-byname.
14956         (Description): Update.
14957         * modules/unictype/bidiclass-byname-tests: Renamed from
14958         modules/unictype/bidicategory-byname-tests.
14959         * modules/unictype/bidiclass-of: Renamed from
14960         modules/unictype/bidicategory-of.
14961         (Description): Update.
14962         * modules/unictype/bidiclass-of-tests: Renamed from
14963         modules/unictype/bidicategory-of-tests.
14964         * modules/unictype/bidiclass-test: Renamed from
14965         modules/unictype/bidicategory-test.
14966         (Description): Update.
14967         * modules/unictype/bidiclass-test-tests: Renamed from
14968         modules/unictype/bidicategory-test-tests.
14969         * modules/unictype/bidicategory-all: New file, a simple redirection.
14970         * modules/unictype/bidicategory-name: Likewise.
14971         * modules/unictype/bidicategory-byname: Likewise.
14972         * modules/unictype/bidicategory-of: Likewise.
14973         * modules/unictype/bidicategory-test: Likewise.
14974         * modules/unictype/property-bidi-* (Dependencies): Update.
14975         * lib/unictype/bidi_*.c: Update comment.
14976
14977 2011-03-26  Bruno Haible  <bruno@clisp.org>
14978
14979         unictype/bidi*: Rename functions, part 2.
14980         * modules/unictype/bidicategory-name (configure.ac): Update required
14981         libunistring version.
14982         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14983
14984 2011-03-25  Bruno Haible  <bruno@clisp.org>
14985
14986         New module 'unictype/combining-class-all'.
14987         * modules/unictype/combining-class-all: New file.
14988
14989         Tests for module 'unictype/combining-class-byname'.
14990         * modules/unictype/combining-class-byname-tests: New file.
14991         * tests/unictype/test-combiningclass_byname.c: New file.
14992
14993         New module 'unictype/combining-class-byname'.
14994         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14995         * lib/unictype/combiningclass_byname.c: New file.
14996         * lib/unictype/combiningclass_byname.gperf: New file.
14997         * modules/unictype/combining-class-byname: New file.
14998
14999         Tests for module 'unictype/combining-class-longname'.
15000         * modules/unictype/combining-class-longname-tests: New file.
15001         * tests/unictype/test-combiningclass_longname.c: New file.
15002
15003         New module 'unictype/combining-class-longname'.
15004         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15005         * lib/unictype/combiningclass_longname.c: New file.
15006         * modules/unictype/combining-class-longname: New file.
15007
15008         Tests for module 'unictype/combining-class-name'.
15009         * modules/unictype/combining-class-name-tests: New file.
15010         * tests/unictype/test-combiningclass_name.c: New file.
15011
15012         New module 'unictype/combining-class-name'.
15013         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15014         * lib/unictype/combiningclass_name.c: New file.
15015         * modules/unictype/combining-class-name: New file.
15016
15017 2011-03-25  Bruno Haible  <bruno@clisp.org>
15018
15019         unictype/combining-class: Rename source files.
15020         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15021         of unictype/combining.h.
15022         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15023         Update.
15024         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15025         * modules/unictype/combining-class (Description): Fix.
15026         (Files, Makefile.am): Update.
15027         * tests/unictype/test-combiningclass.c: Renamed from
15028         tests/unictype/test-combining.c.
15029         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15030
15031 2011-03-25  Bruno Haible  <bruno@clisp.org>
15032
15033         unictype: Update list of canonical combining classes.
15034         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15035
15036 2011-03-25  Bruno Haible  <bruno@clisp.org>
15037
15038         unictype/category-byname: Recognize long names as well.
15039         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15040         a long name.
15041         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15042         unictype/categ_byname.h.
15043         (UC_CATEGORY_INDEX_*): New enumeration values.
15044         (uc_general_category_byname): Use uc_general_category_lookup and
15045         convert from index to value.
15046         * lib/unictype/categ_byname.gperf: New file.
15047         * modules/unictype/category-byname (Files): Add
15048         lib/unictype/categ_byname.gperf.
15049         (Depends-on): Add gperf.
15050         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15051         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15052         long names.
15053
15054         Tests for module 'unictype/category-longname'.
15055         * modules/unictype/category-longname-tests: New file.
15056         * tests/unictype/test-categ_longname.c: New file.
15057
15058         New module 'unictype/category-longname'.
15059         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15060         * lib/unictype/categ_longname.c: New file.
15061         * modules/unictype/category-longname: New file.
15062         * modules/unictype/category-all (Depends-on): Add it.
15063
15064 2011-03-25  Bruno Haible  <bruno@clisp.org>
15065
15066         Tests for module 'unictype/category-LC'.
15067         * modules/unictype/category-LC-tests: New file.
15068         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15069
15070         New module 'unictype/category-LC'.
15071         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15072         (UC_CATEGORY_LC): New declaration.
15073         (UC_CASED_LETTER): New macro.
15074         * lib/gen-uni-tables.c (is_category_LC): New function.
15075         (output_categories): Also handle category LC.
15076         (UC_CATEGORY_MASK_LC): New enumeration value.
15077         (general_category_byname): Also handle category LC.
15078         * lib/unictype/categ_LC.c: New file.
15079         * lib/unictype/categ_LC.h: New file, automatically generated.
15080         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15081         category LC.
15082         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15083         * modules/unictype/category-LC: New file.
15084         * modules/unictype/category-byname (Depends-on): Add
15085         unictype/category-LC.
15086         * modules/unictype/category-all (Depends-on): Likewise.
15087
15088 2011-03-25  Eric Blake  <eblake@redhat.com>
15089
15090         xmalloc: revert yesterday's regression
15091         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15092         realloc's underlying behavior (allowing allocation of zero-size
15093         objects, especially if malloc-gnu is also in use).
15094
15095 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15096
15097         maint.mk: add missing version to VC-tag
15098         * top/maint.mk: git tag was missing actual tag name; add it.
15099
15100         valgrind: do leak checking, and exit with code 1 on error (not 0)
15101         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15102         to VALGRIND.
15103
15104 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15105
15106         posix-modules: say what it does.
15107         * posix-modules: Add a line to the --help output saying what it does.
15108
15109 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15110
15111         xmalloc: Do not leak if underlying realloc is C99 compatible.
15112         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15113         This avoids a leak on C99-based systems.  See
15114         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15115
15116 2011-03-24  Eric Blake  <eblake@redhat.com>
15117
15118         realloc: document portability problem
15119         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15120         passing 0 size to realloc.
15121
15122 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15123
15124         doc: update users.txt
15125         * users.txt: Add cvsps, tmpwatch
15126
15127 2011-03-23  Matt Rice  <ratmice@gmail.com>
15128
15129         doc: update users.txt
15130         * users.txt: Add gdb.
15131
15132 2011-03-23  Jim Meyering  <meyering@redhat.com>
15133
15134         doc: update users.txt
15135         Looking through matches up to the following URL (there are still
15136         several more pages), I found several projects that use gnulib:
15137         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15138         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15139         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15140
15141 2011-03-22  Bruno Haible  <bruno@clisp.org>
15142
15143         unictype/bidi*: Rename functions.
15144         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15145         uc_bidi_class, uc_is_bidi_class): New declarations.
15146         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15147         uc_bidi_category_byname.
15148         (uc_bidi_category_byname): New function.
15149         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15150         u_bidi_category_name.
15151         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15152         (uc_bidi_category_name): New function.
15153         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15154         uc_bidi_category.
15155         (uc_bidi_category): New function.
15156         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15157         uc_is_bidi_category. Invoke uc_bidi_class.
15158         (uc_is_bidi_category): New function.
15159         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15160         instead of uc_bidi_category_byname.
15161         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15162         instead of uc_bidi_category_name.
15163         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15164         uc_bidi_category.
15165         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15166         instead of uc_is_bidi_category.
15167
15168 2011-03-21  Bruno Haible  <bruno@clisp.org>
15169
15170         New module 'unictype/joininggroup-all'.
15171         * modules/unictype/joininggroup-all: New file.
15172
15173         Tests for module 'unictype/joininggroup-of'.
15174         * modules/unictype/joininggroup-of-tests: New file.
15175         * tests/unictype/test-joininggroup_of.c: New file.
15176         * tests/unictype/test-joininggroup_of.h: New file, automatically
15177         generated by gen-uni-tables.
15178
15179         New module 'unictype/joininggroup-of'.
15180         * modules/unictype/joininggroup-of: New file.
15181         * lib/unictype/joininggroup_of.c: New file.
15182         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15183         gen-uni-tables.
15184
15185         Tests for module 'unictype/joininggroup-byname'.
15186         * modules/unictype/joininggroup-byname-tests: New file.
15187         * tests/unictype/test-joininggroup_byname.c: New file.
15188
15189         New module 'unictype/joininggroup-byname'.
15190         * modules/unictype/joininggroup-byname: New file.
15191         * lib/unictype/joininggroup_byname.c: New file.
15192         * lib/unictype/joininggroup_byname.gperf: New file.
15193
15194         Tests for module 'unictype/joininggroup-name'.
15195         * modules/unictype/joininggroup-name-tests: New file.
15196         * tests/unictype/test-joininggroup_name.c: New file.
15197
15198         New module 'unictype/joininggroup-name'.
15199         * modules/unictype/joininggroup-name: New file.
15200         * lib/unictype/joininggroup_name.c: New file.
15201         * lib/unictype/joininggroup_name.h: New file.
15202
15203         New module 'unictype/joiningtype-all'.
15204         * modules/unictype/joiningtype-all: New file.
15205
15206         Tests for module 'unictype/joiningtype-of'.
15207         * modules/unictype/joiningtype-of-tests: New file.
15208         * tests/unictype/test-joiningtype_of.c: New file.
15209         * tests/unictype/test-joiningtype_of.h: New file, automatically
15210         generated by gen-uni-tables.
15211
15212         New module 'unictype/joiningtype-of'.
15213         * modules/unictype/joiningtype-of: New file.
15214         * lib/unictype/joiningtype_of.c: New file.
15215         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15216         gen-uni-tables.
15217
15218         Tests for module 'unictype/joiningtype-byname'.
15219         * modules/unictype/joiningtype-byname-tests: New file.
15220         * tests/unictype/test-joiningtype_byname.c: New file.
15221
15222         New module 'unictype/joiningtype-byname'.
15223         * modules/unictype/joiningtype-byname: New file.
15224         * lib/unictype/joiningtype_byname.c: New file.
15225
15226         Tests for module 'unictype/joiningtype-name'.
15227         * modules/unictype/joiningtype-name-tests: New file.
15228         * tests/unictype/test-joiningtype_name.c: New file.
15229
15230         New module 'unictype/joiningtype-name'.
15231         * modules/unictype/joiningtype-name: New file.
15232         * lib/unictype/joiningtype_name.c: New file.
15233
15234         unictype: Add support for Arabic shaping properties.
15235         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15236         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15237         declarations.
15238         (UC_JOINING_GROUP_*): New enumeration values.
15239         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15240         declarations.
15241         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15242         (unicode_joining_type): New variable.
15243         (UC_JOINING_GROUP_*): New enumeration values.
15244         (unicode_joining_group): New variable.
15245         (fill_arabicshaping, joining_type_as_c_identifier,
15246         output_joining_type_test, output_joining_type,
15247         joining_group_as_c_identifier, output_joining_group_test,
15248         output_joining_group): New functions.
15249         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15250         fill_arabicshaping and output_joining_type_test, output_joining_type,
15251         output_joining_group_test, output_joining_group.
15252         Reported by Simon Josefsson.
15253
15254 2011-03-21  Jim Meyering  <meyering@redhat.com>
15255
15256         strftime: fix a bug in yesterday's change
15257         * lib/strftime.c (add): Accommodate width's initial value of -1.
15258         Otherwise, nstrftime would copy uninitialized data into
15259         the result buffer.
15260
15261 2011-03-21  Jim Meyering  <meyering@redhat.com>
15262
15263         tests: add strftime-tests module
15264         * tests/test-strftime.c: New file.
15265         * modules/strftime-tests: New module.
15266
15267 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15268
15269         strftime: don't assume a byte count fits in 'int'
15270         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15271         found this problem by static analysis, using gcc -Wstrict-overflow
15272         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15273         on an integer overflow having undefined behavior, but it turns out
15274         that the argument is a size, which might not fit in 'int' anyway,
15275
15276 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15277
15278         stdio: don't require ignore_value around fwrite
15279
15280         This patch works around libc bug 11959
15281         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15282         Without this patch, applications must often write
15283         ignore_value (fwrite (...)) even though the ignore_value is
15284         not helpful here.  It's common to write many objects, using
15285         fwrite/printf/etc., and then use ferror to detect output error.
15286
15287         I considered making this patch optional, but decided against it,
15288         because libc is obviously being inconsistent here: there is no
15289         reason libc should insist that user code must inspect fwrite
15290         return's value without also insisting that it inspect printf's,
15291         putchar's, etc.  If user code wants to have a strict style where
15292         all these functions' values are checked (so that ferror need not
15293         be checked), we could add support for that style in a new gnulib
15294         module, but in the meantime it's better to be consistent and to
15295         support common usage.
15296
15297         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15298         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15299         that we are compiling in checking mode, and if not C++, and
15300         if not already wrapping fwrite for some other reason.
15301         (fwrite): #define to rpl_fwrite if the latter is defined.
15302
15303 2011-03-20  Bruno Haible  <bruno@clisp.org>
15304
15305         verror: Fix compilation error introduced on 2011-02-13.
15306         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15307         instead of __attribute__.
15308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15309
15310 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15311             Bruno Haible  <bruno@clisp.org>
15312
15313         socklen: do not depend on sys_socket
15314         While trying to modify Emacs to use gnulib's socklen module,
15315         I discovered a circular dependency: socklen depends on sys_socket
15316         and vice versa.  Emacs can use socklen, but it does not need
15317         sys_socket because it has its own substitute for sys/socket.h.
15318         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15319         gl_TYPE_SOCKLEN_T.
15320         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15321         gl_PREREQ_SYS_H_SOCKET.
15322         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15323         gl_PREREQ_SYS_H_SOCKET.
15324         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15325         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15326         * modules/socklen (Depends-on): Do not depend on sys_socket.
15327         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15328
15329 2011-03-20  Jim Meyering  <meyering@redhat.com>
15330
15331         maint.mk: sort file names *after* new transformation
15332         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15333         prefix would have led to an unwarranted failure in GNU parted.
15334         Sort after that transformation.
15335
15336 2011-03-19  Jim Meyering  <meyering@redhat.com>
15337
15338         maint.mk: fix po-file syntax-check rule
15339         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15340         Patch by Bruno Haible.
15341
15342 2011-03-19  Bruno Haible  <bruno@clisp.org>
15343
15344         socklen: Update comment.
15345         * m4/socklen.m4: Update comment about platforms.
15346
15347 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15348             Bruno Haible  <bruno@clisp.org>
15349
15350         inet_ntop, inet_pton: Simplify.
15351         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15352         documented to provide socklen_t and we already depend on sys_socket.
15353         * modules/inet_pton (Depends-on): Likewise.
15354         * lib/arpa_inet.in.h: Adjust comment.
15355
15356 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15357             Bruno Haible  <bruno@clisp.org>
15358
15359         netdb: Simplify.
15360         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15361         documented to provide socklen_t and we already depend on sys_socket.
15362         * lib/netdb.in.h: Adjust comment.
15363
15364 2011-03-19  Bruno Haible  <bruno@clisp.org>
15365
15366         sys_socket, netdb: Document problem with socklen_t.
15367         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15368         platforms.
15369         * doc/posix-headers/netdb.texi: Likewise.
15370
15371 2011-03-18  Eric Blake  <eblake@redhat.com>
15372
15373         maint.mk: let po check work in VPATH build
15374         * top/maint.mk (po_file): Allow cfg.mk override.
15375         (sc_po_check): Allow VPATH use.
15376         Reported by Jiri Denemark.
15377
15378 2011-03-16  Jim Meyering  <meyering@redhat.com>
15379
15380         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15381         Before, you would have had to create one .x-sc_ file per rule in order
15382         to exempt offending files.  Now, you may instead use a Make variable --
15383         usually defined in cfg.mk -- whose name identifies the affected rule.
15384         * top/maint.mk (_sc_excl): Define.
15385         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15386         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15387
15388 2011-03-13  Bruno Haible  <bruno@clisp.org>
15389
15390         ignore-value tests: Avoid warnings.
15391         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15392         empty for gcc < 3.4.
15393
15394 2011-03-13  Bruno Haible  <bruno@clisp.org>
15395
15396         passfd: Fix link error on Solaris.
15397         * modules/passfd (Description): Correct.
15398         (Depends-on): Add socketlib.
15399         (Link): New section.
15400         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15401
15402 2011-03-13  Bruno Haible  <bruno@clisp.org>
15403
15404         passfd: Fix link error on AIX 5.2.
15405         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15406
15407 2011-03-13  Bruno Haible  <bruno@clisp.org>
15408
15409         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15410         * lib/sys_socket.in.h: Include <stddef.h>.
15411         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15412         CMSG_FIRSTHDR. Remove unused variable.
15413
15414 2011-03-13  Bruno Haible  <bruno@clisp.org>
15415
15416         passfd: Fix compilation error on OpenBSD.
15417         * lib/passfd.c: Include <sys/uio.h>.
15418
15419 2011-03-13  Bruno Haible  <bruno@clisp.org>
15420
15421         passfd test: Fix warnings.
15422         * tests/test-passfd.c: Include <sys/wait.h>.
15423         (main): Fix typo.
15424
15425 2011-03-13  Bruno Haible  <bruno@clisp.org>
15426
15427         passfd module, part 4, tweaks.
15428         * tests/test-passfd.c: Reorder includes.
15429         (main): Fix perror and printf calls.
15430
15431 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15432
15433         passfd module, part 4.
15434         * modules/passfd-tests: New file.
15435         * tests/test-passfd.c: New file.
15436
15437 2011-03-13  Jim Meyering  <meyering@redhat.com>
15438
15439         Makefile: rely on GNU make; derive syntax-check rule names
15440         Rather than requiring that each sc_ rule be listed as a dependent
15441         of "check", use features of GNU make to derive the list.
15442         * Makefile (syntax-check-rules): Define.
15443         (check): Depend on the new variable, not the hard-coded list.
15444
15445 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15446             Bruno Haible  <bruno@clisp.org>
15447
15448         passfd module, part 3.
15449         * lib/passfd.h (recvfd): Add a flags argument.
15450         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15451         (recvfd): Add a flags argument.
15452         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15453         exists.
15454         * modules/passfd (Depends-on): Add cloexec.
15455         Suggested by Eric Blake.
15456
15457 2011-03-13  Bruno Haible  <bruno@clisp.org>
15458
15459         passfd module, part 2, tweaks.
15460         * modules/passfd (Files): Reorder.
15461         (Depends-on): Remove errno.
15462         (Include): Remove <sys/socket.h>, <sys/un.h>.
15463         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15464         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15465         specification header. Include <sys/socket.h> always. Don't include
15466         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15467         (sendfd): Clarify that it sets errno when it fails.
15468         (recvfd): Fix specification.
15469
15470 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15471
15472         passfd module, part 2.
15473         * modules/passfd: New file.
15474         * lib/passfd.h: New file.
15475         * lib/passfd.c: New file.
15476
15477 2011-03-12  Bruno Haible  <bruno@clisp.org>
15478
15479         wcswidth, mbswidth: Avoid integer overflow.
15480         * lib/wcswidth.c: Include <limits.h>.
15481         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15482         * lib/mbswidth.c: Include <limits.h>.
15483         (mbsnwidth): Avoid 'int' overflow.
15484         Reported by Jim Meyering.
15485
15486 2011-03-12  Bruno Haible  <bruno@clisp.org>
15487
15488         futimens, utimensat: Avoid endless recursion on Solaris 10.
15489         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15490         Solaris.
15491         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15492         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15493
15494 2011-03-11  Jim Meyering  <meyering@redhat.com>
15495
15496         maint.mk: relax a regexp to accommodate other formatting styles
15497         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15498         between "ngettext" and the following "(".
15499
15500 2011-03-11  Pádraig Brady <P@draigBrady.com>
15501
15502         maint.mk: suppress a false positive warning
15503         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15504         diagnostics are marked with ngettext.
15505
15506 2011-03-10  Eric Blake  <eblake@redhat.com>
15507
15508         wchar: add explicit dependencies, for Tru64
15509         * modules/mbmemcasecoll (Depends-on): Add wchar.
15510         * modules/mbtowc (Depends-on): Likewise.
15511         * modules/vasnprintf (Depends-on): Likewise.
15512         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15513         * modules/wctomb (Depends-on): Likewise.
15514         Reported by Peter O'Gorman.
15515
15516 2011-03-08  Bruno Haible  <bruno@clisp.org>
15517
15518         passfd module, part 1, tweaks.
15519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15520         Improve indentation. Improve AC_MSG_CHECKING messages.
15521         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15522         gl_SOCKET_FAMILIES.
15523
15524 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15525
15526         passfd module, part 1.
15527         * m4/afunix.m4: New file.
15528         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15529         sockets.
15530
15531 2011-03-08  Bruno Haible  <bruno@clisp.org>
15532
15533         regex-quote: New API.
15534         * lib/regex-quote.h: Include <stdbool.h>.
15535         (struct regex_quote_spec): New type.
15536         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15537         New declarations.
15538         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15539         'const struct regex_quote_spec *' argument.
15540         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15541         (pcre_special): New constant.
15542         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15543         New functions.
15544         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15545         'const struct regex_quote_spec *' argument.
15546         * modules/regex-quote (Depends-on): Add stdbool.
15547         * tests/test-regex-quote.c (check): Update for new API. Add test for
15548         anchored results.
15549         * NEWS: Mention the API change.
15550         Reported by Reuben Thomas and Eric Blake.
15551
15552 2011-03-06  Bruno Haible  <bruno@clisp.org>
15553
15554         regex-quote: Fix creation of POSIX extended regular expressions.
15555         * lib/regex-quote.c (ere_special): Add grouping and alternation
15556         operators.
15557
15558 2011-03-05  Bruno Haible  <bruno@clisp.org>
15559
15560         doc: Improve doc regarding autopoint vs. gnulib.
15561         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15562         disable autopoint while running autoreconf.
15563         Suggested by Ralf Wildenhues.
15564
15565 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15566
15567         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15568         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15569
15570 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15571
15572         parse-duration: remove xalloc.h dependency
15573         * lib/parse-duration.c (parse_period): handle NULL return from
15574         strdup instead of calling xstrdup().
15575         * modules/parse-duration: remove "xalloc" dependency
15576
15577 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15578
15579         bootstrap: honor m4_base when running aclocal
15580         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15581
15582 2011-03-02  Jim Meyering  <meyering@redhat.com>
15583
15584         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15585         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15586         on request from Matt Booth.
15587
15588 2011-03-01  Eric Blake  <eblake@redhat.com>
15589
15590         test-link: work on Hurd
15591         * tests/test-link.h (test_link): Hurd rejects linking directories
15592         with EISDIR instead of the POSIX-mandated EPERM.
15593
15594 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15595
15596         stdio: simplify by moving files to printf-posix, sigpipe
15597         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15598         since this symbol is needed only if printf is replaced.
15599         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15600         Require gl_ASM_SYMBOL_PREFIX.
15601         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15602         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15603         (Depends-on): Add 'raise'.
15604         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15605         * modules/stdio (Files): Remove lib/stdio-write.c,
15606         m4/asm-underscore.m4.
15607         (Depends-on): Remove 'raise'.
15608
15609         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15610         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15611         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15612         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15613
15614 2011-02-28  Bruno Haible  <bruno@clisp.org>
15615
15616         localcharset: Assume ANSI C behaviour of free().
15617         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15618         calling free().
15619         Suggested by Simon Josefsson <simon@josefsson.org>.
15620
15621 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15622             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15623             Bruno Haible  <bruno@clisp.org>  (tiny change)
15624
15625         On Cygwin, use /proc file system instead of win32 API.
15626         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15627         Win32 file names.
15628         (DllMain): Simplify by removing Cygwin specific code.
15629         (find_shared_library_fullname): Use Linux specific implementation also
15630         for Cygwin.
15631         (get_shared_library_fullname): Update accordingly.
15632         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15633         Win32 file names.
15634         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15635         Cygwin specific code.
15636
15637 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15638             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15639
15640         Fix OpenMP flag detection for various Fortran compilers.
15641         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15642         OpenMP-conditional compilation construct, to force compile
15643         failure with missing OpenMP flag.
15644         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15645
15646 2011-02-25  Eric Blake  <eblake@redhat.com>
15647
15648         strstr: expand test coverage
15649         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15650         compilation.
15651         * tests/test-memmem.c (main): Duplicate tests.
15652         * tests/test-strcasestr.c (main): Likewise.
15653         * tests/test-c-strcasestr.c (main): Likewise.
15654
15655 2011-02-25  Jim Meyering  <meyering@redhat.com>
15656
15657         maint.mk: detect missing-NL-at-EOF, too
15658         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15659         it also detects when a file lacks a newline at EOF.
15660         (require_exactly_one_NL_at_EOF_): Renamed from
15661         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15662         since people may well have .x-sc_... file names tied to the
15663         existing name.  Suggested by Eric Blake.
15664
15665 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15666
15667         dirname: move m4/dos.m4 functionality into lib/dosname.h
15668
15669         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15670         extracts symbols from it, puts them into config.h; but it's much
15671         easier to use the symbols directly.  filename.h already does this,
15672         but it disagrees with dos.m4 in some respects.  This patch
15673         introduces a different include file dosname.h that packages up
15674         dos.m4, and then later we can work on merging filename.h and
15675         dosname.h.  Applications that need only the easy-to-configure
15676         symbols should consider including dosname.h rather than dirname.h.
15677         * NEWS: Mention incompatible changes.
15678         * m4/dos.m4: Remove.
15679         * lib/dosname.h, modules/dosname: New files.
15680         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15681         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15682         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15683         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15684         Include dosname.h, not dirname.h.
15685         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15686         Include dosname.h, for definitions of symbols like ISSLASH
15687         that used to be in config.h.
15688         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15689         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15690         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15691         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15692         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15693         * modules/rmdir (Files): Likewise.
15694         * modules/stat (Files): Likewise.
15695         * modules/unlink (Files): Likewise.
15696         * modules/dirname-lgpl (Depends-on): Add dosname.
15697         * modules/lstat (Depends-on): Likewise.
15698         * modules/openat (Depends-on): Likewise.
15699         * modules/rmdir (Depends-on): Likewise.
15700         * modules/savewd (Depends-on): Likewise.
15701         * modules/stat (Depends-on): Likewise.
15702         * modules/unlink (Depends-on): Likewise.
15703         * modules/openat (Depends-on): Remove dirname-lgpl.
15704         * modules/savewd (Depends-on): Likewise.
15705         * tests/test-dirname.c: Do not use removed symbols like
15706         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15707         the remaining symbols, e.g., ISSLASH ('\\').
15708
15709 2011-02-25  Eric Blake  <eblake@redhat.com>
15710
15711         strstr: revert patches that introduced bug and pessimization
15712         * lib/str-two-way.h: Add another reference.
15713         (two_way_short_needle, two_way_long_needle): Revert changes from
15714         2011-02-24; they pessimize search speed.
15715         (critical_factorization): Partially revert changes from
15716         2010-06-22; they violate the requirement that the left half of the
15717         needle be smaller than the period of the needle.
15718
15719 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15720
15721         filenamecat: remove unnecessary dependency on dirname-lgpl
15722         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15723         is no direct dependency, just an indirect one via filenamecat-lgpl.
15724
15725         remove: remove unnecessary use of m4/dos.m4
15726         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15727         * modules/remove (FILES): Remove m4/dos.m4.
15728
15729         * lib/openat-proc.c: Don't include dirname.h; not needed.
15730
15731         backupfile: remove unnecessary use of m4/dos.m4
15732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15733         of its symbols are used by the backupfile code.  backupfile.c does
15734         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15735         for the rare case of programs that want all their backup file
15736         names to live within 8+3 limits, and dos.m4 doesn't address that.
15737         * modules/backupfile (Files): Remove m4/dos.m4.
15738
15739 2011-02-24  Jim Meyering  <meyering@redhat.com>
15740
15741         strstr: fix a bug whereby strstr would mistakenly return NULL
15742         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15743         in period calculation.
15744         (two_way_long_needle): Likewise.
15745         The original problem was reported by Mike Stump in
15746         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15747         Ralf Wildenhues provided the short needle and haystack.
15748         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15749         Add a more involved test to trigger the bug in two_way_long_needle.
15750
15751 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15752
15753         gnulib-tool: remove use of bold display in help screen
15754         * gnulib-tool (func_usage): Do not use bold display anymore in the
15755         help screen.  That was just meant to be a temporary emphasis for a
15756         backward-incompatible change.
15757
15758 2011-02-23  Bruno Haible  <bruno@clisp.org>
15759
15760         Fix misindentation of preprocessor directives.
15761         * lib/argp-namefrob.h: Reindent preprocessor directives.
15762         * lib/getopt_int.h (struct _getopt_data): Likewise.
15763         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15764         * lib/vasnprintf.c (decode_long_double): Likewise.
15765         * tests/test-argmatch.c: Insert blank lines, for clarity.
15766         * tests/test-exclude.c: Likewise.
15767
15768 2011-02-22  Bruno Haible  <bruno@clisp.org>
15769
15770         ioctl: Fix for MacOS X in 64-bit mode.
15771         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15772         value.
15773         Suggested by Eric Blake.
15774         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15775
15776 2011-02-22  Jim Meyering  <meyering@redhat.com>
15777
15778         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15779         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15780         in lib/.
15781
15782 2011-02-22  Eric Blake  <eblake@redhat.com>
15783
15784         maint: avoid any CDPATH issue
15785         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15786
15787         maint: adjust cpp indentation for my modules, as well
15788         * Makefile (sc_cpp_indent_check): Add my name.
15789         * lib/fbufmode.c: Filter through cppi.
15790         * lib/fpurge.c: Likewise.
15791         * lib/freadable.c: Likewise.
15792         * lib/freading.c: Likewise.
15793         * lib/fwritable.c: Likewise.
15794         * lib/fwriting.c: Likewise.
15795         * lib/sigaction.c: Likewise.
15796
15797 2011-02-22  Jim Meyering  <meyering@redhat.com>
15798
15799         maint: adjust cpp indentation to reflect nesting depth
15800         I.e., in a block of code that begins with an unnested "#if",
15801         put one space between the "#" in column 1 and following token.
15802         For example,
15803         -#include <sys/vfs.h>
15804         +# include <sys/vfs.h>
15805         Do this only in .c files that are part of a module I maintain.
15806         * lib/linkat.c: Filter through cppi.
15807         * lib/nanosleep.c: Likewise.
15808         * lib/openat.c: Likewise.
15809         * lib/openat-die.c: Likewise.
15810         * lib/dup3.c: Likewise.
15811         * lib/fchownat.c: Likewise.
15812         * lib/flock.c: Likewise.
15813         * lib/fsync.c: Likewise.
15814         * lib/fts.c: Likewise.
15815         * lib/getpass.c: Likewise.
15816         * lib/gettimeofday.c: Likewise.
15817         * lib/userspec.c: Likewise.
15818         * Makefile (sc_cpp_indent_check): New rule, to check this.
15819
15820 2011-02-22  Bruno Haible  <bruno@clisp.org>
15821
15822         New module 'wctomb'.
15823         * lib/stdlib.in.h (wctomb): New declaration.
15824         * lib/wctomb.c: New file.
15825         * lib/wctomb-impl.h: New file.
15826         * m4/wctomb.m4: New file.
15827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15828         REPLACE_WCTOMB.
15829         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15830         REPLACE_WCTOMB.
15831         * modules/wctomb: New file.
15832         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15833         * doc/posix-functions/wctomb.texi: Mention the new module.
15834         * modules/wctob (Depends-on): Add wctomb.
15835
15836 2011-02-22  Bruno Haible  <bruno@clisp.org>
15837
15838         New module 'mbtowc'.
15839         * lib/stdlib.in.h (mbtowc): New declaration.
15840         * lib/mbtowc.c: New file.
15841         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15842         * m4/mbtowc.m4: New file.
15843         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15844         REPLACE_MBTOWC.
15845         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15846         REPLACE_MBTOWC.
15847         * modules/mbtowc: New file.
15848         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15849         * doc/posix-functions/mbtowc.texi: Mention the new module.
15850         * modules/btowc (Depends-on): Add mbtowc.
15851
15852 2011-02-22  Bruno Haible  <bruno@clisp.org>
15853
15854         wcrtomb: Add more tests for native Windows platforms.
15855         * tests/test-wcrtomb-w32-1.sh: New file.
15856         * tests/test-wcrtomb-w32-2.sh: New file.
15857         * tests/test-wcrtomb-w32-3.sh: New file.
15858         * tests/test-wcrtomb-w32-4.sh: New file.
15859         * tests/test-wcrtomb-w32-5.sh: New file.
15860         * tests/test-wcrtomb-w32.c: New file.
15861         * modules/wcrtomb-tests (Files): Add them.
15862         (Makefile.am): Arrange to run these tests.
15863         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15864         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15865
15866 2011-02-20  Bruno Haible  <bruno@clisp.org>
15867
15868         wcrtomb: Enhance test.
15869         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15870
15871 2011-02-20  Bruno Haible  <bruno@clisp.org>
15872
15873         mbrtowc: Tiny optimization.
15874         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15875
15876 2011-02-20  Jim Meyering  <meyering@redhat.com>
15877
15878         test-exclude.c: remove unmatched #endif
15879         * tests/test-exclude.c: Remove stray #endif, left over from
15880         the change of a week ago.
15881
15882 2011-02-19  Jim Meyering  <meyering@redhat.com>
15883
15884         git-version-gen: skip "-dirty" check when appropriate
15885         * build-aux/git-version-gen: Don't run any git commands when the
15886         version string comes from .tarball-version.  Prior to this, we
15887         would run git update-index --refresh even from a just-unpacked
15888         tarball directory, and that could affect a .git/ directory in a
15889         parent of the build directory.  Reported by Mike Frysinger.
15890
15891 2011-02-19  Bruno Haible  <bruno@clisp.org>
15892
15893         unictype/property-byname: Reduce the size of the 'data' segment.
15894         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15895
15896 2011-02-19  Bruno Haible  <bruno@clisp.org>
15897
15898         unictype/scripts: Reduce the size of the 'data' segment.
15899         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15900         '%pic'.
15901         * lib/unictype/scripts_byname.gperf: Regenerated.
15902
15903 2011-02-19  Bruno Haible  <bruno@clisp.org>
15904
15905         stdint: Update documentation.
15906         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15907
15908 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15909
15910         stdint: omit redundant check for wchar.h
15911         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15912         always tests whether wchar.h exists, so remove the now-redundant test.
15913
15914 2011-02-18  Bruno Haible  <bruno@clisp.org>
15915
15916         stdint: Cut dependency to module 'wchar'.
15917         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15918         include the necessary prerequisites.
15919         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15920         * modules/stdint (Depends-on): Remove wchar.
15921         (Makefile.am): Substitute HAVE_WCHAR_H.
15922         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15923
15924 2011-02-18  Eric Blake  <eblake@redhat.com>
15925
15926         longlong: skip, rather than fail, on cross-compilation
15927         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15928         when cross-compiling; regression from 2011-02-16.
15929
15930 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15931
15932         * NEWS: Mention 2011-02-08 change to stdlib.
15933
15934 2011-02-17  Bruno Haible  <bruno@clisp.org>
15935
15936         getloadavg: Add comments about platforms.
15937         * m4/getloadavg.m4: Add comment.
15938         * lib/getloadavg.c: Likewise.
15939
15940 2011-02-17  Bruno Haible  <bruno@clisp.org>
15941
15942         getloadavg: Fix link error on Solaris 2.6.
15943         * modules/getloadavg (Link): New section.
15944         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15945         linking test-getloadavg.
15946         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15947         getloadavg.
15948
15949 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15950
15951         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15952         It was 'int', but this doesn't match the IRIX 6.5 manual.
15953         Suggested by Bruno Haible in
15954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15955
15956 2011-02-17  Bruno Haible  <bruno@clisp.org>
15957
15958         havelib: Fix comments.
15959         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15960         change.
15961
15962 2011-02-17  Bruno Haible  <bruno@clisp.org>
15963
15964         havelib: Update config.rpath.
15965         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15966
15967 2011-02-17  Bruno Haible  <bruno@clisp.org>
15968
15969         getloadavg test: Add some plausibility checks.
15970         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15971         is improbable.
15972
15973 2011-02-16  Eric Blake  <eblake@redhat.com>
15974
15975         maintainer-makefile: make syntax-check a no-op from tarballs
15976         * top/maint.mk (no-vc-detected): New rule.
15977         (local-checks-available): Use it to avoid hanging if someone tries
15978         'make syntax-check' from a tarball.  Also append to any non-syntax
15979         checks already defined in cfg.mk.
15980
15981 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15982
15983         longlong: tune, particularly for common case of c99
15984
15985         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15986         or running anything if c99, or if unsigned long long int does not
15987         work.  In either case, we know the answer without further tests.
15988         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15989         it at most once, and use its results for both long long int and
15990         unsigned long long int.  This is more likely to be efficient in
15991         the common case where the program wants to check for both long
15992         long int and unsigned long long int.
15993         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15994         since the answer is already known.
15995
15996 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15997
15998         getloadavg: set errno
15999         * lib/getloadavg.c: Set errno when returning -1.  If no other
16000         error number looks appropriate, set it to ENOSYS if the getloadavg
16001         looks like it can't possibly ever work, ENOTSUP otherwise.
16002         Suggested by Bruno Haible in
16003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16004
16005         getloadavg: trim unused parts and speed up 'configure'
16006         * NEWS: Document this.
16007         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16008         always compiled if getloadavg is absent.
16009         Move test code to ...
16010         * tests/test-getloadavg.c: New file, containing previous
16011         contents of test from lib/getloadavg.c.  It also contains
16012         suggestions by Bruno Haible in
16013         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16014         * modules/getloadavg-tests: New file.
16015         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16016         Do tests in the same order as they're needed for getloadavg.c.
16017         Omit setgid-related tests that generate symbols KMEM_GROUP,
16018         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16019         Do only the tests that are needed to see whether the system has
16020         getloadavg, moving the other tests into ...
16021         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16022         NLIST_NAME_UNION; nobody should be using it.  Do not define
16023         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16024         relevant, as the user of this module shouldn't care how getloadavg
16025         is implemented.
16026
16027         getloadavg: omit unused var
16028         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16029
16030 2011-02-15  Jim Meyering  <meyering@redhat.com>
16031
16032         doc: update users.txt
16033         * users.txt: Update iwhd's URL.
16034
16035 2011-02-13  Bruno Haible  <bruno@clisp.org>
16036
16037         Consistent macro naming for macros that use GCC __attribute__.
16038         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16039         _ATTRIBUTE_NONNULL_.
16040         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16041         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16042         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16043         ATTRIBUTE_DEPRECATED.
16044         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16045         ATTRIBUTE_NORETURN.
16046         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16047         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16048         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16049         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16050         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16051         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16052         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16053         ATTRIBUTE_SENTINEL.
16054         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16055         ATTRIBUTE_RETURN_CHECK.
16056         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16057         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16058         ATTRIBUTE_NORETURN.
16059         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16060         Reported by Paul Eggert.
16061
16062 2011-02-13  Bruno Haible  <bruno@clisp.org>
16063
16064         Don't interfere with a program's definition of __attribute__.
16065         * lib/argp.h (__attribute__): Remove definition.
16066         (_GL_ATTRIBUTE_FORMAT): New macro.
16067         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16068         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16069         (_GL_ATTRIBUTE_FORMAT): New macro.
16070         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16071         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16072         GCC 3 or newer.
16073         * lib/error.h (__attribute__): Remove definition.
16074         (_GL_ATTRIBUTE_FORMAT): New macro.
16075         (error, error_at_line): Use it.
16076         * lib/hash.h (__attribute__): Remove definition.
16077         (ATTRIBUTE_WUR): Update definition. Define always.
16078         * lib/openat.h (__attribute__): Remove definition.
16079         (ATTRIBUTE_NORETURN): Update definition. Define always.
16080         * lib/sigpipe-die.h (__attribute__): Remove definition.
16081         (ATTRIBUTE_NORETURN): Update definition. Define always.
16082         * lib/vasnprintf.h (__attribute__): Remove definition.
16083         (_GL_ATTRIBUTE_FORMAT): New macro.
16084         (asnprintf, vasnprintf): Use it.
16085         * lib/xalloc.h (__attribute__): Remove definition.
16086         (ATTRIBUTE_NORETURN): Update definition. Define always.
16087         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16088         * lib/xmemdup0.h (__attribute__): Remove definition.
16089         (ATTRIBUTE_NORETURN): Update definition. Define always.
16090         * lib/xprintf.h (__attribute__): Remove definition.
16091         (_GL_ATTRIBUTE_FORMAT): New macro.
16092         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16093         * lib/xstrtol.h (__attribute__): Remove definition.
16094         (ATTRIBUTE_NORETURN): Update definition. Define always.
16095         * lib/xvasprintf.h (__attribute__): Remove definition.
16096         (_GL_ATTRIBUTE_FORMAT): New macro.
16097         (xasprintf, xvasprintf): Use it.
16098         * tests/test-argmatch.c (__attribute__): Remove definition.
16099         (ATTRIBUTE_NORETURN): Update definition. Define always.
16100         * tests/test-exclude.c (__attribute__): Remove definition.
16101         (ATTRIBUTE_NORETURN): Update definition. Define always.
16102         Reported by Paul Eggert.
16103
16104 2011-02-13  Bruno Haible  <bruno@clisp.org>
16105
16106         mbrtowc: Add more tests for native Windows platforms.
16107         * tests/test-mbrtowc-w32-1.sh: New file.
16108         * tests/test-mbrtowc-w32-2.sh: New file.
16109         * tests/test-mbrtowc-w32-3.sh: New file.
16110         * tests/test-mbrtowc-w32-4.sh: New file.
16111         * tests/test-mbrtowc-w32-5.sh: New file.
16112         * tests/test-mbrtowc-w32.c: New file.
16113         * modules/mbrtowc-tests (Files): Add them.
16114         (Makefile.am): Arrange to run these tests.
16115         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16116         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16117
16118 2011-02-13  Bruno Haible  <bruno@clisp.org>
16119
16120         mbrtowc: Work around native Windows bug.
16121         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16122         guess when no suitable locale for testing was found.
16123         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16124
16125 2011-02-13  Bruno Haible  <bruno@clisp.org>
16126
16127         mbsinit: Work around mingw bug.
16128         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16129         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16130         Windows.
16131         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16132
16133 2011-02-13  Bruno Haible  <bruno@clisp.org>
16134
16135         mbsinit: Don't crash for a NULL argument.
16136         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16137         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16138
16139 2011-02-13  Bruno Haible  <bruno@clisp.org>
16140
16141         Don't interfere with a program's definition of __attribute__.
16142         * lib/stdio.in.h (__attribute__): Remove definition.
16143         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16144         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16145         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16146         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16147         * lib/string.in.h (__attribute__): Remove definition.
16148         Reported by Paul Eggert.
16149
16150 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16151
16152         stdlib: don't get in the way of non-GCC __attribute__
16153         See thread starting at
16154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16155         Revert previous stdlib change, installing the following instead:
16156         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16157         to get in the way of a non-GCC compiler that supports __attribute__.
16158         (_GL_ATTRIBUTE_RETURN): New macro.
16159         (_Exit): Use it instead of __attribute__.
16160
16161 2011-02-12  Bruno Haible  <bruno@clisp.org>
16162
16163         quotearg test: Avoid test failure on mingw.
16164         * tests/test-quotearg.sh: Convert the locale identifier from native
16165         Windows syntax to Unix syntax.
16166
16167 2011-02-12  Bruno Haible  <bruno@clisp.org>
16168
16169         setlocale: Prefer gnulib's override over libintl's override.
16170         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16171         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16172         GNULIB_defined_setlocale is set.
16173
16174 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16175
16176         stdlib: support non-GCC __attribute__
16177
16178         Fix a serious and tricky problem encountered when attempting to
16179         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16180         5.5, but it crashed due to memory corruption on Solaris 10 with
16181         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16182         bits that are otherwise zero.  This tagging is optional inside
16183         Emacs but is preferred and is used when __attribute__ ((__aligned
16184         (8))) works, as it does with both recent-enough GCC and with Sun C
16185         5.11.  However, Sun C 5.11 is not GCC and does not #define
16186         __GNUC__ and __GNUC_MINOR__.
16187
16188         When I added the getloadavg module to Emacs, it brought in
16189         stdlib.in.h, which contained this fragment:
16190
16191            #ifndef __attribute__
16192            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16193            #  define __attribute__(Spec)   /* empty */
16194            # endif
16195            #endif
16196
16197         When files that include <stdlib.h> were compiled with Sun C 5.11,
16198         the above code disabled __attribute__ ((__aligned (8))), which
16199         caused variables to not be properly aligned, which eventually led
16200         to the pointer corruption mentioned above.  (This was a bit hard
16201         to diagnose, unfortunately.)
16202
16203         Several "#define __attribute__(X) /* empty */" code snippets need
16204         to be eradicated from Gnulib to work with non-GCC compilers that
16205         support __attribute__.  The Autoconf way to do this is to test for
16206         each kind of attribute that we want support for, and selectively
16207         enable that in source code.
16208
16209         Fix this problem just for stdlib.h, by adding a test for the
16210         __noreturn__ attribute, and change stdlib.in.h to use that test
16211         when needed.  This technique can be easily generalized to the
16212         other *.in.h files and attributes, and a similar technique can be
16213         used for *.h and *.c files.  This patch is enough to solve the
16214         problem for Emacs + getloadavg, and I thought I'd publish it for
16215         feedback before undertaking further, similar fixes in other
16216         modules.
16217
16218         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16219         because it's not needed for stdlib.h.  It merely substitutes the
16220         value directly into stdlib.h.  We may well need to #define it, or
16221         similar symbols, for other modules, but it's nice to also have an
16222         option to not #define it for applications like Emacs that do not
16223         need it.
16224
16225         * lib/stdlib.in.h (__attribute__): Do not #define.
16226         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16227         be defined only if the _Exit module is also used.
16228         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16230         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16231         platforms.
16232         * modules/_Exit (Files): Add m4/attribute.m4.
16233         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16234         * m4/attribute.m4: New file.
16235
16236 2011-02-12  Bruno Haible  <bruno@clisp.org>
16237
16238         wcsrtombs: Work around bug on native Windows.
16239         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16240         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16241         instead of len.
16242         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16243
16244 2011-02-12  Bruno Haible  <bruno@clisp.org>
16245
16246         mbsrtowcs: Work around bug on native Windows.
16247         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16248         against mingw bug.
16249         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16250
16251 2011-02-12  Bruno Haible  <bruno@clisp.org>
16252
16253         Avoid setlocale bugs in tests.
16254         * modules/btowc (Dependencies): Add setlocale.
16255         * modules/c-strcase (Dependencies): Likewise.
16256         * modules/mbmemcasecmp (Dependencies): Likewise.
16257         * modules/mbmemcasecoll (Dependencies): Likewise.
16258         * modules/mbrtowc (Dependencies): Likewise.
16259         * modules/mbscasecmp (Dependencies): Likewise.
16260         * modules/mbscasestr (Dependencies): Likewise.
16261         * modules/mbschr (Dependencies): Likewise.
16262         * modules/mbscspn (Dependencies): Likewise.
16263         * modules/mbsinit (Dependencies): Likewise.
16264         * modules/mbsncasecmp (Dependencies): Likewise.
16265         * modules/mbsnrtowcs (Dependencies): Likewise.
16266         * modules/mbspbrk (Dependencies): Likewise.
16267         * modules/mbspcasecmp (Dependencies): Likewise.
16268         * modules/mbsrchr (Dependencies): Likewise.
16269         * modules/mbsrtowcs (Dependencies): Likewise.
16270         * modules/mbsspn (Dependencies): Likewise.
16271         * modules/mbsstr (Dependencies): Likewise.
16272         * modules/nl_langinfo (Dependencies): Likewise.
16273         * modules/quotearg (Dependencies): Likewise.
16274         * modules/unicase/locale-language (Dependencies): Likewise.
16275         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16276         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16277         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16278         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16279         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16280         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16281         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16282         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16283         * modules/vasnprintf-posix (Dependencies): Likewise.
16284         * modules/wcrtomb (Dependencies): Likewise.
16285         * modules/wcsnrtombs (Dependencies): Likewise.
16286         * modules/wcsrtombs (Dependencies): Likewise.
16287
16288 2011-02-12  Bruno Haible  <bruno@clisp.org>
16289
16290         setlocale: Workaround native Windows bug.
16291         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16292         succeeds but sets LC_CTYPE to "C", report a failure.
16293         * tests/test-setlocale2.sh: New file.
16294         * tests/test-setlocale2.c: New file.
16295         * modules/setlocale-tests (Files): Add the new files.
16296         (Makefile.am): Enable test-setlocale2.sh test.
16297         * doc/posix-functions/setlocale.texi: Mention workaround.
16298
16299 2011-02-11  Bruno Haible  <bruno@clisp.org>
16300
16301         Tests for module 'setlocale'.
16302         * modules/setlocale-tests: New file.
16303         * tests/test-setlocale1.sh: New file.
16304         * tests/test-setlocale1.c: New file.
16305
16306         New module 'setlocale'.
16307         * lib/locale.in.h (setlocale): New declaration.
16308         * lib/setlocale.c: New file, based on
16309         gettext/gettext-runtime/intl/setlocale.c.
16310         * m4/setlocale.m4: New file.
16311         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16312         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16313         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16314         REPLACE_SETLOCALE.
16315         * modules/setlocale: New file.
16316         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16317         * doc/posix-functions/setlocale.texi: Mention the new module.
16318
16319 2011-02-11  Bruno Haible  <bruno@clisp.org>
16320
16321         Prepare for locale dependent tests on mingw.
16322         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16323         because it has the wrong locale encoding.
16324         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16325         French_France.1252 instead of "fr".
16326         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16327         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16328         because it has the wrong locale encoding.
16329         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16330         native Windows, try Turkish_Turkey.65001.
16331         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16332         Chinese_China.54936.
16333
16334         Prepare for locale dependent tests on mingw.
16335         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16336         differently.
16337         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16338         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16339         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16340         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16341
16342 2011-02-11  Eric Blake  <eblake@redhat.com>
16343
16344         strptime: avoid compiler warnings
16345         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16346         compiler warnings about dead code.
16347         Reported by Daniel P. Berrange.
16348
16349 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16350
16351         doc: update users.txt
16352         * users.txt: Add rcs.
16353
16354 2011-02-10  John W. Eaton  <jwe@gnu.org>
16355
16356         doc: update users.txt
16357         * users.txt: Add octave.
16358
16359 2011-02-10  Jim Meyering  <meyering@redhat.com>
16360
16361         doc: update users.txt
16362         * users.txt: Add iwhd.
16363
16364 2011-02-09  Bruno Haible  <bruno@clisp.org>
16365
16366         gnulib-tool: Make copyright notice adjustment more robust.
16367         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16368         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16369         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16370         License".
16371         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16372
16373 2011-02-06  Bruno Haible  <bruno@clisp.org>
16374
16375         New module 'towctrans'.
16376         * modules/towctrans: New file.
16377         * lib/wctype.in.h (towctrans): New declaration.
16378         * lib/towctrans.c: New file.
16379         * lib/towctrans-impl.h: New file.
16380         * m4/towctrans.m4: New file.
16381         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16382         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16383         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16384         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16385         * doc/posix-functions/towctrans.texi: Mention the new module.
16386
16387 2011-02-06  Bruno Haible  <bruno@clisp.org>
16388
16389         New module 'wctrans'.
16390         * modules/wctrans: New file.
16391         * lib/wctype.in.h (wctrans): New declaration.
16392         * lib/wctrans.c: New file.
16393         * lib/wctrans-impl.h: New file.
16394         * m4/wctrans.m4: New file.
16395         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16396         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16397         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16398         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16399         * doc/posix-functions/wctrans.texi: Mention the new module.
16400
16401 2011-02-06  Bruno Haible  <bruno@clisp.org>
16402
16403         New module 'iswctype'.
16404         * modules/iswctype: New file.
16405         * lib/wctype.in.h (iswctype): New declaration.
16406         * lib/iswctype.c: New file.
16407         * lib/iswctype-impl.h: New file.
16408         * m4/iswctype.m4: New file.
16409         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16410         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16411         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16412         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16413         * doc/posix-functions/iswctype.texi: Mention the new module and the
16414         HP-UX 11.00 problem.
16415
16416 2011-02-06  Bruno Haible  <bruno@clisp.org>
16417
16418         New module 'wctype'.
16419         * modules/wctype: Change to represent the wctype() substitute.
16420         * lib/wctype.in.h (wctype): New declaration.
16421         * lib/wctype.c: New file.
16422         * lib/wctype-impl.h: New file.
16423         * m4/wctype.m4: New file.
16424         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16425         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16426         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16427         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16428         * doc/posix-functions/wctype.texi: Mention the new module and the
16429         HP-UX 11.00 problem.
16430
16431 2011-02-06  Bruno Haible  <bruno@clisp.org>
16432
16433         wctype-h: Ensure wctype_t and wctrans_t are defined.
16434         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16435         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16436         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16437         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16438         HAVE_WCTRANS_T.
16439         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16440
16441 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16442
16443         flock: fix license typo
16444
16445         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16446         omitted.
16447
16448 2011-02-08  Bruno Haible  <bruno@clisp.org>
16449
16450         Split large sed scripts, for HP-UX sed.
16451         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16452         to avoid HP-UX limit of 99 commands, in the near future.
16453         * modules/stdlib (Makefile.am): Likewise.
16454         * modules/unistd (Makefile.am): Likewise.
16455         * modules/wchar (Makefile.am): Likewise.
16456         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16457         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16458         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16459
16460 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16461             Bruno Haible  <bruno@clisp.org>
16462
16463         stdlib: improve random_r modularization
16464         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16465         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16466         you also need the random_r module to get this material right.
16467         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16468         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16469         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16470
16471 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16472
16473         stdlib: don't depend on stdint
16474         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16475         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16476         be independent of whether stdint.h is needed.
16477         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16478         here, instead of ...
16479         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16480         struct random_data should be using the random_r module, not just
16481         the stdlib module (which wouldn't make sense: what package needs
16482         just struct random_data without also needing random_r?).
16483         * modules/stdlib (Depends-on): Remove stdint.
16484
16485         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16486         See the thread rooted at
16487         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16488         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16489         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16490         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16491         __VMS)); previously it was always included (via fcntl--.h).
16492         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16493         hand; this is good enough for load averages.  Also, do not use
16494         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16495         flags directly if available and don't bother otherwise.  (Packages
16496         that need the extra reliability should use the modules that define
16497         these flags on older platforms that lack them.)
16498         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16499         fcntl-safer.
16500
16501 2011-02-08  Jim Meyering  <meyering@redhat.com>
16502
16503         di-set.h, ino-map.h: add multiple-inclusion guard
16504         Technically, the guard is required only for ino-map.h, due to its
16505         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16506         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16507         * lib/ino-map.h: Likewise.
16508
16509 2011-02-06  Bruno Haible  <bruno@clisp.org>
16510
16511         iswblank: Ensure declaration on glibc systems.
16512         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16513         * modules/iswblank (Dependencies): Add 'extensions'.
16514         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16515
16516 2011-02-06  Bruno Haible  <bruno@clisp.org>
16517
16518         New module 'iswblank'.
16519         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16520         * modules/iswblank: New file.
16521         * modules/wctype-h (Files): Remove lib/iswblank.c.
16522         (Makefile.am): Substitute GNULIB_ISWBLANK.
16523         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16524         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16525         (gl_WCTYPE_H_DEFAULTS): New macro.
16526         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16527         * modules/iswblank-tests: New file.
16528         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16529         * tests/test-wctype-h.c (main): Remove iswblank tests.
16530         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16531         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16532         of 'wctype-h'.
16533         * NEWS: Mention the change.
16534         * modules/mbchar (Depends-on): Add iswblank.
16535
16536 2011-02-08  Bruno Haible  <bruno@clisp.org>
16537
16538         di-set tests: Refactor.
16539         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16540         unnecessary includes.
16541         (ASSERT): Remove macro.
16542         (main): Make C90 compliant by avoiding variable declaration after
16543         statement.
16544         * modules/di-set-tests (Files): Add tests/macros.h.
16545
16546 2011-02-08  Bruno Haible  <bruno@clisp.org>
16547
16548         ino-map tests: Refactor.
16549         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16550         unnecessary includes.
16551         (ASSERT): Remove macro.
16552         (main): Make C90 compliant by avoiding variable declaration after
16553         statement.
16554         * modules/ino-map-tests (Files): Add tests/macros.h.
16555
16556 2011-02-08  Jim Meyering  <meyering@redhat.com>
16557
16558         di-set: add "const" to a cast
16559         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16560         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16561
16562 2011-02-06  Bruno Haible  <bruno@clisp.org>
16563
16564         Rename module 'wctype' to 'wctype-h'.
16565         * modules/wctype-h: Renamed from modules/wctype.
16566         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16567         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16568         (Files, Depends-on, Makefile.am): Update.
16569         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16570         (Files, Makefile.am): Update.
16571         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16572         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16573         * doc/posix-headers/wctype.texi: Update.
16574         * doc/posix-functions/iswalnum.texi: Update.
16575         * doc/posix-functions/iswalpha.texi: Update.
16576         * doc/posix-functions/iswblank.texi: Update.
16577         * doc/posix-functions/iswcntrl.texi: Update.
16578         * doc/posix-functions/iswdigit.texi: Update.
16579         * doc/posix-functions/iswgraph.texi: Update.
16580         * doc/posix-functions/iswlower.texi: Update.
16581         * doc/posix-functions/iswprint.texi: Update.
16582         * doc/posix-functions/iswpunct.texi: Update.
16583         * doc/posix-functions/iswspace.texi: Update.
16584         * doc/posix-functions/iswupper.texi: Update.
16585         * doc/posix-functions/iswxdigit.texi: Update.
16586         * doc/posix-functions/towlower.texi: Update.
16587         * doc/posix-functions/towupper.texi: Update.
16588         * NEWS: Mention the change.
16589         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16590         * modules/mbchar (Dependencies): Likewise.
16591         * modules/mbswidth (Dependencies): Likewise.
16592         * modules/quotearg (Dependencies): Likewise.
16593         * modules/regex (Dependencies): Likewise.
16594         * modules/wcscasecmp (Dependencies): Likewise.
16595         * modules/wcsncasecmp (Dependencies): Likewise.
16596         * modules/wcwidth (Dependencies): Likewise.
16597
16598 2011-02-06  Bruno Haible  <bruno@clisp.org>
16599
16600         New module 'wcswidth'.
16601         * modules/wcswidth: New file.
16602         * lib/wchar.in.h (wcswidth): New declaration.
16603         * lib/wcswidth.c: New file.
16604         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16605         * m4/wcswidth.m4: New file.
16606         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16607         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16608         REPLACE_WCSWIDTH.
16609         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16610         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16611         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16612         * doc/posix-functions/wcswidth.texi: Mention the new module.
16613
16614 2011-02-06  Bruno Haible  <bruno@clisp.org>
16615
16616         New module 'wcstok'.
16617         * modules/wcstok: New file.
16618         * lib/wchar.in.h (wcstok): New declaration.
16619         * lib/wcstok.c: New file.
16620         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16621         * m4/wcstok.m4: New file.
16622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16625         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16626         * doc/posix-functions/wcstok.texi: Mention the new module.
16627
16628 2011-02-06  Bruno Haible  <bruno@clisp.org>
16629
16630         New module 'wcsstr'.
16631         * modules/wcsstr: New file.
16632         * lib/wchar.in.h (wcsstr): New declaration.
16633         * lib/wcsstr.c: New file.
16634         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16635         * m4/wcsstr.m4: New file.
16636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16639         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16640         * doc/posix-functions/wcsstr.texi: Mention the new module.
16641
16642 2011-02-06  Bruno Haible  <bruno@clisp.org>
16643
16644         New module 'wcspbrk'.
16645         * modules/wcspbrk: New file.
16646         * lib/wchar.in.h (wcspbrk): New declaration.
16647         * lib/wcspbrk.c: New file.
16648         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16649         * m4/wcspbrk.m4: New file.
16650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16652         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16653         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16654         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16655
16656 2011-02-06  Bruno Haible  <bruno@clisp.org>
16657
16658         New module 'wcsspn'.
16659         * modules/wcsspn: New file.
16660         * lib/wchar.in.h (wcsspn): New declaration.
16661         * lib/wcsspn.c: New file.
16662         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16663         * m4/wcsspn.m4: New file.
16664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16666         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16667         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16668         * doc/posix-functions/wcsspn.texi: Mention the new module.
16669
16670 2011-02-06  Bruno Haible  <bruno@clisp.org>
16671
16672         New module 'wcscspn'.
16673         * modules/wcscspn: New file.
16674         * lib/wchar.in.h (wcscspn): New declaration.
16675         * lib/wcscspn.c: New file.
16676         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16677         * m4/wcscspn.m4: New file.
16678         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16679         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16680         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16681         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16682         * doc/posix-functions/wcscspn.texi: Mention the new module.
16683
16684 2011-02-06  Bruno Haible  <bruno@clisp.org>
16685
16686         New module 'wcsrchr'.
16687         * modules/wcsrchr: New file.
16688         * lib/wchar.in.h (wcsrchr): New declaration.
16689         * lib/wcsrchr.c: New file.
16690         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16691         * m4/wcsrchr.m4: New file.
16692         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16693         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16694         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16695         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16696         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16697
16698 2011-02-06  Bruno Haible  <bruno@clisp.org>
16699
16700         New module 'wcschr'.
16701         * modules/wcschr: New file.
16702         * lib/wchar.in.h (wcschr): New declaration.
16703         * lib/wcschr.c: New file.
16704         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16705         * m4/wcschr.m4: New file.
16706         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16707         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16708         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16709         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16710         * doc/posix-functions/wcschr.texi: Mention the new module.
16711
16712 2011-02-06  Bruno Haible  <bruno@clisp.org>
16713
16714         New module 'wcsdup'.
16715         * modules/wcsdup: New file.
16716         * lib/wchar.in.h (wcsdup): New declaration.
16717         * lib/wcsdup.c: New file.
16718         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16719         * m4/wcsdup.m4: New file.
16720         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16721         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16722         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16723         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16724         * doc/posix-functions/wcsdup.texi: Mention the new module.
16725
16726 2011-02-06  Bruno Haible  <bruno@clisp.org>
16727
16728         New module 'wcsxfrm'.
16729         * modules/wcsxfrm: New file.
16730         * lib/wchar.in.h (wcsxfrm): New declaration.
16731         * lib/wcsxfrm.c: New file.
16732         * lib/wcsxfrm-impl.h: New file.
16733         * m4/wcsxfrm.m4: New file.
16734         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16735         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16736         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16737         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16738         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16739
16740 2011-02-06  Bruno Haible  <bruno@clisp.org>
16741
16742         New module 'wcscoll'.
16743         * modules/wcscoll: New file.
16744         * lib/wchar.in.h (wcscoll): New declaration.
16745         * lib/wcscoll.c: New file.
16746         * lib/wcscoll-impl.h: New file.
16747         * m4/wcscoll.m4: New file.
16748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16750         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16751         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16752         * doc/posix-functions/wcscoll.texi: Mention the new module.
16753
16754 2011-02-06  Bruno Haible  <bruno@clisp.org>
16755
16756         New module 'wcsncasecmp'.
16757         * modules/wcsncasecmp: New file.
16758         * lib/wchar.in.h (wcsncasecmp): New declaration.
16759         * lib/wcsncasecmp.c: New file.
16760         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16761         * m4/wcsncasecmp.m4: New file.
16762         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16763         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16764         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16765         HAVE_WCSNCASECMP.
16766         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16767         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16768
16769 2011-02-06  Bruno Haible  <bruno@clisp.org>
16770
16771         New module 'wcscasecmp'.
16772         * modules/wcscasecmp: New file.
16773         * lib/wchar.in.h (wcscasecmp): New declaration.
16774         * lib/wcscasecmp.c: New file.
16775         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16776         * m4/wcscasecmp.m4: New file.
16777         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16778         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16779         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16780         HAVE_WCSCASECMP.
16781         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16782         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16783
16784 2011-02-05  Bruno Haible  <bruno@clisp.org>
16785
16786         New module 'wcsncmp'.
16787         * modules/wcsncmp: New file.
16788         * lib/wchar.in.h (wcsncmp): New declaration.
16789         * lib/wcsncmp.c: New file.
16790         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16791         * m4/wcsncmp.m4: New file.
16792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16795         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16796         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16797
16798 2011-02-05  Bruno Haible  <bruno@clisp.org>
16799
16800         New module 'wcscmp'.
16801         * modules/wcscmp: New file.
16802         * lib/wchar.in.h (wcscmp): New declaration.
16803         * lib/wcscmp.c: New file.
16804         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16805         * m4/wcscmp.m4: New file.
16806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16809         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16810         * doc/posix-functions/wcscmp.texi: Mention the new module.
16811
16812 2011-02-05  Bruno Haible  <bruno@clisp.org>
16813
16814         New module 'wcsncat'.
16815         * modules/wcsncat: New file.
16816         * lib/wchar.in.h (wcsncat): New declaration.
16817         * lib/wcsncat.c: New file.
16818         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16819         * m4/wcsncat.m4: New file.
16820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16823         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16824         * doc/posix-functions/wcsncat.texi: Mention the new module.
16825
16826 2011-02-05  Bruno Haible  <bruno@clisp.org>
16827
16828         New module 'wcscat'.
16829         * modules/wcscat: New file.
16830         * lib/wchar.in.h (wcscat): New declaration.
16831         * lib/wcscat.c: New file.
16832         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16833         * m4/wcscat.m4: New file.
16834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16837         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16838         * doc/posix-functions/wcscat.texi: Mention the new module.
16839
16840 2011-02-05  Bruno Haible  <bruno@clisp.org>
16841
16842         New module 'wcpncpy'.
16843         * modules/wcpncpy: New file.
16844         * lib/wchar.in.h (wcpncpy): New declaration.
16845         * lib/wcpncpy.c: New file.
16846         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16847         * m4/wcpncpy.m4: New file.
16848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16850         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16851         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16852         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16853
16854 2011-02-05  Bruno Haible  <bruno@clisp.org>
16855
16856         New module 'wcsncpy'.
16857         * modules/wcsncpy: New file.
16858         * lib/wchar.in.h (wcsncpy): New declaration.
16859         * lib/wcsncpy.c: New file.
16860         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16861         * m4/wcsncpy.m4: New file.
16862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16865         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16866         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16867
16868 2011-02-05  Bruno Haible  <bruno@clisp.org>
16869
16870         New module 'wcpcpy'.
16871         * modules/wcpcpy: New file.
16872         * lib/wchar.in.h (wcpcpy): New declaration.
16873         * lib/wcpcpy.c: New file.
16874         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16875         * m4/wcpcpy.m4: New file.
16876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16878         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16879         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16880         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16881
16882 2011-02-05  Bruno Haible  <bruno@clisp.org>
16883
16884         New module 'wcscpy'.
16885         * modules/wcscpy: New file.
16886         * lib/wchar.in.h (wcscpy): New declaration.
16887         * lib/wcscpy.c: New file.
16888         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16889         * m4/wcscpy.m4: New file.
16890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16893         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16894         * doc/posix-functions/wcscpy.texi: Mention the new module.
16895
16896 2011-02-05  Bruno Haible  <bruno@clisp.org>
16897
16898         New module 'wcsnlen'.
16899         * modules/wcsnlen: New file.
16900         * lib/wchar.in.h (wcsnlen): New declaration.
16901         * lib/wcsnlen.c: New file.
16902         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16903         * m4/wcsnlen.m4: New file.
16904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16907         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16908         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16909
16910 2011-02-05  Bruno Haible  <bruno@clisp.org>
16911
16912         New module 'wcslen'.
16913         * modules/wcslen: New file.
16914         * lib/wchar.in.h (wcslen): New declaration.
16915         * lib/wcslen.c: New file.
16916         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16917         * m4/wcslen.m4: New file.
16918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16921         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16922         * doc/posix-functions/wcslen.texi: Mention the new module.
16923
16924 2011-02-05  Bruno Haible  <bruno@clisp.org>
16925
16926         New module 'wmemset'.
16927         * modules/wmemset: New file.
16928         * lib/wchar.in.h (wmemset): New declaration.
16929         * lib/wmemset.c: New file.
16930         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16931         * m4/wmemset.m4: New file.
16932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16934         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16935         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16936         * doc/posix-functions/wmemset.texi: Mention the new module.
16937
16938 2011-02-05  Bruno Haible  <bruno@clisp.org>
16939
16940         New module 'wmemmove'.
16941         * modules/wmemmove: New file.
16942         * lib/wchar.in.h (wmemmove): New declaration.
16943         * lib/wmemmove.c: New file.
16944         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16945         * m4/wmemmove.m4: New file.
16946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16948         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16949         HAVE_WMEMMOVE.
16950         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16951         * doc/posix-functions/wmemmove.texi: Mention the new module.
16952
16953 2011-02-05  Bruno Haible  <bruno@clisp.org>
16954
16955         New module 'wmemcpy'.
16956         * modules/wmemcpy: New file.
16957         * lib/wchar.in.h (wmemcpy): New declaration.
16958         * lib/wmemcpy.c: New file.
16959         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16960         * m4/wmemcpy.m4: New file.
16961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16963         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16964         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16965         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16966
16967 2011-02-05  Bruno Haible  <bruno@clisp.org>
16968
16969         New module 'wmemcmp'.
16970         * modules/wmemcmp: New file.
16971         * lib/wchar.in.h (wmemcmp): New declaration.
16972         * lib/wmemcmp.c: New file.
16973         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16974         * m4/wmemcmp.m4: New file.
16975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16977         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16978         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16979         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16980
16981 2011-02-07  Jim Meyering  <meyering@redhat.com>
16982
16983         di-set, ino-map: new modules, from coreutils
16984         * lib/di-set.c: New file.
16985         * lib/di-set.h: Likewise.
16986         * lib/ino-map.c: Likewise.
16987         * lib/ino-map.h: Likewise.
16988         * modules/di-set: Likewise.
16989         * modules/di-set-tests: Likewise.
16990         * modules/ino-map: Likewise.
16991         * modules/ino-map-tests: Likewise.
16992         * tests/test-di-set.c: Likewise.
16993         * tests/test-ino-map.c: Likewise.
16994
16995 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16996
16997         getloadavg: merge minor changes from Emacs
16998
16999         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17000         (getloadavg): Use memset, not bzero.
17001
17002         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17003         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17004         clash (bug#86).
17005
17006 2010-11-14  Bruno Haible  <bruno@clisp.org>
17007
17008         Allow multiple gnulib generated replacements to coexist.
17009         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17010         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17011         * lib/langinfo.in.h (nl_item): Likewise.
17012         * lib/math.in.h (_NaN, NAN): Likewise.
17013         * lib/netdb.in.h (struct addrinfo): Likewise.
17014         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17015         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17016         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17017         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17018         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17019         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17020         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17021         pthread_mutexattr_init, pthread_mutexattr_settype,
17022         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17023         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17024         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17025         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17026         * lib/sched.in.h (struct sched_param): Likewise.
17027         * lib/se-selinux.in.h (security_class_t, security_context_t,
17028         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17029         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17030         lsetfilecon, fsetfilecon, security_check_context,
17031         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17032         Likewise.
17033         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17034         Likewise.
17035         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17036         _gl_function_taking_int_returning_void_t, union sigval,
17037         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17038         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17039         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17040         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17041         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17042         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17043         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17044         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17045         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17046         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17047         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17048         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17049         socklen_t, rpl_fd_isset): Likewise.
17050         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17051         * lib/sys_time.in.h (struct timeval): Likewise.
17052         * lib/sys_times.in.h (struct tms): Likewise.
17053         * lib/sys_utsname.in.h (struct utsname):
17054         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17055         * lib/unistd.in.h (getpagesize): Likewise.
17056         * lib/wchar.in.h (mbstate_t): Likewise.
17057         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17058         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17059         towlower, towupper): Likewise.
17060         Reported by Sam Steingold <sds@gnu.org>.
17061
17062 2011-02-05  Eric Blake  <eblake@redhat.com>
17063
17064         unsetenv: work around Haiku issues
17065         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17066         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17067
17068 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17069
17070         libposix: avoid calling error() within libposix
17071         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17072         is defined.
17073
17074 2011-02-05  Eric Blake  <eblake@redhat.com>
17075
17076         strerror_r-posix: port to cygwin
17077         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17078         implementation.
17079         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17080         * tests/test-strerror_r.c (main): Fix test.
17081         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17082         issue.
17083
17084 2011-02-05  Bruno Haible  <bruno@clisp.org>
17085
17086         New module 'wmemchr'.
17087         * modules/wmemchr: New file.
17088         * lib/wchar.in.h (wmemchr): New declaration.
17089         * lib/wmemchr.c: New file.
17090         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17091         * m4/wmemchr.m4: New file.
17092         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17093         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17094         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17095         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17096         * doc/posix-functions/wmemchr.texi: Mention the new module.
17097
17098 2011-02-04  Eric Blake  <eblake@redhat.com>
17099
17100         fdopendir: detect FreeBSD bug
17101         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17102         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17103
17104 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17105
17106         stdbool: do not define HAVE_STDBOOL_H
17107         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17108         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17109         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17110         imported from the latest Autoconf git.  It was motivated by Emacs,
17111         which uses gnulib but does not need HAVE_STDBOOL_H.
17112
17113 2011-02-04  Bruno Haible  <bruno@clisp.org>
17114
17115         wcsnrtombs: Prepare for new module wwcsnrtombs.
17116         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17117         * lib/wcsnrtombs.c: Include it.
17118         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17119
17120         wcsrtombs: Prepare for new module wwcsrtombs.
17121         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17122         * lib/wcsrtombs.c: Include it.
17123         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17124
17125         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17126         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17127         * lib/mbsnrtowcs.c: Include it.
17128         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17129
17130         mbsrtowcs: Prepare for new module mbsrtowwcs.
17131         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17132         * lib/mbsrtowcs.c: Include it.
17133         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17134
17135 2011-02-04  Bruno Haible  <bruno@clisp.org>
17136
17137         vasnprintf: Reduce use of malloc for small format strings.
17138         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17139         (arguments): Add room for the first 7 arguments.
17140         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17141         (char_directives, u8_directives, u16_directives, u32_directives): Add
17142         room for the first 7 directives.
17143         * lib/printf-parse.c: Include <string.h>.
17144         (PRINTF_PARSE): Change memory handling code so that it uses the first
17145         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17146         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17147         Reported by Pádraig Brady <P@draigbrady.com>.
17148
17149 2011-01-31  Eric Blake  <eblake@redhat.com>
17150
17151         dup2: work around Haiku bug
17152         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17153         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17154         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17155         * tests/test-dup2.c (main): Enhance test.
17156
17157 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17158
17159         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17160         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17161         declared by eglibc 2.11.2.
17162         * lib/stdio.in.h: Likewise.
17163
17164 2011-01-31  Eric Blake  <eblake@redhat.com>
17165
17166         ignore-value: add missing test dependency
17167         * tests/test-ignore-value.c: Revert previous change; stdio.h
17168         provides off_t.
17169         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17170
17171 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17172
17173         mktime: clarify long_int width checking
17174         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17175         the top level, to make it clearer that the assumption about
17176         long_int width is being checked.  See
17177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17178
17179 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17180
17181         ignore-value: Fix self-test.
17182         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17183
17184 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17185
17186         TYPE_MAXIMUM: avoid theoretically undefined behavior
17187         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17188         negative number, which the C Standard says has undefined behavior.
17189         In practice this is not a problem, but might as well do it by the book.
17190         Reported by Rich Felker and Eric Blake; see
17191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17192         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17193         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17194         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17195         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17196         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17197         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17198
17199         mktime: #undef mktime before #defining it
17200         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17201
17202         mktime: systematically normalize tm_isdst comparisons
17203         * lib/mktime.c (isdst_differ): New function.
17204         (__mktime_internal): Use it systematically for all isdst comparisons.
17205         This completes the fix for libc BZ #6723, and removes the need for
17206         normalizing tm_isdst.  See
17207         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17208         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17209
17210         mktime: fix some integer overflow issues and sidestep the rest
17211
17212         This was prompted by a bug report by Benjamin Lindner for MinGW
17213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17214         His bug is due to signed integer overflow (0 - INT_MIN), and I
17215         I scanned through mktime.c looking for other integer overflow
17216         problems, fixing all the bugs I found.
17217
17218         Although the C Standard says the resulting code is still not safe
17219         in the presence of integer overflow, in practice it should be good
17220         enough for all real-world two's-complement implementations, except
17221         for debugging environments that deliberately trap on integer
17222         overflow (e.g., gcc -ftrapv).
17223
17224         * lib/mktime.c (WRAPV): New macro.
17225         (SHR): Also check that long_int and time_t shift right in the
17226         usual way, before using the fast-but-unportable method.
17227         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17228         used.  The code already assumed two's complement, so there's
17229         no need to test for alternatives.  All uses removed.
17230         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17231         the C standard.  Problem reported by Rich Felker in
17232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17233         (twos_complement_arithmetic): Also check long_int and time_t.
17234         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17235         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17236         (__mktime_internal): Avoid integer overflow with unary subtraction
17237         in two instances where -1 - X is an adequate replacement for -X,
17238         since the calculations are approximate.
17239
17240 2011-01-29  Eric Blake  <eblake@redhat.com>
17241
17242         mktime: avoid infinite loop
17243         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17244         type; behavior is still undefined but portable to all known targets.
17245         Reported by Rich Felker.
17246
17247 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17248
17249         rename, unlink, same-inode: Relicense.
17250         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17251         * modules/unlink (License): Likewise.
17252         * modules/same-inode (License): Likewise.
17253
17254 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17255
17256         mktime: avoid problems on NetBSD 5 / i386
17257         * lib/mktime.c (long_int): New type.  This works around a problem
17258         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17259         but time_t is 64 bits, and where I expect the existing code is
17260         wrong in some cases.
17261         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17262         (ydhms_diff): Bring back the compile-time check for wide-enough
17263         year and yday.
17264
17265         mktime: fix misspelling in comment
17266         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17267         This merges all recent glibc changes of importance.
17268
17269 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17270
17271         move-if-change: cope with concurrent mv of identical file.
17272         * build-aux/move-if-change (CMPPROG): Accept environment
17273         variable as an override for `cmp'.
17274         (usage): Document CMPPROG.
17275         Adjust comparison to drop stdout.  Cope with failure of mv if
17276         the target file exists and is identical to the source, for
17277         parallel builds.
17278         Report from H.J. Lu against binutils in PR binutils/12283.
17279
17280 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17281
17282         * users.txt: Mention sharutils.
17283
17284 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17285
17286         * users.txt: Mention OATH Toolkit.
17287
17288 2011-01-27  Bruno Haible  <bruno@clisp.org>
17289
17290         Prepare for supporting FreeBSD 10.
17291         * build-aux/config.libpath: Remove handling of freebsd1*.
17292
17293 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17294
17295         Prepare for supporting FreeBSD 10.
17296         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17297         match FreeBSD 10.0.
17298
17299 2011-01-27  Bruno Haible  <bruno@clisp.org>
17300
17301         vma-iter, get-rusage-as: Add OpenBSD support.
17302         * modules/vma-iter (configure.ac): Test for mquery.
17303         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17304         * lib/vma-iter.c: Include <sys/mman.h>.
17305         (vma_iterate): Add an implementation based on mquery().
17306         * lib/resource-ext.h (get_rusage_as): Update comments.
17307         * lib/get-rusage-as.c: Likewise.
17308         * lib/get-rusage-data.c: Likewise.
17309
17310 2011-01-26  Karl Berry  <karl@gnu.org>
17311
17312         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17313         variables to make it easier to override the makeinfo program used.
17314
17315 2011-01-26  Eric Blake  <eblake@redhat.com>
17316
17317         fcntl: work around Haiku F_DUPFD bugs
17318         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17319         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17320         cloexec bit on duplication.
17321         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17322
17323 2011-01-26  Bruno Haible  <bruno@clisp.org>
17324
17325         Enable memory leak tests on AIX.
17326         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17327         * tests/test-fprintf-posix3.c (main): Likewise.
17328
17329 2011-01-26  Bruno Haible  <bruno@clisp.org>
17330
17331         Tests for module 'get-rusage-data'.
17332         * modules/get-rusage-data-tests: New file.
17333         * tests/test-get-rusage-data.c: New file.
17334
17335         New module 'get-rusage-data'.
17336         * lib/resource-ext.h (get_rusage_data): New declaration.
17337         * lib/get-rusage-data.c: New file.
17338         * modules/get-rusage-data: New file.
17339
17340 2011-01-25  Bruno Haible  <bruno@clisp.org>
17341
17342         get-rusage-as: Allow for easier testing.
17343         * lib/resource-ext.h (get_rusage_as): Add comment.
17344         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17345         (main): New function for interactive testing.
17346
17347 2011-01-25  Bruno Haible  <bruno@clisp.org>
17348
17349         vma-iter: Treat Haiku like BeOS.
17350         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17351         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17352
17353 2011-01-25  Eric Blake  <eblake@redhat.com>
17354
17355         c-stack: fix regression on cygwin when libsigsegv is present
17356         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17357
17358 2011-01-24  Bruno Haible  <bruno@clisp.org>
17359
17360         vma-iter: Avoid empty intervals.
17361         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17362         on an empty interval.
17363
17364 2011-01-24  Jim Meyering  <meyering@redhat.com>
17365
17366         u64: remove unnecessary #include
17367         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17368
17369 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17370
17371         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17372         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17373
17374 2011-01-23  Bruno Haible  <bruno@clisp.org>
17375
17376         New module 'vma-iter'.
17377         * lib/vma-iter.h: New file.
17378         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17379         * modules/vma-iter: New file.
17380         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17381         for get_rusage_as_via_iterator.
17382         (vma_iterate_callback): New function.
17383         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17384         * modules/get-rusage-as (Depends-on): Add vma-iter.
17385
17386 2011-01-23  Bruno Haible  <bruno@clisp.org>
17387
17388         uninorm: Tweak includes.
17389         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17390         Reported by Jim Meyering.
17391
17392 2011-01-23  Bruno Haible  <bruno@clisp.org>
17393
17394         get-rusage-as: Improve on NetBSD.
17395         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17396         /proc, like on FreeBSD.
17397
17398 2011-01-23  Jim Meyering  <meyering@redhat.com>
17399
17400         xreadlink.h: remove unnecessary #include
17401         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17402
17403         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17404         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17405
17406 2011-01-23  Bruno Haible  <bruno@clisp.org>
17407
17408         get-rusage-as: Fix bug.
17409         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17410         original limit when aborting the first loop.
17411
17412 2011-01-23  Bruno Haible  <bruno@clisp.org>
17413
17414         wctype: Ensure valid C syntax.
17415         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17416         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17417
17418 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17419
17420         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17422         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17423         as they are needed only for configure's test case.
17424         This removes two unnecessary symbols from config.h.
17425
17426         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17427         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17429         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17430         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17431         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17432         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17433         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17434         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17435         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17436         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17437         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17438         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17439         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17440         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17441         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17442         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17443         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17444
17445 2011-01-21  Eric Blake  <eblake@redhat.com>
17446
17447         maintainer-makefile: work with older git for submodule check
17448         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17449         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17450         Reported by Matthias Bolte.
17451
17452         bootstrap: minor portability fixes
17453         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17454         (usage): Omit leading capital and trailing . on help phrases, per
17455         GNU Coding Standards.
17456         (check_versions, top level): Prefix messages with script name.
17457
17458 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17459
17460         bootstrap: support --no-git option
17461         * build-aux/bootstrap: Add --no-git option, to be used when
17462         --gnulib-srcdir points to the exact desired checkout.
17463
17464 2011-01-21  Eric Blake  <eblake@redhat.com>
17465
17466         strerror_r-posix: work with glibc 2.13
17467         * lib/strerror_r.c (strerror_r): Fix return type.
17468
17469 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17470             Bruno Haible  <bruno@clisp.org>
17471
17472         uN_strstr: New unit tests.
17473         * modules/unistr/u8-strstr-tests: New file.
17474         * modules/unistr/u16-strstr-tests: New file.
17475         * modules/unistr/u32-strstr-tests: New file.
17476         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17477         * tests/unistr/test-u8-strstr.c: New file.
17478         * tests/unistr/test-u16-strstr.c: New file.
17479         * tests/unistr/test-u32-strstr.c: New file.
17480
17481 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17482             Bruno Haible  <bruno@clisp.org>
17483
17484         Make uN_strstr functions O(n) worst-case.
17485         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17486         16-bit and 32-bit unit cases, use the unibyte algorithm from
17487         lib/mbsstr.c.
17488         * lib/unistr/u8-strstr.c: Include <string.h>.
17489         (UNIT_IS_UINT8_T): New macro.
17490         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17491         (U_STRLEN, U_STRNLEN): New macros.
17492         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17493         (U_STRLEN, U_STRNLEN): New macros.
17494         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17495         (configure.ac): Update required libunistring version.
17496         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17497         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17498         malloca.
17499         (configure.ac): Update required libunistring version.
17500         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17501         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17502         malloca.
17503         (configure.ac): Update required libunistring version.
17504
17505 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17506             Bruno Haible  <bruno@clisp.org>
17507
17508         Prepare for faster uN_strstr functions.
17509         * lib/str-kmp.h: Support definable UNITs.
17510         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17511         needle_len argument.
17512         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17513         * lib/mbscasestr.c (mbscasestr): Likewise.
17514
17515 2011-01-21  Pádraig Brady <P@draigBrady.com>
17516
17517         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17518         * tests/test-malloca.c (main): Unset the environment variable
17519         to greatly speed up the test.
17520         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17521         * modules/malloca-tests: Depend on unsetenv.
17522
17523 2011-01-21  Pádraig Brady <P@draigBrady.com>
17524
17525         ignore-value: remove stdint dependency
17526         * lib/ignore-value.h: Remove <stdint.h>
17527         * modules/ignore-value: Remove stdint dependency.
17528
17529 2011-01-21  Jim Meyering  <meyering@redhat.com>
17530
17531         maint.mk: adjust variable name to be consistent with other gl_ vars
17532         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17533         to be lower case.
17534
17535 2011-01-20  Jim Meyering  <meyering@redhat.com>
17536
17537         maint.mk: make "check" depend on public-submodule-commit by default
17538         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17539
17540 2011-01-20  Bruno Haible  <bruno@clisp.org>
17541
17542         mbfile, mbiter: Complete change from 2008-12-21.
17543         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17544         * m4/mbiter.m4 (gl_MBITER): Likewise.
17545
17546 2011-01-20  Jim Meyering  <meyering@redhat.com>
17547
17548         init.sh: insert space between each function name and "()"
17549         * tests/init.sh: Make it a little easier to see that a function's
17550         name is "warn_", and not "warn" when looking at the first part of
17551         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17552
17553 2011-01-20  Jim Meyering  <meyering@redhat.com>
17554
17555         mountlist: clean up code formatting
17556         * lib/mountlist.c (read_file_system_list): Split a long line,
17557         correct bracing style, use NULL in place of "(struct statfs *)0",
17558         don't parenthesize return value, add spaces around "=" and after
17559         ";-in-for-stmt".
17560
17561 2011-01-14  Markus Duft <mduft@gentoo.org>
17562
17563         mountlist: add support for Interix
17564         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17565         Apply statvfs to all entries of /dev/fs.
17566         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17567         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17568
17569 2011-01-20  Jim Meyering  <meyering@redhat.com>
17570
17571         maint.mk: improve the public-submodule-commit rule
17572         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17573         to suppress printing of its commands... unless V=1.
17574         Add git submodule's --quiet option to suppress printing of e.g.,
17575         "Entering gnulib" output.
17576         "cd" into $(srcdir) before running git submodule.
17577
17578 2011-01-20  Bruno Haible  <bruno@clisp.org>
17579
17580         include_next: Fix bug introduced on 2011-01-18.
17581         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17582         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17583         ac_cv_header_... variable if the second argument is not 'check'.
17584         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17585         gl_NEXT_HEADERS_INTERNAL.
17586
17587 2011-01-20  Bruno Haible  <bruno@clisp.org>
17588
17589         Allow the user to avoid the GNULIB_TEST_* macros.
17590         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17591         Suggested by Paul Eggert.
17592
17593 2011-01-14  Jim Meyering  <meyering@redhat.com>
17594
17595         bootstrap: avoid failure when there is no .gitmodules file
17596         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17597         has been assigned to, even when its value is the empty string.
17598         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17599         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17600         Reported by John W. Eaton <jwe@gnu.org>.
17601
17602 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17603
17604         assume <ctype.h>, ..., <time.h> exist
17605         For years gnulib has been assuming the existence of the headers
17606         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17607         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17608         them, since they don't appear to be needed.
17609         * README (Portability guidelines): Document this.
17610         * lib/flock.c: Assume <fcntl.h> exists.
17611         * lib/regex_internal.h: Assume <locale.h> exists.
17612         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17614         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17615         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17616         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17617         * m4/regex.m4 (gl_REGEX): Likewise.
17618         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17619         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17620         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17621         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17622         * tests/test-argp.c: Likewise.
17623         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17624
17625         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17626         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17627         AA_APPLE_UNIVERSAL_BUILD.  See
17628         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17629         * NEWS: Document this.
17630
17631 2011-01-19  Eric Blake  <eblake@redhat.com>
17632
17633         c-stack: assume stack overflow if SA_SIGINFO unsupported
17634         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17635         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17636         sigaction will work.
17637         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17638         behavior match Linux.
17639         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17640
17641         stdbool-tests: accomodate Haiku
17642         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17643
17644         binary-io: fix O_TEXT on Haiku
17645         * modules/binary-io (Depends-on): Add fcntl-h.
17646         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17647         than blindly undefining O_TEXT.
17648         Reported by Scott McCreary.
17649
17650 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17651
17652         include_next: do not check for standard headers like stddef.h
17653
17654         I found this problem when modifying Emacs to use gnulib.
17655         I noticed that it added HAVE_STDDEF_H to config.h, even though
17656         gnulib always assumes <stddef.h> exists as per README and this
17657         symbol is unnecessary.
17658         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17659         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17660         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17661         faster for headers like stddef.h that are known to exist.
17662         (gl_CHECK_NEXT_HEADERS): Use it.
17663         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17664         rather than gl_CHECK_NEXT_HEADERS.
17665         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17666         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17667
17668 2011-01-18  Eric Blake  <eblake@redhat.com>
17669
17670         ansi-c++-opt: skip C++ dependency style if C++ is unused
17671         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17672         tests when we know C++ compilation is not desired.
17673         Reported by Scott McCreary.
17674
17675 2011-01-18  Bruno Haible  <bruno@clisp.org>
17676
17677         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17678         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17679         (main): Perform test also when getrlimit and setrlimit don't exist or
17680         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17681         limiting the address space size using setrlimit, compare the address
17682         space size before and after the the test.
17683         * tests/test-dprintf-posix2.c: Likewise.
17684         * tests/test-fprintf-posix3.sh: Update skip messages.
17685         * tests/test-dprintf-posix2.sh: Likewise.
17686         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17687         * modules/dprintf-posix-tests (Depends-on): Likewise.
17688         Reported by Bruce Korb <bkorb@gnu.org> and
17689         Gary V. Vaughan <gary@gnu.org>.
17690
17691 2011-01-18  Bruno Haible  <bruno@clisp.org>
17692
17693         get-rusage-as: Improvement for Cygwin.
17694         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17695         areas that are merely reserved.
17696
17697 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17698
17699         strftime: remove dependencies on multibyte modules
17700
17701         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17702         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17703         only if __osf__ is defined, and I suspect OSF doesn't need these
17704         other modules.  If my guess is wrong, we'll need to come up with a
17705         variant of strftime that doesn't need the multibyte modules.
17706
17707         I discovered this problem when attempting modify Emacs to use the
17708         strftime module.  With the previous gnulib, this caused Emacs to
17709         need 31 new files, ranging from lib/config.charset to
17710         m4/wint_t.m4.  This was overkill and I expect would be offputting
17711         to the Emacs maintainers.  After this change, only 6 new files are
17712         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17713         stdbool.m4, and tm_gmtoff.m4.
17714
17715         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17716         Suggested by Bruno Haible in
17717         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17718         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17719         and do not check for wchar.h.
17720         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17721         (Depends-on): Remove mbrlen, mbsinit, wchar.
17722
17723 2011-01-18  Bruno Haible  <bruno@clisp.org>
17724
17725         Tests for module 'get-rusage-as'.
17726         * modules/get-rusage-as-tests: New file.
17727         * tests/test-get-rusage-as.c: New file.
17728
17729         New module 'get-rusage-as'.
17730         * modules/get-rusage-as: New file.
17731         * lib/resource-ext.h: New file.
17732         * lib/get-rusage-as.c: New file.
17733
17734 2011-01-17  Eric Blake  <eblake@redhat.com>
17735
17736         sigaction: relax license from LGPLv3+ to LGPLv2+
17737         * modules/sigaction (License): Relax to LGPLv2+.
17738
17739 2011-01-14  Bruno Haible  <bruno@clisp.org>
17740
17741         filemode: Make function declarations usable in C++ mode.
17742         * lib/filemode.h: Enclose function declarations in extern "C" block.
17743         Reported by John W. Eaton <jwe@gnu.org>.
17744
17745 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17746
17747         save-cwd: no longer include "xgetcwd.h"
17748         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17749         This avoids a compilation failure in projects that use save-cwd
17750         without also using the xgetcwd module.
17751
17752 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17753
17754         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17755         This is so that a program like Emacs, which needs only dtoastr,
17756         does not have to bother with distributing and compiling ftoastr
17757         and ldtoastr.
17758         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17759         * modules/dtoastr, modules/ldtoastr: New files.
17760         * modules/ftoastr: Now works just for 'float'.
17761         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17762         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17763         dtoastr.c, ldtoastr.c.
17764
17765 2011-01-11  Jim Meyering  <meyering@redhat.com>
17766
17767         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17768         There is no need to work around the lack of the fchdir function,
17769         since gnulib can now provide a replacement when required.
17770         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17771         * modules/save-cwd (Depends-on): Add fchdir.
17772
17773 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17774
17775         openat, save-cwd: avoid xmalloc
17776
17777         This removes a direct (but undocumented) dependency of openat on
17778         xalloc, along with an indirect dependency via save-cwd.  It also
17779         removes a dependency of save-cwd on xgetcwd, and thereby
17780         indirectly on xalloc.  This change causes the openat substitute
17781         to fall back on save_cwd when memory is tight, and for save_cwd to
17782         fail instead of dying when memory is tight, but that's good enough.
17783         Problem and initial idea for fix reported by Bastien Roucaries in
17784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17785
17786         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17787         xalloc.h (for xmalloc).
17788         (openat_proc_name): Use malloc, not xmalloc.
17789         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17790         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17791
17792         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17793         This avoids heap allocation for file names whose lengths are in
17794         the range 512..1023, with the upper bound increasing to at most
17795         4031 depending on the platform's PATH_MAX.  (We do not want
17796         pathmax.h here as it might supply a non-constant PATH_MAX.)
17797         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17798         Perhaps they should be moved to malloca.h?
17799         (OPENAT_BUFFER_SIZE): Use them.
17800
17801 2011-01-10  Bruno Haible  <bruno@clisp.org>
17802
17803         doc: Update users.txt.
17804         * users.txt: Add recutils.
17805
17806 2011-01-09  Karl Berry  <karl@gnu.org>
17807
17808         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17809
17810         * doc/configmake.texi: New file.
17811         * doc/gnulib.texi: Include it.
17812         * modules/configmake: Move documentation from here.
17813
17814 2011-01-09  Bruno Haible  <bruno@clisp.org>
17815
17816         Update to Unicode 6.0.0.
17817         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17818         (get_lbp): Update for Unicode 6.0.0.
17819         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17820         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17821         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17822         U+11001, U+11038..U+11046. Remove U+06DE.
17823         (uc_width): Fix bounds of planes.
17824         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17825         lib/uniwidth/width.c.
17826         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17827         trailing whitespace removed.
17828         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17829         without comments, but with the original copyright notice.
17830         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17831         * lib/unicase/ignorable.h: Likewise.
17832         * lib/unicase/tocasefold.h: Likewise.
17833         * lib/unicase/tolower.h: Likewise.
17834         * lib/unicase/totitle.h: Likewise.
17835         * lib/unicase/toupper.h: Likewise.
17836         * lib/unictype/bidi_of.h: Likewise.
17837         * lib/unictype/blocks.h: Likewise.
17838         * lib/unictype/categ_C.h: Likewise.
17839         * lib/unictype/categ_Cn.h: Likewise.
17840         * lib/unictype/categ_L.h: Likewise.
17841         * lib/unictype/categ_Ll.h: Likewise.
17842         * lib/unictype/categ_Lm.h: Likewise.
17843         * lib/unictype/categ_Lo.h: Likewise.
17844         * lib/unictype/categ_Lu.h: Likewise.
17845         * lib/unictype/categ_M.h: Likewise.
17846         * lib/unictype/categ_Mc.h: Likewise.
17847         * lib/unictype/categ_Me.h: Likewise.
17848         * lib/unictype/categ_Mn.h: Likewise.
17849         * lib/unictype/categ_N.h: Likewise.
17850         * lib/unictype/categ_Nd.h: Likewise.
17851         * lib/unictype/categ_No.h: Likewise.
17852         * lib/unictype/categ_P.h: Likewise.
17853         * lib/unictype/categ_Po.h: Likewise.
17854         * lib/unictype/categ_S.h: Likewise.
17855         * lib/unictype/categ_Sc.h: Likewise.
17856         * lib/unictype/categ_Sk.h: Likewise.
17857         * lib/unictype/categ_Sm.h: Likewise.
17858         * lib/unictype/categ_So.h: Likewise.
17859         * lib/unictype/categ_of.h: Likewise.
17860         * lib/unictype/combining.h: Likewise.
17861         * lib/unictype/ctype_alnum.h: Likewise.
17862         * lib/unictype/ctype_alpha.h: Likewise.
17863         * lib/unictype/ctype_graph.h: Likewise.
17864         * lib/unictype/ctype_lower.h: Likewise.
17865         * lib/unictype/ctype_print.h: Likewise.
17866         * lib/unictype/ctype_punct.h: Likewise.
17867         * lib/unictype/ctype_upper.h: Likewise.
17868         * lib/unictype/decdigit.h: Likewise.
17869         * lib/unictype/digit.h: Likewise.
17870         * lib/unictype/numeric.h: Likewise.
17871         * lib/unictype/pr_alphabetic.h: Likewise.
17872         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17873         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17874         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17875         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17876         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17877         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17878         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17879         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17880         * lib/unictype/pr_case_ignorable.h: Likewise.
17881         * lib/unictype/pr_cased.h: Likewise.
17882         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17883         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17884         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17885         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17886         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17887         * lib/unictype/pr_combining.h: Likewise.
17888         * lib/unictype/pr_composite.h: Likewise.
17889         * lib/unictype/pr_currency_symbol.h: Likewise.
17890         * lib/unictype/pr_decimal_digit.h: Likewise.
17891         * lib/unictype/pr_deprecated.h: Likewise.
17892         * lib/unictype/pr_format_control.h: Likewise.
17893         * lib/unictype/pr_grapheme_base.h: Likewise.
17894         * lib/unictype/pr_grapheme_extend.h: Likewise.
17895         * lib/unictype/pr_grapheme_link.h: Likewise.
17896         * lib/unictype/pr_id_continue.h: Likewise.
17897         * lib/unictype/pr_id_start.h: Likewise.
17898         * lib/unictype/pr_ideographic.h: Likewise.
17899         * lib/unictype/pr_lowercase.h: Likewise.
17900         * lib/unictype/pr_math.h: Likewise.
17901         * lib/unictype/pr_numeric.h: Likewise.
17902         * lib/unictype/pr_other_alphabetic.h: Likewise.
17903         * lib/unictype/pr_other_id_continue.h: Likewise.
17904         * lib/unictype/pr_other_math.h: Likewise.
17905         * lib/unictype/pr_punctuation.h: Likewise.
17906         * lib/unictype/pr_sentence_terminal.h: Likewise.
17907         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17908         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17909         * lib/unictype/pr_unified_ideograph.h: Likewise.
17910         * lib/unictype/pr_uppercase.h: Likewise.
17911         * lib/unictype/pr_xid_continue.h: Likewise.
17912         * lib/unictype/pr_xid_start.h: Likewise.
17913         * lib/unictype/scripts.h: Likewise.
17914         * lib/unictype/scripts_byname.gperf: Likewise.
17915         * lib/unictype/sy_java_ident.h: Likewise.
17916         * lib/unigbrk/gbrkprop.h: Likewise.
17917         * lib/unilbrk/lbrkprop1.h: Likewise.
17918         * lib/unilbrk/lbrkprop2.h: Likewise.
17919         * lib/uninorm/decomposition-table2.h: Likewise.
17920         * lib/uniwbrk/wbrkprop.h: Likewise.
17921         * tests/unicase/test-cased.c: Likewise.
17922         * tests/unicase/test-ignorable.c: Likewise.
17923         * tests/unicase/test-uc_tolower.c: Likewise.
17924         * tests/unicase/test-uc_totitle.c: Likewise.
17925         * tests/unicase/test-uc_toupper.c: Likewise.
17926         * tests/unictype/test-categ_C.c: Likewise.
17927         * tests/unictype/test-categ_Cn.c: Likewise.
17928         * tests/unictype/test-categ_L.c: Likewise.
17929         * tests/unictype/test-categ_Ll.c: Likewise.
17930         * tests/unictype/test-categ_Lm.c: Likewise.
17931         * tests/unictype/test-categ_Lo.c: Likewise.
17932         * tests/unictype/test-categ_Lu.c: Likewise.
17933         * tests/unictype/test-categ_M.c: Likewise.
17934         * tests/unictype/test-categ_Mc.c: Likewise.
17935         * tests/unictype/test-categ_Me.c: Likewise.
17936         * tests/unictype/test-categ_Mn.c: Likewise.
17937         * tests/unictype/test-categ_N.c: Likewise.
17938         * tests/unictype/test-categ_Nd.c: Likewise.
17939         * tests/unictype/test-categ_No.c: Likewise.
17940         * tests/unictype/test-categ_P.c: Likewise.
17941         * tests/unictype/test-categ_Po.c: Likewise.
17942         * tests/unictype/test-categ_S.c: Likewise.
17943         * tests/unictype/test-categ_Sc.c: Likewise.
17944         * tests/unictype/test-categ_Sk.c: Likewise.
17945         * tests/unictype/test-categ_Sm.c: Likewise.
17946         * tests/unictype/test-categ_So.c: Likewise.
17947         * tests/unictype/test-ctype_alnum.c: Likewise.
17948         * tests/unictype/test-ctype_alpha.c: Likewise.
17949         * tests/unictype/test-ctype_graph.c: Likewise.
17950         * tests/unictype/test-ctype_lower.c: Likewise.
17951         * tests/unictype/test-ctype_print.c: Likewise.
17952         * tests/unictype/test-ctype_punct.c: Likewise.
17953         * tests/unictype/test-ctype_upper.c: Likewise.
17954         * tests/unictype/test-decdigit.h: Likewise.
17955         * tests/unictype/test-digit.h: Likewise.
17956         * tests/unictype/test-numeric.h: Likewise.
17957         * tests/unictype/test-pr_alphabetic.c: Likewise.
17958         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17959         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17960         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17961         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17962         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17963         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17964         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17965         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17966         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17967         * tests/unictype/test-pr_cased.c: Likewise.
17968         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17969         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17970         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17971         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17972         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17973         * tests/unictype/test-pr_combining.c: Likewise.
17974         * tests/unictype/test-pr_composite.c: Likewise.
17975         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17976         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17977         * tests/unictype/test-pr_deprecated.c: Likewise.
17978         * tests/unictype/test-pr_format_control.c: Likewise.
17979         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17980         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17981         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17982         * tests/unictype/test-pr_id_continue.c: Likewise.
17983         * tests/unictype/test-pr_id_start.c: Likewise.
17984         * tests/unictype/test-pr_ideographic.c: Likewise.
17985         * tests/unictype/test-pr_lowercase.c: Likewise.
17986         * tests/unictype/test-pr_math.c: Likewise.
17987         * tests/unictype/test-pr_numeric.c: Likewise.
17988         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17989         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17990         * tests/unictype/test-pr_other_math.c: Likewise.
17991         * tests/unictype/test-pr_punctuation.c: Likewise.
17992         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17993         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17994         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17995         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17996         * tests/unictype/test-pr_uppercase.c: Likewise.
17997         * tests/unictype/test-pr_xid_continue.c: Likewise.
17998         * tests/unictype/test-pr_xid_start.c: Likewise.
17999         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18000         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18001         changes.
18002         * lib/unictype/categ_Cc.h: Likewise.
18003         * lib/unictype/categ_Cf.h: Likewise.
18004         * lib/unictype/categ_Co.h: Likewise.
18005         * lib/unictype/categ_Cs.h: Likewise.
18006         * lib/unictype/categ_Lt.h: Likewise.
18007         * lib/unictype/categ_Nl.h: Likewise.
18008         * lib/unictype/categ_Pc.h: Likewise.
18009         * lib/unictype/categ_Pd.h: Likewise.
18010         * lib/unictype/categ_Pe.h: Likewise.
18011         * lib/unictype/categ_Pf.h: Likewise.
18012         * lib/unictype/categ_Pi.h: Likewise.
18013         * lib/unictype/categ_Ps.h: Likewise.
18014         * lib/unictype/categ_Z.h: Likewise.
18015         * lib/unictype/categ_Zl.h: Likewise.
18016         * lib/unictype/categ_Zp.h: Likewise.
18017         * lib/unictype/categ_Zs.h: Likewise.
18018         * lib/unictype/ctype_blank.h: Likewise.
18019         * lib/unictype/ctype_cntrl.h: Likewise.
18020         * lib/unictype/ctype_digit.h: Likewise.
18021         * lib/unictype/ctype_space.h: Likewise.
18022         * lib/unictype/ctype_xdigit.h: Likewise.
18023         * lib/unictype/mirror.h: Likewise.
18024         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18025         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18026         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18027         * lib/unictype/pr_bidi_control.h: Likewise.
18028         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18029         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18030         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18031         * lib/unictype/pr_bidi_pdf.h: Likewise.
18032         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18033         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18034         * lib/unictype/pr_dash.h: Likewise.
18035         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18036         * lib/unictype/pr_diacritic.h: Likewise.
18037         * lib/unictype/pr_extender.h: Likewise.
18038         * lib/unictype/pr_hex_digit.h: Likewise.
18039         * lib/unictype/pr_hyphen.h: Likewise.
18040         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18041         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18042         * lib/unictype/pr_ignorable_control.h: Likewise.
18043         * lib/unictype/pr_iso_control.h: Likewise.
18044         * lib/unictype/pr_join_control.h: Likewise.
18045         * lib/unictype/pr_left_of_pair.h: Likewise.
18046         * lib/unictype/pr_line_separator.h: Likewise.
18047         * lib/unictype/pr_logical_order_exception.h: Likewise.
18048         * lib/unictype/pr_non_break.h: Likewise.
18049         * lib/unictype/pr_not_a_character.h: Likewise.
18050         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18051         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18052         * lib/unictype/pr_other_id_start.h: Likewise.
18053         * lib/unictype/pr_other_lowercase.h: Likewise.
18054         * lib/unictype/pr_other_uppercase.h: Likewise.
18055         * lib/unictype/pr_paired_punctuation.h: Likewise.
18056         * lib/unictype/pr_paragraph_separator.h: Likewise.
18057         * lib/unictype/pr_pattern_syntax.h: Likewise.
18058         * lib/unictype/pr_pattern_white_space.h: Likewise.
18059         * lib/unictype/pr_private_use.h: Likewise.
18060         * lib/unictype/pr_quotation_mark.h: Likewise.
18061         * lib/unictype/pr_radical.h: Likewise.
18062         * lib/unictype/pr_soft_dotted.h: Likewise.
18063         * lib/unictype/pr_space.h: Likewise.
18064         * lib/unictype/pr_titlecase.h: Likewise.
18065         * lib/unictype/pr_variation_selector.h: Likewise.
18066         * lib/unictype/pr_white_space.h: Likewise.
18067         * lib/unictype/pr_zero_width.h: Likewise.
18068         * lib/unictype/sy_c_ident.h: Likewise.
18069         * lib/unictype/sy_c_whitespace.h: Likewise.
18070         * lib/unictype/sy_java_whitespace.h: Likewise.
18071         * lib/uninorm/composition-table.gperf: Likewise.
18072         * lib/uninorm/decomposition-table1.h: Likewise.
18073         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18074         LB8.
18075         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18076         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18077         * modules/unictype/*: Bump version number of expected libunistring
18078         version.
18079
18080 2011-01-09  Bruno Haible  <bruno@clisp.org>
18081
18082         Update to Unicode 5.2.0.
18083         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18084         trailing whitespace removed.
18085
18086 2011-01-09  Bruno Haible  <bruno@clisp.org>
18087
18088         New Unicode character properties, from Unicode 5.2.0.
18089         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18090         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18091         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18092         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18093         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18094         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18095         uc_is_property_cased, uc_is_property_case_ignorable,
18096         uc_is_property_changes_when_lowercased,
18097         uc_is_property_changes_when_uppercased,
18098         uc_is_property_changes_when_titlecased,
18099         uc_is_property_changes_when_casefolded,
18100         uc_is_property_changes_when_casemapped): New declarations.
18101         * lib/unictype/pr_byname.gperf: Add the new properties.
18102         * modules/unictype/property-byname (Depends-on): Depend on the new
18103         properties modules.
18104         * modules/unictype/property-all (Depends-on): Likewise.
18105         * MODULES.html.sh (Unicode string functions): Add
18106         unictype/property-case-ignorable, unictype/property-cased,
18107         unictype/property-changes-when-casefolded,
18108         unictype/property-changes-when-casemapped,
18109         unictype/property-changes-when-lowercased,
18110         unictype/property-changes-when-titlecased,
18111         unictype/property-changes-when-uppercased.
18112
18113         New module 'unictype/property-changes-when-casemapped'.
18114         * modules/unictype/property-changes-when-casemapped: New file.
18115         * lib/unictype/pr_changes_when_casemapped.c: New file.
18116         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18117         generated by gen-uni-tables.
18118         * modules/unictype/property-changes-when-casemapped-tests: New file.
18119         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18120         automatically generated by gen-uni-tables.
18121
18122         New module 'unictype/property-changes-when-casefolded'.
18123         * modules/unictype/property-changes-when-casefolded: New file.
18124         * lib/unictype/pr_changes_when_casefolded.c: New file.
18125         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18126         generated by gen-uni-tables.
18127         * modules/unictype/property-changes-when-casefolded-tests: New file.
18128         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18129         automatically generated by gen-uni-tables.
18130
18131         New module 'unictype/property-changes-when-titlecased'.
18132         * modules/unictype/property-changes-when-titlecased: New file.
18133         * lib/unictype/pr_changes_when_titlecased.c: New file.
18134         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18135         generated by gen-uni-tables.
18136         * modules/unictype/property-changes-when-titlecased-tests: New file.
18137         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18138         automatically generated by gen-uni-tables.
18139
18140         New module 'unictype/property-changes-when-uppercased'.
18141         * modules/unictype/property-changes-when-uppercased: New file.
18142         * lib/unictype/pr_changes_when_uppercased.c: New file.
18143         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18144         generated by gen-uni-tables.
18145         * modules/unictype/property-changes-when-uppercased-tests: New file.
18146         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18147         automatically generated by gen-uni-tables.
18148
18149         New module 'unictype/property-changes-when-lowercased'.
18150         * modules/unictype/property-changes-when-lowercased: New file.
18151         * lib/unictype/pr_changes_when_lowercased.c: New file.
18152         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18153         generated by gen-uni-tables.
18154         * modules/unictype/property-changes-when-lowercased-tests: New file.
18155         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18156         automatically generated by gen-uni-tables.
18157
18158         New module 'unictype/property-case-ignorable'.
18159         * modules/unictype/property-case-ignorable: New file.
18160         * lib/unictype/pr_case_ignorable.c: New file.
18161         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18162         by gen-uni-tables.
18163         * modules/unictype/property-case-ignorable-tests: New file.
18164         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18165         generated by gen-uni-tables.
18166
18167         New module 'unictype/property-cased'.
18168         * modules/unictype/property-cased: New file.
18169         * lib/unictype/pr_cased.c: New file.
18170         * lib/unictype/pr_cased.h: New file, automatically generated by
18171         gen-uni-tables.
18172         * modules/unictype/property-cased-tests: New file.
18173         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18174         gen-uni-tables.
18175
18176 2011-01-09  Bruno Haible  <bruno@clisp.org>
18177
18178         Update to Unicode 5.2.0.
18179         * lib/gen-uni-tables.c (output_predicate, output_category,
18180         output_combclass, output_bidi_category, output_decimal_digit_test,
18181         output_decimal_digit, output_digit_test, output_digit,
18182         output_numeric_test, output_numeric, output_mirror, output_scripts,
18183         output_scripts_byname, output_blocks, output_ident_category): Fix
18184         comment header.
18185         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18186         get_wbp.
18187         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18188         items.
18189         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18190         Changes_When_Lowercased, Changes_When_Uppercased,
18191         Changes_When_Titlecased, Changes_When_Casefolded,
18192         Changes_When_Casemapped.
18193         (is_property_alphabetic, is_property_default_ignorable_code_point):
18194         Update for Unicode 5.2.0.
18195         (is_property_cased, is_property_case_ignorable,
18196         is_property_changes_when_lowercased,
18197         is_property_changes_when_uppercased,
18198         is_property_changes_when_titlecased,
18199         is_property_changes_when_casefolded,
18200         is_property_changes_when_casemapped): New functions.
18201         (output_properties): Output also the properties cased, case_ignorable,
18202         changes_when_lowercased, changes_when_uppercased,
18203         changes_when_titlecased, changes_when_casefolded,
18204         changes_when_casemapped.
18205         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18206         Unicode TR#11 revision 17 -> 19.
18207         (LBP_CP): New enumeration value.
18208         (LBP_*): Adjust values accordingly.
18209         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18210         TR#14 revision 22 -> 24.
18211         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18212         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18213         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18214         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18215         is_WBP_MIDLETTER.
18216         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18217         the code1 and code2 of each composition rule.
18218         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18219         * lib/unicase/ignorable.h: Likewise.
18220         * lib/unicase/tocasefold.h: Likewise.
18221         * lib/unicase/tolower.h: Likewise.
18222         * lib/unicase/totitle.h: Likewise.
18223         * lib/unicase/toupper.h: Likewise.
18224         * lib/unictype/bidi_of.h: Likewise.
18225         * lib/unictype/blocks.h: Likewise.
18226         * lib/unictype/categ_C.h: Likewise.
18227         * lib/unictype/categ_Cf.h: Likewise.
18228         * lib/unictype/categ_Cn.h: Likewise.
18229         * lib/unictype/categ_L.h: Likewise.
18230         * lib/unictype/categ_Ll.h: Likewise.
18231         * lib/unictype/categ_Lm.h: Likewise.
18232         * lib/unictype/categ_Lo.h: Likewise.
18233         * lib/unictype/categ_Lu.h: Likewise.
18234         * lib/unictype/categ_M.h: Likewise.
18235         * lib/unictype/categ_Mc.h: Likewise.
18236         * lib/unictype/categ_Mn.h: Likewise.
18237         * lib/unictype/categ_N.h: Likewise.
18238         * lib/unictype/categ_Nd.h: Likewise.
18239         * lib/unictype/categ_Nl.h: Likewise.
18240         * lib/unictype/categ_No.h: Likewise.
18241         * lib/unictype/categ_P.h: Likewise.
18242         * lib/unictype/categ_Pd.h: Likewise.
18243         * lib/unictype/categ_Po.h: Likewise.
18244         * lib/unictype/categ_S.h: Likewise.
18245         * lib/unictype/categ_Sc.h: Likewise.
18246         * lib/unictype/categ_So.h: Likewise.
18247         * lib/unictype/categ_of.h: Likewise.
18248         * lib/unictype/combining.h: Likewise.
18249         * lib/unictype/ctype_alnum.h: Likewise.
18250         * lib/unictype/ctype_alpha.h: Likewise.
18251         * lib/unictype/ctype_graph.h: Likewise.
18252         * lib/unictype/ctype_lower.h: Likewise.
18253         * lib/unictype/ctype_print.h: Likewise.
18254         * lib/unictype/ctype_punct.h: Likewise.
18255         * lib/unictype/ctype_upper.h: Likewise.
18256         * lib/unictype/decdigit.h: Likewise.
18257         * lib/unictype/digit.h: Likewise.
18258         * lib/unictype/numeric.h: Likewise.
18259         * lib/unictype/pr_alphabetic.h: Likewise.
18260         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18261         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18262         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18263         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18264         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18265         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18266         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18267         * lib/unictype/pr_combining.h: Likewise.
18268         * lib/unictype/pr_composite.h: Likewise.
18269         * lib/unictype/pr_currency_symbol.h: Likewise.
18270         * lib/unictype/pr_dash.h: Likewise.
18271         * lib/unictype/pr_decimal_digit.h: Likewise.
18272         * lib/unictype/pr_deprecated.h: Likewise.
18273         * lib/unictype/pr_diacritic.h: Likewise.
18274         * lib/unictype/pr_extender.h: Likewise.
18275         * lib/unictype/pr_grapheme_base.h: Likewise.
18276         * lib/unictype/pr_grapheme_extend.h: Likewise.
18277         * lib/unictype/pr_grapheme_link.h: Likewise.
18278         * lib/unictype/pr_id_continue.h: Likewise.
18279         * lib/unictype/pr_id_start.h: Likewise.
18280         * lib/unictype/pr_ideographic.h: Likewise.
18281         * lib/unictype/pr_ignorable_control.h: Likewise.
18282         * lib/unictype/pr_logical_order_exception.h: Likewise.
18283         * lib/unictype/pr_lowercase.h: Likewise.
18284         * lib/unictype/pr_numeric.h: Likewise.
18285         * lib/unictype/pr_other_alphabetic.h: Likewise.
18286         * lib/unictype/pr_punctuation.h: Likewise.
18287         * lib/unictype/pr_sentence_terminal.h: Likewise.
18288         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18289         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18290         * lib/unictype/pr_unified_ideograph.h: Likewise.
18291         * lib/unictype/pr_uppercase.h: Likewise.
18292         * lib/unictype/pr_xid_continue.h: Likewise.
18293         * lib/unictype/pr_xid_start.h: Likewise.
18294         * lib/unictype/pr_zero_width.h: Likewise.
18295         * lib/unictype/scripts.h: Likewise.
18296         * lib/unictype/scripts_byname.gperf: Likewise.
18297         * lib/unictype/sy_java_ident.h: Likewise.
18298         * lib/unigbrk/gbrkprop.h: Likewise.
18299         * lib/unilbrk/lbrkprop1.h: Likewise.
18300         * lib/unilbrk/lbrkprop2.h: Likewise.
18301         * lib/unilbrk/lbrktables.h: Likewise.
18302         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18303         LBP_CP. Implement rule LB30.
18304         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18305         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18306         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18307         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18308         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18309         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18310         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18311         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18312         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18313         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18314         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18315         bits instead of 16 bits in the code1 and code2 of each composition
18316         rule.
18317         (uc_composition): Update for Unicode 5.2.0.
18318         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18319         * lib/uninorm/decomposition-table2.h: Likewise.
18320         * lib/uniwbrk/wbrkprop.h: Likewise.
18321         * tests/unicase/test-cased.c: Likewise.
18322         * tests/unicase/test-ignorable.c: Likewise.
18323         * tests/unicase/test-uc_tolower.c: Likewise.
18324         * tests/unicase/test-uc_totitle.c: Likewise.
18325         * tests/unicase/test-uc_toupper.c: Likewise.
18326         * tests/unictype/test-categ_C.c: Likewise.
18327         * tests/unictype/test-categ_Cf.c: Likewise.
18328         * tests/unictype/test-categ_Cn.c: Likewise.
18329         * tests/unictype/test-categ_L.c: Likewise.
18330         * tests/unictype/test-categ_Ll.c: Likewise.
18331         * tests/unictype/test-categ_Lm.c: Likewise.
18332         * tests/unictype/test-categ_Lo.c: Likewise.
18333         * tests/unictype/test-categ_Lu.c: Likewise.
18334         * tests/unictype/test-categ_M.c: Likewise.
18335         * tests/unictype/test-categ_Mc.c: Likewise.
18336         * tests/unictype/test-categ_Mn.c: Likewise.
18337         * tests/unictype/test-categ_N.c: Likewise.
18338         * tests/unictype/test-categ_Nd.c: Likewise.
18339         * tests/unictype/test-categ_Nl.c: Likewise.
18340         * tests/unictype/test-categ_No.c: Likewise.
18341         * tests/unictype/test-categ_P.c: Likewise.
18342         * tests/unictype/test-categ_Pd.c: Likewise.
18343         * tests/unictype/test-categ_Po.c: Likewise.
18344         * tests/unictype/test-categ_S.c: Likewise.
18345         * tests/unictype/test-categ_Sc.c: Likewise.
18346         * tests/unictype/test-categ_So.c: Likewise.
18347         * tests/unictype/test-ctype_alnum.c: Likewise.
18348         * tests/unictype/test-ctype_alpha.c: Likewise.
18349         * tests/unictype/test-ctype_graph.c: Likewise.
18350         * tests/unictype/test-ctype_lower.c: Likewise.
18351         * tests/unictype/test-ctype_print.c: Likewise.
18352         * tests/unictype/test-ctype_punct.c: Likewise.
18353         * tests/unictype/test-ctype_upper.c: Likewise.
18354         * tests/unictype/test-decdigit.h: Likewise.
18355         * tests/unictype/test-digit.h: Likewise.
18356         * tests/unictype/test-numeric.h: Likewise.
18357         * tests/unictype/test-pr_alphabetic.c: Likewise.
18358         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18359         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18360         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18361         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18362         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18363         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18364         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18365         * tests/unictype/test-pr_combining.c: Likewise.
18366         * tests/unictype/test-pr_composite.c: Likewise.
18367         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18368         * tests/unictype/test-pr_dash.c: Likewise.
18369         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18370         * tests/unictype/test-pr_deprecated.c: Likewise.
18371         * tests/unictype/test-pr_diacritic.c: Likewise.
18372         * tests/unictype/test-pr_extender.c: Likewise.
18373         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18374         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18375         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18376         * tests/unictype/test-pr_id_continue.c: Likewise.
18377         * tests/unictype/test-pr_id_start.c: Likewise.
18378         * tests/unictype/test-pr_ideographic.c: Likewise.
18379         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18380         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18381         * tests/unictype/test-pr_lowercase.c: Likewise.
18382         * tests/unictype/test-pr_numeric.c: Likewise.
18383         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18384         * tests/unictype/test-pr_punctuation.c: Likewise.
18385         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18386         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18387         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18388         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18389         * tests/unictype/test-pr_uppercase.c: Likewise.
18390         * tests/unictype/test-pr_xid_continue.c: Likewise.
18391         * tests/unictype/test-pr_xid_start.c: Likewise.
18392         * tests/unictype/test-pr_zero_width.c: Likewise.
18393         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18394         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18395         changed behaviour: line breaking is now disallowed between a letter
18396         or '=' and '('.
18397         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18398         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18399         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18400         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18401         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18402         lib/uniwidth/width.c.
18403         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18404         without comments, but with the original copyright notice.
18405         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18406         changes.
18407         * lib/unictype/categ_Cc.h: Likewise.
18408         * lib/unictype/categ_Co.h: Likewise.
18409         * lib/unictype/categ_Cs.h: Likewise.
18410         * lib/unictype/categ_Lt.h: Likewise.
18411         * lib/unictype/categ_Me.h: Likewise.
18412         * lib/unictype/categ_Pc.h: Likewise.
18413         * lib/unictype/categ_Pe.h: Likewise.
18414         * lib/unictype/categ_Pf.h: Likewise.
18415         * lib/unictype/categ_Pi.h: Likewise.
18416         * lib/unictype/categ_Ps.h: Likewise.
18417         * lib/unictype/categ_Sk.h: Likewise.
18418         * lib/unictype/categ_Sm.h: Likewise.
18419         * lib/unictype/categ_Z.h: Likewise.
18420         * lib/unictype/categ_Zl.h: Likewise.
18421         * lib/unictype/categ_Zp.h: Likewise.
18422         * lib/unictype/categ_Zs.h: Likewise.
18423         * lib/unictype/ctype_blank.h: Likewise.
18424         * lib/unictype/ctype_cntrl.h: Likewise.
18425         * lib/unictype/ctype_digit.h: Likewise.
18426         * lib/unictype/ctype_space.h: Likewise.
18427         * lib/unictype/ctype_xdigit.h: Likewise.
18428         * lib/unictype/mirror.h: Likewise.
18429         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18430         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18431         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18432         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18433         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18434         * lib/unictype/pr_bidi_control.h: Likewise.
18435         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18436         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18437         * lib/unictype/pr_bidi_pdf.h: Likewise.
18438         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18439         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18440         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18441         * lib/unictype/pr_format_control.h: Likewise.
18442         * lib/unictype/pr_hex_digit.h: Likewise.
18443         * lib/unictype/pr_hyphen.h: Likewise.
18444         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18445         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18446         * lib/unictype/pr_iso_control.h: Likewise.
18447         * lib/unictype/pr_join_control.h: Likewise.
18448         * lib/unictype/pr_left_of_pair.h: Likewise.
18449         * lib/unictype/pr_line_separator.h: Likewise.
18450         * lib/unictype/pr_math.h: Likewise.
18451         * lib/unictype/pr_non_break.h: Likewise.
18452         * lib/unictype/pr_not_a_character.h: Likewise.
18453         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18454         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18455         * lib/unictype/pr_other_id_continue.h: Likewise.
18456         * lib/unictype/pr_other_id_start.h: Likewise.
18457         * lib/unictype/pr_other_lowercase.h: Likewise.
18458         * lib/unictype/pr_other_math.h: Likewise.
18459         * lib/unictype/pr_other_uppercase.h: Likewise.
18460         * lib/unictype/pr_paired_punctuation.h: Likewise.
18461         * lib/unictype/pr_paragraph_separator.h: Likewise.
18462         * lib/unictype/pr_pattern_syntax.h: Likewise.
18463         * lib/unictype/pr_pattern_white_space.h: Likewise.
18464         * lib/unictype/pr_private_use.h: Likewise.
18465         * lib/unictype/pr_quotation_mark.h: Likewise.
18466         * lib/unictype/pr_radical.h: Likewise.
18467         * lib/unictype/pr_soft_dotted.h: Likewise.
18468         * lib/unictype/pr_space.h: Likewise.
18469         * lib/unictype/pr_titlecase.h: Likewise.
18470         * lib/unictype/pr_variation_selector.h: Likewise.
18471         * lib/unictype/pr_white_space.h: Likewise.
18472         * lib/unictype/sy_c_ident.h: Likewise.
18473         * lib/unictype/sy_c_whitespace.h: Likewise.
18474         * lib/unictype/sy_java_whitespace.h: Likewise.
18475         * modules/uni*/*: Bump version number of expected libunistring version.
18476         Reported by Simon Josefsson.
18477
18478 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18479
18480         useless-if-before-free: fix typo in --help and make the internal,
18481         automatic version date update process work once again.
18482         --help output contained a NUL character instead of the
18483         backslash-zero that was intended.  Also, the "must lie within
18484         the first 8 lines" line is on line 9, and hence not getting
18485         automatically updated.
18486         * build-aux/useless-if-before-free: Fix the former by adding a
18487         backslash, and the latter by condensing the three lines of what-it-does
18488         to a single line, leaving one line of slack for the future.
18489
18490 2011-01-09  Bruno Haible  <bruno@clisp.org>
18491
18492         uniwidth/width: Fix width of U+1D173..U+1D17A.
18493         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18494         symbolic_width, output_width_property_test): New functions.
18495         (main): Invoke output_nonspacing_property, output_width_property_test.
18496         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18497         U+1D173..U+1D17A.
18498         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18499         1.
18500         * modules/uniwidth/*: Bump version number of expected libunistring
18501         version.
18502         * modules/unilbrk/*: Likewise.
18503
18504 2011-01-08  Bruno Haible  <bruno@clisp.org>
18505
18506         uninorm tests: Preserve copyright of Unicode data file.
18507         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18508         Mention modifications.
18509
18510 2011-01-08  Bruno Haible  <bruno@clisp.org>
18511
18512         gen-uni-tables: Prepare for Unicode 5.2.0.
18513         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18514         (debug_output_lbp, output_lbp): Update.
18515
18516 2011-01-08  Bruno Haible  <bruno@clisp.org>
18517
18518         unilbrk: Clarify gen-uni-tables.c code.
18519         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18520         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18521         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18522
18523 2011-01-07  Bruno Haible  <bruno@clisp.org>
18524
18525         strtod: Restore errno when successfully parsing Infinity or NaN.
18526         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18527         restore the original errno.
18528
18529 2011-01-07  Bruno Haible  <bruno@clisp.org>
18530
18531         remove test: Avoid failure on HP-UX 11.
18532         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18533
18534 2011-01-07  Bruno Haible  <bruno@clisp.org>
18535
18536         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18537         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18538         error code.
18539
18540 2011-01-07  Pádraig Brady <P@draigBrady.com>
18541
18542         ignore-value: fixup comments, and add Eric Blake
18543         as an author since he rewrote the macros.
18544         * lib/ignore-value.h (ignore_value):  State that
18545         we now support aggregates.  Also specify exactly
18546         when the GCC warn_unused_result feature was added.
18547
18548 2011-01-06  Eric Blake  <eblake@redhat.com>
18549
18550         ignore-value: support aggregate types
18551         * lib/ignore-value.h (ignore_value): Provide separate gcc
18552         definition.
18553         * modules/ignore-value-tests: New test module.
18554         * tests/test-ignore-value.c: New test.
18555
18556         maint.mk: improve sc_prohibit_strcmp regex
18557         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18558         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18559         definition of STRNEQ.
18560
18561         signal: work around Haiku issue with SIGBUS
18562         * lib/siglist.h: Add comment.
18563         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18564         strsignal's favoring of SIGSEGV.
18565         * tests/test-signal.c (main): Avoid test failure.
18566         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18567         Reported by Scott McCreary.
18568
18569         maint.mk: add pre-release check to ensure submodule commits are public
18570         * top/maint.mk (public-submodule-commit): New rule.
18571         (submodule-checks): New variable.
18572         (alpha beta stable): Depend on the variable.
18573
18574 2011-01-05  Pádraig Brady <P@draigBrady.com>
18575         and Jim Meyering  <meyering@redhat.com>
18576
18577         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18578         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18579         (ATTRIBUTE_DEPRECATED): Define.
18580         (_ignore_case): New function.
18581         (ignore_value): New macro, to replace the old function.
18582         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18583         * modules/ignore-value (Depends-on): Add stdint.
18584
18585 2011-01-04  Eric Blake  <eblake@redhat.com>
18586
18587         doc: regenerate INSTALL
18588         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18589         @firstparagraphindent support, now that autoconf dropped it.
18590         (INSTALL_PRELUDE): Reinstate old macro.
18591         * doc/install.texi: Resync from autoconf.
18592         * doc/INSTALL: Reflect recent autoconf update.
18593         * doc/INSTALL.ISO: Likewise.
18594         * doc/INSTALL.UTF-8: Likewise.
18595         Reported by Karl Berry.
18596
18597 2011-01-04  Bruce Korb  <address@hidden>
18598
18599         git-version-gen: avoid a sub-shell
18600         * build-aux/git-version-gen: Redirect stderr in `...` via
18601         "exec 2>...", rather than via an added sub-shell.
18602
18603 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18604
18605         git-version-gen: use (...) rather than sh -c '...'
18606         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18607         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18608
18609 2011-01-03  Jim Meyering  <meyering@redhat.com>
18610
18611         git-version-gen: convert leading TABs to spaces
18612         * build-aux/git-version-gen: Expand leading TABs.
18613
18614         git-version-gen: handle failed "git rev-list"
18615         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18616         from git and proceeding as if it had succeeded but printed no SHA1
18617         checksums, suppress the diagnostic and handle the failure.
18618         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18619
18620         git-version-gen: include command name in one more diagnostic
18621         * build-aux/git-version-gen: When the required .tarball-version file
18622         was missing or unreadable, you might see the diagnostic from "cat",
18623         but no trace of the name of the invoking script.  Now, you still see
18624         the diagnostic from cat, but also get one from "git-version-gen: ".
18625         Inspired by a patch from Bruce Korb.
18626
18627         update-copyright: adjust test to match changed code
18628         * tests/test-update-copyright.sh: Change test's expected output
18629         to match new actual output.
18630
18631 2011-01-02  Bruno Haible  <bruno@clisp.org>
18632
18633         getlogin_r: Avoid test failure on HP-UX 11.
18634         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18635         ERANGE when the second argument is zero.
18636         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18637         portability problem.
18638
18639 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18640
18641         * build-aux/update-copyright: doc Simon's changes
18642
18643 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18644
18645         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18646         environment variable.
18647
18648 2011-01-02  Bruno Haible  <bruno@clisp.org>
18649
18650         unigbrk: Avoid gcc warnings.
18651         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18652         unused variable.
18653         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18654         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18655         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18656         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18657         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18658         Change type of first argument to 'const char *'.
18659         (main): Remove unused variable.
18660         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18661         type of first argument to 'const char *'.
18662         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18663         Likewise.
18664         (main): Change type of variable 's'.
18665         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18666         to 'int'.
18667
18668 2011-01-02  Bruno Haible  <bruno@clisp.org>
18669
18670         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18671         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18672         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18673         bug.
18674         * lib/pwrite.c: Undo 2010-12-31 patch.
18675         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18676
18677 2011-01-02  Bruno Haible  <bruno@clisp.org>
18678
18679         pread: Fix test whether it works.
18680         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18681
18682 2011-01-02  Bruno Haible  <bruno@clisp.org>
18683
18684         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18685         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18686         ends in "6". Don't require a specific month name. Try also the locale
18687         names found on HP-UX 11 and Solaris 7.
18688
18689 2011-01-02  Bruno Haible  <bruno@clisp.org>
18690
18691         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18692         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18693         C linkage.
18694         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18695
18696 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18697
18698         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18699         for consistency, since the "cluster" term is not used elsewhere.
18700         * lib/unigbrk.in.h: Update name.
18701         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18702         * lib/unigbrk/u16-grapheme-next.c: Update name.
18703         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18704         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18705         * lib/unigbrk/u32-grapheme-next.c: Update name.
18706         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18707         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18708         * lib/unigbrk/u8-grapheme-next.c: Update name.
18709         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18710         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18711         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18712         Suggested by Bruno Haible.
18713
18714 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18715
18716         Remove module 'u8-grapheme-len' as too redundant with
18717         'u8-grapheme-next'.
18718         * modules/unigbrk/u8-grapheme-len: Delete file.
18719         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18720         * lib/unigbrk.in.h: Remove prototype for deleted function.
18721         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18722         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18723
18724         Remove module 'u16-grapheme-len' as too redundant with
18725         'u16-grapheme-next'.
18726         * modules/unigbrk/u16-grapheme-len: Delete file.
18727         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18728         * lib/unigbrk.in.h: Remove prototype for deleted function.
18729         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18730         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18731
18732         Remove module 'u32-grapheme-len' as too redundant with
18733         'u32-grapheme-next'.
18734         * modules/unigbrk/u32-grapheme-len: Delete file.
18735         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18736         * lib/unigbrk.in.h: Remove prototype for deleted function.
18737         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18738         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18739
18740         Suggested by Bruno Haible.
18741
18742 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18743
18744         * unigbrk.in.h: Fix typo: "ben" => "been".
18745         Reported by Bruno Haible.
18746
18747 2011-01-01  Jim Meyering  <meyering@redhat.com>
18748
18749         maint: update almost all copyright ranges to include 2011
18750         Run the new "make update-copyright" rule.
18751
18752 2011-01-01  Jim Meyering  <meyering@redhat.com>
18753
18754         maint: update-copyright: exempt doc/INSTALL*
18755         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18756         since they are generated.  Suggested by Bruno Haible.
18757
18758 2011-01-01  Jim Meyering  <meyering@redhat.com>
18759
18760         maint: refine the update-copyright rule
18761         * Makefile (update-copyright): Also exclude any file that includes
18762         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18763         code that merely generates the comment.
18764
18765 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18766
18767         New module 'u8-grapheme-len'.
18768         * modules/unigbrk/u8-grapheme-len: New file.
18769         * modules/unigbrk/u8-grapheme-len-tests: New file.
18770         * lib/unigbrk.in.h: Add prototype for new function.
18771         * lib/unigbrk/u8-grapheme-len.c: New file.
18772         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18773
18774         New module 'u16-grapheme-len'.
18775         * modules/unigbrk/u16-grapheme-len: New file.
18776         * modules/unigbrk/u16-grapheme-len-tests: New file.
18777         * lib/unigbrk.in.h: Add prototype for new function.
18778         * lib/unigbrk/u16-grapheme-len.c: New file.
18779         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18780
18781         New module 'u32-grapheme-len'.
18782         * modules/unigbrk/u32-grapheme-len: New file.
18783         * modules/unigbrk/u32-grapheme-len-tests: New file.
18784         * lib/unigbrk.in.h: Add prototype for new function.
18785         * lib/unigbrk/u32-grapheme-len.c: New file.
18786         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18787
18788         New module 'u8-grapheme-next'.
18789         * modules/unigbrk/u8-grapheme-next: New file.
18790         * modules/unigbrk/u8-grapheme-next-tests: New file.
18791         * lib/unigbrk.in.h: Add prototype for new function.
18792         * lib/unigbrk/u8-grapheme-next.c: New file.
18793         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18794
18795         New module 'u16-grapheme-next'.
18796         * modules/unigbrk/u16-grapheme-next: New file.
18797         * modules/unigbrk/u16-grapheme-next-tests: New file.
18798         * lib/unigbrk.in.h: Add prototype for new function.
18799         * lib/unigbrk/u16-grapheme-next.c: New file.
18800         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18801
18802         New module 'u32-grapheme-next'.
18803         * modules/unigbrk/u32-grapheme-next: New file.
18804         * modules/unigbrk/u32-grapheme-next-tests: New file.
18805         * lib/unigbrk.in.h: Add prototype for new function.
18806         * lib/unigbrk/u32-grapheme-next.c: New file.
18807         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18808
18809         New module 'u8-grapheme-prev'.
18810         * modules/unigbrk/u8-grapheme-prev: New file.
18811         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18812         * lib/unigbrk.in.h: Add prototype for new function.
18813         * lib/unigbrk/u8-grapheme-prev.c: New file.
18814         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18815
18816         New module 'u16-grapheme-prev'.
18817         * modules/unigbrk/u16-grapheme-prev: New file.
18818         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18819         * lib/unigbrk.in.h: Add prototype for new function.
18820         * lib/unigbrk/u16-grapheme-prev.c: New file.
18821         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18822
18823         New module 'u32-grapheme-prev'.
18824         * modules/unigbrk/u32-grapheme-prev: New file.
18825         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18826         * lib/unigbrk.in.h: Add prototype for new function.
18827         * lib/unigbrk/u32-grapheme-prev.c: New file.
18828         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18829
18830         New module 'u8-grapheme-breaks'.
18831         * modules/unigbrk/u8-grapheme-breaks: New file.
18832         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18833         * lib/unigbrk.in.h: Add prototype for new function.
18834         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18835         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18836
18837         New module 'u16-grapheme-breaks'.
18838         * modules/unigbrk/u16-grapheme-breaks: New file.
18839         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18840         * lib/unigbrk.in.h: Add prototype for new function.
18841         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18842         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18843
18844         New module 'u32-grapheme-breaks'.
18845         * modules/unigbrk/u32-grapheme-breaks: New file.
18846         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18847         * lib/unigbrk.in.h: Add prototype for new function.
18848         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18849         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18850
18851         New module 'ulc-grapheme-breaks'.
18852         * modules/unigbrk/ulc-grapheme-breaks: New file.
18853         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18854         * m4/locale-ar.m4: New file.
18855         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18856         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18857         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18858
18859 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18860
18861         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18862         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18863         modified how this file was generated before I initially submitted
18864         the module, but failed to regenerate it.  This meant that several
18865         of the level2 entries were wrong.
18866         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18867         Remove the division-by-2 that is folded into the table now that
18868         gbrkprop.h has been regenerated properly.  Now -1 entries are
18869         handled correctly.
18870
18871         New module 'unigbrk/uc-gbrk-prop-tests'.
18872         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18873         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18874         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18875         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18876
18877 2011-01-01  Bruno Haible  <bruno@clisp.org>
18878
18879         Avoid use of hexadecimal escapes.
18880         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18881         instead of hexadecimal escapes.
18882
18883 2011-01-01  Jim Meyering  <meyering@redhat.com>
18884
18885         maint: new rule to update copyright year ranges
18886         * Makefile (update-copyright): New rule.
18887
18888         maint: indent with TABs in Makefile
18889         * Makefile: Expand leading sequences of spaces to TABs
18890
18891         version-etc: update the copyright year it reports
18892         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18893
18894 2010-12-31  Bruno Haible  <bruno@clisp.org>
18895
18896         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18897         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18898         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18899         zero.
18900
18901 2010-12-31  Bruno Haible  <bruno@clisp.org>
18902
18903         pwrite: Work around HP-UX 11.11 bug.
18904         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18905         works and set REPLACE_PWRITE if not.
18906         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18907         function.
18908         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18909
18910 2010-12-31  Bruno Haible  <bruno@clisp.org>
18911
18912         pread: Work around HP-UX 11 bugs.
18913         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18914         and set REPLACE_PREAD if not.
18915         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18916
18917 2010-12-31  Eric Blake  <eblake@redhat.com>
18918
18919         nl_langinfo: fix YESEXPR on Irix 6.5
18920         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18921         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18922         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18923         it.
18924
18925 2010-12-31  Bruno Haible  <bruno@clisp.org>
18926
18927         iconv: Document HP-UX 11 bug.
18928         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18929
18930 2010-12-31  Bruno Haible  <bruno@clisp.org>
18931
18932         ldexpl: Fix link error on HP-UX 11.
18933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18934         LDEXPL_LIBM, using $ISNANL_LIBM.
18935
18936 2010-12-31  Eric Blake  <eblake@redhat.com>
18937
18938         ftello: avoid compilation failure with SunStudio c89
18939         * lib/ftello.c (ftello): Use lseek, not llseek.
18940
18941         tests: avoid failing coreutils tests on cygwin
18942         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18943         (create_exe_shims_): Return 0 when skipping.
18944
18945 2010-12-31  Bruno Haible  <bruno@clisp.org>
18946
18947         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18948         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18949
18950 2010-12-31  Bruno Haible  <bruno@clisp.org>
18951
18952         waitpid: Fix link error in C++ mode.
18953         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18954
18955 2010-12-31  Bruno Haible  <bruno@clisp.org>
18956
18957         isnan: Use GCC built-ins when possible.
18958         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18959         __builtin_isnan.
18960         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18961         (isnan): Define using GCC built-ins for GCC >= 4.0.
18962
18963 2010-12-31  Bruno Haible  <bruno@clisp.org>
18964
18965         isnand: Fix mistake.
18966         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18967         __builtin_isnand.
18968
18969 2010-12-31  Bruno Haible  <bruno@clisp.org>
18970
18971         open: Avoid C++ error on HP-UX 11.
18972         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18973
18974 2010-12-31  Bruno Haible  <bruno@clisp.org>
18975
18976         time_r: Add missing declarations on HP-UX 11.
18977         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18978         instead of HAVE_LOCALTIME_R.
18979         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18980         HAVE_LOCALTIME_R always.
18981         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18982         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18983         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18984         HAVE_LOCALTIME_R.
18985         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18986         * doc/posix-functions/localtime_r.texi: Likewise.
18987
18988 2010-12-29  Eric Blake  <eblake@redhat.com>
18989
18990         mountlist: tweak previous commit
18991         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18992         Reported by Paul Eggert.
18993
18994         mountlist: fix local drive detection on cygwin
18995         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18996         that works for cygwin.
18997
18998 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18999
19000         ftoastr, snprintf: ftoastr + snprintf module
19001         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19002         since the snprintf module now should be good enough here.
19003         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19004         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19005         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19006         GNULIB_SNPRINTF only for the test directory, and the latter
19007         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19008         seems to suffice by itself.
19009
19010 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19011
19012         alloca: one step towards thread-safety
19013         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19014         need for a static variable.  All callers changed.  This does not
19015         make the alloca replacement thread-safe, but it's one step.
19016
19017         tests: minor indenting change
19018         * tests/init.sh: Sync from coreutils housekeeping patch
19019         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19020         to keep lines within 80 columns.
19021
19022 2010-12-28  Jim Meyering  <meyering@redhat.com>
19023
19024         regex: don't infloop on persistent failing calloc
19025         * lib/regexec.c (build_trtable): Return failure indication upon
19026         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19027         In glibc, this was fixed for version 2.13:
19028         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19029
19030 2010-12-28  Bruno Haible  <bruno@clisp.org>
19031             Paul Eggert <eggert@cs.ucla.edu>
19032
19033         linkat: Make implementation robust against system behaviour variations.
19034         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19035         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19036         way, and to -2 if it needs a generic runtime test.
19037         * lib/linkat.c (solaris_optimized_link_immediate,
19038         solaris_optimized_link_follow): New functions.
19039         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19040         (check_same_link): Use it.
19041
19042 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19043
19044         New module 'unigbrk/base'.
19045         * modules/unigbrk/base: New file.
19046         * lib/unigbrk.in.h: New file.
19047
19048         New module 'unigbrk/uc-gbrk-prop'.
19049         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19050         * modules/unigbrk/uc-gbrk-prop: New file.
19051         * lib/unigbrk/gbrkprop.h: New file.
19052         * lib/unigbrk/uc-gbrk-prop.c: New file.
19053
19054         New module 'unigbrk/uc-is-grapheme-break'.
19055         * modules/unigbrk/uc-is-grapheme-break: New file.
19056         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19057         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19058         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19059         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19060         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19061
19062         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19063
19064 2010-12-27  Bruno Haible  <bruno@clisp.org>
19065
19066         linkat test: Avoid failure on Solaris 11 2010-11.
19067         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19068
19069 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19070
19071         utimens: work around glibc rounding bug on more platforms
19072         * lib/utimens.c (fdutimens): Work around rounding bug even if
19073         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19074         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19075
19076 2010-12-27  Bruno Haible  <bruno@clisp.org>
19077
19078         select tests: Improve comments.
19079         * tests/test-select.c (do_select): Add comments.
19080
19081 2010-12-27  Bruno Haible  <bruno@clisp.org>
19082
19083         select tests: Safer way of handling timeout.
19084         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19085         at every invocation.
19086
19087 2010-12-27  Bruno Haible  <bruno@clisp.org>
19088
19089         select tests: Use 'bool' where appropriate.
19090         * tests/test-select.c (connect_to_socket): Change argument type to
19091         'bool'.
19092
19093 2010-12-27  Bruno Haible  <bruno@clisp.org>
19094
19095         select tests: Use existing modules.
19096         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19097         (configure.ac): Don't test for unistd.h.
19098         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19099         declared in <unistd.h>.
19100
19101 2010-12-27  Bruno Haible  <bruno@clisp.org>
19102
19103         mbrtowc: Work around a Solaris 7 bug.
19104         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19105         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19106         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19107         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19108         MBRTOWC_NULL_ARG1_BUG.
19109         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19110         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19111         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19112         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19113
19114 2010-12-27  Jim Meyering  <meyering@redhat.com>
19115
19116         read-file.c: tweak syntax
19117         * lib/read-file.c (fread_file): Remove space after "*" in function
19118         definitions.
19119
19120 2010-12-27  Bruno Haible  <bruno@clisp.org>
19121
19122         times test: Avoid gcc warnings on OSF/1.
19123         * tests/test-times.c (main): Cast printf arguments from clock_t to
19124         'long int'.
19125
19126 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19127
19128         utimens: work around glibc rounding bug on older Linux kernels
19129         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19130         on Linux with a glibc whose utimes might not work, then work
19131         around a longstanding glibc bug involving rounding rather than
19132         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19133         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19134
19135 2010-12-26  Bruno Haible  <bruno@clisp.org>
19136
19137         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19138         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19139         _GL_CXXALIAS_SYS.
19140         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19141
19142 2010-12-26  Bruno Haible  <bruno@clisp.org>
19143
19144         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19145         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19146         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19147         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19148         looking for the declaration.
19149         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19150         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19151         problem.
19152         * doc/posix-functions/inet_pton.texi: Likewise.
19153
19154 2010-12-26  Bruno Haible  <bruno@clisp.org>
19155
19156         arpa_inet: Use the common idioms with C++ support.
19157         * lib/arpa_inet.in.h: Include c++defs.h.
19158         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19159         support.
19160         * modules/arpa_inet (Depends-on): Add c++defs.
19161         (Makefile.am): Substitute the contents of c++defs.h.
19162         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19163         * modules/arpa_inet-c++-tests: New file.
19164         * tests/test-arpa_inet-c++.cc: New file.
19165
19166 2010-12-25  Bruno Haible  <bruno@clisp.org>
19167
19168         Fix more C++ link errors on Solaris 8.
19169         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19170         $(LIB_EACCESS).
19171         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19172         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19173         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19174         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19175         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19176
19177 2010-12-25  Bruno Haible  <bruno@clisp.org>
19178
19179         printf-posix: Fix link error when a non-GCC compiler is used.
19180         * lib/stdio.in.h (printf): When not using GCC, override printf
19181         correctly.
19182         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19183
19184 2010-12-25  Bruno Haible  <bruno@clisp.org>
19185
19186         strerror_r-posix: Update doc.
19187         * doc/posix-functions/strerror_r.texi: Update doc about the return
19188         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19189
19190 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19191
19192         utimens: simplify the logic of the previous change
19193         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19194         This should not affect whether the test succeeds or fails.
19195
19196         utimens: configure better on hosts with NFS clock skew
19197         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19198         uses the clock of the local host.  It might use the clock of the
19199         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19200         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19201
19202 2010-12-25  Bruno Haible  <bruno@clisp.org>
19203
19204         ptsname test: Avoid failure on Solaris.
19205         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19206         open a pseudo-terminal; don't use BSD-style ptys.
19207         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19208
19209 2010-12-25  Bruno Haible  <bruno@clisp.org>
19210
19211         ptsname: Avoid ERANGE failure on some systems.
19212         * lib/ptsname.c (buffer): Increase size.
19213
19214 2010-12-25  Bruno Haible  <bruno@clisp.org>
19215
19216         rename, renameat: Avoid test failures at NFS mounted locations.
19217         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19218         so that subsequent mkdir calls succeed.
19219
19220 2010-12-25  Bruno Haible  <bruno@clisp.org>
19221
19222         iswblank: Fix C++ link error on Solaris 8.
19223         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19224         _GL_FUNCDECL_SYS.
19225
19226 2010-12-25  Bruno Haible  <bruno@clisp.org>
19227
19228         unistd: Fix C++ link error on Solaris 8.
19229         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19230
19231 2010-12-25  Bruno Haible  <bruno@clisp.org>
19232
19233         readlink doc: Mention an old glibc bug.
19234         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19235
19236 2010-12-25  Bruno Haible  <bruno@clisp.org>
19237
19238         fcntl-h: Fix for use of C++ on glibc systems.
19239         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19240         also on glibc systems in C++ mode.
19241         Reported by Gary V. Vaughan <gary@gnu.org>.
19242
19243 2010-12-25  Bruno Haible  <bruno@clisp.org>
19244
19245         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19246         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19247
19248 2010-12-25  Bruno Haible  <bruno@clisp.org>
19249
19250         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19251         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19252         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19253         test whether truncl works according to ISO C 99 with IEC 60559.
19254         * m4/truncl-ieee.m4: New file.
19255         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19256         m4/signbit.m4.
19257         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19258
19259 2010-12-25  Bruno Haible  <bruno@clisp.org>
19260
19261         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19262         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19263         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19264         test whether ceill works according to ISO C 99 with IEC 60559.
19265         * m4/ceill-ieee.m4: New file.
19266         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19267         m4/signbit.m4.
19268         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19269
19270 2010-12-25  Bruno Haible  <bruno@clisp.org>
19271
19272         Ensure all prerequisites of <wchar.h> are included.
19273         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19274         before <wchar.h>.
19275         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19276         gl_MBRLEN_NUL_RETVAL): Likewise.
19277         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19278         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19279         AC_FUNC_MBRTOWC): Likewise.
19280         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19281         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19282         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19283         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19284         Likewise.
19285         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19286         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19287         (gl_WCHAR_H): Improve comments.
19288         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19289
19290 2010-12-25  Bruno Haible  <bruno@clisp.org>
19291
19292         strtok_r: Fix C syntax error in autoconf macro.
19293         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19294         characters in test program.
19295
19296 2010-12-24  Bruno Haible  <bruno@clisp.org>
19297
19298         ceil, trunc, round: Fix gcc warnings.
19299         * lib/ceil.c (MIN): Undefine before redefining.
19300         * lib/trunc.c (MIN): Likewise.
19301         * lib/round.c (MIN): Likewise.
19302         Include <math.h> first.
19303
19304 2010-12-24  Bruno Haible  <bruno@clisp.org>
19305
19306         select tests: Avoid failures on OSF/1 5.1.
19307         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19308         failure of closing the last socket; it may fail with ECONNRESET.
19309
19310 2010-12-24  Eric Blake  <eblake@redhat.com>
19311
19312         stdint: avoid HP-UX 10.20 preprocessor bug
19313         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19314         than #if.
19315         * tests/test-floor2.c (main): Likewise.
19316         Reported by Peter O'Gorman.
19317
19318         pipe: make obsoletion transition easier
19319         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19320         * modules/pipe (Files): Include revived file.
19321         (Include): Drop reference, to mirror getdate's behavior.
19322
19323 2010-12-24  Bruno Haible  <bruno@clisp.org>
19324
19325         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19326         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19327         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19328         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19329
19330 2010-12-24  Bruno Haible  <bruno@clisp.org>
19331
19332         gethostname: Ensure declaration on NonStop Kernel.
19333         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19335
19336 2010-12-24  Bruno Haible  <bruno@clisp.org>
19337
19338         sys_select: Ensure all necessary types on NonStop Kernel.
19339         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19340         include <sys/time.h>.
19341         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19342         NonStop Kernel.
19343         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19344
19345 2010-12-24  Bruno Haible  <bruno@clisp.org>
19346
19347         sys_select: Remove unneeded include.
19348         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19349         have <sys/select.h>.
19350
19351 2010-12-24  Bruno Haible  <bruno@clisp.org>
19352
19353         gethostname: Provide a fallback for HOST_NAME_MAX.
19354         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19355         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19356         instead.
19357         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19358
19359 2010-12-24  Bruno Haible  <bruno@clisp.org>
19360
19361         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19362         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19363         (SA_RESTART): Likewise.
19364         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19365
19366 2010-12-24  Bruno Haible  <bruno@clisp.org>
19367
19368         signal: Define NSIG.
19369         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19370         * tests/test-signal.c (nsig): New variable.
19371         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19372
19373 2010-12-24  Bruno Haible  <bruno@clisp.org>
19374
19375         rename, renameat: Avoid test failures on OSF/1 5.1.
19376         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19377         alternative error codes.
19378         * tests/test-renameat.c (main): Likewise.
19379
19380 2010-12-24  Bruno Haible  <bruno@clisp.org>
19381
19382         *printf: Detect large precisions bug on Solaris 10/SPARC.
19383         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19384         by Paul Eggert.
19385         * tests/test-snprintf-posix.h (test_function): Add this test code here
19386         too.
19387         * tests/test-sprintf-posix.h (test_function): Likewise.
19388         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19389         * tests/test-vasprintf-posix.c (test_function): Likewise.
19390         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19391         around by gnulib.
19392         * doc/posix-functions/printf.texi: Likewise.
19393         * doc/posix-functions/snprintf.texi: Likewise.
19394         * doc/posix-functions/sprintf.texi: Likewise.
19395         * doc/posix-functions/vfprintf.texi: Likewise.
19396         * doc/posix-functions/vprintf.texi: Likewise.
19397         * doc/posix-functions/vsnprintf.texi: Likewise.
19398         * doc/posix-functions/vsprintf.texi: Likewise.
19399         * doc/posix-functions/dprintf.texi: Undo last commit.
19400         * doc/posix-functions/vdprintf.texi: Likewise.
19401
19402 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19403
19404         tests: port test-fdutimensat.c to Solaris 8
19405         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19406         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19407         On Solaris 8, it fails with errno == ENOSYS, because there is no
19408         futimens (so it can't use the fd), and there is no lutimens (so it
19409         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19410
19411         vsnprintf: make more consistent with snprintf; doc fixes
19412
19413         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19414         the byte count return problem was promoted from the snprintf-posix
19415         to the snprintf module.
19416         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19417         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19418         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19419         * tests/test-snprintf.c (main): Check the byte count returned.
19420         * tests/test-vsnprintf.c (main): Likewise.
19421
19422 2010-12-23  Eric Blake  <eblake@redhat.com>
19423
19424         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19425         * modules/sigpipe (License): Relax license.
19426
19427 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19428
19429         doc: document Solaris printf bug with large float precisions
19430         * doc/posix-functions/dprintf.texi (dprintf):
19431         * doc/posix-functions/fprintf.texi (fprintf):
19432         * doc/posix-functions/printf.texi (printf):
19433         * doc/posix-functions/snprintf.texi (snprintf):
19434         * doc/posix-functions/sprintf.texi (sprintf):
19435         * doc/posix-functions/vdprintf.texi (vdprintf):
19436         * doc/posix-functions/vfprintf.texi (vfprintf):
19437         * doc/posix-functions/vprintf.texi (vprintf):
19438         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19439         * doc/posix-functions/vsprintf.texi (vsprintf):
19440         Mention that these functions mishandle large floating point
19441         precisions on Solaris 10.  The same bug is also present in Solaris
19442         8, and I assume earlier.  This causes "cd gnulib-tests; make
19443         check" to fail on Solaris 8 (and I assume, later) when building
19444         the latest coreutils, in test-vasprintf-posix's call to
19445         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19446         the wide flavors (e.g., wprintf) so this patch just updates the
19447         documentation for the narrow ones.
19448
19449         test-posixtm.c: add two tests
19450         * tests/test-posixtm.c: Add two tests, to highlight the
19451         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19452         around this bug; this is merely to document it.
19453
19454 2010-12-22  Bruno Haible  <bruno@clisp.org>
19455
19456         getlogin_r: Work around portability problem on OSF/1.
19457         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19458         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19459         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19460         test for a truncated result.
19461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19462         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19463         * modules/getlogin_r (Depends-on): Add memchr.
19464         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19465
19466 2010-12-22  Bruno Haible  <bruno@clisp.org>
19467
19468         ptsname: Avoid test failure on OSF/1 5.1.
19469         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19470         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19471         (same_slave): New function.
19472         (main): Use it to compare ptsname's result with the expected file name.
19473
19474 2010-12-22  Bruno Haible  <bruno@clisp.org>
19475
19476         Port extended stdio modules to HP NonStop Kernel.
19477         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19478         macros.
19479         * lib/fbufmode.c: Update comments.
19480         * lib/fflush.c: Likewise.
19481         * lib/fpurge.c: Likewise.
19482         * lib/freadable.c: Likewise.
19483         * lib/freadahead.c: Likewise.
19484         * lib/freading.c: Likewise.
19485         * lib/freadptr.c: Likewise.
19486         * lib/freadseek.c: Likewise.
19487         * lib/fseeko.c: Likewise.
19488         * lib/fseterr.c: Likewise.
19489         * lib/fwritable.c: Likewise.
19490         * lib/fwriting.c: Likewise.
19491         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19492
19493 2010-12-22  Bruno Haible  <bruno@clisp.org>
19494
19495         ttyname_r: Work around bug on OSF/1 5.1.
19496         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19497         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19498         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19499         present.
19500         * lib/ttyname_r.c (ttyname_r): Update comments.
19501
19502 2010-12-22  Bruno Haible  <bruno@clisp.org>
19503
19504         round: Implement result sign according to IEEE 754.
19505         * lib/round.c (MIN, MINUS_ZERO): New macros.
19506         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19507         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19508         * tests/test-round-ieee.c (main): Likewise.
19509         * tests/test-roundl-ieee.c (main): Likewise.
19510
19511         trunc: Implement result sign according to IEEE 754.
19512         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19513         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19514         * tests/test-trunc2.c: Include minus-zero.h.
19515         (MINUS_ZERO): New macro.
19516         (trunc_reference): Keep in sync with lib/trunc.c.
19517         * tests/test-truncf2.c: Include minus-zero.h.
19518         (MINUS_ZERO): New macro.
19519         (truncf_reference): Keep in sync with lib/trunc.c.
19520         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19521         * tests/test-trunc-ieee.c (main): Likewise.
19522         * tests/test-truncl-ieee.c (main): Likewise.
19523
19524         ceil: Implement result sign according to IEEE 754.
19525         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19526         (FUNC): Return -0.0 for -1 < x < 0.
19527         * tests/test-ceil2.c: Include minus-zero.h.
19528         (MINUS_ZERO): New macro.
19529         (ceil_reference): Keep in sync with lib/ceil.c.
19530         * tests/test-ceilf2.c: Include minus-zero.h.
19531         (MINUS_ZERO): New macro.
19532         (ceilf_reference): Keep in sync with lib/ceil.c.
19533         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19534         * tests/test-ceil-ieee.c (main): Likewise.
19535         * tests/test-ceill-ieee.c (main): Likewise.
19536
19537         floor: Implement result sign according to IEEE 754.
19538         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19539         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19540         * tests/test-floorf2.c (floorf_reference): Likewise.
19541         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19542         * tests/test-floor-ieee.c (main): Likewise.
19543         * tests/test-floorl-ieee.c (main): Likewise.
19544
19545 2010-12-22  Bruno Haible  <bruno@clisp.org>
19546
19547         getaddrinfo: Update doc.
19548         * doc/posix-functions/gai_strerror.texi: Return type is also different
19549         on AIX and HP-UX.
19550
19551 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19552
19553         getaddrinfo, inet_ntop: Update doc for Solaris.
19554         * doc/posix-functions/gai_strerror.texi: Return type is also an
19555         issue on Solaris 9 and earlier.
19556         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19557         on Solaris 10 and earlier.
19558
19559 2010-12-21  Bruno Haible  <bruno@clisp.org>
19560
19561         New module 'roundl-ieee'.
19562         * modules/roundl-ieee: New file.
19563         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19564         test whether roundl works according to ISO C 99 with IEC 60559.
19565         * m4/roundl-ieee.m4: New file.
19566         * modules/roundl-ieee-tests: New file.
19567         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19568         * tests/test-roundl.c (main): Remove signbit tests.
19569         * modules/roundl-tests (Depends-on): Remove signbit.
19570         * doc/posix-functions/roundl.texi: Mention the new module.
19571
19572 2010-12-21  Bruno Haible  <bruno@clisp.org>
19573
19574         New module 'truncl-ieee'.
19575         * modules/truncl-ieee: New file.
19576         * modules/truncl-ieee-tests: New file.
19577         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19578         * tests/test-truncl.c (main): Remove signbit tests.
19579         * modules/truncl-tests (Depends-on): Remove signbit.
19580         * doc/posix-functions/truncl.texi: Mention the new module.
19581
19582 2010-12-21  Bruno Haible  <bruno@clisp.org>
19583
19584         New module 'ceill-ieee'.
19585         * modules/ceill-ieee: New file.
19586         * modules/ceill-ieee-tests: New file.
19587         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19588         * tests/test-ceill.c (main): Remove signbit tests.
19589         * modules/ceill-tests (Depends-on): Remove signbit.
19590         * doc/posix-functions/ceill.texi: Mention the new module.
19591
19592 2010-12-21  Bruno Haible  <bruno@clisp.org>
19593
19594         New module 'floorl-ieee'.
19595         * modules/floorl-ieee: New file.
19596         * modules/floorl-ieee-tests: New file.
19597         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19598         * tests/test-floorl.c (main): Remove signbit tests.
19599         * modules/floorl-tests (Depends-on): Remove signbit.
19600         * doc/posix-functions/floorl.texi: Mention the new module.
19601
19602 2010-12-21  Bruno Haible  <bruno@clisp.org>
19603
19604         New module 'round-ieee'.
19605         * modules/round-ieee: New file.
19606         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19607         whether round works according to ISO C 99 with IEC 60559.
19608         * m4/round-ieee.m4: New file.
19609         * modules/round-ieee-tests: New file.
19610         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19611         * tests/test-round1.c (main): Remove signbit tests.
19612         * modules/round-tests (Depends-on): Remove 'signbit'.
19613         * doc/posix-functions/round.texi: Mention the new module.
19614
19615 2010-12-21  Bruno Haible  <bruno@clisp.org>
19616
19617         New module 'trunc-ieee'.
19618         * modules/trunc-ieee: New file.
19619         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19620         whether trunc works according to ISO C 99 with IEC 60559.
19621         * m4/trunc-ieee.m4: New file.
19622         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19624         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19625         * modules/trunc-ieee-tests: New file.
19626         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19627         * tests/test-trunc1.c (main): Remove signbit tests.
19628         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19629         * doc/posix-functions/trunc.texi: Mention the new module.
19630
19631 2010-12-21  Bruno Haible  <bruno@clisp.org>
19632
19633         New module 'ceil-ieee'.
19634         * modules/ceil-ieee: New file.
19635         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19636         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19637         ISO C 99 with IEC 60559.
19638         * m4/ceil-ieee.m4: New file.
19639         * modules/ceil (Files): Add lib/ceil.c.
19640         (Depends-on): Add 'float'.
19641         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19642         * lib/math.in.h (ceil): New declaration.
19643         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19644         REPLACE_CEIL.
19645         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19646         * modules/ceil-ieee-tests: New file.
19647         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19648         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19649         * doc/posix-functions/ceil.texi: Mention the new module.
19650
19651 2010-12-21  Bruno Haible  <bruno@clisp.org>
19652
19653         New module 'floor-ieee'.
19654         * modules/floor-ieee: New file.
19655         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19656         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19657         ISO C 99 with IEC 60559.
19658         * m4/floor-ieee.m4: New file.
19659         * modules/floor (Files): Add lib/floor.c.
19660         (Depends-on): Add 'float'.
19661         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19662         * lib/math.in.h (floor): New declaration.
19663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19664         REPLACE_FLOOR.
19665         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19666         * modules/floor-ieee-tests: New file.
19667         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19668         * tests/test-math-c++.cc: Check the signature of 'floor'.
19669         * doc/posix-functions/floor.texi: Mention the new module.
19670
19671 2010-12-21  Bruno Haible  <bruno@clisp.org>
19672
19673         New module 'roundf-ieee'.
19674         * modules/roundf-ieee: New file.
19675         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19676         test whether roundf works according to ISO C 99 with IEC 60559.
19677         * m4/roundf-ieee.m4: New file.
19678         * modules/roundf-ieee-tests: New file.
19679         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19680         * tests/test-roundf1.c (main): Remove signbit tests.
19681         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19682         * doc/posix-functions/roundf.texi: Mention the new module.
19683
19684 2010-12-21  Bruno Haible  <bruno@clisp.org>
19685
19686         New module 'truncf-ieee'.
19687         * modules/truncf-ieee: New file.
19688         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19689         test whether truncf works according to ISO C 99 with IEC 60559.
19690         * m4/truncf-ieee.m4: New file.
19691         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19692         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19693         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19694         * modules/truncf-ieee-tests: New file.
19695         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19696         * tests/test-truncf1.c (main): Remove signbit tests.
19697         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19698         * doc/posix-functions/truncf.texi: Mention the new module.
19699
19700 2010-12-21  Bruno Haible  <bruno@clisp.org>
19701
19702         New module 'ceilf-ieee'.
19703         * modules/ceilf-ieee: New file.
19704         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19705         test whether ceilf works according to ISO C 99 with IEC 60559.
19706         * m4/ceilf-ieee.m4: New file.
19707         * modules/ceilf-ieee-tests: New file.
19708         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19709         * tests/test-ceilf1.c (main): Remove signbit tests.
19710         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19711         * doc/posix-functions/ceilf.texi: Mention the new module.
19712
19713 2010-12-21  Bruno Haible  <bruno@clisp.org>
19714
19715         New module 'floorf-ieee'.
19716         * modules/floorf-ieee: New file.
19717         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19718         test whether floorf works according to ISO C 99 with IEC 60559.
19719         * m4/floorf-ieee.m4: New file.
19720         * modules/floorf-ieee-tests: New file.
19721         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19722         * tests/test-floorf1.c (main): Remove signbit tests.
19723         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19724         * doc/posix-functions/floorf.texi: Mention the new module.
19725
19726 2010-12-21  Bruno Haible  <bruno@clisp.org>
19727
19728         Support for minus zero in autoconf macros.
19729         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19730         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19731         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19732         * tests/minus-zero.h: Update comments.
19733
19734 2010-12-21  Bruno Haible  <bruno@clisp.org>
19735
19736         Tests for module 'ceil'.
19737         * modules/ceil-tests: New file.
19738         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19739         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19740
19741 2010-12-21  Bruno Haible  <bruno@clisp.org>
19742
19743         Tests for module 'floor'.
19744         * modules/floor-tests: New file.
19745         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19746         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19747
19748 2010-12-21  Bruno Haible  <bruno@clisp.org>
19749
19750         math: Fix indentation.
19751         * lib/math.in.h (floorf): Fix indentation.
19752
19753 2010-12-21  Bruno Haible  <bruno@clisp.org>
19754
19755         Fix cross-compilation guesses on Solaris.
19756         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19757         not match "solaris2.10".
19758         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19759         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19760         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19761
19762 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19763
19764         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19765         This fixes a problem observed with the latest coreutils snapshot
19766         that caused a test to fail on Solaris 8.  src/csplit.c's call
19767         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19768         earlier, instead of returning the number of bytes that would have
19769         been generated; this causes csplit to incorrectly report memory
19770         exhaustion.
19771         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19772         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19773         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19774         comments to match.
19775         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19776         Fix typo in matching older versions of Solaris: "solaris2.10"
19777         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19778         only for guessing while cross-compiling.
19779         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19780
19781 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19782
19783         ftoastr: fix comment again
19784         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19786         Also, simplify example a bit by using flags = 0.
19787
19788 2010-12-20  Bruno Haible  <bruno@clisp.org>
19789
19790         round*, trunc*: Update documentation regarding glibc.
19791         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19792         * doc/posix-functions/round.texi: Likewise.
19793         * doc/posix-functions/roundl.texi: Likewise.
19794         * doc/posix-functions/truncf.texi: Likewise.
19795         * doc/posix-functions/trunc.texi: Likewise.
19796         * doc/posix-functions/truncl.texi: Likewise.
19797
19798 2010-12-20  Bruno Haible  <bruno@clisp.org>
19799
19800         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19801         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19802         * doc/posix-functions/round.texi: Likewise.
19803         * doc/posix-functions/roundl.texi: Likewise.
19804
19805 2010-12-20  Bruno Haible  <bruno@clisp.org>
19806
19807         ttyname_r: Add missing declaration on HP-UX 11.
19808         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19809         HAVE_TTYNAME_R.
19810         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19811         declared. Set HAVE_TTYNAME_R always.
19812         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19813         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19814         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19815         HAVE_TTYNAME_R.
19816         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19817
19818 2010-12-20  Bruno Haible  <bruno@clisp.org>
19819
19820         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19821         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19822         * doc/posix-functions/getlogin_r.texi: Likewise.
19823         * tests/test-getlogin.c: Include <errno.h>.
19824         (main): Avoid test failure on HP-UX 11.11.
19825         * tests/test-getlogin_r.c (main): Likewise.
19826
19827 2010-12-20  Bruno Haible  <bruno@clisp.org>
19828
19829         getlogin_r: Add missing declaration on HP-UX 11.
19830         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19831         declared also when it exists as a function.
19832         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19833
19834 2010-12-20  Bruno Haible  <bruno@clisp.org>
19835
19836         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19837         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19838         through wcrtomb.
19839
19840 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         ftoastr: fix comment
19843         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19844         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19845
19846 2010-12-19  Bruno Haible  <bruno@clisp.org>
19847
19848         isnan: Ensure it is a macro.
19849         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19850         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19851         Solaris.
19852
19853 2010-12-19  Bruno Haible  <bruno@clisp.org>
19854
19855         ldexpl test: Fix link error on OSF/1 5.1.
19856         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19857
19858 2010-12-19  Bruno Haible  <bruno@clisp.org>
19859
19860         wctype: Make it work in C++ mode on OSF/1 5.1.
19861         * lib/wctype.in.h (iswblank): Declare but not define here.
19862         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19863         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19864         * modules/wctype (Files): Add lib/iswblank.c.
19865
19866 2010-12-19  Bruno Haible  <bruno@clisp.org>
19867
19868         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19869         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19870         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19871
19872 2010-12-19  Bruno Haible  <bruno@clisp.org>
19873
19874         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19875         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19876         _POSIX_PII_SOCKET.
19877         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19878         * doc/posix-functions/recvfrom.texi: Likewise.
19879         * doc/posix-functions/send.texi: Likewise.
19880         * doc/posix-functions/sendto.texi: Likewise.
19881
19882 2010-12-19  Bruno Haible  <bruno@clisp.org>
19883
19884         tcgetsid: Add missing declaration on OSF/1 5.1.
19885         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19886         HAVE_TCGETSID.
19887         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19888         Don't set HAVE_TCGETSID.
19889         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19890         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19891         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19892         HAVE_TCGETSID.
19893         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19894
19895 2010-12-19  Bruno Haible  <bruno@clisp.org>
19896
19897         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19898         * lib/stdio.in.h: During the include_next statement, let recursive
19899         includes of this file include only the system header file.
19900
19901 2010-12-19  Bruno Haible  <bruno@clisp.org>
19902
19903         iconv_open: Fix regression from 2010-12-04.
19904         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19905         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19906
19907 2010-12-19  Bruno Haible  <bruno@clisp.org>
19908
19909         stdbool test: Avoid a gcc warning.
19910         * tests/test-stdbool.c (main): Fail if e1 is false.
19911         Reported by Jim Meyering.
19912
19913 2010-12-19  Jim Meyering  <meyering@redhat.com>
19914
19915         setenv: restore to working order
19916         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19917         mistakenly removed.
19918         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19919         HAVE_SETENV.
19920         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19921         HAVE_SETENV.
19922
19923 2010-12-19  Bruno Haible  <bruno@clisp.org>
19924
19925         Document some different function declarations on OSF/1 5.1.
19926         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19927         * doc/posix-functions/inet_ntop.texi: Likewise.
19928         * doc/posix-functions/gethostname.texi: Likewise.
19929         * lib/unistd.in.h (gethostname): Update comment.
19930
19931 2010-12-19  Bruno Haible  <bruno@clisp.org>
19932
19933         doc: Mention vasprintf-posix module.
19934         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19935         the 'vasprintf-posix' module.
19936         * doc/glibc-functions/vasprintf.texi: Likewise.
19937
19938 2010-12-19  Bruno Haible  <bruno@clisp.org>
19939
19940         unsetenv: Add missing declaration on OSF/1 5.1.
19941         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19942         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19943         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19945         not HAVE_UNSETENV.
19946         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19947         HAVE_UNSETENV.
19948         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19949
19950 2010-12-19  Bruno Haible  <bruno@clisp.org>
19951
19952         setenv: Add missing declaration on OSF/1 5.1.
19953         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19954         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19955         declared. Don't set HAVE_SETENV.
19956         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19957         not HAVE_SETENV.
19958         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19959         HAVE_SETENV.
19960         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19961
19962 2010-12-19  Bruno Haible  <bruno@clisp.org>
19963
19964         nl_langinfo tests: Avoid gcc warning.
19965         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19966
19967 2010-12-19  Bruno Haible  <bruno@clisp.org>
19968
19969         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19970         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19971         _GL_CXXALIAS_SYS.
19972
19973 2010-12-19  Bruno Haible  <bruno@clisp.org>
19974
19975         stdbool: Relax test.
19976         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19977         address to 'bool' work in static initializer, for compilers other than
19978         GCC.
19979
19980 2010-12-19  Bruno Haible  <bruno@clisp.org>
19981
19982         ftello: Add missing declaration on OSF/1 5.1.
19983         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19984         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19986         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19987         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19988
19989 2010-12-19  Bruno Haible  <bruno@clisp.org>
19990
19991         fseeko: Add missing declaration on OSF/1 5.1.
19992         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19995         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19996         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19997
19998 2010-12-19  Bruno Haible  <bruno@clisp.org>
19999
20000         fchdir: Add missing declaration on OSF/1 5.1.
20001         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20004         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20005         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20006
20007 2010-12-19  Bruno Haible  <bruno@clisp.org>
20008
20009         relocatable-prog-wrapper: Separate from relocatable-prog.
20010         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20011         uninstall-relocwrapper rule here.
20012         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20013         Reported by Ian Beckwith <ianb@erislabs.net>.
20014
20015 2010-12-19  Bruno Haible  <bruno@clisp.org>
20016
20017         unistr/u8-mbsnlen: Add missing dependency.
20018         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20019         Reported by Ian Beckwith <ianb@erislabs.net>.
20020
20021 2010-12-19  Bruno Haible  <bruno@clisp.org>
20022
20023         iconv: Make it possible again to use this module without 'iconv-h'.
20024         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20025         if it is not defined.
20026         Reported by Ian Beckwith <ianb@erislabs.net>.
20027
20028 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20029
20030         acl: port to Solaris 8 when copying from tmpfs to ufs
20031         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20032         error number.  Problem observed on Solaris 8 with latest
20033         coreutils, with "mv A B", where A is on a tmpfs file system and B
20034         is on a ufs file system.  This caused coreutils' mv/part-symlink
20035         test to fail.
20036
20037         tests: set fail=0 at start
20038         * tests/init.sh (setup_): Move fail=0 initialization here ...
20039         (mktempd_): ... from here, so that tests can rely on fail being
20040         set to 0 initially.  This fixes a problem in coreutils; see:
20041         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20042
20043 2010-12-18  Bruno Haible  <bruno@clisp.org>
20044
20045         memmem-simple: Stylistic changes.
20046         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20047         Fix preprocessor directive indentation.
20048
20049 2010-12-15  Pádraig Brady <P@draigBrady.com>
20050
20051         memmem, memmem-simple: reorganize and expand empty needle check
20052         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20053         functional checks to memmem-simple so that one has a fully functional
20054         memmem by using just this module.
20055         Restrict the performance only check to the memmem module.
20056         Also expand the empty needle check to ensure the correct
20057         pointer is returned, not just a non NULL pointer.
20058         * doc/glibc-functions/memmem.texi: Rearrange the portability
20059         documentation to correlate with the rearranged checks.
20060         Clarify exactly how the memmem and memmem-simple modules
20061         relate to each other.
20062
20063 2010-12-15  Pádraig Brady <P@draigBrady.com>
20064             Bruno Haible  <bruno@clisp.org>
20065
20066         Improve cross-compilation guesses for uClibc.
20067         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20068         that uClibc does not have the glibc bug.
20069         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20070         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20071
20072 2010-12-14  Eric Blake  <eblake@redhat.com>
20073
20074         configmake: provide fallbacks for oldest supported autotools
20075         * m4/configmake.m4: New file.
20076         * modules/configmake (Files): Ship it.
20077         (configure.ac): Use it to guarantee fallbacks.
20078
20079 2010-12-13  Pádraig Brady <P@draigBrady.com>
20080
20081         read-file: Improve handling of large files
20082         * lib/read-file.c (fread_file): Minimize realloc()s
20083         for regular files, and better manage sizes around SIZE_MAX.
20084
20085 2010-12-13  Eric Blake  <eblake@redhat.com>
20086
20087         cloexec, fcntl: relax license
20088         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20089         consent from all contributors.
20090         * modules/fcntl (License): Likewise.
20091
20092 2010-12-10  Bruno Haible  <bruno@clisp.org>
20093
20094         Tests for module 'pipe-posix'.
20095         * modules/pipe-posix-tests: New file.
20096         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20097
20098 2010-12-10  Bruno Haible  <bruno@clisp.org>
20099
20100         pipe-posix: Make it work in C++ mode.
20101         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20102         (pipe): Use common idiom, not a macro definition.
20103         * lib/pipe.c: New file.
20104         * m4/pipe.m4: New file.
20105         * modules/pipe-posix (Description): Enhance.
20106         (Files): Add lib/pipe.c, m4/pipe.m4.
20107         (configure.ac): Invoke gl_FUNC_PIPE.
20108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20109         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20110         * tests/test-unistd-c++.cc: Check the signature of pipe.
20111
20112 2010-12-10  Bruno Haible  <bruno@clisp.org>
20113
20114         Rename module 'pipe' to 'spawn-pipe'.
20115         * modules/spawn-pipe: New file, renamed from modules/pipe.
20116         (Files, configure.ac, Makefile.am): Update.
20117         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20118         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20119         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20120         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20121         "spawn-pipe.h" instead of "pipe.h".
20122         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20123         to gl_SPAWN_PIPE.
20124         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20125         (Files, Makefile.am): Update.
20126         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20127         Update.
20128         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20129         Include "spawn-pipe.h" instead of "pipe.h".
20130         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20131         * lib/javacomp.c: Likewise.
20132         * lib/javaversion.c: Likewise.
20133         * lib/pipe-filter-gi.c: Likewise.
20134         * lib/pipe-filter-ii.c: Likewise.
20135         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20136         * modules/javacomp (Depends-on): Likewise.
20137         * modules/javaversion (Depends-on): Likewise.
20138         * modules/pipe-filter-gi (Depends-on): Likewise.
20139         * modules/pipe-filter-ii (Depends-on): Likewise.
20140         * MODULES.html.sh (Executing programs): Update.
20141         * NEWS: Mention the change.
20142
20143 2010-12-10  Eric Blake  <eblake@redhat.com>
20144
20145         pipe-posix: new module
20146         * modules/pipe-posix: New file.
20147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20148         (gl_UNISTD_H): Check for declaration.
20149         * modules/unistd (Makefile.am): Substitute it.
20150         * lib/unistd.in.h (pipe): Provide it for mingw.
20151         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20152         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20153
20154 2010-12-07  Bruno Haible  <bruno@clisp.org>
20155
20156         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20157         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20158         u8_strcmp_gnu.
20159         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20160
20161 2010-12-06  Bruno Haible  <bruno@clisp.org>
20162
20163         Update internal documentation.
20164         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20165
20166 2010-12-04  Bruno Haible  <bruno@clisp.org>
20167
20168         Put more information about failed tests into the test return codes.
20169         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20170         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20171         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20172         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20173         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20174         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20175         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20176         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20177         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20178         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20179         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20180         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20181         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20182         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20183         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20184         returns a bit mask.
20185         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20186         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20187         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20188         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20189         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20190         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20191         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20193         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20194         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20195         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20196         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20197         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20198         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20199         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20200         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20201         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20202         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20203         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20204         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20206         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20207         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20208         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20209         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20210         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20211         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20212         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20213         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20214         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20215         gl_PRINTF_PRECISION): Likewise.
20216         * m4/regex.m4 (gl_REGEX): Likewise.
20217         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20218         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20219         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20220         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20223         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20224         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20225         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20226         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20227         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20228         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20229         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20230         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20231         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20232         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20233         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20234         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20235         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20236         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20237         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20238         enumerated value.
20239         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20240
20241 2010-12-04  Bruno Haible  <bruno@clisp.org>
20242
20243         Update for Solaris 11 2010-11.
20244         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20245         Express, released in November 2010.
20246
20247 2010-12-04  Bruno Haible  <bruno@clisp.org>
20248
20249         nproc: Relax license.
20250         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20251         and Paul Eggert.
20252         Requested by Ludovic Courtès <ludo@gnu.org>.
20253
20254 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20255
20256         utimecmp: fine-grained src to nearby coarse-grained dest
20257
20258         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20259         and the source is on a file system with higher-resolution time
20260         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20261         not work, and the time stamps are close together, the algorithm to
20262         determine the exact resolution from the read-back mtime was buggy:
20263         it had a "!=" where it should have had an "==".  This bug has been
20264         in the code ever since it was introduced to gnulib.
20265         Problem reported by Dan Jacobson in
20266         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20267
20268 2010-11-30  Bruno Haible  <bruno@clisp.org>
20269
20270         strerror_r-posix: Fix autoconf test.
20271         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20272
20273 2010-11-28  Bruno Haible  <bruno@clisp.org>
20274             Paul Eggert  <eggert@cs.ucla.edu>
20275
20276         Tests for module 'getdomainname'.
20277         * modules/getdomainname-tests: New file.
20278         * tests/test-getdomainname.c: New file, based on
20279         tests/test-gethostname.c.
20280
20281 2010-11-28  Bruno Haible  <bruno@clisp.org>
20282             Paul Eggert  <eggert@cs.ucla.edu>
20283
20284         getdomainname: Use the system function when possible.
20285         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20286         (getdomainname): Replace if needed. Provide the declaration if it is
20287         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20288         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20289         (getdomainname): When the system has getdomainname, call the system
20290         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20291         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20292         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20293         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20294         the function if its second argument is of type 'int' or if it is found
20295         in libnsl.
20296         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20297         <sys/systeminfo.h> and sysinfo().
20298         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20300         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20301         HAVE_GETDOMAINNAME.
20302         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20303         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20304         * doc/glibc-functions/getdomainname.texi: Document the problems with
20305         the getdomainname declaration.
20306
20307 2010-11-28  Bruno Haible  <bruno@clisp.org>
20308
20309         sys_socket: Ensure ss_family field on AIX.
20310         * lib/sys_socket.in.h (ss_family): New macro definition.
20311         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20312         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20313         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20314         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20315         * modules/sys_socket (Makefile.am): Substitute
20316         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20317         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20318
20319 2010-11-27  Bruno Haible  <bruno@clisp.org>
20320
20321         readline: Improve configure output.
20322         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20323         "checking for readline..." result understandable.
20324
20325 2010-11-27  Bruno Haible  <bruno@clisp.org>
20326
20327         *printf-posix: Detect a bug on Solaris 10/x86.
20328         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20329         for floating-point output.
20330         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20331         directive.
20332         * tests/test-snprintf-posix.h (test_function): Likewise.
20333         * tests/test-sprintf-posix.h (test_function): Likewise.
20334         * tests/test-vasprintf-posix.c (test_function): Likewise.
20335         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20336         * doc/posix-functions/printf.texi: Likewise.
20337         * doc/posix-functions/snprintf.texi: Likewise.
20338         * doc/posix-functions/sprintf.texi: Likewise.
20339         * doc/posix-functions/vfprintf.texi: Likewise.
20340         * doc/posix-functions/vprintf.texi: Likewise.
20341         * doc/posix-functions/vsnprintf.texi: Likewise.
20342         * doc/posix-functions/vsprintf.texi: Likewise.
20343         * doc/glibc-functions/obstack_printf.texi: Likewise.
20344         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20345
20346 2010-11-27  Bruno Haible  <bruno@clisp.org>
20347
20348         Fix link error when module libunistring-optional is in use.
20349         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20350         * modules/striconveha-tests (Makefile.am): Likewise.
20351
20352 2010-11-27  Bruno Haible  <bruno@clisp.org>
20353
20354         regex: Mention link dependencies.
20355         * modules/regex (Link): New section.
20356         * modules/rpmatch (Link): Likewise.
20357         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20358
20359 2010-11-27  Bruno Haible  <bruno@clisp.org>
20360
20361         ftoastr: Fix compilation error on Solaris.
20362         * lib/ftoastr.c: Include <config.h>.
20363
20364 2010-11-27  Bruno Haible  <bruno@clisp.org>
20365
20366         getloadavg: Update documentation.
20367         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20368
20369 2010-11-27  Bruno Haible  <bruno@clisp.org>
20370
20371         sys_socket: Fix test whether the functions are declared.
20372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20373         not <sys/select.h>.
20374
20375 2010-11-27  Bruno Haible  <bruno@clisp.org>
20376
20377         getpass: Make sure to get system declaration on some platforms.
20378         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20379         gl_USE_SYSTEM_EXTENSIONS.
20380         * modules/getpass (Depends-on): Add extensions.
20381
20382 2010-11-26  Bruno Haible  <bruno@clisp.org>
20383
20384         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20385         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20386         'iconv' module is present.
20387         (ICONV_CONST): New macro.
20388         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20389         ICONV_CONST.
20390         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20391         set ICONV_CONST.
20392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20393         here.
20394         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20395         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20396         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20397         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20398         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20399         present.
20400
20401 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20402
20403         ftoastr: comment fix
20404         * lib/ftoastr.c: "little" -> "little or no" in comment
20405
20406 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20407
20408         stdint: port to GCC 4.3 + OSX + Octave
20409         On this platform, stdint.h is buggy and defines int64_t to long
20410         long int.  The replacement defined it to long int, causing
20411         problems with C++ style name mangling.  Instead, trust the system
20412         definition if INT64_MAX is defined, and likewise for the unsigned
20413         variant.   Problem reported by Jarno Rajahalme in
20414         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20415         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20416         and don't mess with int64_t and INT64_MAX in this case.
20417         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20418
20419 2010-11-24  Bruno Haible  <bruno@clisp.org>
20420
20421         doc: Corrections regarding MacOS X 10.4 and 10.5.
20422         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20423         MacOS X.
20424         Reported by Simon Josefsson.
20425
20426 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20427
20428         Uninstall ".bin" files installed by relocwrapper.
20429         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20430         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20431         unless it is already there.
20432
20433 2010-11-21  Bruno Haible  <bruno@clisp.org>
20434
20435         Update for NetBSD 5.0.
20436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20437         NetBSD; the test fails on NetBSD 5.0.
20438         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20439         about NetBSD.
20440
20441 2010-11-21  Bruno Haible  <bruno@clisp.org>
20442
20443         Update for HP-UX 11.23 and HP-UX 11.31.
20444         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20445         HP-UX.
20446
20447 2010-11-21  Bruno Haible  <bruno@clisp.org>
20448
20449         Update for MacOS X 10.5.
20450         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20451         MacOS X; the test fails on MacOS X 10.5.8.
20452         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20453         about MacOS X.
20454
20455 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20456
20457         bootstrap: add bootstrap_sync option.
20458         See discussion at
20459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20460         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20461         * build-aux/bootstrap: Accept --bootstrap-sync to update
20462         bootstrap if it is not identical to the local gnulib's
20463         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20464         enable this by default.  Accept --no-bootstrap-sync to disable
20465         it.
20466
20467 2010-11-20  Bruno Haible  <bruno@clisp.org>
20468
20469         Ensure that <features.h> is included before __GLIBC__ is tested.
20470         * lib/printf-parse.h: Include <features.h>.
20471         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20472         Reported by Mike Frysinger <vapier@gentoo.org>.
20473
20474         Ensure that <features.h> is included before __GLIBC__ is tested.
20475         * lib/wchar.in.h: Include <features.h>.
20476         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20477         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20478         Reported by Mike Frysinger <vapier@gentoo.org>.
20479
20480         Ensure that <features.h> is included before __GLIBC__ is tested.
20481         * lib/arpa_inet.in.h: Include <features.h>.
20482         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20483         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20484         Reported by Mike Frysinger <vapier@gentoo.org>.
20485
20486         Ensure that <features.h> is included before __GLIBC__ is tested.
20487         * build-aux/link-warning.h: Include <features.h>.
20488         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20489         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20490         Reported by Mike Frysinger <vapier@gentoo.org>.
20491
20492         Ensure that <features.h> is included before __GLIBC__ is tested.
20493         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20494         Reported by Mike Frysinger <vapier@gentoo.org>.
20495
20496 2010-11-20  Bruno Haible  <bruno@clisp.org>
20497
20498         memmem: Fix autoconf test.
20499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20500
20501 2010-11-20  Bruno Haible  <bruno@clisp.org>
20502
20503         Port to uClibc.
20504         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20505         * lib/fcntl.in.h: Likewise.
20506         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20507         * lib/mbrtowc.c (mbrtowc): Likewise.
20508         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20509         * lib/strerror_r.c: Likewise.
20510         * lib/unistr/u8-strnlen.c: Likewise.
20511         * lib/vasnprintf.c (decimal_point_char): Likewise.
20512         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20513         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20514         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20515         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20516         * tests/test-sigaction.c (handler, main): Likewise.
20517         * lib/freading.h: Treat uClibc like a non-glibc platform.
20518         * lib/freading.c: Likewise.
20519         * lib/gettext.h: Likewise.
20520         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20521         Likewise.
20522         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20523         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20524         * lib/propername.c (proper_name_utf8): Likewise.
20525         * lib/spawn.in.h: Likewise.
20526         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20527         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20528         mem_cd_iconveh_internal): Likewise.
20529         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20530         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20531         strstr, strcasestr): Likewise.
20532         * lib/unicodeio.c (unicode_to_mb): Likewise.
20533         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20534         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20535         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20536         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20537         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20538         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20539         * lib/unistr/u8-stpncpy.c: Likewise.
20540         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20541         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20542         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20543         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20544         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20545         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20549         Likewise.
20550         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20551         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20552         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20554         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20555         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20556         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20557         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20558         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20559         * tests/test-striconveha.c (main): Likewise.
20560         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20561         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20562         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20563         * doc/posix-functions/getline.texi: Likewise.
20564         Reported by Mike Frysinger <vapier@gentoo.org>.
20565
20566 2010-11-20  Bruno Haible  <bruno@clisp.org>
20567
20568         nproc: Fix condition.
20569         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20570         HAVE_PTHREAD_AFFINITY_NP.
20571
20572 2010-11-20  Bruno Haible  <bruno@clisp.org>
20573
20574         Fix a comment.
20575         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20576
20577 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20578
20579         ftoastr: don't assume snprintf
20580         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20581         Implement a subset of snprintf here, by using sprintf safely.
20582         * modules/ftoastr (Depends-on): Remove snprintf.
20583
20584 2010-11-19  Jim Meyering  <meyering@redhat.com>
20585
20586         test-rename.h: fix compilation failure
20587         * tests/test-rename.h (test_rename): Add omitted "}".
20588
20589 2010-11-17  Jim Meyering  <meyering@redhat.com>
20590
20591         maint.mk: add a URL discussing the no-@acronym policy
20592         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20593
20594 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20595
20596         ftoastr: depend on snprintf, improve comments
20597         * lib/ftoastr.c: Also mention Loitsch's draft.
20598         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20599         needed in the current implementation, but it might simplify
20600         speeding up the code later.
20601         * modules/ftoastr: Depend on snprintf; this improves portability.
20602         Suggested by Bruno Haible in the same email.
20603
20604         ftoastr: port to hosts lacking strtof and strtold
20605         Problem reported by Bruno Haible in
20606         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20607         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20608         environment and strtold (and presumably strtof) are not available.
20609         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20610         (configure.ac): Require gl_C99_STRTOLD.
20611
20612 2010-11-18  Bruno Haible  <bruno@clisp.org>
20613
20614         c-strtold: Avoid link error on AIX 7.
20615         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20616         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20617         (gl_C_STRTOLD): Test whether strtold_l exists.
20618         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20619
20620 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20621
20622         intprops: new macro INT_BITS_STRLEN_BOUND
20623         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20624         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20625         not exposed.  Also, it uses a slightly tighter bound than before;
20626         though this makes no practical difference, we might as well be as
20627         tight as we easily can.
20628
20629         ftoastr: new module, for lossless conversion of floats to short strings
20630         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20631         * modules/ftoastr: New files.
20632
20633 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20634
20635         bootstrap: port to Solaris sed
20636         * build-aux/bootstrap (get_version): Port to Solaris sed.
20637         See Ralf Wildenhues's note in
20638         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20639
20640 2010-11-14  Jim Meyering  <meyering@redhat.com>
20641
20642         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20643         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20644         and move definition closer to sole use.
20645
20646 2010-11-13  Jim Meyering  <meyering@redhat.com>
20647
20648         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20649         Now we require at least autoconf-2.59, which means the work-around
20650         is no longer needed.
20651         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20652         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20654         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20655         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20656
20657 2010-11-13  Bruno Haible  <bruno@clisp.org>
20658
20659         rename, renameat: Avoid test failures at NFS mounted locations.
20660         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20661         functions.
20662         (test_rename): Use assert_nonexistent.
20663         * tests/test-rename.c: Include <dirent.h>.
20664         * tests/test-renameat.c: Likewise.
20665         Reported by Gary V. Vaughan <gary@gnu.org>.
20666
20667         rename, renameat: Document Linux bug with NFS
20668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20669         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20670         * doc/posix-functions/renameat.texi: Likewise.
20671         Suggested by Eric Blake.
20672
20673 2010-11-13  Bruno Haible  <bruno@clisp.org>
20674
20675         rename test: Add comments.
20676         * tests/test-rename.h (test_rename): Add structure and comments.
20677
20678 2010-11-13  Eric Blake  <eblake@redhat.com>
20679
20680         maintainer-makefile: cover a few more files
20681         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20682         scripts generated within C files, for libvirt.
20683
20684 2010-11-13  Bruno Haible  <bruno@clisp.org>
20685
20686         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20687         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20688         character, return the number of bytes that belong together, not always
20689         1.
20690         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20691         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20692         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20693         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20694         number of bytes of an invalid character.
20695         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20696         (main): Invoke it.
20697         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20698         results.
20699         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20700         malformed byte sequences.
20701         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20702         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20703         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20704         Reported by Ben Pfaff and Paolo Bonzini.
20705
20706 2010-11-13  Bruno Haible  <bruno@clisp.org>
20707
20708         openat: Work around glibc bug with fchownat() and empty file names.
20709         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20710         (gl_FUNC_FCHOWNAT): Invoke it.
20711         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20712         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20713         Reported by Gary V. Vaughan <gary@gnu.org>.
20714
20715 2010-11-13  Bruno Haible  <bruno@clisp.org>
20716
20717         openat: Ensure autoconf macro ordering.
20718         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20719         gl_USE_SYSTEM_EXTENSIONS.
20720         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20721
20722 2010-11-13  Bruno Haible  <bruno@clisp.org>
20723
20724         Update comments.
20725         * lib/unistr/u8-check.c: Update file name in comments.
20726         * lib/unistr/u8-mblen.c: Likewise.
20727         * lib/unistr/u8-prev.c: Likewise.
20728         * lib/unistr/u8-strmblen.c: Likewise.
20729         * lib/unistr/u8-strmbtouc.c: Likewise.
20730
20731 2010-11-13  Jim Meyering  <meyering@redhat.com>
20732
20733         tests: avoid test failure on Solaris 10 due to lack of PATH export
20734         * tests/test-update-copyright.sh: Don't forget to export PATH.
20735
20736         init.sh: ensure that IFS is defined, just in case...
20737         * tests/init.sh (setup_): Ensure that IFS is defined,
20738         so that saving and restoring it works as expected.  This
20739         appears to be useful at least for an old version of dash
20740         from a long time ago (RH 6).  See here for details:
20741         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20742
20743         maint.mk: tighten "test a == b" check
20744         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20745         test to files that contain something like #!/bin/sh.
20746         Without this, coreutils would get two false positives in
20747         the comments of C source files.
20748
20749 2010-11-12  Eric Blake  <eblake@redhat.com>
20750
20751         bootstrap: fix typo in previous attempt
20752         * build-aux/bootstrap (buildreq): Correct the grouping.
20753         Reported by Paul Eggert.
20754
20755         maintainer-makefile: prohibit test x == x
20756         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20757         Based on a report by Matthias Bolte.
20758
20759         bootstrap: allow FreeBSD gzip
20760         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20761         which has no '.' and goes to stderr.
20762         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20763         Reported by Matthias Bolte.
20764
20765         maintainer-makefile: check for i18n setup
20766         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20767         will likely work.
20768
20769 2010-11-12  Bruno Haible  <bruno@clisp.org>
20770
20771         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20772         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20773         * lib/nanosleep.c (nanosleep): Likewise.
20774
20775 2010-11-11  Bruno Haible  <bruno@clisp.org>
20776
20777         fcntl-h: Fix for use of C++ on glibc systems.
20778         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20779         also on glibc systems in C++ mode.
20780         Reported by Gary V. Vaughan <gary@gnu.org>.
20781
20782 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20783
20784         mknod: avoid false failure with dash
20785         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20786
20787 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20788
20789         unlink: Fix "is it should" typo in diagnostic.
20790         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20792
20793 2010-11-11  Bruno Haible  <bruno@clisp.org>
20794
20795         Tests for module 'strerror_r-posix'.
20796         * modules/strerror_r-posix-tests: New file.
20797         * tests/test-strerror_r.c: New file.
20798         * tests/test-string-c++.cc: Check the signature of strerror_r.
20799
20800         New module 'strerror_r-posix'.
20801         * lib/string.in.h (strerror_r): New declaration.
20802         * lib/strerror_r.c: New file.
20803         * m4/strerror_r.m4: New file.
20804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20805         of strerror_r.
20806         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20807         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20808         * modules/strerror_r-posix: New file.
20809         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20810         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20811         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20812         portability problems.
20813
20814 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20815
20816         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20817         line is also considered for output. Quoted function name in shell
20818         command, so temporary files for functions like MyClass::operator()
20819         are removed correctly without errors.
20820
20821 2010-11-09  Bruno Haible  <bruno@clisp.org>
20822
20823         * doc/posix-functions/strerror.texi: List more failing platforms.
20824
20825         * doc/posix-functions/strerror.texi: Add a comment.
20826
20827 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20828
20829         fdopendir: fix bug on MacOS X when low on file descriptors
20830
20831         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20832         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20833         All callers changed.
20834         (fdopendir): Invoke save_cwd at the top level, not after using
20835         multiple dup() calls to use up file descriptors.  Then retry
20836         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20837         less than the maximum number of open file descriptors, because
20838         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20839         on Mac OS X 10.6.4 for tar 1.24
20840         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20841         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20842         and for tar 1.25
20843         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20844
20845 2010-11-07  Bruno Haible  <bruno@clisp.org>
20846
20847         vasnprintf: Support I flag on glibc systems.
20848         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20849         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20850         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20851         snprintf function.
20852         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20853         glibc systems.
20854         * tests/test-vasnprintf-posix3.c: New file.
20855         * modules/vasnprintf-posix-tests (Files): Add it.
20856         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20857
20858 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20859
20860         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20861         * MODULES.html.sh: For compiler warnings, use name
20862         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20863
20864 2010-11-05  Eric Blake  <eblake@redhat.com>
20865
20866         ceil, floor: avoid spurious failure with icc
20867         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20868         [denormals-as-zero] when optimizing without -mieee-fp option.
20869         * tests/test-floorf2.c (floorf_reference): Likewise.
20870         * tests/test-ceilf1.c (dummy): New function.
20871         (main): Use it to outsmart icc's optimization.
20872         * tests/test-floorf1.c (dummy, main): Likewise.
20873
20874         tests: require working signbit
20875         * modules/ceilf-tests (Depends-on): Add signbit.
20876         * modules/ceill-tests (Depends-on): Likewise.
20877         * modules/floorf-tests (Depends-on): Likewise.
20878         * modules/floorl-tests (Depends-on): Likewise.
20879         * modules/round-tests (Depends-on): Likewise.
20880         * modules/roundf-tests (Depends-on): Likewise.
20881         * modules/roundl-tests (Depends-on): Likewise.
20882         * modules/trunc-tests (Depends-on): Likewise.
20883         * modules/truncf-tests (Depends-on): Likewise.
20884         * modules/truncl-tests (Depends-on): Likewise.
20885
20886         strtod: work around icc bug
20887         * lib/strtod.c (minus_zero): Define to working value.
20888         (strtod): Use it to avoid icc bug.
20889
20890         copysign: enhance tests
20891         * modules/copysign-tests (Files): Add minus-zero.h.
20892         * tests/test-copysign.c (main): Also test zeros.
20893
20894 2010-11-04  Eric Blake  <eblake@redhat.com>
20895
20896         ceil, floor, round, trunc: enhance tests of -0
20897         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20898         * tests/test-ceill.c (main): Likewise.
20899         * tests/test-floorf1.c (main): Likewise.
20900         * tests/test-floorl.c (main): Likewise.
20901         * tests/test-round1.c (main): Likewise.
20902         * tests/test-roundf1.c (main): Likewise.
20903         * tests/test-roundl.c (main): Likewise.
20904         * tests/test-trunc1.c (main): Likewise.
20905         * tests/test-truncf1.c (main): Likewise.
20906         * tests/test-truncl.c (main): Likewise.
20907
20908 2010-11-04  Eric Blake  <eblake@redhat.com>
20909
20910         frexp, tests: work around ICC bug with -zero
20911         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20912         works with more compilers.
20913         * tests/minus-zero.h: New file.
20914         * modules/ceilf-tests (Files): Include it.
20915         * modules/ceill-tests (Files): Likewise.
20916         * modules/floorf-tests (Files): Likewise.
20917         * modules/floorl-tests (Files): Likewise.
20918         * modules/frexp-nolibm-tests (Files): Likewise.
20919         * modules/frexp-tests (Files): Likewise.
20920         * modules/frexpl-nolibm-tests (Files): Likewise.
20921         * modules/frexpl-tests (Files): Likewise.
20922         * modules/isnan-tests (Files): Likewise.
20923         * modules/isnand-nolibm-tests (Files): Likewise.
20924         * modules/isnand-tests (Files): Likewise.
20925         * modules/isnanf-nolibm-tests (Files): Likewise.
20926         * modules/isnanf-tests (Files): Likewise.
20927         * modules/isnanl-nolibm-tests (Files): Likewise.
20928         * modules/isnanl-tests (Files): Likewise.
20929         * modules/round-tests (Files): Likewise.
20930         * modules/roundf-tests (Files): Likewise.
20931         * modules/roundl-tests (Files): Likewise.
20932         * modules/ldexpl-tests (Files): Likewise.
20933         * modules/signbit-tests (Files): Likewise.
20934         * modules/snprintf-posix-tests (Files): Likewise.
20935         * modules/sprintf-posix-tests (Files): Likewise.
20936         * modules/strtod-tests (Files): Likewise.
20937         * modules/trunc-tests (Files): Likewise.
20938         * modules/truncf-tests (Files): Likewise.
20939         * modules/truncl-tests (Files): Likewise.
20940         * modules/vsnprintf-posix-tests (Files): Likewise.
20941         * modules/vsprintf-posix-tests (Files): Likewise.
20942         * modules/vasnprintf-posix-tests (Files): Likewise.
20943         * modules/vasprintf-posix-tests (Files): Likewise.
20944         * tests/test-ceilf1.c (main): Use it.
20945         * tests/test-ceill.c (main): Likewise.
20946         * tests/test-floorf1.c (main): Likewise.
20947         * tests/test-floorl.c (main): Likewise.
20948         * tests/test-frexp.c (main): Likewise.
20949         * tests/test-frexpl.c (main): Likewise.
20950         * tests/test-isnan.c (main): Likewise.
20951         * tests/test-isnand.h (main): Likewise.
20952         * tests/test-isnanf.h (main): Likewise.
20953         * tests/test-isnanl.h (main): Likewise.
20954         * tests/test-ldexpl.c (main): Likewise.
20955         * tests/test-round.c (main): Likewise.
20956         * tests/test-roundf.c (main): Likewise.
20957         * tests/test-roundl.c (main): Likewise.
20958         * tests/test-signbit.c (test_signbitf, test_signbitd)
20959         (test_signbitl): Likewise.
20960         * tests/test-snprintf-posix.h (test_function): Likewise.
20961         * tests/test-sprintf-posix.h (test_function): Likewise.
20962         * tests/test-strtod.c (main): Likewise.
20963         * tests/test-trunc1.c (main): Likewise.
20964         * tests/test-truncf1.c (main): Likewise.
20965         * tests/test-truncl.c (main): Likewise.
20966
20967         isnanl: work around icc bug
20968         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20969
20970 2010-11-03  Eric Blake  <eblake@redhat.com>
20971
20972         tests: fix compiler warnings
20973         * tests/test-getopt.h (test_getopt): Fix condition.
20974         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20975         * tests/test-pipe2.c (main): Likewise.
20976         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20977
20978         utimens: fix broken m4 test
20979         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20980
20981 2010-10-28  Bruno Haible  <bruno@clisp.org>
20982
20983         posix_spawn*, getdtablesize: Relax license.
20984         * modules/posix_spawn (License): Change to LGPLv2+.
20985         * modules/posix_spawnp (License): Likewise.
20986         * modules/posix_spawn-internal (License): Likewise.
20987         * modules/posix_spawnattr_init (License): Likewise.
20988         * modules/posix_spawnattr_getflags (License): Likewise.
20989         * modules/posix_spawnattr_setflags (License): Likewise.
20990         * modules/posix_spawnattr_getpgroup (License): Likewise.
20991         * modules/posix_spawnattr_setpgroup (License): Likewise.
20992         * modules/posix_spawnattr_getschedparam (License): Likewise.
20993         * modules/posix_spawnattr_setschedparam (License): Likewise.
20994         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20995         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20996         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20997         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20998         * modules/posix_spawnattr_getsigmask (License): Likewise.
20999         * modules/posix_spawnattr_setsigmask (License): Likewise.
21000         * modules/posix_spawnattr_destroy (License): Likewise.
21001         * modules/posix_spawn_file_actions_init (License): Likewise.
21002         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21003         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21004         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21005         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21006         * modules/getdtablesize (License): Likewise.
21007         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21008
21009 2010-10-26  Bruno Haible  <bruno@clisp.org>
21010
21011         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21012         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21013         Cygwin and mingw.
21014         Suggested by Eric Blake.
21015
21016 2010-10-26  Bruno Haible  <bruno@clisp.org>
21017
21018         stdio: Work around compilation error due to renameat() on Solaris 10.
21019         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21020         * lib/renameat.c: Don't include <unistd.h> here.
21021         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21022         Reported by Paul Eggert and Eric Blake.
21023
21024 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         renameat: port to Solaris 10, which declares renameat in unistd.h
21027
21028         * lib/renameat.c: Include unistd.h before stdio.h, because
21029         Solaris 10 declares renameat in unistd.h.  Problem encountered
21030         when building GNU tar 1.24 on Solaris 10.
21031
21032 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21033
21034         fdopendir: fix C89 compilation
21035         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21036         compilers.
21037
21038 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21039
21040         inttostr: simplify by removing unnecessary redundancy
21041         * lib/anytostr.c: Don't include verify.h.
21042         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21043         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21044         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21045         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21046         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21047         Likewise.
21048         * modules/inttostr (Depends-on): Remove 'verify'.
21049
21050 2010-10-23  Bruno Haible  <bruno@clisp.org>
21051
21052         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21053         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21054         Reported by Eric Blake.
21055
21056 2010-10-23  Bruno Haible  <bruno@clisp.org>
21057
21058         Tests: Fix LOCALE_JA on MirBSD 10.
21059         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21060         to an UTF-8 locale.
21061         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21062         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21063         Reported by Eric Blake.
21064
21065 2010-10-21  Bruno Haible  <bruno@clisp.org>
21066
21067         nl_langinfo test: Avoid test failure on NetBSD 5.
21068         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21069         Reported by Eric Blake.
21070
21071 2010-10-21  Eric Blake  <eblake@redhat.com>
21072
21073         c-stack: work around libsigsegv 2.8 bug
21074         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21075         overflow on at least PowerPC64.
21076
21077 2010-10-17  Bruno Haible  <bruno@clisp.org>
21078
21079         userspec: Drop redundant file.
21080         * modules/userspec (Files): Remove lib/inttostr.h.
21081
21082 2010-10-17  Bruno Haible  <bruno@clisp.org>
21083
21084         nl_langinfo tests: Silence some warnings.
21085         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21086         Reported by Jim Meyering.
21087
21088 2010-10-17  Bruno Haible  <bruno@clisp.org>
21089
21090         Make use of GCC's attribute __alloc_size__.
21091         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21092         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21093         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21094         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21095         __alloc_size__.
21096         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21097         Suggested by Jim Meyering.
21098
21099 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21100
21101         bootstrap: anchor .gitignore entries.
21102         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21103         with...
21104         (insert_vc_ignore): ... this new function, which prepends `/' to
21105         all .gitignore entries before passing them to
21106         insert_sorted_if_absent.
21107
21108 2010-10-16  Bruno Haible  <bruno@clisp.org>
21109
21110         nextafter: Fix configure check.
21111         * modules/nextafter (configure.ac): Correct expected prototype.
21112
21113 2010-10-16  Bruno Haible  <bruno@clisp.org>
21114
21115         termios: Update documentation.
21116         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21117
21118 2010-10-16  Bruno Haible  <bruno@clisp.org>
21119
21120         tests: Make them compile with TinyCC.
21121         * tests/test-strstr.c (main): Remove parentheses around array
21122         initializer.
21123
21124 2010-10-15  Eric Blake  <eblake@redhat.com>
21125
21126         ignore-value: make header idempotent
21127         * lib/ignore-value.h: Add double-inclusion guards.
21128         Reported by Stefan Berger.
21129
21130 2010-10-15  Jim Meyering  <meyering@redhat.com>
21131
21132         GNUmakefile: handle "stable" target, not "major"
21133         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21134         lists in maint.mk and announce-gen.  Without this, "make stable"
21135         would fail to ensure that $(VERSION) is up to date.
21136
21137 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21138
21139         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21140         & co.
21141
21142 2010-10-14  Bruno Haible  <bruno@clisp.org>
21143
21144         vasnprintf: Don't set errno to 0.
21145         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21146         block that sets it to 0.
21147         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21148
21149 2010-10-14  Bruno Haible  <bruno@clisp.org>
21150
21151         socketlib: Fix.
21152         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21153         gl_PREREQ_SYS_H_WINSOCK2.
21154         Reported by Ian Beckwith <ianb@erislabs.net>.
21155
21156 2010-10-13  Jim Meyering  <meyering@redhat.com>
21157
21158         test-select-stdin.c: avoid warn_unused_result warnings
21159         * tests/test-select-stdin.c: Include "macros.h".
21160         ASSERT that read and fflush succeed.
21161
21162 2010-10-13  Jim Meyering  <meyering@redhat.com>
21163
21164         git-version-gen: do require git-VC'd files in cwd
21165         * build-aux/git-version-gen: Reject a git version string
21166         if there are no commits associated with the current directory.
21167         This avoids an unlikely false-positive (unrelated dir whose parent
21168         repository also contains a tag matching v*), as pointed out
21169         by Giuseppe Scrivano in
21170         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21171
21172 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21173
21174         argv-iter: omit nonconforming declaration
21175         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21176         enum arg_iter_err declaration, which doesn't conform to C99.
21177         Solaris 10 cc warns about this.
21178
21179 2010-10-13  Eric Blake  <eblake@redhat.com>
21180
21181         termios: fix compilation on mingw
21182         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21183         (gl_TERMIOS_H): Adjust it on mingw.
21184         * modules/termios (Makefile.am): Substitute new key.
21185         * lib/termios.in.h (includes): Make include_next conditional.
21186         * doc/posix-headers/termios.texi (termios.h): Update
21187         documentation.
21188         Reported by Daniel P. Berrange.
21189
21190 2010-10-13  Jim Meyering  <meyering@redhat.com>
21191
21192         git-version-gen: don't require that .git/ be in the current dir
21193         * build-aux/git-version-gen: Adjust this script so that it works
21194         when run from any working directory beneath the top-level .git/-
21195         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21196         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21197
21198         test-select: avoid warn_unused_result warnings
21199         * tests/test-select.c: Include "macros.h".
21200         ASSERT that each call to read, write, and pipe succeeds.
21201         While not technically required, also check each "close".
21202         * modules/select-tests (Files): Add tests/macros.h.
21203
21204         test-symlinkat: remove declaration of unused local
21205         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21206
21207         test-inttostr: avoid shadowing warnings
21208         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21209         and use malloc rather than the stack for the same reason as
21210         mentioned in the comment justifying the other allocation.
21211
21212 2010-10-11  Bruno Haible  <bruno@clisp.org>
21213
21214         stdlib: Allow multiple gnulib generated replacements to coexist.
21215         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21216         Reported by Sam Steingold <sds@gnu.org>.
21217
21218 2010-10-11  Jim Meyering  <meyering@redhat.com>
21219
21220         fix a documentation typo
21221         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21222
21223 2010-10-11  Eric Blake  <eblake@redhat.com>
21224
21225         futimens: work around Solaris 11 bug
21226         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21227         * tests/test-futimens.h (test_futimens): Enhance, rather than
21228         weaken test.
21229         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21230
21231 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21232
21233         Indentation.
21234         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21235         higher-level operators more to the left.
21236
21237 2010-10-11  Jim Meyering  <meyering@redhat.com>
21238
21239         test-futimens: avoid unwarranted test failure on Solaris 5.11
21240         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21241         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21242         because it tries to dereference the NULL name argument.
21243
21244 2010-10-11  Bruno Haible  <bruno@clisp.org>
21245
21246         Indentation.
21247         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21248         indentation.
21249
21250 2010-10-11  Jim Meyering  <meyering@redhat.com>
21251
21252         spawn.in.h: make indentation consistent with parentheses
21253         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21254         Make indentation consistent with parentheses.
21255
21256 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21257
21258         Fix mismatched parens in previous commit
21259         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21260         parens.
21261
21262 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21263
21264         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21265
21266         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21267         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21268         * lib/malloca.c: Include "verify.h".
21269         (verify1): Remove, replacing with a verify call.
21270         * lib/relocwrapper.c (verify1): Likewise.
21271         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21272         Likewise.
21273         * modules/malloca (Depends-on): Add 'verify'.
21274         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21275         * modules/vasnprintf (Depends-on): Add 'verify'.
21276         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21277         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21278         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21279         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21280         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21281         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21282         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21283
21284         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21285
21286         Formerly the style was sometimes 2*X - 1, because the C standard
21287         was wrongly thought to disallow ?: in integral constant expressions.
21288         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21289         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21290         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21291         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21292         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21293         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21294         verify that time_t cannot be floating.
21295
21296 2010-10-08  Eric Blake  <eblake@redhat.com>
21297
21298         time: enforce recent POSIX ruling that time_t is integral
21299         * lib/time.in.h (__time_t_must_be_integral): Detect any
21300         problematic systems, allowing the rest of gnulib to assume POSIX.
21301
21302 2010-10-08  Jim Meyering  <meyering@redhat.com>
21303
21304         fdopendir: fix a bug on systems lacking openat and /proc support
21305         OpenBSD 4.7 is one such system.  The most noticeable effect was
21306         failure of any application making nontrivial use of fts: rm, du,
21307         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21308           ./rm: traversal failed: `a': Bad file descriptor
21309         Debugging that, you see that even though FD 6 was closed just
21310         prior to the opendir call in fd_clone_opendir, its resulting
21311         dir->dd_fd was 8, rather than the expected value of 6:
21312
21313         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21314         93                close (fd);
21315         (gdb) n
21316         94                dir = fd_clone_opendir (dupfd);
21317         (gdb) n
21318         95                saved_errno = errno;
21319         (gdb) p dir->dd_fd
21320         $11 = 8
21321
21322         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21323         The problem is that on OpenBSD, fd_clone_opendir has to resort
21324         to using the old-style save/restore CWD mechanism, due to its
21325         lack of openat/proc support, and *that* would steal the FD (6)
21326         that opendir was supposed to use.
21327
21328         The fix is to squirrel away the desired FD so that save_cwd uses a
21329         different one, and then free the dest FD right before calling opendir.
21330         That guarantees opendir will use the required file descriptor.
21331
21332         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21333
21334 2010-10-08  Bruno Haible  <bruno@clisp.org>
21335
21336         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21337         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21338
21339 2010-10-08  Bruno Haible  <bruno@clisp.org>
21340
21341         nanosleep: Make replacement POSIX compliant.
21342         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21343         is out of range.
21344         Reported by Jim Meyering.
21345
21346 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21347
21348         bootstrap: add hook for altering gnulib.mk, for Bison
21349         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21350         the Bison bootstrapping process can rewrite file names and variables
21351         in this file before later parts of 'bootstrap' use the file.
21352         Bison wants to include lib/gnulib.mk from the top-level makefile,
21353         so it needs the file names in this file to be relative to the top
21354         level, not relative to lib; plus it needs variable names to be
21355         rewritten.
21356         (slurp): Use the new function.
21357
21358         bootstrap: reformat for readability
21359         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21360
21361 2010-10-08  Eric Blake  <eblake@redhat.com>
21362
21363         docs: update cygwin progress
21364         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21365         1.7.7.
21366         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21367         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21368         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21369         * doc/posix-functions/carg.texi (carg): Likewise.
21370         * doc/posix-functions/cargf.texi (cargf): Likewise.
21371         * doc/posix-functions/casin.texi (casin): Likewise.
21372         * doc/posix-functions/casinf.texi (casinf): Likewise.
21373         * doc/posix-functions/casinh.texi (casinh): Likewise.
21374         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21375         * doc/posix-functions/catan.texi (catan): Likewise.
21376         * doc/posix-functions/catanf.texi (catanf): Likewise.
21377         * doc/posix-functions/catanh.texi (catanh): Likewise.
21378         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21379         * doc/posix-functions/ccos.texi (ccos): Likewise.
21380         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21381         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21382         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21383         * doc/posix-functions/cexp.texi (cexp): Likewise.
21384         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21385         * doc/posix-functions/cimag.texi (cimag): Likewise.
21386         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21387         * doc/posix-functions/clog.texi (clog): Likewise.
21388         * doc/posix-functions/clogf.texi (clogf): Likewise.
21389         * doc/posix-functions/conj.texi (conj): Likewise.
21390         * doc/posix-functions/conjf.texi (conjf): Likewise.
21391         * doc/posix-functions/cpow.texi (cpow): Likewise.
21392         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21393         * doc/posix-functions/cproj.texi (cproj): Likewise.
21394         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21395         * doc/posix-functions/creal.texi (creal): Likewise.
21396         * doc/posix-functions/crealf.texi (crealf): Likewise.
21397         * doc/posix-functions/csin.texi (csin): Likewise.
21398         * doc/posix-functions/csinf.texi (csinf): Likewise.
21399         * doc/posix-functions/csinh.texi (csinh): Likewise.
21400         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21401         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21402         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21403         * doc/posix-functions/ctan.texi (ctan): Likewise.
21404         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21405         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21406         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21407         * doc/posix-headers/complex.texi (complex.h): Likewise.
21408
21409 2010-10-07  Jim Meyering  <meyering@redhat.com>
21410
21411         parse-datetime: avoid compilation failure on OpenBSD 4.7
21412         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21413         This works around a compilation failure on OpenBSD 4.7:
21414         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21415
21416 2010-10-07  Eric Blake  <eblake@redhat.com>
21417
21418         docs: update cygwin progress
21419         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21420         1.7.6.
21421         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21422         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21423         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21424         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21425         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21426         Likewise.
21427         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21428         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21429         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21430         Likewise.
21431         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21432         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21433         Likewise.
21434         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21435         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21436         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21437         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21438         Likewise.
21439         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21440         Likewise.
21441         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21442
21443         docs: update parse-datetime history
21444         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21445         documentation of this function's history and alternatives.
21446
21447         cygwin: use more robust version check
21448         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21449         exclude an eventual cygwin 1.9.1.
21450         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21451         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21452         (gl_FUNC_STRCASESTR): Likewise.
21453         Reported by Bruno Haible.
21454
21455 2010-10-06  Bruno Haible  <bruno@clisp.org>
21456
21457         string, sys_select: Avoid #including large headers unless necessary.
21458         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21459         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21460         OSF/1, BeOS, Haiku.
21461         Reported by Jim Meyering.
21462
21463 2010-10-05  Eric Blake  <eblake@redhat.com>
21464
21465         memmem, strstr, strcasestr: fix bug with long periodic needle
21466         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21467         periodic needle having false positive.
21468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21469         and cygwin 1.7.7.
21470         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21471         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21472         (gl_FUNC_STRCASESTR): Likewise.
21473         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21474         * tests/test-memmem.c (main): Expose the bug.
21475         * tests/test-strcasestr.c (main): Likewise.
21476         * tests/test-strstr.c (main): Likewise.
21477         * tests/test-c-strcasestr.c (main): Likewise.
21478         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21479         * doc/posix-functions/strstr.texi (strstr): Likewise.
21480         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21481         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21482
21483 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21484
21485         parse-datetime: do some more renaming
21486         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21487         parse_datetime, not get_date.  Mention the renaming.
21488         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21489         in comments.
21490         * m4/bison.m4: Likewise.
21491
21492 2010-10-05  Eric Blake  <eblake@redhat.com>
21493
21494         parse-datetime: better name than get_date
21495         * NEWS: Reword the deprecation notice.
21496         * modules/get_date: Rename to modules/parse-datetime.
21497         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21498         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21499         * lib/get_date.y: Rename to lib/parse-datetime.y.
21500         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21501         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21502         * doc/getdate.texi: Provide fallback wrapper.
21503         * lib/getdate.h: Move guts, and wrap...
21504         * lib/parse-datetime.h: ...new file.
21505         * lib/parse-datetime.y (get_date): Rename...
21506         (parse_datetime): ...to this.
21507         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21508         (gl_PARSE_DATETIME): ...to this.
21509         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21510         documentation.
21511         * modules/getdate (Files): Provide fallback docs and header.
21512         (Notice, Depends-on): Update references.
21513         * tests/test-parse-datetime.c: Likewise.
21514         * DEPENDENCIES: Likewise.
21515         * MODULES.html.sh (Date and time <time.h>): Likewise.
21516         * doc/parse-datetime.texi (Date input formats)
21517         (Authors of parse_datetime): Likewise.
21518         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21519         (Include): Likewise.
21520         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21521         * gnulib-tool: Likewise.
21522         * m4/bison.m4 (gl_BISON): Likewise.
21523         Suggested by Bruno Haible.
21524
21525 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21526
21527         more ports to Solaris tr, which needs [] around ranges
21528         * gnulib-tool: Solaris tr needs [] around ranges.
21529         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21530         * tests/test-pipe-filter-gi1.c (main): Likewise.
21531         * tests/test-pipe-filter-ii1.c (main): Likewise.
21532
21533 2010-10-05  Eric Blake  <eblake@redhat.com>
21534
21535         bootstrap: fix Solaris regression
21536         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21537         around ranges.
21538         Reported by Pádraig Brady.
21539
21540         bootstrap: work with pkg-config
21541         * build-aux/bootstrap (check_versions): Also transliterate - in
21542         prerequisite name.
21543         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21544         prerequisites that were already found, to avoid confusion.
21545         Reported by Justin Clift.
21546
21547         faccessat: remove unused wrappers
21548         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21549         presence of these wrappers dragged in -lgen on Solaris.
21550         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21551
21552 2010-10-05  Jim Meyering  <meyering@redhat.com>
21553
21554         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21555         * Makefile (sc_pragma_columns): New syntax-check rule.
21556
21557 2010-10-04  Bruno Haible  <bruno@clisp.org>
21558
21559         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21560         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21561         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21562         Reported by Bruce Korb and Eric Blake.
21563
21564 2010-10-04  Bruno Haible  <bruno@clisp.org>
21565
21566         threadlib: Make option --with-libpth-prefix work.
21567         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21568         use $LIBPTH, not just -lpth.
21569
21570 2010-10-04  Bruno Haible  <bruno@clisp.org>
21571
21572         Avoid line length limitation from HP NonStop system header files.
21573         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21574         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21575         * lib/ctype.in.h: Likewise.
21576         * lib/dirent.in.h: Likewise.
21577         * lib/errno.in.h: Likewise.
21578         * lib/fcntl.in.h: Likewise.
21579         * lib/float.in.h: Likewise.
21580         * lib/getopt.in.h: Likewise.
21581         * lib/iconv.in.h: Likewise.
21582         * lib/inttypes.in.h: Likewise.
21583         * lib/langinfo.in.h: Likewise.
21584         * lib/locale.in.h: Likewise.
21585         * lib/math.in.h: Likewise.
21586         * lib/netdb.in.h: Likewise.
21587         * lib/netinet_in.in.h: Likewise.
21588         * lib/poll.in.h: Likewise.
21589         * lib/pthread.in.h: Likewise.
21590         * lib/pty.in.h: Likewise.
21591         * lib/sched.in.h: Likewise.
21592         * lib/se-selinux.in.h: Likewise.
21593         * lib/search.in.h: Likewise.
21594         * lib/signal.in.h: Likewise.
21595         * lib/spawn.in.h: Likewise.
21596         * lib/stdarg.in.h: Likewise.
21597         * lib/stddef.in.h: Likewise.
21598         * lib/stdint.in.h: Likewise.
21599         * lib/stdio.in.h: Likewise.
21600         * lib/stdlib.in.h: Likewise.
21601         * lib/string.in.h: Likewise.
21602         * lib/strings.in.h: Likewise.
21603         * lib/sys_file.in.h: Likewise.
21604         * lib/sys_ioctl.in.h: Likewise.
21605         * lib/sys_select.in.h: Likewise.
21606         * lib/sys_socket.in.h: Likewise.
21607         * lib/sys_stat.in.h: Likewise.
21608         * lib/sys_time.in.h: Likewise.
21609         * lib/sys_times.in.h: Likewise.
21610         * lib/sys_utsname.in.h: Likewise.
21611         * lib/sys_wait.in.h: Likewise.
21612         * lib/sysexits.in.h: Likewise.
21613         * lib/termios.in.h: Likewise.
21614         * lib/time.in.h: Likewise.
21615         * lib/unistd.in.h: Likewise.
21616         * lib/wchar.in.h: Likewise.
21617         * lib/wctype.in.h: Likewise.
21618         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21619         * modules/ctype (Makefile.am): Likewise.
21620         * modules/dirent (Makefile.am): Likewise.
21621         * modules/errno (Makefile.am): Likewise.
21622         * modules/fcntl-h (Makefile.am): Likewise.
21623         * modules/float (Makefile.am): Likewise.
21624         * modules/getopt-posix (Makefile.am): Likewise.
21625         * modules/iconv-h (Makefile.am): Likewise.
21626         * modules/inttypes (Makefile.am): Likewise.
21627         * modules/langinfo (Makefile.am): Likewise.
21628         * modules/locale (Makefile.am): Likewise.
21629         * modules/math (Makefile.am): Likewise.
21630         * modules/netdb (Makefile.am): Likewise.
21631         * modules/netinet_in (Makefile.am): Likewise.
21632         * modules/poll-h (Makefile.am): Likewise.
21633         * modules/pthread (Makefile.am): Likewise.
21634         * modules/pty (Makefile.am): Likewise.
21635         * modules/sched (Makefile.am): Likewise.
21636         * modules/search (Makefile.am): Likewise.
21637         * modules/selinux-h (Makefile.am): Likewise.
21638         * modules/signal (Makefile.am): Likewise.
21639         * modules/spawn (Makefile.am): Likewise.
21640         * modules/stdarg (Makefile.am): Likewise.
21641         * modules/stddef (Makefile.am): Likewise.
21642         * modules/stdint (Makefile.am): Likewise.
21643         * modules/stdio (Makefile.am): Likewise.
21644         * modules/stdlib (Makefile.am): Likewise.
21645         * modules/string (Makefile.am): Likewise.
21646         * modules/strings (Makefile.am): Likewise.
21647         * modules/sys_file (Makefile.am): Likewise.
21648         * modules/sys_ioctl (Makefile.am): Likewise.
21649         * modules/sys_select (Makefile.am): Likewise.
21650         * modules/sys_socket (Makefile.am): Likewise.
21651         * modules/sys_stat (Makefile.am): Likewise.
21652         * modules/sys_time (Makefile.am): Likewise.
21653         * modules/sys_times (Makefile.am): Likewise.
21654         * modules/sys_utsname (Makefile.am): Likewise.
21655         * modules/sys_wait (Makefile.am): Likewise.
21656         * modules/sysexits (Makefile.am): Likewise.
21657         * modules/termios (Makefile.am): Likewise.
21658         * modules/time (Makefile.am): Likewise.
21659         * modules/unistd (Makefile.am): Likewise.
21660         * modules/wchar (Makefile.am): Likewise.
21661         * modules/wctype (Makefile.am): Likewise.
21662
21663 2010-10-04  Bruno Haible  <bruno@clisp.org>
21664
21665         read-file tests: Avoid a test failure on NonStop Kernel.
21666         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21667         a regular file.
21668         Reported by Joachim Schmitz <schmitz@hp.com>.
21669
21670 2010-10-03  Bruno Haible  <bruno@clisp.org>
21671
21672         gnulib-tool: Fixes for --create-testdir with --libtool.
21673         * gnulib-tool (func_get_automake_snippet): Don't augment
21674         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21675         an executable.
21676         (func_create_testdir): Handle module 'alloca' like func_import.
21677         Reported by Bruce Korb <bruce.korb@gmail.com>.
21678
21679 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21680
21681         Avoid some lines longer than 80 characters.
21682         * lib/stdint.in.h: Break long comment lines.
21683         * lib/math.in.h: Likewise.
21684         (_GL_NUM_UINT_WORDS): New macro, for readability.
21685         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21686         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21687         * lib/stdlib.in.h: Likewise.
21688         * lib/spawn.in.h: Likewise.
21689         * lib/sys_socket.in.h: Update an URL.
21690         * lib/sys_stat.in.h: Break long line.
21691
21692 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21693
21694         Improve pmccabe2html.
21695         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21696         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21697         when the sources change. Remove the line in the HTML about "Used
21698         ranges" (which implied that there might be other unused ranges),
21699         rename "Resume" to "Summary" (easier to understand for more users).
21700         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21701         styles, and some unnecessary blank lines.
21702
21703 2010-10-03  Bruno Haible  <bruno@clisp.org>
21704             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21705
21706         acl: Add support for ACLs on NonStop Kernel.
21707         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21708         Check whether the function aclsort() exists.
21709         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21710         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21711         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21712         (acl_nontrivial [HAVE_ACLSORT]: New function.
21713         (file_has_acl): Implement for NonStop Kernel.
21714         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21715         (qset_acl): Implement for NonStop Kernel.
21716         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21717         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21718         (main): Implement for NonStop Kernel.
21719         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21720         Kernel. Handle this flavor.
21721         * tests/test-set-mode-acl.sh: Likewise.
21722         * tests/test-copy-acl.sh: Likewise.
21723         * tests/test-copy-file.sh: Likewise.
21724
21725 2010-10-03  Bruno Haible  <bruno@clisp.org>
21726
21727         Info about ACLs on NonStop Kernel.
21728         * doc/acl-resources.txt: Add info about NonStop Kernel.
21729         References by Joachim Schmitz <schmitz@hp.com>.
21730
21731 2010-10-02  Bruno Haible  <bruno@clisp.org>
21732
21733         Define missing EDQUOT on NonStop Kernel.
21734         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21735         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21736         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21737         missing.
21738         * doc/posix-headers/errno.texi: Mention the NSK bug.
21739         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21740         Reported by Joachim Schmitz <schmitz@hp.com>.
21741
21742 2010-10-02  Bruno Haible  <bruno@clisp.org>
21743
21744         Update doc for POSIX:2008.
21745         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21746         Update URL of POSIX specification.
21747
21748 2010-10-02  Bruno Haible  <bruno@clisp.org>
21749
21750         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21751         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21752         from gnulib, not from Automake.
21753
21754 2010-10-02  Bruno Haible  <bruno@clisp.org>
21755
21756         New module 'system-posix'.
21757         * modules/system-posix: New file.
21758         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21759         module is present.
21760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21761         GNULIB_SYSTEM_POSIX.
21762         * modules/stdlib (Depends-on): Remove sys_wait.
21763         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21764         * doc/posix-functions/system.texi: Mention the new module.
21765         * doc/posix-headers/stdlib.texi: Likewise.
21766         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21767         define test_sys_wait_macros to a no-op.
21768         Reported by Sam Steingold <sds@gnu.org>.
21769
21770 2010-09-30  Bruno Haible  <bruno@clisp.org>
21771
21772         More renaming from 'getdate' to 'get_date'.
21773         * doc/get_date.texi: Renamed from doc/getdate.texi.
21774         * modules/get_date (Files): Update.
21775         * MODULES.html.sh (Date and time <time.h>): Update.
21776         * DEPENDENCIES: Update.
21777         * gnulib-tool: Update comment.
21778         * m4/bison.m4 (gl_BISON): Likewise.
21779         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21780
21781 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21782
21783         bootstrap: support ACLOCAL_FLAGS during aclocal
21784         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21785         can add additional -I dir for third-party .m4 files.
21786
21787 2010-09-30  Eric Blake  <eblake@redhat.com>
21788
21789         bootstrap: use glibtoolize on MacOS
21790         * build-aux/bootstrap (check_versions): Convert libtool into
21791         libtoolize.
21792         (tool search): Move libtool check earlier, and look for
21793         glibtoolize for MacOS.
21794         (gnulib_tool_options): Auto-add --libtool when appropriate.
21795         Reported by Justin Clift.
21796
21797         poll: fix typo that broke test on MacOS
21798         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21799         Reported by Justin Clift.
21800
21801         getdate: rename to get_date
21802         Note: getdate.h is not renamed, to minimize client impact.
21803         * modules/getdate: Mark obsolete.  Move old contents...
21804         * modules/get_date: ...to new module name.
21805         * modules/getdate-tests: Move...
21806         * modules/get_date-tests: ...here.
21807         * m4/getdate.m4: Move...
21808         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21809         * lib/getdate.y: Move...
21810         * lib/get_date.y: ...here.
21811         * tests/test-getdate.c: Move...
21812         * tests/test-get_date.c: ...here.
21813         * doc/posix-functions/getdate.texi (getdate): Update name.
21814         * NEWS: Mention the change.
21815
21816 2010-09-29  Bruno Haible  <bruno@clisp.org>
21817
21818         Separate the module 'waitpid' from the module 'sys_wait'.
21819         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21820         present.
21821         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21822         gl_MODULE_INDICATOR_FOR_TESTS.
21823         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21824         * modules/sys_wait (Depends-on): Remove waitpid.
21825         (Makefile.am): Substitute GNULIB_WAITPID.
21826         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21827         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21828         signature only if the 'waitpid' module is present.
21829         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21830         * NEWS: Mention the change.
21831         * modules/grantpt (Depends-on): Add waitpid.
21832         * modules/wait-process (Depends-on): Likewise.
21833
21834 2010-09-29  Bruno Haible  <bruno@clisp.org>
21835
21836         More tests for module 'sys_wait'.
21837         * modules/sys_wait-c++-tests: New file.
21838         * tests/test-sys_wait-c++.cc: New file.
21839         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21840         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21841
21842 2010-09-29  Bruno Haible  <bruno@clisp.org>
21843
21844         New module 'waitpid'.
21845         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21846         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21847         Don't include <process.h>.
21848         (waitpid): Declare only, using modern idiom.
21849         * m4/waitpid.m4: New file.
21850         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21851         * modules/waitpid: New file.
21852         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21853         (Makefile.am): Update.
21854         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21855
21856 2010-09-28  Bruno Haible  <bruno@clisp.org>
21857
21858         poll: Assume ANSI C.
21859         * lib/poll.c (poll): Use an ANSI C declaration.
21860
21861 2010-09-28  Bruno Haible  <bruno@clisp.org>
21862
21863         poll-h: Create poll.h on all platforms.
21864         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21865         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21866         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21867         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21868         (gl_REPLACE_POLL_H): Don't set POLL_H.
21869         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21870         * modules/poll-h (Depends-on): Add include_next.
21871         (Makefile.am): Create poll.h unconditionally. Substitute also
21872         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21873
21874 2010-09-28  Bruno Haible  <bruno@clisp.org>
21875
21876         Tests for module 'poll-h'.
21877         * modules/poll-h-c++-tests: New file.
21878         * tests/test-poll-h-c++.cc: New file.
21879
21880         Tests for module 'poll-h'.
21881         * modules/poll-h-tests: New file.
21882         * tests/test-poll-h.c: New file.
21883
21884 2010-09-28  Bruno Haible  <bruno@clisp.org>
21885
21886         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21887         * modules/poll-h (Depends-on): Add 'extensions'.
21888
21889 2010-09-28  Bruno Haible  <bruno@clisp.org>
21890
21891         New module 'poll-h'.
21892         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21893         (poll): Use modern idiom.
21894         * modules/poll-h: New file.
21895         * modules/poll (Files): Remove lib/poll.in.h.
21896         (Depends-on): Add poll-h.
21897         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21898         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21899         * m4/poll_h.m4: New file.
21900         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21901         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21902         and invoke gl_REPLACE_POLL_H.
21903         * lib/poll.c: Use common idiom.
21904         * tests/test-poll.c: Likewise.
21905         * doc/posix-headers/poll.texi: Mention the poll-h module.
21906         Suggested by Eric Blake.
21907
21908 2010-09-26  Bruno Haible  <bruno@clisp.org>
21909
21910         sys_wait: Implement WSTOPSIG.
21911         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21912         Reported by Simon Josefsson.
21913
21914 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21915
21916         stdlib, sys_wait: Avoid compilation error on mingw.
21917         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21918
21919 2010-09-26  Bruno Haible  <bruno@clisp.org>
21920
21921         stdlib tests: Avoid code duplication.
21922         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21923         * modules/sys_wait-tests (Files): Likewise.
21924         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21925         * tests/test-stdlib.c: Include test-sys_wait.h.
21926         (main): Invoke test_sys_wait_macros.
21927         * tests/test-sys_wait.c: Include test-sys_wait.h.
21928         (main): Invoke test_sys_wait_macros.
21929
21930 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21931
21932         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21933         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21934         sure Windows sockets are working before calling getaddrinfo.
21935         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21936         * doc/gnulib.texi (Windows sockets): Fix typo.
21937
21938 2010-09-25  Bruno Haible  <bruno@clisp.org>
21939
21940         Tests for module 'regex-quote'.
21941         * modules/regex-quote-tests: New file.
21942         * tests/test-regex-quote.c: New file.
21943
21944         New module 'regex-quote'.
21945         * lib/regex-quote.h: New file.
21946         * lib/regex-quote.c: New file.
21947         * modules/regex-quote: New file.
21948         Suggested by Reuben Thomas <rrt@sc3d.org>.
21949
21950 2010-09-24  Bruno Haible  <bruno@clisp.org>
21951
21952         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21953         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21954
21955 2010-09-23  Bruno Haible  <bruno@clisp.org>
21956
21957         setenv: Relax license.
21958         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21959         Blake.
21960         Requested by Eric Blake.
21961
21962 2010-09-22  Bruno Haible  <bruno@clisp.org>
21963
21964         termios: Relax license.
21965         * modules/termios (License): Change to LGPLv2+.
21966         Requested by Eric Blake.
21967
21968 2010-09-22  Bruno Haible  <bruno@clisp.org>
21969
21970         threadlib: Allow the package to change the default to 'no'.
21971         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21972         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21973         Reported by Paul Eggert.
21974
21975 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21976             Bruno Haible  <bruno@clisp.org>
21977
21978         Fix endless loop in mbmemcasecoll.
21979         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21980         byte.
21981         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21982
21983 2010-09-22  Bruno Haible  <bruno@clisp.org>
21984
21985         Tests for module 'memcoll'.
21986         * modules/memcoll-tests: New file.
21987         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21988
21989         memcoll, xmemcoll: Clarify size vs. length.
21990         * modules/memcoll.c (memcoll0): Clarify specification.
21991         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21992         passed to collate_error.
21993
21994 2010-09-22  Bruno Haible  <bruno@clisp.org>
21995
21996         Tests for module 'memcasecmp'.
21997         * modules/memcasecmp-tests: New file.
21998         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21999
22000 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22001
22002         * lib/pthread.in.h: Add split double-inclusion guard, and include
22003         system <pthread.h> if there is one.  Use @@-style as in other
22004         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22005         pthread.h doesn't.
22006         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22007         (pthread_mutexattr_settype, pthread_mutex_trylock):
22008         New static inline functions, if there's no system <pthread.h>.
22009         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22010         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22011         Approximate with mutexes if the system lacks spinlocks, as in
22012         MacOS.
22013         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22014         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22015         @@-style.  Check for spinlocks separately.
22016         (gl_PTHREAD_DEFAULTS): New macro.
22017         * modules/pthread: Redo to use a more typical style for in.h files.
22018
22019 2010-09-21  Eric Blake  <eblake@redhat.com>
22020
22021         net_if: enhance tests
22022         * tests/test-net_if.c (main): Move signature checks earlier.
22023         Print failures to stderr.
22024         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22025         Document the bug that we do not yet fix.
22026
22027 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22028
22029         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22030         about gnulib, not GSS.
22031
22032 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22033
22034         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22035         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22036         for Emacs.
22037         * build-aux/pmccabe2html: Make Makefile.am example code more
22038         cut-and-paste friendly.
22039
22040 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22041
22042         * tests/test-net_if.c: New file.
22043         * modules/net_if-tests: New file.
22044
22045 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22046
22047         pthread: add pthread_spin_destroy
22048         * lib/pthread.in.h (pthread_spin_destroy): New function.
22049
22050 2010-09-19  Bruno Haible  <bruno@clisp.org>
22051
22052         gnulib-tool: Fix --help output.
22053         * gnulib-tool (func_usage): Fix help message.
22054         Reported by Reuben Thomas <rrt@sc3d.org>.
22055
22056 2010-09-18  Jim Meyering  <meyering@redhat.com>
22057
22058         maint.mk: avoid unexpanded \n in two diagnostics
22059         * top/maint.mk (sc_prohibit_always_true_header_tests):
22060         Don't use a literal \n in a halt=... assignment.  It would not be
22061         expanded, and the two \n bytes would appear in the diagnostic output
22062         rather than the desired newline.  Use halt=$$(printf ... instead.
22063         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22064
22065 2010-09-18  Bruno Haible  <bruno@clisp.org>
22066
22067         netinet_in: Doc tweak.
22068         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22069         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22070
22071 2010-09-18  Jim Meyering  <meyering@redhat.com>
22072
22073         init.sh: correct an outdated comment
22074         * tests/init.sh (create_exe_shims_):  s/function/alias/
22075
22076         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22077         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22078         a file named "*.exe" is removed between the glob expansion and the
22079         processing of that oddly named file.
22080
22081 2010-09-17  Eric Blake  <eblake@redhat.com>
22082
22083         mirbsd: add some more support
22084         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22085         in BSD family.
22086         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22087         devices as OpenBSD.
22088         * m4/host-os.m4 (mirbsd): Add MirBSD.
22089
22090         tests: fix unportable assumption on sys/wait.h
22091         * tests/test-sys_wait.c (main): Relax test.
22092         * tests/test-stdlib.c (main): Likewise.
22093
22094         init.sh: accomodate directory with no .exes
22095         * tests/init.sh: Accomodate directory containing only scripts.
22096
22097         tests: avoid compiler warning
22098         * tests/test-stdlib.c (main): Use the variable.
22099
22100         fdutimens, fdutimensat: update signature, again
22101         * lib/utimens.h (gl_futimens): Delete, and move signature...
22102         (fdutimens): ...here.
22103         (fdutimensat): Rearrange signature.
22104         (lutimensat): Rename variable for clarity.
22105         * lib/fdutimensat.c (fdutimensat): Update signature.
22106         * lib/utimens.c (fdutimens): Likewise.
22107         (gl_futimens): Delete.
22108         (utimens, lutimens): Update callers.
22109         * lib/futimens.c (futimens): Likewise.
22110         * tests/test-fdutimensat.c: Likewise.
22111         * tests/test-utimens.c: Likewise.
22112         * tests/test-futimens.h: Update comment.
22113         * NEWS: Mention this.
22114         Suggested by Paul Eggert.
22115
22116 2010-09-17  Bruno Haible  <bruno@clisp.org>
22117
22118         Take over the maintenance of some older macros from Autoconf.
22119         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22120         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22121         GNU Autoconf.
22122         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22123         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22124
22125 2010-09-17  Eric Blake  <eblake@redhat.com>
22126
22127         fdutimensat: drop atflag validation
22128         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22129         with valid fd, to close a race scenario where futimens is
22130         unsupported and FILE was replaced by a symlink.
22131         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22132         accordingly.
22133         Suggested by Paul Eggert.
22134
22135 2010-09-16  Bruno Haible  <bruno@clisp.org>
22136
22137         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22138         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22139
22140 2010-09-16  Bruno Haible  <bruno@clisp.org>
22141
22142         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22143         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22144         login_tty exists.
22145         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22146
22147 2010-09-16  Bruno Haible  <bruno@clisp.org>
22148
22149         login_tty: Make the replacement code work on BSD systems.
22150         * lib/login_tty.c: Include <sys/ioctl.h>.
22151         (login_tty): Use ioctl TIOCSCTTY when available.
22152         * modules/login_tty (Depends-on): Add sys_ioctl.
22153         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22154
22155 2010-09-16  Bruno Haible  <bruno@clisp.org>
22156
22157         login_tty: Stricter unit test.
22158         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22159         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22160         and tcgetsid() after login_tty.
22161         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22162
22163 2010-09-16  Bruno Haible  <bruno@clisp.org>
22164
22165         New module 'tcgetsid'.
22166         * lib/tcgetsid.c: New file.
22167         * m4/tcgetsid.m4: New file.
22168         * modules/tcgetsid: New file.
22169         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22170         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22171         GNULIB_TCGETSID, HAVE_TCGETSID.
22172         * lib/termios.in.h: Include <sys/types.h>.
22173         (tcgetsid): New declaration.
22174         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22175         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22176         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22177         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22178
22179 2010-09-16  Bruno Haible  <bruno@clisp.org>
22180
22181         Tests for module 'termios'.
22182         * modules/termios-c++-tests: New file.
22183         * modules/termios-tests: New file.
22184         * tests/test-termios-c++.cc: New file.
22185         * tests/test-termios.c: New file.
22186
22187         New module 'termios'.
22188         * modules/termios: New file.
22189         * lib/termios.in.h: New file.
22190         * m4/termios_h.m4: New file.
22191         * doc/posix-headers/termios.texi: Mention the new module.
22192
22193 2010-09-16  Eric Blake  <eblake@redhat.com>
22194
22195         fdutimensat: add an atflag parameter
22196         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22197         * lib/utimens.h (fdutimensat): Update prototype.
22198         * tests/test-fdutimensat.c: Adjust test to match.
22199         * NEWS: Document the change.
22200         Suggested by Paul Eggert.
22201
22202 2010-09-16  Bruno Haible  <bruno@clisp.org>
22203
22204         Fix typos in comments.
22205         * lib/striconveh.h: Fix typo in comment.
22206         * lib/login_tty.c (login_tty): Likewise.
22207
22208 2010-09-15  Bruno Haible  <bruno@clisp.org>
22209
22210         stdlib: clarify MirBSD WEXITSTATUS bug
22211         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22212         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22213
22214 2010-09-15  Eric Blake  <eblake@redhat.com>
22215
22216         stdlib: work around MirBSD WEXITSTATUS bug
22217         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22218         * modules/stdlib (Depends-on): Add sys_wait.
22219         * tests/test-sys_wait.c (main): Enhance test.
22220         * tests/test-stdlib.c (main): Likewise.
22221         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22222
22223         docs: mention MacOS issue with WEXITSTATUS(constant)
22224         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22225         issue.
22226         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22227
22228         strnlen: add tests
22229         * modules/strnlen-tests: New file.
22230         * tests/test-strnlen.c: Likewise.
22231
22232 2010-09-14  Bruno Haible  <bruno@clisp.org>
22233
22234         unistr/base: Avoid link errors when module 'libunistring' is also used.
22235         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22236         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22237         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22238         Declare also when HAVE_LIBUNISTRING is set.
22239         Reported by Pádraig Brady <P@draigbrady.com>.
22240
22241 2010-09-14  Eric Blake  <eblake@redhat.com>
22242
22243         test-rawmemchr: make more robust
22244         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22245         (Depends-on, configure.ac): Add needed prerequisites to use it.
22246         * modules/memchr-tests (Files, Depends-on, configure.ac):
22247         Likewise, to avoid implicit reliance on memchr module prereqs.
22248         * tests/test-memchr.c (main): Ensure proper masking.
22249         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22250         reads.
22251
22252         memchr: detect glibc Alpha bug
22253         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22254         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22255         Alpha.
22256         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22257         * tests/test-memchr.c (main): Enhance test.
22258         Reported by Nelson H. F. Beebe.
22259
22260 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22261
22262         fts, getcwd, glob: audit for dirfd returning -1
22263         * lib/fts.c (opendir): Remove #define; no longer used.
22264         (opendirat): New arg PDIR_FD.  All callers changed.
22265         (fts_build, _opendir2): Use new opendirat to avoid the need for
22266         dirfd, or for checking whether dirfd returns a negative value.
22267         Don't use opendir; always use openat followed by fdopendir.
22268         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22269         it.
22270         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22271         returns -1 here.
22272         * modules/fts (Depends-on): Remove dirfd.
22273         * modules/getcwd (Depends-on): Likewise.
22274
22275 2010-09-13  Eric Blake  <eblake@redhat.com>
22276
22277         float: fix broken MirBSD header
22278         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22279         * doc/posix-headers/float.texi (float.h): Document it.
22280
22281 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22282
22283         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22284         * lib/fts.c (opendirat): New arg extra_flags.
22285         (__opendir2): Use it to avoid following symlinks when opening
22286         a directory, if symlinks are not supposed to be followed.  See
22287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22288
22289         fdopendir: preserve argument fd before returning
22290         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22291         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22292         (fdopendir): Use them, arranging for FD to be open to the same
22293         directory that it was when it started.  (It might be temporarily
22294         closed while fdopendir is running, so this not thread- or
22295         signal-safe.)  Be careful to do the right thing even when file
22296         descriptors are scarce and dup fails with errno == EMFILE.  See
22297         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22298
22299 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22300
22301         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22302         * NEWS: Document change.
22303         * m4/regex.m4: Disable test for regoff_t size.
22304
22305 2010-09-13  Jim Meyering  <meyering@redhat.com>
22306
22307         fts: don't operate on an invalid file descriptor after failed dup
22308         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22309         negative file descriptor.
22310
22311 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22312
22313         savedir: add streamsavedir, deprecate fdsavedir
22314         * NEWS: Mention deprecation of fdsavedir.
22315         * lib/savedir.c (streamsavedir): New extern function, whose name
22316         ends in "savedir" to be consistent with the others.  This differs
22317         from savedirstream in that it doesn't close its argument.  The
22318         next version of GNU tar will use this instead of fdsavedir, to
22319         avoid some race conditions and conserve file descriptors.
22320         (savedirstream): Reimplement as a wrapper around streamsavedir.
22321         (fdsavedir): Add a comment deprecating this function.  As far as
22322         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22323         * lib/savedir.h (streamsavedir): New decl.
22324         (fdsavedir): Add a comment deprecating this.
22325
22326 2010-09-10  Bruno Haible  <bruno@clisp.org>
22327
22328         langinfo: Fix last commit.
22329         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22330         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22331         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22332
22333 2010-09-10  Bruno Haible  <bruno@clisp.org>
22334
22335         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22336         * lib/progreloc.c (O_EXEC): Define fallback.
22337
22338 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22339
22340         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22341         * NEWS: Document recent changes to fcntl-h.
22342         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22343         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22344         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22345         Similarly for O_SEARCH; this last was already true, but not documented.
22346         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22347         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22348         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22349         Likewise.
22350         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22351         is zero, not whether it is defined.
22352         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22353         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22354         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22355
22356 2010-09-10  Bruno Haible  <bruno@clisp.org>
22357
22358         langinfo, nl_langinfo: Fix for IRIX 5.3.
22359         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22360         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22361         HAVE_LANGINFO_YESEXPR.
22362         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22363         HAVE_LANGINFO_YESEXPR.
22364         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22365         HAVE_LANGINFO_T_FMT_AMPM is 0.
22366         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22367         HAVE_LANGINFO_YESEXPR is 0.
22368         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22369         NOEXPR.
22370         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22371         * doc/posix-functions/nl_langinfo.texi: Likewise.
22372         Reported by Eric Blake.
22373
22374 2010-09-10  Bruno Haible  <bruno@clisp.org>
22375
22376         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22377         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22378         on FreeBSD 8.0 and OpenBSD 4.6.
22379         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22380         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22381         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22382         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22383         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22384         ac_includes_default.
22385         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22386
22387 2010-09-09  Eric Blake  <eblake@redhat.com>
22388
22389         strsignal: work around NetBSD bug
22390         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22391         * lib/string.in.h (includes): Likewise.
22392         * doc/posix-functions/strsignal.texi (strsignal): Document the
22393         bug.
22394         Reported by Nelson H. F. Beebe.
22395
22396         gnulib-tool: work with NetBSD /bin/sh
22397         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22398         (func_get_description, func_get_comment, func_get_status)
22399         (func_get_notice, func_get_applicability, func_get_filelist)
22400         (func_get_dependencies, func_get_autoconf_early_snippet)
22401         (func_get_autoconf_snippet, func_get_automake_snippet)
22402         (func_get_include_directive, func_get_link_directive)
22403         (func_get_license, func_get_maintainer, func_import): Avoid
22404         shell syntax errors from parsing syntax extensions.
22405
22406 2010-09-09  Bruno Haible  <bruno@clisp.org>
22407
22408         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22409         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22410         a reliable way to determine whether the 'alias' command works.
22411
22412 2010-09-08  Jim Meyering  <meyering@redhat.com>
22413
22414         init.sh: penalize a set-x-impaired shell; don't disqualify it
22415         * tests/init.sh: Too many shells corrupt application stderr when
22416         you set -x, so we can't afford to disqualify them, since at least
22417         on Irix-6.5, that would disqualify all bourne shells.
22418         Instead, use a two-pass approach.
22419         On the first pass, try to find a shell that meets the stricter
22420         condition that set -x does not corrupt stderr.
22421         If no shell meets the stricter condition, retest each candidate
22422         shell, but without that extra condition.  Finally, when
22423         VERBOSE=yes is requested and set -x might cause trouble, simply
22424         issue a warning and refrain from enabling debug output.
22425
22426 2010-09-08  Eric Blake  <eblake@redhat.com>
22427
22428         unsetenv: fix OpenBSD bug
22429         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22430         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22431         documentation.
22432         Reported by Jim Meyering.
22433
22434         strtod: work around IRIX 6.5 bug
22435         * lib/strtod.c (strtod): Reparse number on shorter string if
22436         exponent parse was invalid.
22437         * tests/test-strtod.c (main): Add check for "0x1p 2".
22438         Reported by Tom G. Christensen.
22439
22440         getopt: optimize previous patch
22441         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22442         empty variable.  Speed up awk script.
22443         Reported by Paolo Bonzini.
22444
22445 2010-09-08  Jim Meyering  <meyering@redhat.com>
22446
22447         test.sh: disqualify shells for which set -x corrupts stderr
22448         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22449         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22450         appear in stderr output.  For example, this command:
22451             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22452         prints "P=1" on those two systems:
22453
22454 2010-09-08  Bruno Haible  <bruno@clisp.org>
22455
22456         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22457         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22458         commands, because some shells ignore redirections when there is an
22459         error in the command lookup.
22460         Reported by Eric Blake.
22461
22462 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22463
22464         * lib/regex.h: Fix a mention of `regex_compile' (should be
22465         `re_compile_pattern').
22466         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22467         (re_set_registers): Correct name of parameter in comment.
22468
22469         * doc/regex.texi: Add documentation for missing syntax flags.
22470         Remove commented-out documentation of defunct syntax option
22471         RE_NO_EMPTY_ALTS.
22472         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22473         Add documentation of re_set_registers.
22474         Document trick to re-use a pattern buffer by setting fastmap manually.
22475         Update documentation of struct re_pattern_buffer per public members.
22476         Uncomment documentation of equivalence class operators and
22477         collating symbol operators, since they are now implemented,
22478         Explain leftmost-longest matching in relation to alternatives.
22479         Tidy documentation of substring matching.
22480         Remove POSIX documentation, which is done better in
22481         glibc, and refer the reader there. Keep BSD API documentation, as
22482         that is not readily available elsewhere.
22483
22484 2010-09-07  Eric Blake  <eblake@redhat.com>
22485
22486         getopt: handle POSIXLY_CORRECT set but not exported
22487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22488         export state of POSIXLY_CORRECT, due to bash set -o posix.
22489         Reported by Dustin J. Mitchell.
22490
22491 2010-09-05  Bruno Haible  <bruno@clisp.org>
22492
22493         gnulib-tool: Highlight the changed options.
22494         * gnulib-tool (func_usage): Display the --import, --add-import,
22495         --remove-import explanations in bold font.
22496
22497 2010-09-06  Karl Berry  <karl@gnu.org>
22498
22499         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22500
22501 2010-09-05  Bruno Haible  <bruno@clisp.org>
22502
22503         uniwidth/width: Update comment.
22504         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22505         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22506
22507 2010-09-05  Bruno Haible  <bruno@clisp.org>
22508
22509         isinf, isnan: Relax license.
22510         * modules/isinf (License): Change from GPL to LGPL, with consent from
22511         Ben Pfaff.
22512         * modules/isnan (License): Likewise.
22513         Requested by Ludovic Courtès.
22514
22515 2010-09-04  Bruno Haible  <bruno@clisp.org>
22516
22517         gnulib-tool: Help migration from --import to --add-import or --update.
22518         * gnulib-tool: Emit a verbose error message when --import is used
22519         without any module name.
22520
22521 2010-09-04  Bruno Haible  <bruno@clisp.org>
22522
22523         Update doc about gnulib-tool.
22524         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22525         'gnulib-tool --update' in more detail.
22526         Reported by Eric Blake.
22527
22528 2010-09-04  Bruno Haible  <bruno@clisp.org>
22529
22530         gnulib-tool: Change --import. New options --add/remove-import.
22531         * gnulib-tool: New options --add-import, --remove-import.
22532         (func_usage): Document them.
22533         (have_associative): Define always.
22534         (func_import): In import mode, don't merge the specified settings with
22535         the cached settings. Implement remove-import mode.
22536         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22537         Explain when to use them versus --import.
22538         (Simple update): Use --add-import instead of --import.
22539         * NEWS: Mention the change.
22540
22541 2010-09-04  Bruno Haible  <bruno@clisp.org>
22542
22543         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22544         separate gnulib.mk.
22545
22546 2010-09-04  Bruno Haible  <bruno@clisp.org>
22547
22548         gnulib-tool: Don't talk about CVS any more.
22549         * gnulib-tool (func_usage, func_import): Write "version control"
22550         instead of CVS.
22551
22552 2010-09-04  Jim Meyering  <meyering@redhat.com>
22553
22554         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22555         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22556         false positives (whose names may be ill-chosen) when searching
22557         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22558         would cause a false-positive.
22559
22560         avoid coreutils "make distcheck" failure
22561         Coreutils tests with an absolute build directory name that contains
22562         a space.  Not quoting this directory name caused a failure.
22563         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22564         * tests/test-vc-list-files-cvs.sh: Likewise.
22565
22566 2010-09-04  Bruno Haible  <bruno@clisp.org>
22567
22568         gnulib-tool: Avoid error when run in a package without Makefile.am.
22569         * gnulib-tool: When collecting the m4dirs in a package that does not
22570         have a Makefile.am, eliminate those directories that contain no
22571         gnulib-cache.m4. Fix expression that counts these directories.
22572
22573 2010-09-04  Bruno Haible  <bruno@clisp.org>
22574
22575         update-copyright test: Improve output when perl is missing or too old.
22576         * tests/test-update-copyright.sh: Move test of Perl version down after
22577         the test whether Perl exists. Provide an explanation relating Perl's
22578         error message to Automake's SKIP: message.
22579
22580 2010-09-04  Bruno Haible  <bruno@clisp.org>
22581
22582         Don't augment PATH in TESTS_ENVIRONMENT.
22583         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22584         set abs_aux_dir instead of augmenting PATH.
22585         * modules/vc-list-files-tests (Makefile.am): Likewise.
22586         * tests/test-update-copyright.sh: Augment PATH here.
22587         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22588         path_prepend_.
22589         * tests/test-vc-list-files-git.sh: Likewise.
22590
22591 2010-09-04  Jim Meyering  <meyering@redhat.com>
22592
22593         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22594         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22595
22596 2010-09-04  Bruno Haible  <bruno@clisp.org>
22597
22598         strdup: Fix compilation error in C++ mode.
22599         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22600         the macro.
22601
22602 2010-09-04  Bruno Haible  <bruno@clisp.org>
22603
22604         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22605         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22606         macro into a function.
22607         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22608
22609 2010-09-04  Bruno Haible  <bruno@clisp.org>
22610
22611         Set PATH_SEPARATOR the same way autoconf does.
22612         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22613         the value of PATH_SEPARATOR the same way autoconf-generated configure
22614         scripts do.
22615         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22616         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22617
22618 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22619
22620         Set PATH_SEPARATOR the same way autoconf does.
22621         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22622         the same way autoconf-generated configure scripts do.
22623         * posix-modules: Likewise.
22624
22625 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22626
22627         hash: fix safe_hasher const typo
22628         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22629         const; otherwise, there is a type error later.
22630
22631 2010-09-02  Jim Meyering  <meyering@redhat.com>
22632
22633         test-update-copyright.sh: require perl 5.8.0
22634         * tests/test-update-copyright.sh: Require 5.8.0,
22635         which Tom G. Christensen has confirmed is adequate,
22636         while 5.6.1 is not.
22637
22638 2010-09-02  Eric Blake  <eblake@redhat.com>
22639
22640         tests: init.sh improvements for re-exec'ing with zsh
22641         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22642         -vx through shell re-exec.
22643         Reported by Tom G. Christensen.
22644
22645         wctype: fix typo in previous commit
22646         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22647         Reported by Ludovic Courtès.
22648
22649 2010-09-02  Jim Meyering  <meyering@redhat.com>
22650
22651         test-update-copyright.sh: skip test if Perl is too old
22652         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22653         Reported by Tom G. Christensen.
22654
22655 2010-09-02  Bruno Haible  <bruno@clisp.org>
22656
22657         wctype: Avoid compilation error on IRIX 6.5.30.
22658         * lib/wctype.in.h (iswblank): Declare with a replacement if
22659         REPLACE_ISWBLANK is set.
22660         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22661         declared. Set REPLACE_ISWBLANK.
22662         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22663         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22664         * doc/posix-headers/wctype.texi: Likewise.
22665         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22666
22667 2010-09-01  Bruno Haible  <bruno@clisp.org>
22668
22669         New module 'socketlib'.
22670         * modules/socketlib: New file.
22671         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22672         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22673         * modules/sockets (Depends-on): Add socketlib.
22674         Suggested by Sam Steingold <sds@gnu.org>.
22675
22676 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22677
22678         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22679
22680         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22681         when one needs search access to a directory but not read access.
22682         On systems where it is available, it works in some cases where
22683         O_RDONLY does not, namely on directories that are searchable but
22684         not readable, and which need only to be searchable.  If O_SEARCH
22685         is not available, fall back to the traditional method of using
22686         O_RDONLY.
22687
22688         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22689         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22690         when opening a directory that needs only to be searchable.
22691         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22692         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22693         * lib/openat-proc.c (openat_proc_name): Likewise.
22694         * lib/openat.c (openat_needs_fchdir): Likewise.
22695         * lib/save-cwd.c (save_cwd): Likewise.
22696         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22697
22698 2010-08-28  Bruno Haible  <bruno@clisp.org>
22699
22700         New module 'host-cpu-c-abi'.
22701         * modules/host-cpu-c-abi: New file.
22702         * m4/host-cpu-c-abi.m4: New file, based on part of
22703         clisp/src/m4/general.m4.
22704         Requested by Sam Steingold <sds@gnu.org>.
22705
22706 2010-08-31  Eric Blake  <eblake@redhat.com>
22707         and Jim Meyering  <meyering@redhat.com>
22708
22709         hash: factor, and guard against misbehaving hasher function
22710         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22711         of table->hasher's return value.  Also protect against a hash value
22712         so large that adding it to table->bucket results in a NULL pointer.
22713         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22714         Use it in place of open-coded check-and-abort.
22715
22716 2010-08-30  Bruno Haible  <bruno@clisp.org>
22717
22718         hash: silence spurious clang warning
22719         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22720         Reported by Eric Blake.
22721
22722 2010-08-30  Eric Blake  <eblake@redhat.com>
22723
22724         strstr, memmem, strcasestr: avoid leaked shell message
22725         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22726         FreeBSD.
22727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22728         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22729
22730         tests: silence clang warning
22731         * tests/test-malloca.c (do_allocation): Avoid dead store.
22732
22733 2010-08-29  Bruno Haible  <bruno@clisp.org>
22734
22735         gettext: Fix recent mistake.
22736         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22737
22738 2010-08-29  Bruno Haible  <bruno@clisp.org>
22739
22740         selinux-h: Offer a --without-selinux option.
22741         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22742         --without-selinux was specified, skip all tests and define
22743         HAVE_SELINUX_SELINUX_H to 0.
22744         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22745         set LIB_SELINUX to empty.
22746         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22747         gl_LIBSELINUX. If --without-selinux was specified, replace
22748         selinux/context.h.
22749         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22750
22751 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22752             Bruno Haible  <bruno@clisp.org>
22753
22754         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22755         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22756         of HAVE_REALLOC.
22757         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22758         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22759         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22760         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22761
22762 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22763             Bruno Haible  <bruno@clisp.org>
22764
22765         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22766         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22767         HAVE_CALLOC.
22768         * lib/xmalloc.c: Update accordingly.
22769         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22770         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22771         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22772
22773 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22774             Bruno Haible  <bruno@clisp.org>
22775
22776         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22777         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22778         HAVE_MALLOC.
22779         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22780         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22781         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22782
22783 2010-08-29  Bruno Haible  <bruno@clisp.org>
22784
22785         Update modules list.
22786         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22787         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22788         (String handling <string.h>): Add astrxfrm.
22789         (File system functions): Add readlinkat.
22790
22791 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22792
22793         Tests for module 'realloc-gnu'.
22794         * modules/realloc-gnu-tests: New file.
22795         * tests/test-realloc-gnu.c: New file.
22796
22797         Tests for module 'calloc-gnu'.
22798         * modules/calloc-gnu-tests: New file.
22799         * tests/test-calloc-gnu.c: New file.
22800
22801         Tests for module 'malloc-gnu'.
22802         * modules/malloc-gnu-tests: New file.
22803         * tests/test-malloc-gnu.c: New file.
22804
22805 2010-08-28  Bruno Haible  <bruno@clisp.org>
22806
22807         Rename module 'realloc' -> 'realloc-gnu'.
22808         * modules/realloc-gnu: New file, copied from modules/realloc.
22809         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22810         obsolete.
22811         * modules/mgetgroups (Depends-on): Update.
22812         * doc/posix-functions/realloc.texi: Update.
22813         * NEWS: Mention the change.
22814
22815         Rename module 'calloc' -> 'calloc-gnu'.
22816         * modules/calloc-gnu: New file, copied from modules/calloc.
22817         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22818         obsolete.
22819         * doc/posix-functions/calloc.texi: Update.
22820         * NEWS: Mention the change.
22821
22822         Rename module 'malloc' -> 'malloc-gnu'.
22823         * modules/malloc-gnu: New file, copied from modules/malloc.
22824         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22825         obsolete.
22826         * modules/argp (Depends-on): Update.
22827         * modules/regex (Depends-on): Update.
22828         * doc/posix-functions/malloc.texi: Update.
22829         * NEWS: Mention the change.
22830
22831 2010-08-28  Eric Blake  <eblake@redhat.com>
22832
22833         pread, pwrite: add missing dependency
22834         * modules/pread (Depends-on): Add extensions.
22835         * modules/pwrite (Depends-on): Likewise.
22836
22837 2010-08-28  Bruno Haible  <bruno@clisp.org>
22838
22839         unistr/u*-strchr: Fix tests dependencies.
22840         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22841         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22842         Reported by Ian Beckwith <ianb@erislabs.net>.
22843
22844 2010-08-28  Bruno Haible  <bruno@clisp.org>
22845
22846         read-file: Don't occupy too much unused memory.
22847         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22848
22849 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22850             Eric Blake  <eblake@redhat.com>
22851             Bruno Haible  <bruno@clisp.org>
22852
22853         read-file: Avoid memory reallocations with regular files.
22854         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22855         (fread_file): With regular files, use the remaining length as the
22856         initial buffer size.  Check against overflow.
22857         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22858         sys_stat.
22859
22860 2010-08-28  Bruno Haible  <bruno@clisp.org>
22861
22862         ftello: Relax license.
22863         * modules/ftello (License): Relax to LGPLv2+.
22864         Reported by Eric Blake.
22865
22866 2010-08-28  Bruno Haible  <bruno@clisp.org>
22867
22868         Avoid relocwrapper link errors due to gnulib replacement functions.
22869         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22870         function.
22871         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22872
22873 2010-08-28  Bruno Haible  <bruno@clisp.org>
22874
22875         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22876         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22877         defined.
22878         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22879         Suggested by Eric Blake.
22880
22881 2010-08-28  Bruno Haible  <bruno@clisp.org>
22882
22883         sys_socket, netdb: Ensure socklen_t gets defined.
22884         * modules/sys_socket (Depends-on): Add socklen.
22885         * modules/netdb (Depends-on): Likewise.
22886         * modules/getaddrinfo (Depends-on): Remove socklen.
22887         * modules/getsockopt (Depends-on): Likewise.
22888         * modules/setsockopt (Depends-on): Likewise.
22889         * tests/test-sys_socket.c: Check that socklen_t is defined.
22890         * tests/test-netdb.c: Likewise.
22891         * m4/socklen.m4: Update comments.
22892         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22893
22894 2010-08-27  Eric Blake  <eblake@redhat.com>
22895
22896         login_tty: add missing dependency
22897         * modules/login_tty (Depends-on): Add pty.
22898
22899 2010-08-26  Eric Blake  <eblake@redhat.com>
22900
22901         lib-symbol-versions: fix m4 quoting
22902         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22903         format for AC_LINK_IFELSE.
22904
22905         glob: fix compile test
22906         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22907
22908         btowc: fix missing file
22909         * modules/btowc (Files): Also ship locale-fr.m4.
22910
22911         lseek: fix link test
22912         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22913         AC_LINK_IFELSE.
22914
22915         include_next: silence autoconf 2.68 warning
22916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22917         AC_COMPILE_IFELSE as special.
22918         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22919         autoconf < 2.68.
22920
22921         acl: fix compilation test
22922         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22923         AC_COMPILE_IFELSE.
22924
22925 2010-08-26  Bruno Haible  <bruno@clisp.org>
22926
22927         Modernize AC_TRY_RUN invocations.
22928         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22930         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22931         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22932         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22933         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22934         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22935         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22936         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22937         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22938         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22939         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22940         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22941         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22942         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22943         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22944         gl_MBRLEN_NUL_RETVAL): Likewise.
22945         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22946         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22947         Likewise.
22948         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22949         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22950         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22951         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22952         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22953         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22954         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22955         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22956         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22957         Likewise.
22958         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22959         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22961         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22962         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22963         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22964         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22965         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22966         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22967         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22968
22969 2010-08-26  Bruno Haible  <bruno@clisp.org>
22970
22971         Modernize AC_TRY_LINK invocations.
22972         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22973         AC_TRY_LINK.
22974         * m4/argp.m4 (gl_ARGP): Likewise.
22975         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22976         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22977         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22978         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22979         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22980         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22981         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22982         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22983         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22984         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22986         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22987         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22988         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22989         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22990         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22991         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22992         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22993         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22994         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22995         Likewise.
22996         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22997         Likewise.
22998         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22999         Likewise.
23000         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23001         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23002         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23003         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23004         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23005         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23006         * m4/servent.m4 (gl_SERVENT): Likewise.
23007         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23008         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23009         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23010         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23011         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23012         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23013         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23014         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23015         * modules/tsearch-tests (configure.ac): Likewise.
23016
23017 2010-08-26  Bruno Haible  <bruno@clisp.org>
23018
23019         Modernize AC_TRY_COMPILE invocations.
23020         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23021         AC_TRY_COMPILE.
23022         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23023         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23024         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23025         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23026         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23027         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23028         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23029         * m4/lock.m4 (gl_LOCK): Likewise.
23030         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23031         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23032         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23033         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23034         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23035         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23036         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23037         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23038         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23039         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23040         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23041         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23042         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23043         extraneous semicolon.
23044
23045 2010-08-26  Jim Meyering  <meyering@redhat.com>
23046
23047         stat-time: relax license LGPL
23048         * modules/stat-time (License): Change from GPL to LGPL,
23049         with consent from all contributors, for use in libguile.
23050         Requested by Ludovic Courtès.
23051
23052 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23053
23054         poll: return immediately on POLLHUP.
23055         * lib/poll.c (poll): Always set timeout before wait_timeout is
23056         computed.
23057
23058 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23059
23060         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23061         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23062         rmdir ("dir/.//"), unlinkat.
23063
23064 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23065
23066         stdbool: avoid spurious failure with modern xlc
23067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23068
23069 2010-08-24  Bruno Haible  <bruno@clisp.org>
23070
23071         getloadavg: simplify code
23072         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23073         gl_have_func. Update comments.
23074
23075 2010-08-24  Eric Blake  <eblake@redhat.com>
23076
23077         getloadavg: don't define SVR4 on cygwin
23078         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23079         only define SVR4 when -lkvm is required.
23080         Reported by Yaakov Selkowitz.
23081
23082 2010-08-24  Bruno Haible  <bruno@clisp.org>
23083
23084         priv-set: fix comment
23085         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23086
23087 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23088
23089         priv-set: fix comments
23090         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23091         to match code, as suggested by David Bartley in:
23092         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23093
23094 2010-08-23  Eric Blake  <eblake@redhat.com>
23095
23096         stdbool: avoid rejecting clang
23097         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23098         * tests/test-stdbool.c: Enable more tests if using the system
23099         <stdbool.h> instead of the gnulib replacement.
23100         (main): Move xlc bug test to a runtime test for all compilers.
23101         Reported by Anders Kaseorg.
23102
23103         argz: fix shell quoting issue
23104         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23105         Reported by Charles Wilson.
23106
23107 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23108             Erik Faye-Lund <kusmabite@gmail.com>
23109
23110         poll, select: handle ERROR_BROKEN_PIPE.
23111         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23112         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23113         * lib/select.c (win32_compute_revents): Do not mark a pipe
23114         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23115
23116 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23117
23118         fts: allow compilation with C++
23119         * lib/fts_.h: Specify extern "C" linkage with C++.
23120
23121 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23122
23123         Fix gnulib-tool sed script de-commentation for AIX sed.
23124         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23125         sed.
23126
23127 2010-08-17  Eric Blake  <eblake@redhat.com>
23128
23129         test-stddef: test for (some) offsetof bugs
23130         * tests/test-stddef.c: Enhance test to ensure correct type of
23131         offsetof.
23132         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23133         that we are not fixing at this time.
23134
23135 2010-08-15  Bruno Haible  <bruno@clisp.org>
23136
23137         stpncpy: Allow stpncpy to be defined as a macro.
23138         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23139         if it's already correctly declared.
23140         * lib/string.in.h (stpncpy): Undefine before redefining.
23141         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23142
23143 2010-08-14  Bruno Haible  <bruno@clisp.org>
23144
23145         Rename module 'memxfrm' to 'amemxfrm'.
23146         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23147         (amemxfrm): Renamed from memxfrm.
23148         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23149         (amemxfrm): Renamed from memxfrm.
23150         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23151         * NEWS: Mention the change.
23152         * MODULES.html.sh (String handling <string.h>): Update.
23153         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23154         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23155         * lib/unicase/u16-casexfrm.c: Likewise.
23156         * lib/unicase/u32-casexfrm.c: Likewise.
23157         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23158         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23159         * lib/uninorm/u16-normxfrm.c: Likewise.
23160         * lib/uninorm/u32-normxfrm.c: Likewise.
23161         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23162         memxfrm.
23163         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23164         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23165         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23166         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23167         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23168         Suggested by Paul Eggert.
23169
23170 2010-08-14  Bruno Haible  <bruno@clisp.org>
23171
23172         Tests for module 'astrxfrm'.
23173         * modules/astrxfrm-tests: New file.
23174         * tests/test-astrxfrm.c: New file.
23175
23176         New module 'astrxfrm'.
23177         * lib/astrxfrm.h: New file.
23178         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23179         * modules/astrxfrm: New file.
23180
23181 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23182
23183         regex: Tweak doc.
23184         * doc/regex.texi (Overview): Don't mention regex.c.
23185         (GNU Regular Expression Compiling): Likewise.
23186         (Match-end-of-line Operator): Mention 'not_eol'.
23187
23188 2010-08-14  Brian Gough  <bjg@gnu.org>
23189             Bruno Haible  <bruno@clisp.org>
23190
23191         git-merge-changelog: add doc relating to use with bzr and hg.
23192         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23193
23194 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23195
23196         pthread: fix pthread.h creation for srcdir != builddir
23197         * modules/pthread (Makefile.am): Fix the rule to work also in a
23198         non-srcdir build.
23199
23200 2010-08-13  Karl Berry  <karl@gnu.org>
23201
23202         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23203         * doc/posix-*/*: force line break before @url of POSIX
23204         specifications.
23205         Suggested by Werner Lemberg.
23206
23207 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23208
23209         strtod: fix const diagnostic
23210         * lib/strtod.c (strtod): Don't assign const char * to char *,
23211         as this elicits a warning from GCC when warnings are enabled.
23212
23213 2010-08-10  Pádraig Brady <P@draigbrady.com>
23214         and Eric Blake  <eblake@redhat.com>
23215
23216         copy-acl: ignore ENOTSUP on HP-UX
23217         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23218         so that it is available for HP-UX.
23219         * lib/copy-acl.c (qcopy_acl): Use it.
23220         Reported by Patrick M. Callahan.
23221
23222 2010-08-10  Eric Blake  <eblake@redhat.com>
23223
23224         open, chown: relax license
23225         * modules/open (License): Change to LGPLv2+, with consent by all
23226         authors, for use in augeas.
23227         * modules/chown (License): Likewise.
23228         * modules/lchown (Likewise): Likewise.
23229         Requested by Adam Stokes.
23230
23231 2010-08-09  Karl Berry  <karl@gnu.org>
23232
23233         * build-aux/ar-lib: new file, import from Automake.
23234         * config/srclist.txt: autocheck for updates.
23235
23236 2010-08-09  Eric Blake  <eblake@redhat.com>
23237
23238         readlinkat: adjust client modules
23239         * modules/areadlinkat (Depends-on): Use readlinkat, not
23240         symlinkat.
23241         * modules/areadlinkat-with-size (Depends-on): Likewise.
23242
23243         mknod: be more vocal about danger of running tests as root
23244         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23245         root, since that is just asking for problems.
23246         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23247
23248         readlinkat: split into its own module
23249         * modules/symlinkat: Split readlinkat...
23250         * modules/readlinkat: ...into separate module.
23251         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23252         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23253         * lib/symlinkat.c (readlinkat): Move...
23254         * lib/readlinkat.c: ...into new file.
23255         * modules/symlinkat-tests: Split readlinkat test...
23256         * modules/readlinkat-tests: ...into separate module.
23257         * tests/test-symlinkat.c: Split...
23258         * tests/test-readlinkat.c: ...into new file.
23259         * NEWS: Document the split.
23260         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23261         * lib/unistd.in.h (readlinkat): Likewise.
23262         Suggested by Bruno Haible.
23263
23264 2010-08-08  Bruno Haible  <bruno@clisp.org>
23265
23266         memxfrm: Speed up.
23267         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23268         that usually only one call to strxfrm is necessary for each string
23269         part.
23270         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23271
23272 2010-08-07  Karl Berry  <karl@gnu.org>
23273
23274         * doc/posix-headers/limits.texi,
23275         * doc/posix-functions/malloc.texi,
23276         * doc/posix-functions/strsignal.texi: missing @item.
23277         * doc/ld-version-script.texi: spurious leading i.
23278         * doc/regex.texi (Interval Operators): no commas inside @var.
23279
23280 2010-08-01  Bruno Haible  <bruno@clisp.org>
23281
23282         Integrate the regex documentation.
23283         * doc/gnulib.texi: Define 'cn' index.
23284         (Regular expressions): New a chapter that includes regex.texi and
23285         regexprops-generic.texi.
23286         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23287         syntax.
23288
23289         Whitespace cleanup.
23290         * doc/regex.texi: Remove trailing spaces.
23291
23292         Add regex documentation.
23293         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23294         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23295         Written by Kathy A. Hargreaves and Karl Berry.
23296
23297 2010-08-01  Bruno Haible  <bruno@clisp.org>
23298
23299         link: Update documentation.
23300         * doc/posix-functions/link.texi: Update regarding Solaris.
23301
23302 2010-07-31  Bruno Haible  <bruno@clisp.org>
23303
23304         Update modules list.
23305         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23306         (String handling <string.h>): Add memcmp2, memxfrm.
23307         (Container data structures): Add xlist, xsublist, xoset.
23308         (Core language properties): Add alignof, unused-parameter.
23309         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23310         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23311         (Unibyte characters <ctype.h>): New section.
23312         (String handling <string.h>): New section.
23313         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23314         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23315         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23316         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23317         tan, tanh, tanl, y0, y1, yn.
23318         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23319         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23320         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23321         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23322         unlockpt, vdprintf, vdprintf-posix.
23323         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23324         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23325         xconcat-filename.
23326         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23327         getdtablesize, pipe2, pipe2-safer.
23328         (Security): New section.
23329         (Networking functions): Add accept4.
23330         (Signal handling): Add sigpipe.
23331         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23332         mbmemcasecoll.
23333         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23334         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23335         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23336         pipe-filter-ii.
23337         (Misc): Add argp-version-etc, login_tty, parse-duration.
23338
23339 2010-07-31  Bruno Haible  <bruno@clisp.org>
23340
23341         Improve doc in MODULES.html.
23342         * modules/linkat (Description): Add the word "function".
23343         * modules/mkfifo (Description): Likewise.
23344         * modules/mknod (Description): Likewise.
23345         * modules/remove (Description): Likewise.
23346         * modules/renameat (Description): Likewise.
23347         * modules/stat (Description): Likewise.
23348         * modules/symlink (Description): Likewise.
23349         * modules/unlink (Description): Likewise.
23350
23351 2010-07-31  Bruno Haible  <bruno@clisp.org>
23352
23353         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23354         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23355         option --enable/disable-c++ instead of --enable/disable-cxx.
23356         * NEWS: Mention the change.
23357
23358 2010-07-31  Bruno Haible  <bruno@clisp.org>
23359
23360         readlink, areadlink: Relax test a bit.
23361         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23362         alternative to ENOTDIR.
23363         * tests/test-areadlink.h (test_areadlink): Likewise.
23364         Reported by Rainer Tammer.
23365
23366 2010-07-31  Bruno Haible  <bruno@clisp.org>
23367
23368         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23369         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23370         character, perform the search using U_STRCHR.
23371         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23372         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23373         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23374         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23375         Suggested by Paolo Bonzini.
23376
23377 2010-07-31  Bruno Haible  <bruno@clisp.org>
23378
23379         unistr/u*-strstr: Fix dependencies.
23380         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23381         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23382         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23383
23384 2010-07-31  Bruno Haible  <bruno@clisp.org>
23385
23386         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23387         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23388         the beginning of the loop.
23389         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23390         cases in 'switch' statement.
23391
23392         unistr/u8-strchr: Fix several bugs.
23393         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23394         the string. When not found, return NULL, not a pointer near the end.
23395
23396         More tests for unistr/u8-strchr.
23397         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23398         that the function does not read past the first occurrence of the byte
23399         being searched.
23400         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23401         * tests/unistr/test-u16-strchr.c (main): New function.
23402         * tests/unistr/test-u32-strchr.c (main): New function.
23403
23404 2010-07-31  Bruno Haible  <bruno@clisp.org>
23405
23406         posix-modules: Ignore backup files of documentation files.
23407         * posix-modules: grep only through files named *.texi.
23408
23409 2010-07-31  Bruno Haible  <bruno@clisp.org>
23410
23411         symlinkat: Fix documentation.
23412         * doc/posix-functions/readlinkat.texi: Fix module name.
23413
23414 2010-07-31  Bruno Haible  <bruno@clisp.org>
23415
23416         fchownat: Replace also when chown has the trailing slash bug.
23417         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23418         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23419         introduced on 2010-04-10.
23420         Reported by Rainer Tammer.
23421
23422 2010-07-31  Bruno Haible  <bruno@clisp.org>
23423
23424         linkat: Work around AIX 7.1 bug.
23425         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23426         whether linkat handles trailing slash correctly. If not, replace linkat
23427         and define LINKAT_TRAILING_SLASH_BUG.
23428         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23429         check whether (fd1,file1) points to a directory if file1 or file2 ends
23430         in a slash. Code taken from lib/link.c.
23431         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23432         Reported by Rainer Tammer.
23433
23434 2010-07-31  Bruno Haible  <bruno@clisp.org>
23435
23436         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23437         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23438         This disables an xlc optimization that was causing wrong test results.
23439         Reported by Rainer Tammer.
23440
23441 2010-07-31  Bruno Haible  <bruno@clisp.org>
23442
23443         iconv: Work around AIX 6.1..7.1 bug.
23444         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23445         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23446         cross-compiling, guess no on all versions of AIX.
23447         Reported by Rainer Tammer.
23448
23449 2010-07-31  Bruno Haible  <bruno@clisp.org>
23450
23451         readlink: Relax test a bit.
23452         * tests/test-readlink.h (test_readlink): Allow different errno value
23453         when readlink is called with a file name that ends in / and refers to
23454         a file.
23455         Suggested by Eric Blake.
23456         Reported by Rainer Tammer.
23457
23458 2010-07-31  Bruno Haible  <bruno@clisp.org>
23459
23460         copysign: Does not require -lm on glibc systems.
23461         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23462         gl_COMMON_DOUBLE_MATHFUNC.
23463         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23464
23465 2010-07-31  Bruno Haible  <bruno@clisp.org>
23466
23467         duplocale: Work around AIX 7.1 bug.
23468         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23469         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23470         * lib/duplocale.c (rpl_duplocale): Update comment.
23471         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23472         Reported by Rainer Tammer.
23473
23474 2010-07-30  Bruno Haible  <bruno@clisp.org>
23475
23476         dirfd: Avoid link error on AIX 7.1.
23477         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23478         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23479         exist, set REPLACE_DIRFD.
23480         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23481         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23482         * doc/posix-functions/dirfd.texi: Update.
23483         Reported by Rainer Tammer.
23484
23485 2010-07-30  Eric Blake  <eblake@redhat.com>
23486
23487         strtod: next round of AIX fixes
23488         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23489         exponent.
23490         * tests/test-strtod.c (main): Enhance tests.
23491         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23492         Reported by Rainer Tammer.
23493
23494         futimens: fix configure check
23495         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23496         Reported by Bruno Haible.
23497
23498 2010-07-30  Bruno Haible  <bruno@clisp.org>
23499
23500         getline: Update regarding AIX.
23501         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23502         Reported by Rainer Tammer.
23503
23504 2010-07-30  Bruno Haible  <bruno@clisp.org>
23505
23506         wcwidth: Drop replacement on AIX 7.
23507         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23508         AIX 7.
23509         Reported by Rainer Tammer.
23510
23511 2010-07-30  Bruno Haible  <bruno@clisp.org>
23512
23513         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23514         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23515         a 'char *'.
23516         Reported by Rainer Tammer.
23517
23518 2010-07-30  Bruno Haible  <bruno@clisp.org>
23519
23520         unlink: Update regarding AIX.
23521         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23522         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23523         Reported by Rainer Tammer.
23524
23525 2010-07-30  Bruno Haible  <bruno@clisp.org>
23526
23527         symlink: Update regarding AIX.
23528         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23529         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23530         Reported by Rainer Tammer.
23531
23532 2010-07-30  Bruno Haible  <bruno@clisp.org>
23533
23534         strndup: Update regarding AIX.
23535         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23536         AIX 7.
23537         Reported by Rainer Tammer.
23538
23539 2010-07-30  Bruno Haible  <bruno@clisp.org>
23540
23541         stat: Update regarding AIX.
23542         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23543         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23544         Reported by Rainer Tammer.
23545
23546 2010-07-30  Bruno Haible  <bruno@clisp.org>
23547
23548         truncl: Fix autoconf test.
23549         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23550         whether truncl works.
23551         Reported by Rainer Tammer.
23552
23553 2010-07-30  Bruno Haible  <bruno@clisp.org>
23554
23555         round: Update regarding AIX.
23556         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23557         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23558         Reported by Rainer Tammer.
23559
23560 2010-07-30  Bruno Haible  <bruno@clisp.org>
23561
23562         rename: Update regarding AIX.
23563         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23564         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23565         Reported by Rainer Tammer.
23566
23567 2010-07-30  Bruno Haible  <bruno@clisp.org>
23568
23569         printf.m4: Update regarding AIX.
23570         * m4/printf.m4: Update comments regarding AIX.
23571         Reported by Rainer Tammer.
23572
23573 2010-07-30  Bruno Haible  <bruno@clisp.org>
23574
23575         iconv: Update regarding AIX.
23576         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23577         AIX 7.
23578         Reported by Rainer Tammer.
23579
23580 2010-07-30  Bruno Haible  <bruno@clisp.org>
23581
23582         getopt: Update regarding AIX.
23583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23584         no on AIX.
23585         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23586         Reported by Rainer Tammer.
23587
23588 2010-07-30  Bruno Haible  <bruno@clisp.org>
23589
23590         ldexpl; Update regarding AIX.
23591         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23592         on AIX 7.
23593         Reported by Rainer Tammer.
23594
23595 2010-07-30  Bruno Haible  <bruno@clisp.org>
23596
23597         frexpl: Update regarding AIX.
23598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23599         on AIX 7.
23600         Reported by Rainer Tammer.
23601
23602 2010-07-30  Bruno Haible  <bruno@clisp.org>
23603
23604         open, fopen: Update regarding AIX.
23605         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23606         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23607         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23608         * doc/posix-functions/fopen.texi: Likewise.
23609         Reported by Rainer Tammer.
23610
23611 2010-07-30  Bruno Haible  <bruno@clisp.org>
23612
23613         chown: Update doc regarding AIX.
23614         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23615         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23616         Reported by Rainer Tammer.
23617
23618 2010-07-30  Eric Blake  <eblake@redhat.com>
23619
23620         strtod: fix bug in replacement function on AIX
23621         * lib/strtod.c (strtod): Special case broken "0x" parse in
23622         underlying strtod.
23623         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23624         * doc/posix-functions/strtod.texi (strtod): Likewise.
23625         Reported by Rainer Tammer.
23626
23627 2010-07-30  Bruno Haible  <bruno@clisp.org>
23628
23629         mbrlen: Fix cross-compilation guess for AIX.
23630         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23631         guess. Leftover from 2008-12-22.
23632
23633 2010-07-30  Bruno Haible  <bruno@clisp.org>
23634
23635         mbrtowc: Fix cross-compilation guess for AIX.
23636         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23637         guess. Leftover from 2008-12-21.
23638
23639 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23640
23641         init.sh: work around trap limitation of some shells
23642         * tests/init.sh (setup_): Move exit trap outside of shell function.
23643
23644 2010-07-29  Eric Blake  <eblake@redhat.com>
23645
23646         strtod: aid debugging
23647         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23648         understanding why strtod is rejected.
23649
23650 2010-07-28  Bruno Haible  <bruno@clisp.org>
23651
23652         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23653         * lib/unistr/u8-chr.c: Include <string.h>.
23654         * tests/unistr/test-u8-chr.c: Likewise.
23655         * tests/unistr/test-u16-chr.c: Likewise.
23656         * tests/unistr/test-u32-chr.c: Likewise.
23657         * tests/unistr/test-u8-strchr.c: Likewise.
23658         * tests/unistr/test-u16-strchr.c: Likewise.
23659         * tests/unistr/test-u32-strchr.c: Likewise.
23660         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23661         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23662         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23663         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23664
23665 2010-07-28  Bruno Haible  <bruno@clisp.org>
23666
23667         Use spaces for indentation, not tabs.
23668         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23669
23670 2010-07-27  Bruno Haible  <bruno@clisp.org>
23671
23672         mbspcasecmp: Fix function specification.
23673         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23674         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23675         Reported by Eric Blake <eblake@redhat.com>.
23676
23677 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23678
23679         timespec: use cast and not conditional, as truncation isn't possible
23680         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23681         instead of a conditional.  Comment about the situation in more detail.
23682         This undoes most of the 2009-10-29 patch.
23683
23684 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23685
23686         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23687         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23688         * lib/unistr/u8-strchr.c: Likewise.
23689         * modules/unistr/u8-chr: Depend on memchr.
23690
23691         unistr/u*-strchr: add tests
23692         * modules/unistr/u8-strchr-tests: New file.
23693         * modules/unistr/u16-strchr-tests: New file.
23694         * modules/unistr/u32-strchr-tests: New file.
23695         * tests/unistr/test-strchr.h: New file.
23696         * tests/unistr/test-u8-strchr.c: New file.
23697         * tests/unistr/test-u16-strchr.c: New file.
23698         * tests/unistr/test-u32-strchr.c: New file.
23699
23700         unistr/u*-chr: test multibyte sequences more
23701         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23702         test vector.
23703         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23704         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23705         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23706
23707         unistr/u*-chr: test multibyte sequences
23708         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23709
23710         unistr/u*-chr: prepare for multibyte tests
23711         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23712         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23713         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23714         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23715         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23716         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23717
23718 2010-07-18  Bruno Haible  <bruno@clisp.org>
23719
23720         unistr/u8-strchr: Optimize non-ASCII argument case.
23721         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23722         because the first byte often matches anyway.
23723         Reported by Pádraig Brady <P@draigbrady.com>.
23724
23725 2010-07-15  Karl Berry  <karl@gnu.org>
23726
23727         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23728
23729 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23730
23731         getcwd: on Solaris, work better if ancestors are inaccessible
23732         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23733         buffer and size, try again with a large buffer.  This works better
23734         on Solaris, since its getcwd succeeds even if the path to the root
23735         is inaccessible, and this is helpful in common cases such as .zfs
23736         hidden directories.  Problem reported by J Chapman Flack in
23737         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23738         Use system getcwd if it's declared, not merely if it's partly
23739         working; use the partly-working test only to avoid needless effort
23740         if the system getcwd fails.
23741         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23742         comment that was already obsolete and is now even more obsolete.
23743         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23744         now might call strdup.
23745
23746 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23747
23748         pthread: Add enough so that coreutils/src/sort.c compiles.
23749         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23750         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23751         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23752         Include <sys/types.h>, in case it defines pthread_t.
23753         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23754         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23755         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23756         (pthread_rwlockattr_t, pthread_spinlock_t):
23757         New typedefs, if HAVE_PTHREAD_T is not defined.
23758         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23759         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23760         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23761         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23762         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23763         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23764         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23765         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23766         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23767         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23768         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23769         New macros.
23770         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23771         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23772         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23773         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23774         (pthread_spin_unlock): New dummy functions.
23775         (pthread_create): Return EAGAIN; don't set errno.
23776         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23777         require AC_C_INLINE.
23778         * modules/pthread (Depends-on): Add sched, time.
23779         (pthread.h): Use AM_V_GEN.
23780
23781 2010-07-13  Bruno Haible  <bruno@clisp.org>
23782
23783         striconveh: Don't malloc memory if the result buffer is sufficient.
23784         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23785         buffer if its size is sufficient.
23786         Reported by Ludovic Courtès <ludo@gnu.org>.
23787
23788 2010-07-13  Bruno Haible  <bruno@clisp.org>
23789
23790         strtod: Add safety check.
23791         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23792
23793 2010-07-12  Bruno Haible  <bruno@clisp.org>
23794
23795         Unify tests that set gl_cv_func_ldexpl_no_libm.
23796         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23797         gl_FUNC_LDEXPL.
23798         (gl_FUNC_LDEXPL): Invoke it.
23799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23800
23801 2010-07-12  Bruno Haible  <bruno@clisp.org>
23802
23803         Unify tests that set gl_cv_func_ldexp_no_libm.
23804         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23805         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23806         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23807         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23808         * modules/strtod (Files): Add m4/ldexp.m4.
23809
23810 2010-07-12  Bruno Haible  <bruno@clisp.org>
23811
23812         Unify tests that set gl_cv_func_frexpl_no_libm.
23813         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23814         gl_FUNC_FREXPL_NO_LIBM.
23815         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23816         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23817
23818 2010-07-12  Bruno Haible  <bruno@clisp.org>
23819
23820         Unify tests that set gl_cv_func_frexp_no_libm.
23821         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23822         gl_FUNC_FREXP_NO_LIBM.
23823         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23824         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23825
23826 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23827
23828         memcoll: clarify sizes versus lengths, document better, and tweak perf
23829         * lib/memcoll.c (strcoll_loop, memcoll0):
23830         Improve quality of descriptive comments.  Name variables
23831         consistently as to whether they are lengths (which do not include
23832         terminating null) versus sizes (which do).
23833         * lib/xmemcoll.c (xmemcoll0): Likewise.
23834         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23835         returned when s1size == 0; this is easier to compile and saves
23836         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23837
23838 2010-07-12  Bruno Haible  <bruno@clisp.org>
23839
23840         Tests for module '_Exit'.
23841         * modules/_Exit-tests: New file.
23842         * tests/test-_Exit.sh: New file.
23843         * tests/test-_Exit.c: New file.
23844
23845         New module '_Exit'.
23846         * lib/stdlib.in.h (__attribute__): New macro.
23847         (_Exit): New declaration.
23848         * lib/_Exit.c: New file.
23849         * m4/_Exit.m4: New file.
23850         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23851         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23852         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23853         * modules/_Exit: New file.
23854         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23855         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23856
23857 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23858
23859         strtod: make it more-accurate typically, and don't require libm
23860         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23861         Include limits.h.  Don't include string.h.
23862         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23863         (locale_isspace): New function, so that no casts are needed to
23864         check whether *s is a space.
23865         (ldexp): Provide an unused dummy if not available.
23866         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23867         (strtod): Use them.  This implementation prefers to use the
23868         underlying strtod if available, falling back on our own code
23869         only to fix known bugs.  This is more likely to produce an
23870         accurate result.  Also, it avoids the use of libm functions.
23871         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23872         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23873         was absent, but it caused a test failure with coreutils.
23874         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23875         with libm.
23876         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23877         * modules/strtod-tests (Makefile.am): Likewise.
23878
23879 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23880             Bruno Haible  <bruno@clisp.org>
23881
23882         unistr/u8-strchr: Optimize ASCII argument case.
23883         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23884
23885 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23886
23887         (x)memcoll: minor tweaks
23888         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23889         is after the type that it qualifies.
23890         (memcoll0): Likewise.
23891         * lib/memcoll.h (memcoll0): Likewise.
23892         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23893         * lib/xmemcoll.h (xmemcoll0): Likewise.
23894         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23895         differs from memcoll in that the NUL byte is part of the argument.
23896         Omit the abort-checks, as performance is a real issue here.  Plus,
23897         the checks were wrong anyway (an off-by-one error).  Omit local
23898         variable 'diff', as it's a bit clearer that way.
23899         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23900         no longer needed.
23901
23902 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23903
23904         (x)memcoll: speedup when input is known to be NUL delimited
23905         * lib/memcoll.c: Include stdlib.
23906         (memcoll0): New function.
23907         (strcoll_loop): New function, refactored for use in both memcoll
23908         and memcoll0.
23909         * lib/memcoll.h (memcoll0): Add prototype.
23910         * lib/xmemcoll.c (xmemcoll0): New function.
23911         (collate_error): New function, refactored for use in both xmemcoll
23912         and xmemcoll0.
23913         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23914         * m4/memcoll.m4: add inline invocation.
23915
23916 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23917
23918         * build-aux/bootstrap: Remove any local translations
23919         from the translation project synchronization directory,
23920         so that local only translations are not distributed.
23921
23922 2010-07-04  Bruno Haible  <bruno@clisp.org>
23923
23924         fsusage: Clarify which code applies to which platforms.
23925         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23926         platform.
23927         * lib/fsusage.c (get_fs_usage): Likewise.
23928
23929 2010-07-04  Bruno Haible  <bruno@clisp.org>
23930
23931         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23932         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23933         Reported by Martin Lambers <marlam@marlam.de>.
23934
23935 2010-07-04  Jim Meyering  <meyering@redhat.com>
23936
23937         hash: once again explicitly disallow insertion of NULL
23938         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23939         inserting a NULL pointer cannot work with these functions.
23940         Add a comment with details.
23941         This reverts part of the 2010-07-01 commit, 5bef1a35
23942         "hash: extend module to deal with non-pointer keys".
23943
23944 2010-07-01  Bruno Haible  <bruno@clisp.org>
23945
23946         stdbool: Update doc.
23947         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23948         Info from Christian Weisgerber <naddy@mips.inka.de>.
23949
23950 2010-07-01  Jim Meyering  <meyering@redhat.com>
23951
23952         hash: extend module to deal with non-pointer keys
23953         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23954         but that allows insertion of non-pointer entries.
23955         Do not disallow an ENTRY value of NULL.
23956         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23957         * lib/hash.h (hash_insert0): Declare.
23958
23959 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23960
23961         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23962         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23963         not present (i.e. with autoconf 2.59 and when using gettextize, not
23964         gnulib), require AC_GNU_SOURCE instead.
23965
23966 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23967
23968         idpriv-drop: Fix tests.
23969         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23970         not to the test-idpriv-droptemp program.
23971
23972 2010-06-29  Bruno Haible  <bruno@clisp.org>
23973
23974         string: Fix syntax error with g++ 2.96.
23975         * lib/string.in.h (__pure__): Remove definition.
23976         (_GL_ATTRIBUTE_PURE): New macro.
23977         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23978         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23979         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23980
23981 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23982
23983         unitypes: Fix bug introduced on 2010-05-18.
23984         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23985
23986 2010-06-22  Eric Blake  <eblake@redhat.com>
23987
23988         memmem: slight optimization
23989         * lib/str-two-way.h (critical_factorization): Update comments.
23990         Reduce work during factorization phase.
23991         Reported by Carlos Bueno <carlos@bueno.org>.
23992
23993 2010-06-21  Bruno Haible  <bruno@clisp.org>
23994
23995         Fix HAVE_CALLOC_POSIX misnomer.
23996         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23997         !HAVE_CALLOC_POSIX.
23998         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23999         HAVE_CALLOC_POSIX.
24000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24001         instead of HAVE_CALLOC_POSIX.
24002         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24003         HAVE_CALLOC_POSIX.
24004
24005         Use modern idiom for calloc() replacement.
24006         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24007         AC_FUNC_CALLOC.
24008         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24009         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24010         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24011         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24012         (gl_REPLACE_CALLOC): New macro.
24013
24014 2010-06-21  Bruno Haible  <bruno@clisp.org>
24015
24016         Fix HAVE_REALLOC_POSIX misnomer.
24017         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24018         !HAVE_REALLOC_POSIX.
24019         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24020         HAVE_REALLOC_POSIX.
24021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24022         instead of HAVE_REALLOC_POSIX.
24023         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24024         HAVE_REALLOC_POSIX.
24025
24026         Use modern idiom for realloc() replacement.
24027         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24028         AC_FUNC_REALLOC.
24029         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24030         Autoconf's AC_FUNC_REALLOC.
24031         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24032         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24033         (gl_REPLACE_REALLOC): New macro.
24034         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24035
24036 2010-06-21  Bruno Haible  <bruno@clisp.org>
24037
24038         Fix HAVE_MALLOC_POSIX misnomer.
24039         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24040         !HAVE_MALLOC_POSIX.
24041         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24042         HAVE_MALLOC_POSIX.
24043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24044         instead of HAVE_MALLOC_POSIX.
24045         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24046         HAVE_MALLOC_POSIX.
24047
24048         Use modern idiom for malloc() replacement.
24049         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24050         AC_FUNC_MALLOC.
24051         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24052         Autoconf's AC_FUNC_MALLOC.
24053         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24054         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24055         (gl_REPLACE_MALLOC): New macro.
24056         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24057
24058 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24059
24060         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24061         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24062         This macro takes 3 arguments, not 4.
24063
24064 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24065
24066         ipv6: fix detection under mingw
24067         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24068         in6_addr.
24069
24070 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24071
24072         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24073         that strtod() works when cross-compiling to a glibc version known
24074         to work.
24075
24076 2010-06-15  Bruno Haible  <bruno@clisp.org>
24077
24078         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24079
24080 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24081
24082         select: Correct timeout.
24083         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24084
24085 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24086
24087         git-version-gen: init shell var to avoid env var influence
24088         * build-aux/git-version-gen (v): Init shell var to empty.
24089
24090 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24091
24092         priv-set: Don't assume that priv.h exists merely because getppriv does.
24093         See Jan Andersen's bug report about AIX 5L in
24094         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24095         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24096         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24097         * lib/priv-set.h: Likewise.
24098         * tests/test-priv-set.c: Likewise.
24099
24100 2010-06-13  Bruno Haible  <bruno@clisp.org>
24101
24102         relocatable: Make it easier to test whether to install wrappers.
24103         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24104         RELOCATABLE_VIA_WRAPPER.
24105
24106 2010-06-13  Bruno Haible  <bruno@clisp.org>
24107
24108         gnulib-tool: Display specified modules and dependencies differently.
24109         * gnulib-tool (func_show_module_list): New function.
24110         (func_import, func_create_testdir): Invoke it.
24111         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24112
24113 2010-06-13  Bruno Haible  <bruno@clisp.org>
24114
24115         gnulib-tool: Align code of func_import and func_create_testdir.
24116         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24117         specified_modules.
24118
24119 2010-06-12  Jim Meyering  <meyering@redhat.com>
24120
24121         test-inttostr: avoid spurious failure on Solaris 9
24122         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24123         to accept "%ju".  Reported by Bruno Haible.
24124
24125 2010-06-11  Jim Meyering  <meyering@redhat.com>
24126
24127         test-sys_socket: mark variables as used more readably
24128         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24129         as "used" explicitly via (void) statement casts.  This is more
24130         readable than using them in an artificial return expression.
24131         Suggestion from Bruno Haible.
24132
24133 2010-06-11  Bruno Haible  <bruno@clisp.org>
24134
24135         Avoid some more warnings from "gcc -Wwrite-strings".
24136         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24137         to 'const char *'.
24138         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24139         * tests/test-c-strcasestr.c (main): Likewise.
24140         * tests/test-mbscasestr1.c (main): Likewise.
24141         * tests/test-mbscasestr2.c (main): Likewise.
24142         * tests/test-memmem.c (main): Likewise.
24143         * tests/test-strstr.c (main): Likewise.
24144         * tests/test-strcasestr.c (main): Likewise.
24145
24146 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24147
24148         init.sh: change framework_failure_ to fail with status 99, not 1
24149         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24150         automake's parallel-tests rule that this is an unexpected failure,
24151         even if the test is listed in XFAIL_TESTS.
24152
24153 2010-06-11  Jim Meyering  <meyering@redhat.com>
24154
24155         test-inttostr: avoid warnings about 4-6KB literal strings
24156         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24157         Include "macros.h", for its definition of ASSERT.
24158         (CK): s/assert/ASSERT/
24159         * modules/inttostr-tests (Files): Add macros.h.
24160
24161         init.sh: don't use $ME_ or skip_ before they are defined
24162         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24163         their first uses.  Also hoist their companions: warn_, fail_,
24164         framework_failure_, $stderr_fileno.  Prompted by a patch from
24165         Stefano Lattarini.
24166
24167         test-sys_socket: avoid set-but-not-used warnings from gcc
24168         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24169         avoid warning about set-but-not-used variables.
24170
24171         test-xvasprintf: avoid 'const' discard warnings
24172         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24173         "const" when assigning from literal strings.
24174         (test_xasprintf): Add "void" in function argument list to placate
24175         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24176
24177         tests: avoid compilation warnings in argmatch and exclude tests...
24178         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24179         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24180         Since it always exits, declare with the "noreturn" attribute.
24181         * tests/test-argmatch.c: Likewise.
24182
24183         tests: avoid 'const' discard warnings in mbsstr tests
24184         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24185         * tests/test-mbsstr2.c (main): Likewise.
24186
24187         test-verify: avoid warning from gcc's -Wmissing-declarations
24188         * tests/test-verify.c (function): Declare to be static.
24189
24190         test-inttostr.c: include <string.h> for use of strcmp
24191         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24192
24193         test-linkat: avoid failed assertion on "other" architectures
24194         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24195         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24196         sparc: https://bugs.launchpad.net/bugs/591968
24197
24198 2010-06-11  Jim Meyering  <meyering@redhat.com>
24199
24200         printf.m4: avoid autoconf's "Expanded Before Required" warning
24201         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24202         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24203         autoconf warning.
24204
24205 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24206
24207         Replacement header templates are now named with ".in", not "_".
24208         * doc/gnulib-intro.texi: Correct.
24209
24210 2010-06-10  Jim Meyering  <meyering@redhat.com>
24211
24212         inttostr-tests: depend on snprintf, not snprintf-posix
24213         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24214         snprintf-posix, to avoid this aclocal failure:
24215           missing file gnulib-tests/vasnprintf.c
24216           configure.ac:45: error: expected source file, required through \
24217           AC_LIBSOURCES, not found
24218
24219 2010-06-10  Jim Meyering  <meyering@redhat.com>
24220
24221         inttostr: add a new function, inttostr, and tests
24222         The namesake function was not available.  The existence of the
24223         template file, inttostr.c makes its addition nontrivial.
24224         * lib/anytostr.c: Rename from inttostr.c.
24225         (anytostr): Rename from inttostr.
24226         * lib/inttostr.c: New file.
24227         * modules/inttostr (Files): Add anytostr.c.
24228         (Makefile.am): Set lib_SOURCES instead of ...
24229         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24230         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24231         * lib/offtostr.c: Likewise.
24232         * lib/uinttostr.c: Likewise.
24233         * lib/umaxtostr.c: Likewise.
24234         * modules/inttostr-tests: New file.
24235         * tests/test-inttostr.c: New file.  Test these functions.
24236
24237 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24238             Bruno Haible  <bruno@clisp.org>
24239
24240         Add "Extending Gnulib" chapter to manual.
24241         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24242         chapter.
24243         (Extending Gnulib): New chapter.
24244         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24245         chapter.
24246
24247 2010-06-09  Bruno Haible  <bruno@clisp.org>
24248
24249         Avoid relocwrapper link errors due to gnulib replacement functions.
24250         * lib/areadlink.c: Use the system's malloc, realloc functions.
24251         (areadlink): Set errno to ENOMEM explicitly.
24252         * modules/areadlink (Depends-on): Remove malloc-posix.
24253         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24254
24255 2010-06-09  Bruno Haible  <bruno@clisp.org>
24256
24257         Avoid relocwrapper link errors due to gnulib replacement functions.
24258         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24259         * lib/malloca.c: Likewise.
24260         * lib/relocatable.c: Likewise.
24261         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24262         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24263         * lib/setenv.c: Use the system's malloc, realloc functions.
24264         * lib/strerror.c: Use the system's sprintf function.
24265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24266
24267 2010-06-04  Bruno Haible  <bruno@clisp.org>
24268
24269         Prefer documented low-level autoconf macro names.
24270         * m4/lib-link.m4: Use m4_translit instead of translit.
24271         * m4/environ.m4: Likewise.
24272         * m4/mathfunc.m4: Likewise.
24273         * m4/onceonly.m4: Likewise.
24274         * m4/stdint.m4: Likewise.
24275         Suggested by Eric Blake.
24276
24277 2010-06-04  Martin Lambers  <marlam@marlam.de>
24278             Bruno Haible  <bruno@clisp.org>
24279
24280         havelib: Allow library names with '+' characters.
24281         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24282         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24283
24284 2010-06-09  Bruno Haible  <bruno@clisp.org>
24285
24286         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24287         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24288         realloc failed.
24289
24290 2010-06-08  Peter Simons  <simons@cryp.to>
24291
24292         maint.mk: make the news-check rule more configurable
24293         * top/maint.mk (news-check-lines-spec): New variable.
24294         (news-check): Use "sed -n 1,10p" in place of "head".
24295
24296 2010-06-07  Jim Meyering  <meyering@redhat.com>
24297
24298         do-release-commit-and-tag: fix typo in --help
24299         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24300
24301         regex: avoid new dead-code warning with gcc-4.6.0
24302         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24303         if-block containing a while-loop.  It's been unused for at least
24304         5 years.
24305
24306 2010-06-05  Bruno Haible  <bruno@clisp.org>
24307
24308         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24309         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24310
24311 2010-06-04  Bruno Haible  <bruno@clisp.org>
24312
24313         Update to GNU gettext 0.18.1.
24314         * modules/gettext (configure.ac): Require gettext infrastructure from
24315         version 0.18.1.
24316
24317 2010-06-03  Bruno Haible  <bruno@clisp.org>
24318
24319         Don't use AC_LIBOBJ with file names in subdirectories.
24320         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24321         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24322         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24323         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24324         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24325         gl_LIBUNISTRING_LIBSOURCE.
24326         (Makefile.am): Augment lib_SOURCES here, conditionally.
24327         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24328
24329 2010-06-03  Bruno Haible  <bruno@clisp.org>
24330
24331         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24332         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24333         expansion does not end with a newline.
24334         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24335         unnecessary newline.
24336
24337 2010-06-03  Bruno Haible  <bruno@clisp.org>
24338
24339         Reduce dependencies.
24340         * tests/test-quotearg.h: New file, extracted from
24341         tests/test-quotearg.c.
24342         * tests/test-quotearg-simple.c: New file, extracted from
24343         tests/test-quotearg.c.
24344         * tests/test-quotearg.c: Don't include <ctype.h>.
24345         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24346         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24347         use_quote_double_quotes, use_quotearg_colon): Moved to
24348         tests/test-quotearg.h.
24349         (results_g, flag_results, custom_quotes, custom_results): Moved
24350         to tests/test-quotearg-simple.c.
24351         (main): Moved the part that does not depend on gettext to
24352         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24353         performed.
24354         * modules/quotearg-simple: New file.
24355         * modules/quotearg-simple-tests: New file.
24356         * modules/quotearg (Depends-on): Add quotearg-simple.
24357         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24358         (Files): Add tests/test-quotearg.h.
24359         Reported by Paolo Bonzini.
24360
24361 2010-06-03  Bruno Haible  <bruno@clisp.org>
24362
24363         Reduce dependencies.
24364         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24365
24366 2010-06-03  Bruno Haible  <bruno@clisp.org>
24367
24368         time: Undefine more broken macros.
24369         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24370         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24371         Reported by Eric Blake.
24372
24373 2010-06-03  Bruno Haible  <bruno@clisp.org>
24374
24375         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24376         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24377         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24378         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24379         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24380         Reported by Ludovic Courtès <ludo@gnu.org>.
24381
24382 2010-06-02  Eric Blake  <eblake@redhat.com>
24383
24384         time: work with mingw + pthreads-win32 library
24385         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24386         if timespec is defined only in pthread.h.
24387         * modules/time (Makefile.am): Substitute it.
24388         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24389         <pthread.h>, when needed.
24390         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24391         from the library.
24392
24393 2010-05-31  Bruno Haible  <bruno@clisp.org>
24394
24395         Avoid expanding two macros in the wrong order.
24396         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24397         gl_LIBUNISTRING if it is defined.
24398         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24399         autoconf >= 2.64.
24400         Reported by Ludovic Courtès <ludo@gnu.org>.
24401
24402 2010-05-27  Jim Meyering  <meyering@redhat.com>
24403
24404         maint.mk: also prohibit "#undef" of always-defined symbols
24405         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24406         Allow more than one space before the symbol name.
24407         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24408         the regexp uses alternation.
24409
24410 2010-05-26  Eric Blake  <eblake@redhat.com>
24411
24412         maint.mk: avoid echo -e
24413         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24414         Convert all uses of echo -* to printf.
24415         Reported by Matthias Bolte.
24416
24417 2010-05-25  Bruno Haible  <bruno@clisp.org>
24418
24419         Update to GNU gettext 0.18, part 2.
24420         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24421         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24422
24423 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24424
24425         Add missing include in test-pwrite.c.
24426         * tests/test-pwrite.c: Include string.h, for strcmp.
24427
24428 2010-05-24  Bruno Haible  <bruno@clisp.org>
24429
24430         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24431
24432 2010-05-24  Bruno Haible  <bruno@clisp.org>
24433
24434         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24435         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24436         iconveh_error argument.
24437         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24438         U_STRCONV_TO_LOCALE.
24439         * lib/unistr/u16-strcoll.c: Likewise.
24440         * lib/unistr/u32-strcoll.c: Likewise.
24441         * modules/unistr/u8-strcoll (Depends-on): Add
24442         uniconv/u8-strconv-to-enc, localcharset. Remove
24443         uniconv/u8-strconv-to-locale.
24444         (configure.ac): Bump version number.
24445         * modules/unistr/u16-strcoll (Depends-on): Add
24446         uniconv/u16-strconv-to-enc, localcharset. Remove
24447         uniconv/u16-strconv-to-locale.
24448         (configure.ac): Bump version number.
24449         * modules/unistr/u32-strcoll (Depends-on): Add
24450         uniconv/u32-strconv-to-enc, localcharset. Remove
24451         uniconv/u32-strconv-to-locale.
24452         (configure.ac): Bump version number.
24453
24454 2010-05-24  Bruno Haible  <bruno@clisp.org>
24455
24456         Avoid a test failure on NetBSD 5.0.
24457         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24458         an iconv() bug.
24459
24460 2010-05-24  Bruno Haible  <bruno@clisp.org>
24461
24462         Adjust #include directive style.
24463         * modules/regex (Includes): Recommend to write <regex.h>.
24464
24465 2010-05-24  Bruno Haible  <bruno@clisp.org>
24466
24467         regex: Don't require alloca.
24468         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24469         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24470         only inside if (0).
24471
24472 2010-05-23  Jim Meyering  <meyering@redhat.com>
24473
24474         test-renameat.c: include <sys/stat.h>
24475         * tests/test-renameat.c: Include <sys/stat.h>; required for
24476         definition of S_IS* macros.
24477
24478 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24479
24480         Update maintainer documentation for 'relocatable-prog' module.
24481         * doc/relocatable-maint.texi: Update.
24482         Comments by Bruno Haible.
24483
24484 2010-05-23  Bruno Haible  <bruno@clisp.org>
24485
24486         git-merge-changelog: Enable --split-merged-entry by default.
24487         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24488         (usage): Don't mention this option any more.
24489         Reported by Ralf Wildenhues.
24490
24491 2010-05-23  Jim Meyering  <meyering@redhat.com>
24492
24493         test-pwrite: do not leave behind a test file named "out"
24494         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24495         The trivial-looking use of init.sh is really necessary.
24496         It ensures that the temporary file, "out", is created in
24497         a temporary directory, and removed upon termination.
24498         * tests/test-pwrite.sh: Re-add file.
24499         * modules/pwrite-tests: Reference it.
24500
24501 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24502
24503         Fix output redirection buglet in init.sh.
24504         * tests/init.sh: Fix redirection of stderr.
24505
24506 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24507
24508         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24509
24510 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24511
24512         * modules/valgrind-tests: New file.
24513         * m4/valgrind-tests.m4: New file.
24514         * doc/valgrind-tests.texi: New file.
24515         * doc/gnulib.texi (Running self-tests under valgrind): New
24516         section.
24517
24518 2010-05-19  Bruno Haible  <bruno@clisp.org>
24519
24520         Clean up dead code in recent commit.
24521         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24522         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24523         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24524         Suggested by Paolo Bonzini.
24525
24526 2010-05-19  Bruno Haible  <bruno@clisp.org>
24527
24528         Avoid valgrind error reports from libunistring.
24529         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24530         * modules/libunistring (Files): Add it.
24531         * modules/libunistring-optional (Files): Likewise.
24532
24533 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24534             Bruno Haible  <bruno@clisp.org>
24535
24536         New module 'libunistring-optional'.
24537         * modules/libunistring-optional: New file.
24538         * m4/libunistring-base.m4: New file.
24539         * m4/libunistring-optional.m4: New file.
24540         * lib/unicase.in.h: Renamed from lib/unicase.h.
24541         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24542         * lib/unictype.in.h: Renamed from lib/unictype.h.
24543         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24544         * lib/uniname.in.h: Renamed from lib/uniname.h.
24545         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24546         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24547         * lib/unistr.in.h: Renamed from lib/unistr.h.
24548         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24549         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24550         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24551         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24552         gl_LIBUNISTRING. If the library was found, determine the installed
24553         version and set LIBUNISTRING_VERSION.
24554         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24555         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24556         handle a configuration option --with-included-libunistring.
24557         * modules/libunistring (Files): Add m4/absolute-header.m4.
24558         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24559         Add m4/libunistring-base.m4.
24560         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24561         (Makefile.am): Build unicase.h from unicase.in.h.
24562         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24563         Add m4/libunistring-base.m4.
24564         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24565         (Makefile.am): Build uniconv.h from uniconv.in.h.
24566         * modules/unictype/base (Files): Use unictype.in.h instead of
24567         unictype.h. Add m4/libunistring-base.m4.
24568         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24569         (Makefile.am): Build unictype.h from unictype.in.h.
24570         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24571         Add m4/libunistring-base.m4.
24572         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24573         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24574         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24575         Add m4/libunistring-base.m4.
24576         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24577         (Makefile.am): Build uniname.h from uniname.in.h.
24578         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24579         Add m4/libunistring-base.m4.
24580         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24581         (Makefile.am): Build uninorm.h from uninorm.in.h.
24582         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24583         unistdio.h. Add m4/libunistring-base.m4.
24584         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24585         (Makefile.am): Build unistdio.h from unistdio.in.h.
24586         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24587         Add m4/libunistring-base.m4.
24588         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24589         (Makefile.am): Build unistr.h from unistr.in.h.
24590         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24591         Add m4/libunistring-base.m4.
24592         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24593         (Makefile.am): Build unitypes.h from unitypes.in.h.
24594         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24595         Add m4/libunistring-base.m4.
24596         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24597         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24598         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24599         uniwidth.h. Add m4/libunistring-base.m4.
24600         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24601         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24602         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24603         instead of augmenting lib_SOURCES.
24604         * modules/unicase/empty-suffix-context: Likewise.
24605         * modules/unicase/locale-language: Likewise.
24606         * modules/unicase/tolower: Likewise.
24607         * modules/unicase/totitle: Likewise.
24608         * modules/unicase/toupper: Likewise.
24609         * modules/unicase/u8-casecmp: Likewise.
24610         * modules/unicase/u8-casecoll: Likewise.
24611         * modules/unicase/u8-casefold: Likewise.
24612         * modules/unicase/u8-casexfrm: Likewise.
24613         * modules/unicase/u8-ct-casefold: Likewise.
24614         * modules/unicase/u8-ct-tolower: Likewise.
24615         * modules/unicase/u8-ct-totitle: Likewise.
24616         * modules/unicase/u8-ct-toupper: Likewise.
24617         * modules/unicase/u8-is-cased: Likewise.
24618         * modules/unicase/u8-is-casefolded: Likewise.
24619         * modules/unicase/u8-is-lowercase: Likewise.
24620         * modules/unicase/u8-is-titlecase: Likewise.
24621         * modules/unicase/u8-is-uppercase: Likewise.
24622         * modules/unicase/u8-prefix-context: Likewise.
24623         * modules/unicase/u8-suffix-context: Likewise.
24624         * modules/unicase/u8-tolower: Likewise.
24625         * modules/unicase/u8-totitle: Likewise.
24626         * modules/unicase/u8-toupper: Likewise.
24627         * modules/unicase/u16-casecmp: Likewise.
24628         * modules/unicase/u16-casecoll: Likewise.
24629         * modules/unicase/u16-casefold: Likewise.
24630         * modules/unicase/u16-casexfrm: Likewise.
24631         * modules/unicase/u16-ct-casefold: Likewise.
24632         * modules/unicase/u16-ct-tolower: Likewise.
24633         * modules/unicase/u16-ct-totitle: Likewise.
24634         * modules/unicase/u16-ct-toupper: Likewise.
24635         * modules/unicase/u16-is-cased: Likewise.
24636         * modules/unicase/u16-is-casefolded: Likewise.
24637         * modules/unicase/u16-is-lowercase: Likewise.
24638         * modules/unicase/u16-is-titlecase: Likewise.
24639         * modules/unicase/u16-is-uppercase: Likewise.
24640         * modules/unicase/u16-prefix-context: Likewise.
24641         * modules/unicase/u16-suffix-context: Likewise.
24642         * modules/unicase/u16-tolower: Likewise.
24643         * modules/unicase/u16-totitle: Likewise.
24644         * modules/unicase/u16-toupper: Likewise.
24645         * modules/unicase/u32-casecmp: Likewise.
24646         * modules/unicase/u32-casecoll: Likewise.
24647         * modules/unicase/u32-casefold: Likewise.
24648         * modules/unicase/u32-casexfrm: Likewise.
24649         * modules/unicase/u32-ct-casefold: Likewise.
24650         * modules/unicase/u32-ct-tolower: Likewise.
24651         * modules/unicase/u32-ct-totitle: Likewise.
24652         * modules/unicase/u32-ct-toupper: Likewise.
24653         * modules/unicase/u32-is-cased: Likewise.
24654         * modules/unicase/u32-is-casefolded: Likewise.
24655         * modules/unicase/u32-is-lowercase: Likewise.
24656         * modules/unicase/u32-is-titlecase: Likewise.
24657         * modules/unicase/u32-is-uppercase: Likewise.
24658         * modules/unicase/u32-prefix-context: Likewise.
24659         * modules/unicase/u32-suffix-context: Likewise.
24660         * modules/unicase/u32-tolower: Likewise.
24661         * modules/unicase/u32-totitle: Likewise.
24662         * modules/unicase/u32-toupper: Likewise.
24663         * modules/unicase/ulc-casecmp: Likewise.
24664         * modules/unicase/ulc-casecoll: Likewise.
24665         * modules/unicase/ulc-casexfrm: Likewise.
24666         * modules/uniconv/u8-conv-from-enc: Likewise.
24667         * modules/uniconv/u8-conv-to-enc: Likewise.
24668         * modules/uniconv/u8-strconv-from-enc: Likewise.
24669         * modules/uniconv/u8-strconv-from-locale: Likewise.
24670         * modules/uniconv/u8-strconv-to-enc: Likewise.
24671         * modules/uniconv/u8-strconv-to-locale: Likewise.
24672         * modules/uniconv/u16-conv-from-enc: Likewise.
24673         * modules/uniconv/u16-conv-to-enc: Likewise.
24674         * modules/uniconv/u16-strconv-from-enc: Likewise.
24675         * modules/uniconv/u16-strconv-from-locale: Likewise.
24676         * modules/uniconv/u16-strconv-to-enc: Likewise.
24677         * modules/uniconv/u16-strconv-to-locale: Likewise.
24678         * modules/uniconv/u32-conv-from-enc: Likewise.
24679         * modules/uniconv/u32-conv-to-enc: Likewise.
24680         * modules/uniconv/u32-strconv-from-enc: Likewise.
24681         * modules/uniconv/u32-strconv-from-locale: Likewise.
24682         * modules/uniconv/u32-strconv-to-enc: Likewise.
24683         * modules/uniconv/u32-strconv-to-locale: Likewise.
24684         * modules/unictype/bidicategory-byname: Likewise.
24685         * modules/unictype/bidicategory-name: Likewise.
24686         * modules/unictype/bidicategory-of: Likewise.
24687         * modules/unictype/bidicategory-test: Likewise.
24688         * modules/unictype/block-list: Likewise.
24689         * modules/unictype/block-test: Likewise.
24690         * modules/unictype/category-C: Likewise.
24691         * modules/unictype/category-Cc: Likewise.
24692         * modules/unictype/category-Cf: Likewise.
24693         * modules/unictype/category-Cn: Likewise.
24694         * modules/unictype/category-Co: Likewise.
24695         * modules/unictype/category-Cs: Likewise.
24696         * modules/unictype/category-L: Likewise.
24697         * modules/unictype/category-Ll: Likewise.
24698         * modules/unictype/category-Lm: Likewise.
24699         * modules/unictype/category-Lo: Likewise.
24700         * modules/unictype/category-Lt: Likewise.
24701         * modules/unictype/category-Lu: Likewise.
24702         * modules/unictype/category-M: Likewise.
24703         * modules/unictype/category-Mc: Likewise.
24704         * modules/unictype/category-Me: Likewise.
24705         * modules/unictype/category-Mn: Likewise.
24706         * modules/unictype/category-N: Likewise.
24707         * modules/unictype/category-Nd: Likewise.
24708         * modules/unictype/category-Nl: Likewise.
24709         * modules/unictype/category-No: Likewise.
24710         * modules/unictype/category-P: Likewise.
24711         * modules/unictype/category-Pc: Likewise.
24712         * modules/unictype/category-Pd: Likewise.
24713         * modules/unictype/category-Pe: Likewise.
24714         * modules/unictype/category-Pf: Likewise.
24715         * modules/unictype/category-Pi: Likewise.
24716         * modules/unictype/category-Po: Likewise.
24717         * modules/unictype/category-Ps: Likewise.
24718         * modules/unictype/category-S: Likewise.
24719         * modules/unictype/category-Sc: Likewise.
24720         * modules/unictype/category-Sk: Likewise.
24721         * modules/unictype/category-Sm: Likewise.
24722         * modules/unictype/category-So: Likewise.
24723         * modules/unictype/category-Z: Likewise.
24724         * modules/unictype/category-Zl: Likewise.
24725         * modules/unictype/category-Zp: Likewise.
24726         * modules/unictype/category-Zs: Likewise.
24727         * modules/unictype/category-and: Likewise.
24728         * modules/unictype/category-and-not: Likewise.
24729         * modules/unictype/category-byname: Likewise.
24730         * modules/unictype/category-name: Likewise.
24731         * modules/unictype/category-none: Likewise.
24732         * modules/unictype/category-of: Likewise.
24733         * modules/unictype/category-or: Likewise.
24734         * modules/unictype/category-test: Likewise.
24735         * modules/unictype/combining-class: Likewise.
24736         * modules/unictype/ctype-alnum: Likewise.
24737         * modules/unictype/ctype-alpha: Likewise.
24738         * modules/unictype/ctype-blank: Likewise.
24739         * modules/unictype/ctype-cntrl: Likewise.
24740         * modules/unictype/ctype-digit: Likewise.
24741         * modules/unictype/ctype-graph: Likewise.
24742         * modules/unictype/ctype-lower: Likewise.
24743         * modules/unictype/ctype-print: Likewise.
24744         * modules/unictype/ctype-punct: Likewise.
24745         * modules/unictype/ctype-space: Likewise.
24746         * modules/unictype/ctype-upper: Likewise.
24747         * modules/unictype/ctype-xdigit: Likewise.
24748         * modules/unictype/decimal-digit: Likewise.
24749         * modules/unictype/digit: Likewise.
24750         * modules/unictype/mirror: Likewise.
24751         * modules/unictype/numeric: Likewise.
24752         * modules/unictype/property-alphabetic: Likewise.
24753         * modules/unictype/property-ascii-hex-digit: Likewise.
24754         * modules/unictype/property-bidi-arabic-digit: Likewise.
24755         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24756         * modules/unictype/property-bidi-block-separator: Likewise.
24757         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24758         * modules/unictype/property-bidi-common-separator: Likewise.
24759         * modules/unictype/property-bidi-control: Likewise.
24760         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24761         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24762         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24763         * modules/unictype/property-bidi-european-digit: Likewise.
24764         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24765         * modules/unictype/property-bidi-left-to-right: Likewise.
24766         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24767         * modules/unictype/property-bidi-other-neutral: Likewise.
24768         * modules/unictype/property-bidi-pdf: Likewise.
24769         * modules/unictype/property-bidi-segment-separator: Likewise.
24770         * modules/unictype/property-bidi-whitespace: Likewise.
24771         * modules/unictype/property-byname: Likewise.
24772         * modules/unictype/property-combining: Likewise.
24773         * modules/unictype/property-composite: Likewise.
24774         * modules/unictype/property-currency-symbol: Likewise.
24775         * modules/unictype/property-dash: Likewise.
24776         * modules/unictype/property-decimal-digit: Likewise.
24777         * modules/unictype/property-default-ignorable-code-point: Likewise.
24778         * modules/unictype/property-deprecated: Likewise.
24779         * modules/unictype/property-diacritic: Likewise.
24780         * modules/unictype/property-extender: Likewise.
24781         * modules/unictype/property-format-control: Likewise.
24782         * modules/unictype/property-grapheme-base: Likewise.
24783         * modules/unictype/property-grapheme-extend: Likewise.
24784         * modules/unictype/property-grapheme-link: Likewise.
24785         * modules/unictype/property-hex-digit: Likewise.
24786         * modules/unictype/property-hyphen: Likewise.
24787         * modules/unictype/property-id-continue: Likewise.
24788         * modules/unictype/property-id-start: Likewise.
24789         * modules/unictype/property-ideographic: Likewise.
24790         * modules/unictype/property-ids-binary-operator: Likewise.
24791         * modules/unictype/property-ids-trinary-operator: Likewise.
24792         * modules/unictype/property-ignorable-control: Likewise.
24793         * modules/unictype/property-iso-control: Likewise.
24794         * modules/unictype/property-join-control: Likewise.
24795         * modules/unictype/property-left-of-pair: Likewise.
24796         * modules/unictype/property-line-separator: Likewise.
24797         * modules/unictype/property-logical-order-exception: Likewise.
24798         * modules/unictype/property-lowercase: Likewise.
24799         * modules/unictype/property-math: Likewise.
24800         * modules/unictype/property-non-break: Likewise.
24801         * modules/unictype/property-not-a-character: Likewise.
24802         * modules/unictype/property-numeric: Likewise.
24803         * modules/unictype/property-other-alphabetic: Likewise.
24804         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24805         * modules/unictype/property-other-grapheme-extend: Likewise.
24806         * modules/unictype/property-other-id-continue: Likewise.
24807         * modules/unictype/property-other-id-start: Likewise.
24808         * modules/unictype/property-other-lowercase: Likewise.
24809         * modules/unictype/property-other-math: Likewise.
24810         * modules/unictype/property-other-uppercase: Likewise.
24811         * modules/unictype/property-paired-punctuation: Likewise.
24812         * modules/unictype/property-paragraph-separator: Likewise.
24813         * modules/unictype/property-pattern-syntax: Likewise.
24814         * modules/unictype/property-pattern-white-space: Likewise.
24815         * modules/unictype/property-private-use: Likewise.
24816         * modules/unictype/property-punctuation: Likewise.
24817         * modules/unictype/property-quotation-mark: Likewise.
24818         * modules/unictype/property-radical: Likewise.
24819         * modules/unictype/property-sentence-terminal: Likewise.
24820         * modules/unictype/property-soft-dotted: Likewise.
24821         * modules/unictype/property-space: Likewise.
24822         * modules/unictype/property-terminal-punctuation: Likewise.
24823         * modules/unictype/property-test: Likewise.
24824         * modules/unictype/property-titlecase: Likewise.
24825         * modules/unictype/property-unassigned-code-value: Likewise.
24826         * modules/unictype/property-unified-ideograph: Likewise.
24827         * modules/unictype/property-uppercase: Likewise.
24828         * modules/unictype/property-variation-selector: Likewise.
24829         * modules/unictype/property-white-space: Likewise.
24830         * modules/unictype/property-xid-continue: Likewise.
24831         * modules/unictype/property-xid-start: Likewise.
24832         * modules/unictype/property-zero-width: Likewise.
24833         * modules/unictype/scripts: Likewise.
24834         * modules/unictype/syntax-c-ident: Likewise.
24835         * modules/unictype/syntax-c-whitespace: Likewise.
24836         * modules/unictype/syntax-java-ident: Likewise.
24837         * modules/unictype/syntax-java-whitespace: Likewise.
24838         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24839         * modules/unilbrk/u8-width-linebreaks: Likewise.
24840         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24841         * modules/unilbrk/u16-width-linebreaks: Likewise.
24842         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24843         * modules/unilbrk/u32-width-linebreaks: Likewise.
24844         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24845         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24846         * modules/uniname/uniname: Likewise.
24847         * modules/uninorm/canonical-decomposition: Likewise.
24848         * modules/uninorm/composition: Likewise.
24849         * modules/uninorm/decomposing-form: Likewise.
24850         * modules/uninorm/decomposition: Likewise.
24851         * modules/uninorm/filter: Likewise.
24852         * modules/uninorm/nfc: Likewise.
24853         * modules/uninorm/nfd: Likewise.
24854         * modules/uninorm/nfkc: Likewise.
24855         * modules/uninorm/nfkd: Likewise.
24856         * modules/uninorm/u8-normalize: Likewise.
24857         * modules/uninorm/u8-normcmp: Likewise.
24858         * modules/uninorm/u8-normcoll: Likewise.
24859         * modules/uninorm/u8-normxfrm: Likewise.
24860         * modules/uninorm/u16-normalize: Likewise.
24861         * modules/uninorm/u16-normcmp: Likewise.
24862         * modules/uninorm/u16-normcoll: Likewise.
24863         * modules/uninorm/u16-normxfrm: Likewise.
24864         * modules/uninorm/u32-normalize: Likewise.
24865         * modules/uninorm/u32-normcmp: Likewise.
24866         * modules/uninorm/u32-normcoll: Likewise.
24867         * modules/uninorm/u32-normxfrm: Likewise.
24868         * modules/unistdio/u8-asnprintf: Likewise.
24869         * modules/unistdio/u8-asprintf: Likewise.
24870         * modules/unistdio/u8-snprintf: Likewise.
24871         * modules/unistdio/u8-sprintf: Likewise.
24872         * modules/unistdio/u8-u8-asnprintf: Likewise.
24873         * modules/unistdio/u8-u8-asprintf: Likewise.
24874         * modules/unistdio/u8-u8-snprintf: Likewise.
24875         * modules/unistdio/u8-u8-sprintf: Likewise.
24876         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24877         * modules/unistdio/u8-u8-vasprintf: Likewise.
24878         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24879         * modules/unistdio/u8-u8-vsprintf: Likewise.
24880         * modules/unistdio/u8-vasnprintf: Likewise.
24881         * modules/unistdio/u8-vasprintf: Likewise.
24882         * modules/unistdio/u8-vsnprintf: Likewise.
24883         * modules/unistdio/u8-vsprintf: Likewise.
24884         * modules/unistdio/u16-asnprintf: Likewise.
24885         * modules/unistdio/u16-asprintf: Likewise.
24886         * modules/unistdio/u16-snprintf: Likewise.
24887         * modules/unistdio/u16-sprintf: Likewise.
24888         * modules/unistdio/u16-u16-asnprintf: Likewise.
24889         * modules/unistdio/u16-u16-asprintf: Likewise.
24890         * modules/unistdio/u16-u16-snprintf: Likewise.
24891         * modules/unistdio/u16-u16-sprintf: Likewise.
24892         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24893         * modules/unistdio/u16-u16-vasprintf: Likewise.
24894         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24895         * modules/unistdio/u16-u16-vsprintf: Likewise.
24896         * modules/unistdio/u16-vasnprintf: Likewise.
24897         * modules/unistdio/u16-vasprintf: Likewise.
24898         * modules/unistdio/u16-vsnprintf: Likewise.
24899         * modules/unistdio/u16-vsprintf: Likewise.
24900         * modules/unistdio/u32-asnprintf: Likewise.
24901         * modules/unistdio/u32-asprintf: Likewise.
24902         * modules/unistdio/u32-snprintf: Likewise.
24903         * modules/unistdio/u32-sprintf: Likewise.
24904         * modules/unistdio/u32-u32-asnprintf: Likewise.
24905         * modules/unistdio/u32-u32-asprintf: Likewise.
24906         * modules/unistdio/u32-u32-snprintf: Likewise.
24907         * modules/unistdio/u32-u32-sprintf: Likewise.
24908         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24909         * modules/unistdio/u32-u32-vasprintf: Likewise.
24910         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24911         * modules/unistdio/u32-u32-vsprintf: Likewise.
24912         * modules/unistdio/u32-vasnprintf: Likewise.
24913         * modules/unistdio/u32-vasprintf: Likewise.
24914         * modules/unistdio/u32-vsnprintf: Likewise.
24915         * modules/unistdio/u32-vsprintf: Likewise.
24916         * modules/unistdio/ulc-asnprintf: Likewise.
24917         * modules/unistdio/ulc-asprintf: Likewise.
24918         * modules/unistdio/ulc-fprintf: Likewise.
24919         * modules/unistdio/ulc-snprintf: Likewise.
24920         * modules/unistdio/ulc-sprintf: Likewise.
24921         * modules/unistdio/ulc-vasnprintf: Likewise.
24922         * modules/unistdio/ulc-vasprintf: Likewise.
24923         * modules/unistdio/ulc-vfprintf: Likewise.
24924         * modules/unistdio/ulc-vsnprintf: Likewise.
24925         * modules/unistdio/ulc-vsprintf: Likewise.
24926         * modules/unistr/u8-check: Likewise.
24927         * modules/unistr/u8-chr: Likewise.
24928         * modules/unistr/u8-cmp: Likewise.
24929         * modules/unistr/u8-cmp2: Likewise.
24930         * modules/unistr/u8-cpy: Likewise.
24931         * modules/unistr/u8-cpy-alloc: Likewise.
24932         * modules/unistr/u8-endswith: Likewise.
24933         * modules/unistr/u8-mblen: Likewise.
24934         * modules/unistr/u8-mbsnlen: Likewise.
24935         * modules/unistr/u8-mbtouc: Likewise.
24936         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24937         * modules/unistr/u8-mbtoucr: Likewise.
24938         * modules/unistr/u8-move: Likewise.
24939         * modules/unistr/u8-next: Likewise.
24940         * modules/unistr/u8-prev: Likewise.
24941         * modules/unistr/u8-set: Likewise.
24942         * modules/unistr/u8-startswith: Likewise.
24943         * modules/unistr/u8-stpcpy: Likewise.
24944         * modules/unistr/u8-stpncpy: Likewise.
24945         * modules/unistr/u8-strcat: Likewise.
24946         * modules/unistr/u8-strchr: Likewise.
24947         * modules/unistr/u8-strcmp: Likewise.
24948         * modules/unistr/u8-strcoll: Likewise.
24949         * modules/unistr/u8-strcpy: Likewise.
24950         * modules/unistr/u8-strcspn: Likewise.
24951         * modules/unistr/u8-strdup: Likewise.
24952         * modules/unistr/u8-strlen: Likewise.
24953         * modules/unistr/u8-strmblen: Likewise.
24954         * modules/unistr/u8-strmbtouc: Likewise.
24955         * modules/unistr/u8-strncat: Likewise.
24956         * modules/unistr/u8-strncmp: Likewise.
24957         * modules/unistr/u8-strncpy: Likewise.
24958         * modules/unistr/u8-strnlen: Likewise.
24959         * modules/unistr/u8-strpbrk: Likewise.
24960         * modules/unistr/u8-strrchr: Likewise.
24961         * modules/unistr/u8-strspn: Likewise.
24962         * modules/unistr/u8-strstr: Likewise.
24963         * modules/unistr/u8-strtok: Likewise.
24964         * modules/unistr/u8-to-u16: Likewise.
24965         * modules/unistr/u8-to-u32: Likewise.
24966         * modules/unistr/u8-uctomb: Likewise.
24967         * modules/unistr/u16-check: Likewise.
24968         * modules/unistr/u16-chr: Likewise.
24969         * modules/unistr/u16-cmp: Likewise.
24970         * modules/unistr/u16-cmp2: Likewise.
24971         * modules/unistr/u16-cpy: Likewise.
24972         * modules/unistr/u16-cpy-alloc: Likewise.
24973         * modules/unistr/u16-endswith: Likewise.
24974         * modules/unistr/u16-mblen: Likewise.
24975         * modules/unistr/u16-mbsnlen: Likewise.
24976         * modules/unistr/u16-mbtouc: Likewise.
24977         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24978         * modules/unistr/u16-mbtoucr: Likewise.
24979         * modules/unistr/u16-move: Likewise.
24980         * modules/unistr/u16-next: Likewise.
24981         * modules/unistr/u16-prev: Likewise.
24982         * modules/unistr/u16-set: Likewise.
24983         * modules/unistr/u16-startswith: Likewise.
24984         * modules/unistr/u16-stpcpy: Likewise.
24985         * modules/unistr/u16-stpncpy: Likewise.
24986         * modules/unistr/u16-strcat: Likewise.
24987         * modules/unistr/u16-strchr: Likewise.
24988         * modules/unistr/u16-strcmp: Likewise.
24989         * modules/unistr/u16-strcoll: Likewise.
24990         * modules/unistr/u16-strcpy: Likewise.
24991         * modules/unistr/u16-strcspn: Likewise.
24992         * modules/unistr/u16-strdup: Likewise.
24993         * modules/unistr/u16-strlen: Likewise.
24994         * modules/unistr/u16-strmblen: Likewise.
24995         * modules/unistr/u16-strmbtouc: Likewise.
24996         * modules/unistr/u16-strncat: Likewise.
24997         * modules/unistr/u16-strncmp: Likewise.
24998         * modules/unistr/u16-strncpy: Likewise.
24999         * modules/unistr/u16-strnlen: Likewise.
25000         * modules/unistr/u16-strpbrk: Likewise.
25001         * modules/unistr/u16-strrchr: Likewise.
25002         * modules/unistr/u16-strspn: Likewise.
25003         * modules/unistr/u16-strstr: Likewise.
25004         * modules/unistr/u16-strtok: Likewise.
25005         * modules/unistr/u16-to-u32: Likewise.
25006         * modules/unistr/u16-to-u8: Likewise.
25007         * modules/unistr/u16-uctomb: Likewise.
25008         * modules/unistr/u32-check: Likewise.
25009         * modules/unistr/u32-chr: Likewise.
25010         * modules/unistr/u32-cmp: Likewise.
25011         * modules/unistr/u32-cmp2: Likewise.
25012         * modules/unistr/u32-cpy: Likewise.
25013         * modules/unistr/u32-cpy-alloc: Likewise.
25014         * modules/unistr/u32-endswith: Likewise.
25015         * modules/unistr/u32-mblen: Likewise.
25016         * modules/unistr/u32-mbsnlen: Likewise.
25017         * modules/unistr/u32-mbtouc: Likewise.
25018         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25019         * modules/unistr/u32-mbtoucr: Likewise.
25020         * modules/unistr/u32-move: Likewise.
25021         * modules/unistr/u32-next: Likewise.
25022         * modules/unistr/u32-prev: Likewise.
25023         * modules/unistr/u32-set: Likewise.
25024         * modules/unistr/u32-startswith: Likewise.
25025         * modules/unistr/u32-stpcpy: Likewise.
25026         * modules/unistr/u32-stpncpy: Likewise.
25027         * modules/unistr/u32-strcat: Likewise.
25028         * modules/unistr/u32-strchr: Likewise.
25029         * modules/unistr/u32-strcmp: Likewise.
25030         * modules/unistr/u32-strcoll: Likewise.
25031         * modules/unistr/u32-strcpy: Likewise.
25032         * modules/unistr/u32-strcspn: Likewise.
25033         * modules/unistr/u32-strdup: Likewise.
25034         * modules/unistr/u32-strlen: Likewise.
25035         * modules/unistr/u32-strmblen: Likewise.
25036         * modules/unistr/u32-strmbtouc: Likewise.
25037         * modules/unistr/u32-strncat: Likewise.
25038         * modules/unistr/u32-strncmp: Likewise.
25039         * modules/unistr/u32-strncpy: Likewise.
25040         * modules/unistr/u32-strnlen: Likewise.
25041         * modules/unistr/u32-strpbrk: Likewise.
25042         * modules/unistr/u32-strrchr: Likewise.
25043         * modules/unistr/u32-strspn: Likewise.
25044         * modules/unistr/u32-strstr: Likewise.
25045         * modules/unistr/u32-strtok: Likewise.
25046         * modules/unistr/u32-to-u16: Likewise.
25047         * modules/unistr/u32-to-u8: Likewise.
25048         * modules/unistr/u32-uctomb: Likewise.
25049         * modules/uniwbrk/u8-wordbreaks: Likewise.
25050         * modules/uniwbrk/u16-wordbreaks: Likewise.
25051         * modules/uniwbrk/u32-wordbreaks: Likewise.
25052         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25053         * modules/uniwbrk/wordbreak-property: Likewise.
25054         * modules/uniwidth/u8-strwidth: Likewise.
25055         * modules/uniwidth/u8-width: Likewise.
25056         * modules/uniwidth/u16-strwidth: Likewise.
25057         * modules/uniwidth/u16-width: Likewise.
25058         * modules/uniwidth/u32-strwidth: Likewise.
25059         * modules/uniwidth/u32-width: Likewise.
25060         * modules/uniwidth/width: Likewise.
25061         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25062         with $(LIBUNISTRING).
25063         * modules/unicase/ignorable-tests: Likewise.
25064         * modules/unicase/locale-language-tests: Likewise.
25065         * modules/unicase/tolower-tests: Likewise.
25066         * modules/unicase/totitle-tests: Likewise.
25067         * modules/unicase/toupper-tests: Likewise.
25068         * modules/unicase/u8-casecmp-tests: Likewise.
25069         * modules/unicase/u8-casecoll-tests: Likewise.
25070         * modules/unicase/u8-casefold-tests: Likewise.
25071         * modules/unicase/u8-is-cased-tests: Likewise.
25072         * modules/unicase/u8-is-casefolded-tests: Likewise.
25073         * modules/unicase/u8-is-lowercase-tests: Likewise.
25074         * modules/unicase/u8-is-titlecase-tests: Likewise.
25075         * modules/unicase/u8-is-uppercase-tests: Likewise.
25076         * modules/unicase/u8-tolower-tests: Likewise.
25077         * modules/unicase/u8-totitle-tests: Likewise.
25078         * modules/unicase/u8-toupper-tests: Likewise.
25079         * modules/unicase/u16-casecmp-tests: Likewise.
25080         * modules/unicase/u16-casecoll-tests: Likewise.
25081         * modules/unicase/u16-casefold-tests: Likewise.
25082         * modules/unicase/u16-is-cased-tests: Likewise.
25083         * modules/unicase/u16-is-casefolded-tests: Likewise.
25084         * modules/unicase/u16-is-lowercase-tests: Likewise.
25085         * modules/unicase/u16-is-titlecase-tests: Likewise.
25086         * modules/unicase/u16-is-uppercase-tests: Likewise.
25087         * modules/unicase/u16-tolower-tests: Likewise.
25088         * modules/unicase/u16-totitle-tests: Likewise.
25089         * modules/unicase/u16-toupper-tests: Likewise.
25090         * modules/unicase/u32-casecmp-tests: Likewise.
25091         * modules/unicase/u32-casecoll-tests: Likewise.
25092         * modules/unicase/u32-casefold-tests: Likewise.
25093         * modules/unicase/u32-is-cased-tests: Likewise.
25094         * modules/unicase/u32-is-casefolded-tests: Likewise.
25095         * modules/unicase/u32-is-lowercase-tests: Likewise.
25096         * modules/unicase/u32-is-titlecase-tests: Likewise.
25097         * modules/unicase/u32-is-uppercase-tests: Likewise.
25098         * modules/unicase/u32-tolower-tests: Likewise.
25099         * modules/unicase/u32-totitle-tests: Likewise.
25100         * modules/unicase/u32-toupper-tests: Likewise.
25101         * modules/unicase/ulc-casecmp-tests: Likewise.
25102         * modules/unicase/ulc-casecoll-tests: Likewise.
25103         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25104         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25105         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25106         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25107         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25108         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25109         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25110         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25111         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25112         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25113         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25114         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25115         * modules/unictype/bidicategory-byname-tests: Likewise.
25116         * modules/unictype/bidicategory-name-tests: Likewise.
25117         * modules/unictype/bidicategory-of-tests: Likewise.
25118         * modules/unictype/bidicategory-test-tests: Likewise.
25119         * modules/unictype/block-list-tests: Likewise.
25120         * modules/unictype/block-of-tests: Likewise.
25121         * modules/unictype/block-test-tests: Likewise.
25122         * modules/unictype/category-C-tests: Likewise.
25123         * modules/unictype/category-Cc-tests: Likewise.
25124         * modules/unictype/category-Cf-tests: Likewise.
25125         * modules/unictype/category-Cn-tests: Likewise.
25126         * modules/unictype/category-Co-tests: Likewise.
25127         * modules/unictype/category-Cs-tests: Likewise.
25128         * modules/unictype/category-L-tests: Likewise.
25129         * modules/unictype/category-Ll-tests: Likewise.
25130         * modules/unictype/category-Lm-tests: Likewise.
25131         * modules/unictype/category-Lo-tests: Likewise.
25132         * modules/unictype/category-Lt-tests: Likewise.
25133         * modules/unictype/category-Lu-tests: Likewise.
25134         * modules/unictype/category-M-tests: Likewise.
25135         * modules/unictype/category-Mc-tests: Likewise.
25136         * modules/unictype/category-Me-tests: Likewise.
25137         * modules/unictype/category-Mn-tests: Likewise.
25138         * modules/unictype/category-N-tests: Likewise.
25139         * modules/unictype/category-Nd-tests: Likewise.
25140         * modules/unictype/category-Nl-tests: Likewise.
25141         * modules/unictype/category-No-tests: Likewise.
25142         * modules/unictype/category-P-tests: Likewise.
25143         * modules/unictype/category-Pc-tests: Likewise.
25144         * modules/unictype/category-Pd-tests: Likewise.
25145         * modules/unictype/category-Pe-tests: Likewise.
25146         * modules/unictype/category-Pf-tests: Likewise.
25147         * modules/unictype/category-Pi-tests: Likewise.
25148         * modules/unictype/category-Po-tests: Likewise.
25149         * modules/unictype/category-Ps-tests: Likewise.
25150         * modules/unictype/category-S-tests: Likewise.
25151         * modules/unictype/category-Sc-tests: Likewise.
25152         * modules/unictype/category-Sk-tests: Likewise.
25153         * modules/unictype/category-Sm-tests: Likewise.
25154         * modules/unictype/category-So-tests: Likewise.
25155         * modules/unictype/category-Z-tests: Likewise.
25156         * modules/unictype/category-Zl-tests: Likewise.
25157         * modules/unictype/category-Zp-tests: Likewise.
25158         * modules/unictype/category-Zs-tests: Likewise.
25159         * modules/unictype/category-and-not-tests: Likewise.
25160         * modules/unictype/category-and-tests: Likewise.
25161         * modules/unictype/category-byname-tests: Likewise.
25162         * modules/unictype/category-name-tests: Likewise.
25163         * modules/unictype/category-none-tests: Likewise.
25164         * modules/unictype/category-of-tests: Likewise.
25165         * modules/unictype/category-or-tests: Likewise.
25166         * modules/unictype/category-test-withtable-tests: Likewise.
25167         * modules/unictype/combining-class-tests: Likewise.
25168         * modules/unictype/ctype-alnum-tests: Likewise.
25169         * modules/unictype/ctype-alpha-tests: Likewise.
25170         * modules/unictype/ctype-blank-tests: Likewise.
25171         * modules/unictype/ctype-cntrl-tests: Likewise.
25172         * modules/unictype/ctype-digit-tests: Likewise.
25173         * modules/unictype/ctype-graph-tests: Likewise.
25174         * modules/unictype/ctype-lower-tests: Likewise.
25175         * modules/unictype/ctype-print-tests: Likewise.
25176         * modules/unictype/ctype-punct-tests: Likewise.
25177         * modules/unictype/ctype-space-tests: Likewise.
25178         * modules/unictype/ctype-upper-tests: Likewise.
25179         * modules/unictype/ctype-xdigit-tests: Likewise.
25180         * modules/unictype/decimal-digit-tests: Likewise.
25181         * modules/unictype/digit-tests: Likewise.
25182         * modules/unictype/mirror-tests: Likewise.
25183         * modules/unictype/numeric-tests: Likewise.
25184         * modules/unictype/property-alphabetic-tests: Likewise.
25185         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25186         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25187         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25188         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25189         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25190         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25191         * modules/unictype/property-bidi-control-tests: Likewise.
25192         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25193         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25194         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25195         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25196         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25197         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25198         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25199         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25200         * modules/unictype/property-bidi-pdf-tests: Likewise.
25201         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25202         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25203         * modules/unictype/property-byname-tests: Likewise.
25204         * modules/unictype/property-combining-tests: Likewise.
25205         * modules/unictype/property-composite-tests: Likewise.
25206         * modules/unictype/property-currency-symbol-tests: Likewise.
25207         * modules/unictype/property-dash-tests: Likewise.
25208         * modules/unictype/property-decimal-digit-tests: Likewise.
25209         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25210         * modules/unictype/property-deprecated-tests: Likewise.
25211         * modules/unictype/property-diacritic-tests: Likewise.
25212         * modules/unictype/property-extender-tests: Likewise.
25213         * modules/unictype/property-format-control-tests: Likewise.
25214         * modules/unictype/property-grapheme-base-tests: Likewise.
25215         * modules/unictype/property-grapheme-extend-tests: Likewise.
25216         * modules/unictype/property-grapheme-link-tests: Likewise.
25217         * modules/unictype/property-hex-digit-tests: Likewise.
25218         * modules/unictype/property-hyphen-tests: Likewise.
25219         * modules/unictype/property-id-continue-tests: Likewise.
25220         * modules/unictype/property-id-start-tests: Likewise.
25221         * modules/unictype/property-ideographic-tests: Likewise.
25222         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25223         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25224         * modules/unictype/property-ignorable-control-tests: Likewise.
25225         * modules/unictype/property-iso-control-tests: Likewise.
25226         * modules/unictype/property-join-control-tests: Likewise.
25227         * modules/unictype/property-left-of-pair-tests: Likewise.
25228         * modules/unictype/property-line-separator-tests: Likewise.
25229         * modules/unictype/property-logical-order-exception-tests: Likewise.
25230         * modules/unictype/property-lowercase-tests: Likewise.
25231         * modules/unictype/property-math-tests: Likewise.
25232         * modules/unictype/property-non-break-tests: Likewise.
25233         * modules/unictype/property-not-a-character-tests: Likewise.
25234         * modules/unictype/property-numeric-tests: Likewise.
25235         * modules/unictype/property-other-alphabetic-tests: Likewise.
25236         * modules/unictype/property-other-default-ignorable-code-point-tests:
25237         Likewise.
25238         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25239         * modules/unictype/property-other-id-continue-tests: Likewise.
25240         * modules/unictype/property-other-id-start-tests: Likewise.
25241         * modules/unictype/property-other-lowercase-tests: Likewise.
25242         * modules/unictype/property-other-math-tests: Likewise.
25243         * modules/unictype/property-other-uppercase-tests: Likewise.
25244         * modules/unictype/property-paired-punctuation-tests: Likewise.
25245         * modules/unictype/property-paragraph-separator-tests: Likewise.
25246         * modules/unictype/property-pattern-syntax-tests: Likewise.
25247         * modules/unictype/property-pattern-white-space-tests: Likewise.
25248         * modules/unictype/property-private-use-tests: Likewise.
25249         * modules/unictype/property-punctuation-tests: Likewise.
25250         * modules/unictype/property-quotation-mark-tests: Likewise.
25251         * modules/unictype/property-radical-tests: Likewise.
25252         * modules/unictype/property-sentence-terminal-tests: Likewise.
25253         * modules/unictype/property-soft-dotted-tests: Likewise.
25254         * modules/unictype/property-space-tests: Likewise.
25255         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25256         * modules/unictype/property-test-tests: Likewise.
25257         * modules/unictype/property-titlecase-tests: Likewise.
25258         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25259         * modules/unictype/property-unified-ideograph-tests: Likewise.
25260         * modules/unictype/property-uppercase-tests: Likewise.
25261         * modules/unictype/property-variation-selector-tests: Likewise.
25262         * modules/unictype/property-white-space-tests: Likewise.
25263         * modules/unictype/property-xid-continue-tests: Likewise.
25264         * modules/unictype/property-xid-start-tests: Likewise.
25265         * modules/unictype/property-zero-width-tests: Likewise.
25266         * modules/unictype/scripts-tests: Likewise.
25267         * modules/unictype/syntax-c-ident-tests: Likewise.
25268         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25269         * modules/unictype/syntax-java-ident-tests: Likewise.
25270         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25271         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25272         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25273         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25274         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25275         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25276         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25277         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25278         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25279         * modules/uniname/uniname-tests: Likewise.
25280         * modules/uninorm/canonical-decomposition-tests: Likewise.
25281         * modules/uninorm/compat-decomposition-tests: Likewise.
25282         * modules/uninorm/composition-tests: Likewise.
25283         * modules/uninorm/decomposing-form-tests: Likewise.
25284         * modules/uninorm/decomposition-tests: Likewise.
25285         * modules/uninorm/filter-tests: Likewise.
25286         * modules/uninorm/nfc-tests: Likewise.
25287         * modules/uninorm/nfd-tests: Likewise.
25288         * modules/uninorm/nfkc-tests: Likewise.
25289         * modules/uninorm/nfkd-tests: Likewise.
25290         * modules/uninorm/u8-normcmp-tests: Likewise.
25291         * modules/uninorm/u8-normcoll-tests: Likewise.
25292         * modules/uninorm/u16-normcmp-tests: Likewise.
25293         * modules/uninorm/u16-normcoll-tests: Likewise.
25294         * modules/uninorm/u32-normcmp-tests: Likewise.
25295         * modules/uninorm/u32-normcoll-tests: Likewise.
25296         * modules/unistdio/u8-asnprintf-tests: Likewise.
25297         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25298         * modules/unistdio/u8-vasprintf-tests: Likewise.
25299         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25300         * modules/unistdio/u8-vsprintf-tests: Likewise.
25301         * modules/unistdio/u16-asnprintf-tests: Likewise.
25302         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25303         * modules/unistdio/u16-vasprintf-tests: Likewise.
25304         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25305         * modules/unistdio/u16-vsprintf-tests: Likewise.
25306         * modules/unistdio/u32-asnprintf-tests: Likewise.
25307         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25308         * modules/unistdio/u32-vasprintf-tests: Likewise.
25309         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25310         * modules/unistdio/u32-vsprintf-tests: Likewise.
25311         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25312         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25313         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25314         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25315         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25316         * modules/unistr/u8-check-tests: Likewise.
25317         * modules/unistr/u8-chr-tests: Likewise.
25318         * modules/unistr/u8-cmp-tests: Likewise.
25319         * modules/unistr/u8-cmp2-tests: Likewise.
25320         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25321         * modules/unistr/u8-cpy-tests: Likewise.
25322         * modules/unistr/u8-mblen-tests: Likewise.
25323         * modules/unistr/u8-mbsnlen-tests: Likewise.
25324         * modules/unistr/u8-mbtouc-tests: Likewise.
25325         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25326         * modules/unistr/u8-mbtoucr-tests: Likewise.
25327         * modules/unistr/u8-move-tests: Likewise.
25328         * modules/unistr/u8-next-tests: Likewise.
25329         * modules/unistr/u8-prev-tests: Likewise.
25330         * modules/unistr/u8-set-tests: Likewise.
25331         * modules/unistr/u8-stpcpy-tests: Likewise.
25332         * modules/unistr/u8-stpncpy-tests: Likewise.
25333         * modules/unistr/u8-strcat-tests: Likewise.
25334         * modules/unistr/u8-strcmp-tests: Likewise.
25335         * modules/unistr/u8-strcoll-tests: Likewise.
25336         * modules/unistr/u8-strcpy-tests: Likewise.
25337         * modules/unistr/u8-strdup-tests: Likewise.
25338         * modules/unistr/u8-strlen-tests: Likewise.
25339         * modules/unistr/u8-strmblen-tests: Likewise.
25340         * modules/unistr/u8-strmbtouc-tests: Likewise.
25341         * modules/unistr/u8-strncat-tests: Likewise.
25342         * modules/unistr/u8-strncmp-tests: Likewise.
25343         * modules/unistr/u8-strncpy-tests: Likewise.
25344         * modules/unistr/u8-strnlen-tests: Likewise.
25345         * modules/unistr/u8-to-u16-tests: Likewise.
25346         * modules/unistr/u8-to-u32-tests: Likewise.
25347         * modules/unistr/u8-uctomb-tests: Likewise.
25348         * modules/unistr/u16-check-tests: Likewise.
25349         * modules/unistr/u16-chr-tests: Likewise.
25350         * modules/unistr/u16-cmp-tests: Likewise.
25351         * modules/unistr/u16-cmp2-tests: Likewise.
25352         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25353         * modules/unistr/u16-cpy-tests: Likewise.
25354         * modules/unistr/u16-mblen-tests: Likewise.
25355         * modules/unistr/u16-mbsnlen-tests: Likewise.
25356         * modules/unistr/u16-mbtouc-tests: Likewise.
25357         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25358         * modules/unistr/u16-mbtoucr-tests: Likewise.
25359         * modules/unistr/u16-move-tests: Likewise.
25360         * modules/unistr/u16-next-tests: Likewise.
25361         * modules/unistr/u16-prev-tests: Likewise.
25362         * modules/unistr/u16-set-tests: Likewise.
25363         * modules/unistr/u16-stpcpy-tests: Likewise.
25364         * modules/unistr/u16-stpncpy-tests: Likewise.
25365         * modules/unistr/u16-strcat-tests: Likewise.
25366         * modules/unistr/u16-strcmp-tests: Likewise.
25367         * modules/unistr/u16-strcoll-tests: Likewise.
25368         * modules/unistr/u16-strcpy-tests: Likewise.
25369         * modules/unistr/u16-strdup-tests: Likewise.
25370         * modules/unistr/u16-strlen-tests: Likewise.
25371         * modules/unistr/u16-strmblen-tests: Likewise.
25372         * modules/unistr/u16-strmbtouc-tests: Likewise.
25373         * modules/unistr/u16-strncat-tests: Likewise.
25374         * modules/unistr/u16-strncmp-tests: Likewise.
25375         * modules/unistr/u16-strncpy-tests: Likewise.
25376         * modules/unistr/u16-strnlen-tests: Likewise.
25377         * modules/unistr/u16-to-u32-tests: Likewise.
25378         * modules/unistr/u16-to-u8-tests: Likewise.
25379         * modules/unistr/u16-uctomb-tests: Likewise.
25380         * modules/unistr/u32-check-tests: Likewise.
25381         * modules/unistr/u32-chr-tests: Likewise.
25382         * modules/unistr/u32-cmp-tests: Likewise.
25383         * modules/unistr/u32-cmp2-tests: Likewise.
25384         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25385         * modules/unistr/u32-cpy-tests: Likewise.
25386         * modules/unistr/u32-mblen-tests: Likewise.
25387         * modules/unistr/u32-mbsnlen-tests: Likewise.
25388         * modules/unistr/u32-mbtouc-tests: Likewise.
25389         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25390         * modules/unistr/u32-mbtoucr-tests: Likewise.
25391         * modules/unistr/u32-move-tests: Likewise.
25392         * modules/unistr/u32-next-tests: Likewise.
25393         * modules/unistr/u32-prev-tests: Likewise.
25394         * modules/unistr/u32-set-tests: Likewise.
25395         * modules/unistr/u32-stpcpy-tests: Likewise.
25396         * modules/unistr/u32-stpncpy-tests: Likewise.
25397         * modules/unistr/u32-strcat-tests: Likewise.
25398         * modules/unistr/u32-strcmp-tests: Likewise.
25399         * modules/unistr/u32-strcoll-tests: Likewise.
25400         * modules/unistr/u32-strcpy-tests: Likewise.
25401         * modules/unistr/u32-strdup-tests: Likewise.
25402         * modules/unistr/u32-strlen-tests: Likewise.
25403         * modules/unistr/u32-strmblen-tests: Likewise.
25404         * modules/unistr/u32-strmbtouc-tests: Likewise.
25405         * modules/unistr/u32-strncat-tests: Likewise.
25406         * modules/unistr/u32-strncmp-tests: Likewise.
25407         * modules/unistr/u32-strncpy-tests: Likewise.
25408         * modules/unistr/u32-strnlen-tests: Likewise.
25409         * modules/unistr/u32-to-u16-tests: Likewise.
25410         * modules/unistr/u32-to-u8-tests: Likewise.
25411         * modules/unistr/u32-uctomb-tests: Likewise.
25412         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25413         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25414         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25415         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25416         * modules/uniwidth/u8-strwidth-tests: Likewise.
25417         * modules/uniwidth/u8-width-tests: Likewise.
25418         * modules/uniwidth/u16-strwidth-tests: Likewise.
25419         * modules/uniwidth/u16-width-tests: Likewise.
25420         * modules/uniwidth/u32-strwidth-tests: Likewise.
25421         * modules/uniwidth/u32-width-tests: Likewise.
25422         * modules/uniwidth/width-tests: Likewise.
25423
25424 2010-05-18  Richard Jones  <rjones@redhat.com>
25425
25426         doc: users.txt: list hivex
25427         * users.txt: Add hivex.
25428
25429 2010-05-18  Richard Jones  <rjones@redhat.com>
25430
25431         doc: users.txt: list febootstrap
25432         * users.txt: Add febootstrap.
25433
25434 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25435
25436         bootstrap: fix an error when gnulib is not used as a git submodule
25437         * build-aux/bootstrap (gnulib_path): If its length is zero then
25438         assign "gnulib" to it.
25439         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25440
25441 2010-05-16  Bruno Haible  <bruno@clisp.org>
25442
25443         Avoid autoconf warnings about AM_ICONV.
25444         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25445         2.64.
25446
25447 2010-05-16  Bruno Haible  <bruno@clisp.org>
25448
25449         absolute-header: Make the macro usable in more situations.
25450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25451         from gl_ABSOLUTE_HEADER.
25452         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25453
25454 2010-05-16  James Youngman  <jay@gnu.org>
25455
25456         doc: update users.txt
25457         * users.txt: Add CSSC.
25458
25459 2010-05-16  Jim Meyering  <meyering@redhat.com>
25460
25461         init.sh: fix an error in the previous change; add more comments
25462         * tests/init.sh: Compare exit code in loop against 9, not 2.
25463         Patch by Bruno Haible.
25464         Make the two tests more similar by adding an empty "then" clause.
25465         Add comments.
25466
25467         init.sh: avoid unnecessary shell re-exec
25468         * tests/init.sh: Improve the re-exec-required check to first test the
25469         current shell.  If it passes the test, do not search for a shell that
25470         does pass, and do not re-exec.  This test is particularly contorted to
25471         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25472         of $(...) evokes a syntax error and causes immediate shell exit with
25473         status 2.  Bruno Haible reported that the re-exec made it impossible
25474         to single-step through any init.sh-using script.
25475
25476 2010-05-16  Bruno Haible  <bruno@clisp.org>
25477
25478         Fix collision between gnulib's and libintl's printf replacements.
25479         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25480         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25481         (printf): When using GNU C, map the __printf__ function to rpl_printf
25482         via __asm__. When not using GNU C, define rpl_printf instead of
25483         __printf__.
25484         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25485         commit.
25486         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25487         commit.
25488         * m4/asm-underscore.m4: New file.
25489         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25490         * modules/stdio (Files): Add m4/asm-underscore.m4.
25491         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25492         Reported by Ben Pfaff.
25493
25494 2010-05-16  Bruno Haible  <bruno@clisp.org>
25495
25496         verify: Avoid skipping the test on openSUSE 11.0.
25497         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25498
25499 2010-05-13  Bruno Haible  <bruno@clisp.org>
25500
25501         Avoid useless warnings from G++.
25502         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25503         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25504         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25505
25506 2010-05-11  Jim Meyering  <meyering@redhat.com>
25507
25508         maint.mk: tweak preceding change
25509         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25510         regexps tighter by anchoring at EOL, and make the new group "shy"
25511         for slightly decreased overhead.
25512
25513 2010-05-11  Eric Blake  <eblake@redhat.com>
25514
25515         maint.mk: gnulib doesn't guarantee NSIG
25516         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25517
25518 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25519
25520         test-pwrite.c: Remove unused variable declaration.
25521         * tests/test-pwrite.c (main): Remove read_buf declaration.
25522
25523         Remove useless test-pwrite.sh file.
25524         * tests/test-pwrite.sh: Delete file.
25525         * modules/pwrite-tests: Remove references.
25526         Reported by Bruno Haible.
25527
25528 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25529
25530         init.sh: fix a typo
25531         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25532
25533 2010-05-10  Jim Meyering  <meyering@redhat.com>
25534
25535         maint.mk: avoid using a temporary file in the always-defined-macros check
25536         * top/maint.mk (.re-defmac): Remove rule.
25537         (gl_trap_): Remove definition.
25538         (sc_prohibit_always-defined_macros): Rewrite not to create and
25539         depend on a temporary file.  Instead, depend on GNU grep's ability
25540         to read a list of regular expressions from stdin when given "-f -".
25541
25542 2010-05-09  Bruno Haible  <bruno@clisp.org>
25543
25544         Update to GNU gettext 0.18, part 1.
25545         * m4/gettext.m4: Update to GNU gettext 0.18.
25546         * m4/intl.m4: Likewise.
25547         * m4/po.m4: Likewise.
25548         * modules/gettext (Files): Add m4/fcntl-o.m4.
25549         (configure.ac): Require gettext infrastructure from version 0.18.
25550
25551 2010-05-09  Jim Meyering  <meyering@redhat.com>
25552
25553         init.sh: enable MALLOC_PERTURB_
25554         * tests/init.sh: Enable glibc's malloc-perturbing option.
25555
25556         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25557         With my recent change in init.sh from the two-line form:
25558             -#   : ${srcdir=.}
25559             -#   . "$srcdir/init.sh"; path_prepend_ .
25560             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25561         I noticed that using the one-line form would cause this test
25562         to fail with a false-positive, or to stop working altogether,
25563         depending on whether help-version changed or all the tests did.
25564         * top/maint.mk (_hv_regex): Remove this definition.
25565         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25566         (_hv_regex_strong): Use a stronger regex to check for conformance.
25567         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25568         Give a separate diagnostic for lack of conforming use.
25569
25570         maint.mk: prohibit definition of symbols defined by gnulib
25571         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25572         definition of symbols defined by gnulib.
25573
25574 2010-05-09  Bruno Haible  <bruno@clisp.org>
25575
25576         acl: Avoid test failure on Cygwin-hosted mingw.
25577         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25578
25579 2010-05-09  Bruno Haible  <bruno@clisp.org>
25580
25581         error: Use system's fcntl function.
25582         * lib/error.c (fcntl): Undefine.
25583
25584 2010-05-09  Jim Meyering  <meyering@redhat.com>
25585
25586         verify: adjust formatting to be more consistent
25587         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25588         argument-list '('s, and after one comma.
25589
25590 2010-05-09  Bruno Haible  <bruno@clisp.org>
25591
25592         error: More reliable output on mingw.
25593         * lib/error.c: Include <windows.h>.
25594         (is_open): New function.
25595         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25596         defined.
25597
25598 2010-05-09  Bruno Haible  <bruno@clisp.org>
25599
25600         vasnprintf: Fix syntax errors in libintl build on mingw.
25601         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25602         pad_ourselves and prec_ourselves after use.
25603
25604 2010-05-08  Bruno Haible  <bruno@clisp.org>
25605
25606         * lib/config.charset: Update comments for Cygwin 1.7.
25607         * lib/localcharset.c: Likewise.
25608
25609 2010-05-07  Jim Meyering  <meyering@redhat.com>
25610
25611         init.sh: improve comments
25612         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25613         . "${srcdir=.}/init.sh"; path_prepend_ .
25614         Add a note about path_prepend_ and the alternative of using
25615         TESTS_ENVIRONMENT.
25616
25617 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25618
25619         exclude: Unescape hashed patterns in wildcard mode.
25620         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25621         to the hash list.
25622         * tests/test-exclude8.sh: New test case.
25623         * modules/exclude-tests: Add new test.
25624
25625 2010-05-05  Eric Blake  <eblake@redhat.com>
25626
25627         verify: automate tests
25628         * modules/verify-tests: New module.
25629         * tests/test-verify.sh: New file.
25630         * tests/test-verify.c: Guard each negative test with a unique id.
25631         Also avoid warning about unused left hand of comma expressions.
25632
25633 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25634
25635         Further improvements to verify.h, suggested by Eric Blake.
25636         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25637         the GL_* versions, to avoid collision with OpenGL.
25638         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25639         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25640         than testing merely whether it's defined.
25641
25642         Modify verify.h to pacify gcc -Wredundant_decls.
25643         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25644         These use the prefix "GL_" since they're likely to be useful elsewhere.
25645         We may need to break them out into a different .h file.
25646         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25647         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25648         of verify_function__.
25649
25650 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25651
25652         Tests for module pwrite.
25653         * modules/pwrite-tests: New file.
25654         * tests/test-pwrite.sh: New file.
25655         * tests/test-pwrite.c: New file.
25656
25657         New module pwrite.
25658         * lib/unistd.in.h (pwrite): New declaration.
25659         * lib/pwrite.c: New file, from glibc with modifications.
25660         * m4/pwrite.m4: New file.
25661         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25662         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25663         REPLACE_PWRITE.
25664         * modules/pwrite: New file.
25665         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25666         REPLACE_PWRITE.
25667         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25668         * doc/posix-functions/pwrite.texi: Mention the new module.
25669
25670 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25671
25672         pread: Update documentation.
25673         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25674
25675 2010-05-04  Eric Blake  <eblake@redhat.com>
25676
25677         docs: update cygwin progress
25678         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25679         this bug.
25680         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25681         Added in cygwin 1.7.2.
25682         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25683         Likewise.
25684         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25685         Likewise.
25686         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25687         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25688         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25689         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25690         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25691         Mention nproc module.
25692         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25693         bug in cygwin 1.7.5 addition.
25694         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25695         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25696         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25697         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25698         1.7.5.
25699         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25700         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25701         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25702         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25703         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25704         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25705         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25706         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25707         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25708         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25709         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25710         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25711         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25712         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25713         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25714         Likewise.
25715         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25716         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25717         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25718         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25719         Likewise.
25720         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25721         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25722         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25723         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25724         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25725         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25726         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25727         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25728         Likewise.
25729         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25730         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25731         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25732         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25733         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25734         Likewise.
25735         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25736         Likewise.
25737         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25738         Likewise.
25739         * doc/glibc-functions/xdrrec_endofrecord.texi
25740         (xdrrec_endofrecord): Likewise.
25741         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25742         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25743         Likewise.
25744         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25745         Likewise.
25746
25747 2010-05-04  Jim Meyering  <meyering@redhat.com>
25748
25749         gendocs.sh: make its "-s FILE" option more useful
25750         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25751         $PACKAGE to reflect the probably-different basename of "FILE".
25752
25753 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25754
25755         bootstrap: don't ignore download_po_files failure
25756         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25757         failure.
25758
25759 2010-05-03  Jim Meyering  <meyering@redhat.com>
25760
25761         maint.mk: allow to pass options to gendocs.sh
25762         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25763         (gendocs_options_): New overridable variable.
25764
25765         gnu-web-doc-update: don't ignore configure or build failure
25766         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25767
25768         announce-gen: backslash-escape '@'s in --help output
25769         * build-aux/announce-gen: Fix syntax errors.
25770
25771         maint.mk, announce-gen: allow project-specific announcement mail headers
25772         * top/maint.mk (translation_project_): Define default.
25773         (announcement_Cc_, announcement_mail_headers_): Likewise.
25774         (announcement): Invoke announce-gen with new --mail-headers option.
25775         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25776
25777         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25778         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25779         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25780         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25781         line in the "err2" output file when running "make check" in verbose
25782         mode (i.e., with set -x enabled).
25783
25784 2010-05-03  Bruno Haible  <bruno@clisp.org>
25785
25786         wctob: Fix for weird platforms.
25787         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25788         argument value.
25789
25790 2010-05-03  Jim Meyering  <meyering@redhat.com>
25791
25792         maint.mk: prohibit unwarranted use of <strings.h>
25793         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25794         strings.h in a file that does not also use strcasecmp, strncasecmp,
25795         ffs or ffsll.
25796
25797         maint.mk: remove obsolete comments
25798         * top/maint.mk: Remove stale, commented-out rules.
25799
25800 2010-05-02  Bruno Haible  <bruno@clisp.org>
25801
25802         wcwidth: Declare also when it's aliased.
25803         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25804         macro.
25805
25806 2010-05-02  Bruno Haible  <bruno@clisp.org>
25807
25808         Fix regression from 2010-04-25.
25809         * gnulib-tool (func_modules_transitive_closure): Check the status of
25810         all modules, not only of the tests that are of the form foo-tests where
25811         foo is a module.
25812
25813 2010-05-02  Bruno Haible  <bruno@clisp.org>
25814
25815         wctob: Work around nasty Cygwin 1.7.2 bug.
25816         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25817         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25818
25819 2010-05-01  Bruno Haible  <bruno@clisp.org>
25820
25821         fpurge: Sharper test.
25822         * tests/test-fpurge.c (main): Add one more ftell check.
25823         * modules/fpurge-tests (Depends-on): Add ftell.
25824         Suggested by Eric Blake.
25825
25826 2010-05-01  Bruno Haible  <bruno@clisp.org>
25827
25828         ftello: Another test.
25829         * tests/test-ftello3.c: New file.
25830         * modules/ftello-tests (Files): Add it.
25831         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25832         MOSTLYCLEANFILES.
25833
25834         ftell: Another test.
25835         * tests/test-ftell3.c: New file.
25836         * modules/ftell-tests (Files): Add it.
25837         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25838         MOSTLYCLEANFILES.
25839
25840 2010-05-01  Bruno Haible  <bruno@clisp.org>
25841
25842         ftell, ftello: Work around Solaris bug.
25843         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25844         * lib/ftello.c: Include stdio-impl.h.
25845         (ftello): On Solaris, when _IOWRT is set, compute the result without
25846         looking at _IOREAD.
25847         * modules/ftello (Files): Add lib/stdio-impl.h.
25848         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25849         * doc/posix-functions/ftello.texi: Likewise.
25850         Reported by Eric Blake.
25851
25852 2010-05-01  Bruno Haible  <bruno@clisp.org>
25853
25854         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25855         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25856         the _IOWRT flag is also set.
25857
25858 2010-05-01  Bruno Haible  <bruno@clisp.org>
25859
25860         Fix doc about a HP-UX stdio bug.
25861         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25862         * doc/posix-functions/ftello.texi: Likewise.
25863
25864 2010-05-01  Bruno Haible  <bruno@clisp.org>
25865
25866         lseek test: Fix failure on Solaris.
25867         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25868         output.
25869
25870 2010-04-30  Jim Meyering  <meyering@redhat.com>
25871
25872         bootstrap: don't ignore failure to generate po*/Makevars
25873         * build-aux/bootstrap (with_gettext): Don't ignore failure
25874         to create po/Makevars or runtime-po/Makevars.
25875
25876 2010-04-29  Eric Blake  <eblake@redhat.com>
25877
25878         headers: relax license to LGPLv2+
25879         * modules/fcntl-h (License): Relax license.
25880         * modules/getopt-posix (License): Likewise.
25881         * modules/locale (License): Likewise.
25882         * modules/math (License): Likewise.
25883         * modules/pty (License): Likewise.
25884         * modules/sched (License): Likewise.
25885         * modules/search (License): Likewise.
25886         * modules/spawn (License): Likewise.
25887         * modules/stdarg (License): Likewise.
25888         * modules/sysexits (License): Likewise.
25889
25890 2010-04-29  Jim Meyering  <meyering@redhat.com>
25891
25892         inttypes: relax license to LGPLv2+
25893         * modules/inttypes (License): Relax license.
25894
25895 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25896
25897         * top/maint.mk (indent): Run twice to produce idempotent results.
25898
25899 2010-04-28  Bruno Haible  <bruno@clisp.org>
25900
25901         getdate: Generate getdate.c in the source directory.
25902         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25903         MOSTLYCLEANFILES.
25904         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25905
25906 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25907
25908         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25909         is not declared as a const *; avoid warnings in that case.
25910
25911 2010-04-28  Eric Blake  <eblake@redhat.com>
25912
25913         canonicalize-lgpl: avoid compiler warning
25914         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25915         declaration' / 'extraneous semicolon' warning with some compilers.
25916         Reported by Andreas Gruenbacher.
25917
25918 2010-04-28  Jim Meyering  <meyering@redhat.com>
25919
25920         init.sh: ensure a more reliable exit status when exiting via trap
25921         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25922         Inspired by patches from Dmitry V. Levin.
25923         Also trap on signal 3 (SIGQUIT).
25924
25925 2010-04-27  Bruno Haible  <bruno@clisp.org>
25926
25927         Update doc about utimes().
25928         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25929         'utimens' module.
25930         Reported by Andreas Gruenbacher <agruen@suse.de>.
25931
25932 2010-04-27  Eric Blake  <eblake@redhat.com>
25933
25934         full-read, full-write: relax license
25935         * modules/full-read (License): Drop to LGPLv2+.
25936         * modules/full-write (License): Likewise.
25937         * modules/safe-read (License): Likewise.
25938         * modules/safe-write (License): Likewise.
25939
25940         pthread: mention library for linking
25941         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25942
25943 2010-04-27  Jim Meyering  <meyering@redhat.com>
25944
25945         maint.mk: fix a bug introduced in last change
25946         * top/maint.mk (gl_assured_headers_): Now that all names are on
25947         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25948         is not anchored to end of word, it should be adequate.
25949
25950         maint.mk: avoid side-effect in latest syntax-check
25951         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25952         to run commands via $(shell...), and hence to incur cost only when
25953         the new rule is actually run.
25954
25955         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25956         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25957         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25958         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25959         (gl_assured_headers_, az_, AZ_): Define.
25960         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25961
25962 2010-04-26  Jim Meyering  <jim@meyering.net>
25963             Bruno Haible  <bruno@clisp.org>
25964
25965         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25966         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25967         Prompted by an exchange with Gilles Espinasse.
25968
25969 2010-04-26  Jim Meyering  <meyering@redhat.com>
25970
25971         git-version-gen: aesthetic tweak
25972         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25973         so that the command remains on a single line.
25974
25975 2010-04-26  Eric Blake  <eblake@redhat.com>
25976
25977         git-version-gen: allow use on EBCDIC hosts
25978         * build-aux/git-version-gen (dirty): Use literal rather than tying
25979         ourselves to ascii.
25980         Reported by Steve Goetze.
25981
25982 2010-04-25  Bruno Haible  <bruno@clisp.org>
25983
25984         netdb: Add support for GNULIB_POSIXCHECK.
25985         * lib/netdb.in.h: Include warn-on-use.h.
25986         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25987         functions are used when GNULIB_POSIXCHECK is defined and the
25988         getaddrinfo module is not in use.
25989         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25990         freeaddrinfo, gai_strerror, getnameinfo are declared.
25991         * modules/netdb (Depends-on): Add warn-on-use.
25992         (Makefile.am): Include warn-on-use.h in netdb.h.
25993
25994 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25995
25996         build: avoid "make check" failure without .git/ directory
25997         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25998         there is no .git/ directory.
25999
26000 2010-04-25  Bruno Haible  <bruno@clisp.org>
26001
26002         ptsname: Fix misuse of ttyname_r.
26003         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26004         of errno.
26005
26006 2010-04-25  Bruno Haible  <bruno@clisp.org>
26007
26008         ttyname_r: Make it work on Solaris 10.
26009         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26010         if the system function has the POSIX declaration. Test whether the
26011         function fails if the buffer is less than 128 bytes large.
26012         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26013         system's ttyname_r function. Provide a reasonably large buffer.
26014         * modules/ttyname_r (Depends-on): Add extensions.
26015         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26016
26017 2010-04-25  Bruno Haible  <bruno@clisp.org>
26018
26019         Use the 'extensions' module for some more functions on Solaris.
26020         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26021         module.
26022         * doc/posix-functions/ctime_r.texi: Likewise.
26023         * doc/posix-functions/getgrgid_r.texi: Likewise.
26024         * doc/posix-functions/getgrnam_r.texi: Likewise.
26025         * doc/posix-functions/getpwnam_r.texi: Likewise.
26026         * doc/posix-functions/getpwuid_r.texi: Likewise.
26027         * doc/posix-functions/readdir_r.texi: Likewise.
26028         * doc/posix-functions/sigwait.texi: Likewise.
26029         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26030         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26031
26032 2010-04-25  Bruno Haible  <bruno@clisp.org>
26033
26034         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26035         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26036         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26037         * lib/ttyname_r.c: Include <limits.h>.
26038         (ttyname_r): Define using the system's ttyname_r function, if it exists
26039         and not on Solaris.
26040         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26041         set.
26042         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26043         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26044         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26045         Reported by Simon Josefsson.
26046
26047 2010-04-25  Bruno Haible  <bruno@clisp.org>
26048
26049         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26050         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26051         * doc/posix-functions/ctime_r.texi: Likewise.
26052         * doc/posix-functions/getgrgid_r.texi: Likewise.
26053         * doc/posix-functions/getgrnam_r.texi: Likewise.
26054         * doc/posix-functions/getlogin_r.texi: Likewise.
26055         * doc/posix-functions/getpwnam_r.texi: Likewise.
26056         * doc/posix-functions/getpwuid_r.texi: Likewise.
26057         * doc/posix-functions/readdir_r.texi: Likewise.
26058         * doc/posix-functions/sigwait.texi: Likewise.
26059         * doc/posix-functions/ttyname_r.texi: Likewise.
26060         Reported by Simon Josefsson.
26061
26062 2010-04-25  Bruno Haible  <bruno@clisp.org>
26063
26064         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26065         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26066         also to --create-testdir.
26067         (func_acceptable): Don't consider the status of *-tests modules here.
26068         (func_modules_transitive_closure): Consider it here, before including a
26069         test module.
26070         (func_import, func_create_testdir): Set inc_all_direct_tests,
26071         inc_all_indirect_tests.
26072         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26073         --create-testdir and --create-megatestdir.
26074
26075 2010-04-25  Bruno Haible  <bruno@clisp.org>
26076
26077         gnulib-tool: Add --without-*-tests options.
26078         * gnulib-tool (func_usage): Document the --without-*-tests options.
26079         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26080         excl_unportable_tests): New variables.
26081         Fail if they are specified with --import or --update.
26082         (func_acceptable): Respect the excl_*_tests variables.
26083         (func_import): Set the excl_*_tests variables to empty.
26084
26085 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26086             Bruno Haible  <bruno@clisp.org>
26087
26088         Work around a MacOS X 10.4 bug with openpty.
26089         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26090         * tests/test-openpty.c (main): Close the master side explicitly.
26091
26092 2010-04-25  Bruno Haible  <bruno@clisp.org>
26093
26094         strnlen: Fix a C++ test error on MacOS X and Solaris.
26095         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26096         the function is not declared.
26097         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26098         Simon Josefsson.
26099
26100 2010-04-24  Bruno Haible  <bruno@clisp.org>
26101
26102         Avoid a gcc warning.
26103         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26104         of correct type for %08lx directive.
26105         Reported by Eric Blake.
26106
26107 2010-04-24  Bruno Haible  <bruno@clisp.org>
26108
26109         vasnprintf: Correct errno value in case of out-of-memory.
26110         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26111         or sprintf. Use the errno value from SNPRINTF or sprintf.
26112         Reported by Ian Beckwith <ianb@erislabs.net>.
26113
26114 2010-04-24  Bruno Haible  <bruno@clisp.org>
26115
26116         ansi-c++-opt: Find correct compiler when cross-compiling.
26117         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26118         AC_CHECK_PROGS.
26119         Reported by Simon Josefsson.
26120
26121 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26122
26123         vc-list-files: Add support for subversion
26124         * build-aux/vc-list-files: Use "svn list" to generate the list of
26125         files controlled by subversion.
26126
26127 2010-04-23  Jim Meyering  <meyering@redhat.com>
26128
26129         vc-list-files tests: convert to use init.sh
26130         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26131         path_prepend_.
26132         Use Exit, not exit.
26133         Use skip_ rather than open coding it.
26134         Remove trap set-up and compare definitions.
26135         * tests/test-vc-list-files-git.sh: Likewise.
26136         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26137
26138 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26139
26140         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26141         backup files.
26142
26143 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26144
26145         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26146
26147 2010-04-20  Eric Blake  <eblake@redhat.com>
26148
26149         tests: be robust to ignored SIGPIPE
26150         * tests/test-select-in.sh: Consume all output.
26151         * tests/test-lseek.sh: Check correct exit status, while avoiding
26152         EPIPE.
26153
26154 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26155             Bruno Haible  <bruno@clisp.org>
26156
26157         visibility: Don't use -fvisibility if it leads to a warning.
26158         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26159         yes, don't pretend that visibility works if it leads to a warning.
26160         Reported by Mike Gran <spk121@yahoo.com>.
26161
26162 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26163
26164         * build-aux/bootstrap: Use "git -h" for testing for supported options
26165         instead of "git --help".  The short-form option only shows a summary,
26166         and doesn't layout the full man page.  Grep for the full option name
26167         in the summary, too.
26168
26169 2010-04-19  Bruno Haible  <bruno@clisp.org>
26170
26171         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26172         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26173         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26174         mention of RELOCATABLE_STRIP.
26175         Reported by Sylvain Beucler <beuc@beuc.net>.
26176
26177 2010-04-19  Bruno Haible  <bruno@clisp.org>
26178
26179         * lib/diffseq.h: Fix typo in comment.
26180         Reported by Eric Blake.
26181
26182 2010-04-19  Bruno Haible  <bruno@clisp.org>
26183
26184         ioctl: Move autoconf macro to a .m4 file.
26185         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26186         * modules/ioctl (Files): Add it.
26187         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26188         Reported by Ian Beckwith <ianb@erislabs.net>.
26189
26190 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26191             Bruno Haible  <bruno@clisp.org>
26192
26193         diffseq: Accommodate use-case with abstract arrays.
26194         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26195         is not defined.
26196         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26197         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26198
26199 2010-04-18  Bruno Haible  <bruno@clisp.org>
26200
26201         * doc/posix-headers/stdbool.texi: More precise wording.
26202
26203 2010-04-17  Jim Meyering  <meyering@redhat.com>
26204
26205         maint.mk: use gnu-style indentation in an embedded perl script
26206         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26207         Rename variable: s/two/last_two_bytes/
26208
26209 2010-04-16  Eric Blake  <eblake@redhat.com>
26210
26211         test-stdbool: skip test that fails with Solaris CC
26212         * tests/test-stdbool.c (f): Skip test that causes compilation
26213         error under buggy C++ compiler.
26214         * lib/stdbool.in.h: Document the limitation.
26215         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26216
26217         setenv: allow compilation with C++
26218         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26219         register keyword.
26220
26221         stdint: allow test to pass with C++
26222         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26223
26224         getopt: allow compilation with C++
26225         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26226         struct.
26227         * lib/getopt.c (_getopt_internal_r): Use correct type.
26228         Reported by Dagobert Michelson, via Joel E. Denny.
26229
26230 2010-04-16  Bruno Haible  <bruno@clisp.org>
26231
26232         Override netdb.h always.
26233         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26234         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26235         Reported by Ludovic Courtès <ludo@gnu.org>.
26236
26237 2010-04-15  Bruno Haible  <bruno@clisp.org>
26238
26239         openpty: Fix mistake from 2010-03-21.
26240         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26241         Reported by Simon Josefsson.
26242
26243 2010-04-15  Eric Blake  <eblake@redhat.com>
26244
26245         test-forkpty: fix expected signature
26246         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26247         Reported by Simon Josefsson.
26248
26249 2010-04-15  Jim Meyering  <meyering@redhat.com>
26250
26251         maint.mk: texinfo_suffix_re_: correct the default regexp
26252         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26253
26254         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26255         make it configurable via texinfo_suffix_re_.
26256
26257 2010-04-14  Eric Blake  <eblake@redhat.com>
26258
26259         strtok_r: relax license to LGPLv2+
26260         * modules/strtok_r (License): Relax license.
26261         Reported by Matthias Bolte.
26262
26263 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26264
26265         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26266         version 1.4.4 by default instead of requiring the libgcrypt
26267         version used during build.  This makes it possible to use the
26268         application with older but still binary compatible libgcrypt
26269         versions.
26270
26271 2010-04-13  Eric Blake  <eblake@redhat.com>
26272
26273         getopt-gnu: match recent glibc fixes and posix ruling
26274         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26275         '+' handling, when requesting extensions.
26276         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26277         'W;' handling.
26278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26279         * doc/posix-functions/getopt.texi (getopt): Document this.
26280         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26281         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26282         Likewise.
26283
26284         getopt: merge bug fixes from glibc
26285         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26286         diagnostics.  Honor '+:' correctly.  Reject ';'.
26287
26288         getopt-posix: detect MacOS bug
26289         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26290         optind when missing a required argument.
26291         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26292         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26293         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26294         Likewise.
26295
26296         getopt-posix: avoid spurious failure on Solaris
26297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26298         an indicator that setting optind=1 is sufficient for reset.
26299
26300         getopt-posix: avoid spurious failure on FreeBSD
26301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26302         in POSIX mode, since the m4 test uses it.
26303
26304         gnulib-tool: silence warning on BSD sh
26305         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26306
26307 2010-04-13  Jim Meyering  <meyering@redhat.com>
26308
26309         doc: users.txt: GNU patch now uses gnulib
26310         * users.txt: Add patch.
26311
26312 2010-04-12  Jim Meyering  <meyering@redhat.com>
26313
26314         maint.mk: generate more concise timing data for syntax-check rules
26315         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26316         " done" from each line that reports a syntax-check test duration.
26317
26318 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26319
26320         git-version-gen: use "git update-index..." rather than "git status"
26321         * build-aux/git-version-gen: Use git update-index --refresh, not
26322         "git status".  With some versions of git, "git status" would fail
26323         to update the index and result in an unwarranted "-dirty" suffix.
26324
26325 2010-04-11  Jim Meyering  <meyering@redhat.com>
26326
26327         openat: correct formatting (no semantic change)
26328         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26329         Suggested by Bruno Haible.
26330
26331 2010-04-11  Bruno Haible  <bruno@clisp.org>
26332
26333         Stricter declaration checking in testdirs.
26334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26335         If for_tests is true, augment AM_CPPFLAGS to define
26336         GNULIB_STRICT_CHECKING.
26337         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26338         GNULIB_STRICT_CHECKING is defined, verify that the function is
26339         declared.
26340
26341 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26342             Bruno Haible  <bruno@clisp.org>
26343
26344         libunistring: Improve configure output.
26345         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26346         Don't say "consider installing GNU libunistring" when checking again
26347         with libiconv.
26348
26349 2010-04-11  Bruno Haible  <bruno@clisp.org>
26350
26351         libunistring: Correct value of $LTLIBUNISTRING.
26352         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26353         correct the value of $LTLIBUNISTRING.
26354
26355 2010-04-11  Bruno Haible  <bruno@clisp.org>
26356
26357         havelib: Add static libraries to LIBS in the right order.
26358         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26359         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26360
26361 2010-04-11  Bruno Haible  <bruno@clisp.org>
26362
26363         libunistring: Detect libunistring also when it depends on libiconv.
26364         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26365         the second AC_LIB_HAVE_LINKFLAGS invocation.
26366
26367 2010-04-11  James Youngman  <jay@gnu.org>
26368
26369         close-stream: declare local scalars to be "const"
26370         * lib/close-stream.c (close_stream): Make boolean variables const
26371         to document the fact that we set but do not change them.
26372
26373 2010-04-11  Bruno Haible  <bruno@clisp.org>
26374
26375         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26376
26377 2010-04-11  Jim Meyering  <meyering@redhat.com>
26378
26379         maint.mk: don't include dist-check.mk
26380         * top/maint.mk: Remove bogus include directive.
26381
26382         maint.mk: improve empty-line-at-EOF check
26383         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26384         solution, rather than tail+Perl-based one.  The latter would read
26385         a few kilobytes from the end of each file, and did not handle empty
26386         files properly.
26387
26388         maint.mk: print the elapsed time for each syntax-check rule
26389         * top/maint.mk (sc_m_rules_): Save start time in a file.
26390         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26391         (local-check): Interpose the .z rules
26392
26393 2010-04-11  Jim Meyering  <meyering@redhat.com>
26394
26395         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26396         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26397         empty file with one that ends in an empty line.
26398
26399 2010-04-10  Bruno Haible  <bruno@clisp.org>
26400
26401         mkdir: Make it work on mingw64.
26402         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26403         * lib/mkdir.c: Update comment.
26404         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26405
26406 2010-04-10  Bruno Haible  <bruno@clisp.org>
26407
26408         Don't override improved macro from newer autoconf.
26409         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26410         autoconf >= 2.62.
26411         Reported by Joel E. Denny <jdenny@clemson.edu>.
26412
26413 2010-04-10  Jim Meyering  <meyering@redhat.com>
26414
26415         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26416         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26417
26418         maint.mk: correct a diagnostic
26419         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26420         in diagnostic; now use $prohibit.
26421
26422 2010-04-10  Bruno Haible  <address@hidden>
26423
26424         fchownat: Fix a C++ test error on Solaris 8.
26425         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26426         the function does not exist.
26427
26428 2010-04-10  Bruno Haible  <bruno@clisp.org>
26429
26430         vasnprintf: Add more tests.
26431         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26432         (test_function): Test converting an invalid wide string.
26433
26434         vasnprintf: Correct handling of unconvertible wide string arguments.
26435         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26436         VASNPRINTF.
26437         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26438         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26439         smaller than the expected maximum need for the directive. Set errno to
26440         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26441         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26442         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26443         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26444         * modules/vasnprintf (Files): Add m4/printf.m4.
26445         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26446
26447 2010-04-10  Bruno Haible  <bruno@clisp.org>
26448
26449         vasnprintf: Fix crash in %ls directive.
26450         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26451         string is passed as argument to %ls, with no precision and no width.
26452         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26453
26454 2010-04-10  Bruno Haible  <bruno@clisp.org>
26455
26456         vasnprintf: Fix multiple test failures on mingw.
26457         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26458         _snprintf, or snwprintf, not _snwprintf.
26459
26460 2010-04-10  Bruno Haible  <bruno@clisp.org>
26461
26462         write: Fix a C++ test error on mingw.
26463         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26464
26465 2010-04-10  Bruno Haible  <bruno@clisp.org>
26466
26467         vasnprintf test: Reduce code duplication.
26468         * tests/test-vasnprintf.c (test_function): New function, extracted from
26469         test_vasnprintf.
26470         (test_vasnprintf, test_asnprintf): Invoke it.
26471
26472 2010-04-10  Bruno Haible  <bruno@clisp.org>
26473
26474         strnlen: Fix warning in C++ mode on MacOS X.
26475         * lib/string.in.h (strnlen): Use the modern idiom.
26476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26477         defining strnlen as a macro already in <config.h>.
26478         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26479         REPLACE_STRNLEN.
26480         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26481         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26482
26483 2010-04-08  James Youngman  <jay@gnu.org>
26484
26485         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26486         the example.
26487
26488 2010-04-09  Jim Meyering  <meyering@redhat.com>
26489
26490         maint.mk: print better diagnostic when there is no $(_hv_file)
26491         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26492         announce that when $(_hv_file) (aka help-version) does not exist.
26493
26494         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26495         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26496         not try to interpret its random input bytes.  Jarno Rajahalme reported
26497         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26498         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26499         (mktempd_): Likewise, just in case.
26500
26501         ftruncate: add two years to projected module removal date: 2012
26502         * m4/ftruncate.m4: Adjust comments.
26503
26504         ftruncate: mark module as obsolete; even MinGW provides it, now
26505         * modules/ftruncate (Status): Obsolete.
26506         (Notice): Say that.
26507         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26508         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26509
26510 2010-04-08  Bruno Haible  <bruno@clisp.org>
26511
26512         Fix side effects from tests-related modules.
26513         * modules/dprintf-posix (Comment): New section.
26514         * modules/fprintf-posix (Comment): Likewise.
26515         * modules/obstack-printf-posix (Comment): Likewise.
26516         * modules/printf-posix (Comment): Likewise.
26517         * modules/snprintf-posix (Comment): Likewise.
26518         * modules/sprintf-posix (Comment): Likewise.
26519         * modules/vasnprintf-posix (Comment): Likewise.
26520         * modules/vasprintf-posix (Comment): Likewise.
26521         * modules/vdprintf-posix (Comment): Likewise.
26522         * modules/vfprintf-posix (Comment): Likewise.
26523         * modules/vprintf-posix (Comment): Likewise.
26524         * modules/vsnprintf-posix (Comment): Likewise.
26525         * modules/vsprintf-posix (Comment): Likewise.
26526         * modules/xprintf-posix (Comment): Likewise.
26527         * modules/xvasprintf-posix (Comment): Likewise.
26528         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26529         * modules/floorf-tests (Depends-on): Likewise.
26530         * modules/round-tests (Depends-on): Likewise.
26531         * modules/roundf-tests (Depends-on): Likewise.
26532         * modules/trunc-tests (Depends-on): Likewise.
26533         * modules/truncf-tests (Depends-on): Likewise.
26534         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26535         'fprintf-posix' module is not present.
26536         * tests/test-floorf2.c (check): Likewise.
26537         * tests/test-trunc2.c (check): Likewise.
26538         * tests/test-truncf2.c (check): Likewise.
26539         * tests/test-round2.c (equal): Likewise.
26540         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26541
26542 2010-04-07  Karl Berry  <karl@gnu.org>
26543
26544         * config/srclist.txt,
26545         * config/srclistvars.sh,
26546         * config/srclist-update: doc fixes.
26547
26548 2010-04-07  Jim Meyering  <meyering@redhat.com>
26549
26550         maint.mk: add a PATH crosschecking syntax-check rule
26551         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26552         Useful if you use a test like the one in help-version (coreutils,
26553         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26554         printed by prog --version.
26555
26556 2010-04-06  Bruno Haible  <bruno@clisp.org>
26557
26558         Fix link error on mingw.
26559         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26560         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26561
26562 2010-04-06  Bruno Haible  <bruno@clisp.org>
26563
26564         Assume rmdir exists.
26565         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26566
26567 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26568
26569         doc: update users.txt
26570         * users.txt: Add gcal.
26571
26572 2010-04-06  Jim Meyering  <meyering@redhat.com>
26573
26574         init.sh: simply unset TMPDIR rather than risking env -i
26575         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26576         although it probably works fine on all Unix-based systems, some
26577         systems (Cygwin?) cannot tolerate a totally cleared environment.
26578         Suggestion from Eric Blake.
26579
26580 2010-04-06  Jim Meyering  <meyering@redhat.com>
26581
26582         init.sh: portability fix: use env's POSIX-specified -i option not -u
26583         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26584         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26585
26586 2010-04-05  Bruno Haible  <bruno@clisp.org>
26587
26588         btowc: Work around Cygwin 1.7.2 bug.
26589         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26590         does not map NUL to 0.
26591         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26592
26593 2010-04-05  Bruno Haible  <bruno@clisp.org>
26594
26595         Make the multithread modules work on Cygwin 1.7.2.
26596         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26597         imported symbols can be declared weak, so that it returns "no" on
26598         Cygwin 1.7.2.
26599
26600 2010-04-05  Bruno Haible  <bruno@clisp.org>
26601
26602         Use the module 'strncat'.
26603         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26604
26605         Tests for module 'strncat'.
26606         * modules/strncat-tests: New file.
26607         * tests/test-strncat.c: New file.
26608
26609         New module 'strncat'.
26610         * lib/string.in.h (strncat): New declaration.
26611         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26612         * m4/strncat.m4: New file, based on m4/memchr.m4.
26613         * modules/strncat: New file.
26614         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26615         is declared.
26616         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26617         REPLACE_STRNCAT.
26618         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26619         REPLACE_STRNCAT.
26620         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26621         module.
26622         * tests/test-string-c++.cc: Check signature of strncat.
26623
26624 2010-04-05  Jim Meyering  <meyering@redhat.com>
26625
26626         xstrtoumax-tests: convert to use init.sh
26627         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26628         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26629         Use Exit, not exit.
26630         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26631
26632         xstrtoimax-tests: convert to use init.sh
26633         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26634         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26635         Use Exit, not exit.
26636         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26637
26638 2010-04-05  Bruno Haible  <bruno@clisp.org>
26639
26640         sys_socket: Avoid #define replacements in C++ mode.
26641         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26642         warning to the function if possible, rather than #defining the symbol
26643         to a dysfunctional alias.
26644
26645 2010-04-05  Bruno Haible  <bruno@clisp.org>
26646
26647         fseeko: Fix C++ test error on mingw.
26648         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26649         gl_FUNC_FSEEKO.
26650         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26651         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26652         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26653         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26654
26655 2010-04-05  Bruno Haible  <bruno@clisp.org>
26656
26657         duplocale: Improve test output.
26658         * tests/test-duplocale.c (main): Print reason for skipped test.
26659
26660 2010-04-05  Bruno Haible  <bruno@clisp.org>
26661
26662         Assume rmdir exists.
26663         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26664         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26665
26666 2010-04-05  Bruno Haible  <bruno@clisp.org>
26667
26668         Fix link error on Solaris 8 with cc.
26669         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26670
26671 2010-04-05  Bruno Haible  <bruno@clisp.org>
26672
26673         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26674         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26675
26676 2010-04-05  Bruno Haible  <bruno@clisp.org>
26677
26678         vasprintf: Update documentation.
26679         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26680
26681 2010-04-05  Bruno Haible  <bruno@clisp.org>
26682
26683         ptsname: Improve test.
26684         * tests/test-ptsname.c (main): Also try the various master names of BSD
26685         systems.
26686
26687 2010-04-05  Bruno Haible  <bruno@clisp.org>
26688
26689         memchr: Avoid a possible C++ test error.
26690         * lib/string.in.h (memchr): Provide declaration if function is missing.
26691         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26692         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26693         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26694         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26695
26696 2010-04-05  Bruno Haible  <bruno@clisp.org>
26697
26698         strtok_r: Improve idiom.
26699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26700         AC_LIBOBJ is used.
26701
26702 2010-04-05  Bruno Haible  <bruno@clisp.org>
26703
26704         strdup: Improve idiom.
26705         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26706         AC_LIBOBJ is used.
26707         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26708         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26709         when AC_LIBOBJ is used.
26710
26711 2010-04-05  Bruno Haible  <bruno@clisp.org>
26712
26713         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26714         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26715         don't set REPLACE_MBSINIT to 1.
26716         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26717         don't set REPLACE_MBRTOWC to 1.
26718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26719         exist, don't set REPLACE_MBSRTOWCS to 1.
26720         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26721         exist, don't set REPLACE_MBSNRTOWCS to 1.
26722         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26723         don't set REPLACE_WCRTOMB to 1.
26724         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26725         exist, don't set REPLACE_WCSRTOMBS to 1.
26726         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26727         exist, don't set REPLACE_WCSNRTOMBS to 1.
26728
26729 2010-04-05  Bruno Haible  <bruno@clisp.org>
26730
26731         ldexpl: Improve idiom.
26732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26733         make sure to set HAVE_DECL_LDEXPL to 0.
26734
26735 2010-04-05  Jim Meyering  <meyering@redhat.com>
26736
26737         xstrtol-tests: convert to use init.sh
26738         * modules/xstrtol-tests (Files): Add tests/init.sh.
26739         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26740         Use Exit, not exit.
26741         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26742
26743         atexit-tests: convert to use init.sh
26744         * modules/atexit-tests (Files): Add tests/init.sh.
26745         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26746         Use Exit, not exit.
26747         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26748
26749         init.sh: fix typo
26750         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26751
26752         init.sh: make it easier for a test script to write to the tty, ...
26753         when using automake's parallel-tests mode.
26754         * tests/init.sh (stderr_fileno_): Define overridable variable.
26755         (warn_): New function, to use it.
26756         (fail_, skip_, framework_failure_): Use warn_.
26757
26758 2010-04-04  Bruno Haible  <bruno@clisp.org>
26759
26760         btowc: Avoid warning.
26761         * lib/btowc.c: Include <stdlib.h>.
26762         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26763
26764 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26765             Bruno Haible  <bruno@clisp.org>
26766
26767         wchar: Port to NetBSD 1.5.
26768         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26769         * lib/wctype.in.h (WEOF): Likewise.
26770
26771 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26772             Bruno Haible  <bruno@clisp.org>
26773
26774         Port extended stdio to NetBSD 1.5.
26775         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26776         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26777         older.
26778
26779 2010-04-04  Bruno Haible  <bruno@clisp.org>
26780
26781         string: Remove unused substitution.
26782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26783         HAVE_DECL_STRERROR.
26784         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26785
26786 2010-04-04  Bruno Haible  <bruno@clisp.org>
26787
26788         strtod: Avoid a possible C++ test error.
26789         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26790         set REPLACE_STRTOD.
26791
26792 2010-04-04  Bruno Haible  <bruno@clisp.org>
26793
26794         strerror: Update documentation.
26795         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26796
26797 2010-04-04  Bruno Haible  <bruno@clisp.org>
26798
26799         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26800         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26801         _GL_CXXALIAS_SYS_CAST.
26802
26803 2010-04-04  Bruno Haible  <bruno@clisp.org>
26804
26805         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26806         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26807         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26808         REPLACE_FREXPL to 1.
26809         * doc/posix-functions/frexpl.texi: Update documentation.
26810
26811 2010-04-04  Bruno Haible  <bruno@clisp.org>
26812
26813         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26814         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26815
26816 2010-04-04  Bruno Haible  <bruno@clisp.org>
26817
26818         Implement nanosleep for native Windows.
26819         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26820
26821 2010-04-04  Bruno Haible  <bruno@clisp.org>
26822
26823         math: Fix some C++ test errors on Solaris 8.
26824         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26825
26826 2010-04-04  Bruno Haible  <bruno@clisp.org>
26827
26828         math: Fix some C++ test errors on Cygwin.
26829         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26830         truncl): Provide declaration if the system does not have it.
26831         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26832         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26833         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26834         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26835         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26836         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26837         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26838         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26839         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26840         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26841         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26842         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26843         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26844         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26845         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26846         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26847         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26848         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26849         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26850         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26851         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26852         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26853
26854 2010-04-04  Bruno Haible  <bruno@clisp.org>
26855
26856         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26857         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26858         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26859         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26860         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26861         * m4/isinf.m4 (gl_ISINF): Likewise.
26862         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26863
26864 2010-04-04  Bruno Haible  <bruno@clisp.org>
26865
26866         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26867         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26868
26869 2010-04-04  Bruno Haible  <bruno@clisp.org>
26870
26871         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26872         * modules/tmpfile (configure.ac): Update.
26873
26874         tmpfile: Fix C++ test error on mingw.
26875         * lib/stdio.in.h (tmpfile): New declaration.
26876         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26877         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26878         * modules/tmpfile (Depends-on): Add stdio.
26879         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26880         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26881         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26882         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26883         REPLACE_TMPFILE.
26884         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26885
26886 2010-04-04  Bruno Haible  <bruno@clisp.org>
26887
26888         ioctl: Fix C++ test error on mingw.
26889         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26890         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26891         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26892
26893 2010-04-03  Bruno Haible  <bruno@clisp.org>
26894
26895         wcwidth: Fix C++ test error on mingw.
26896         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26897         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26898         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26899
26900 2010-04-03  Bruno Haible  <bruno@clisp.org>
26901
26902         nanosleep: Fix C++ test error on mingw.
26903         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26904         * lib/time.in.h (nanosleep): Use modern idiom.
26905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26906         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26907         REPLACE_NANOSLEEP to 1.
26908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26909         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26910
26911 2010-04-03  Bruno Haible  <bruno@clisp.org>
26912
26913         strptime: Fix C++ test error on mingw.
26914         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26915         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26916         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26917         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26918         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26919         not REPLACE_STRPTIME.
26920         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26921         REPLACE_STRPTIME.
26922
26923 2010-04-03  Bruno Haible  <bruno@clisp.org>
26924
26925         timegm: Fix C++ test error on mingw.
26926         * lib/time.in.h (timegm): Use modern idiom.
26927         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26928         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26929         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26930         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26931
26932 2010-04-03  Bruno Haible  <bruno@clisp.org>
26933
26934         timegm: Assume declaration if function exists.
26935         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26936         if it exists. Don't clobber ac_cv_func_timegm.
26937
26938 2010-04-03  Bruno Haible  <bruno@clisp.org>
26939
26940         time_r: Fix C++ test error on mingw.
26941         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26942         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26943         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26945         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26946
26947 2010-04-03  Bruno Haible  <bruno@clisp.org>
26948
26949         time_r: Minor updates.
26950         * modules/time_r (Description): Mention the provided functions.
26951         * lib/time_r.c: Don't include <string.h>.
26952         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26953         * doc/posix-functions/localtime_r.texi: Likewise.
26954
26955 2010-04-03  Bruno Haible  <bruno@clisp.org>
26956
26957         time: Fix regression introduced on 2010-03-08.
26958         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26959         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26960
26961 2010-04-03  Jim Meyering  <meyering@redhat.com>
26962
26963         maint.mk: don't silently disable project-specific syntax-check rules
26964         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26965         that they need to convert their project-specific syntax-check rules
26966         to use the new _sc_search_regexp.
26967
26968 2010-04-03  Bruno Haible  <bruno@clisp.org>
26969
26970         fchdir: Fix regression introduced on 2010-03-08.
26971         * lib/unistd.in.h (fchdir): Fix declaration.
26972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26974         REPLACE_FCHDIR.
26975         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26976         REPLACE_FCHDIR.
26977
26978 2010-04-03  Bruno Haible  <bruno@clisp.org>
26979
26980         getpagesize: Fix C++ test error on mingw.
26981         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26982         system does not declare the function.
26983         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26984         declared.
26985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26986         HAVE_DECL_GETPAGESIZE.
26987         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26988
26989 2010-04-03  Bruno Haible  <bruno@clisp.org>
26990
26991         stdio: Make C++ tests work on mingw.
26992         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26993         does not declare the function.
26994
26995 2010-04-03  Bruno Haible  <bruno@clisp.org>
26996
26997         ftello: Fix C++ test error on mingw.
26998         * lib/stdio.in.h (ftello): Use modern idiom.
26999         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27000         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27001         is missing and that it needs to be replaced.
27002         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27004         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27005
27006 2010-04-03  Bruno Haible  <bruno@clisp.org>
27007
27008         fseeko: Fix C++ test error on mingw.
27009         * lib/stdio.in.h (fseeko): Use modern idiom.
27010         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27011         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27012         is missing and that it needs to be replaced.
27013         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27015         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27016
27017 2010-04-03  Bruno Haible  <bruno@clisp.org>
27018
27019         mkstemp: Fix C++ test error on mingw.
27020         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27022         function is missing and that it needs to be replaced.
27023         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27024         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27025
27026 2010-04-03  Bruno Haible  <bruno@clisp.org>
27027
27028         stpncpy: Fix C++ test error on mingw.
27029         * lib/string.in.h (stpncpy): Use modern idiom.
27030         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27031         function is missing and that it needs to be replaced.
27032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27033         REPLACE_STPNCPY.
27034         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27035
27036 2010-04-03  Bruno Haible  <bruno@clisp.org>
27037
27038         sys_stat: Fix C++ test error on mingw.
27039         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27040         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27041
27042 2010-04-03  Bruno Haible  <bruno@clisp.org>
27043
27044         pty: Update doc.
27045         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27046
27047 2010-04-03  Bruno Haible  <bruno@clisp.org>
27048
27049         unistd: Fix C++ test error on mingw.
27050         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27051
27052 2010-04-03  Bruno Haible  <bruno@clisp.org>
27053
27054         Update doc regarding mingw.
27055         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27056         * doc/glibc-functions/login_tty.texi: Likewise.
27057         * doc/glibc-functions/forkpty.texi: Likewise.
27058
27059 2010-04-03  Bruno Haible  <bruno@clisp.org>
27060
27061         stdlib: Avoid compilation failure of c-strtold on mingw.
27062         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27063
27064 2010-04-03  Bruno Haible  <bruno@clisp.org>
27065
27066         locale: Make C++ tests work on Cygwin and mingw.
27067         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27068         cannot provide the function.
27069         Reported by Simon Josefsson.
27070
27071 2010-04-03  Bruno Haible  <bruno@clisp.org>
27072
27073         localename: Port to MacOS X 10.6.
27074         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27075         memory layout of the locales in MacOS X 10.6 as well.
27076         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27077
27078 2010-04-02  Bruno Haible  <bruno@clisp.org>
27079
27080         gnulib-tool: Ensure that long-running tests are executed last.
27081         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27082         running tests after the one for the other tests.
27083
27084 2010-04-02  Bruno Haible  <bruno@clisp.org>
27085
27086         gnulib-tool: Ensure the tests in the main directory are executed first.
27087         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27088         start with the current directory.
27089
27090 2010-04-02  Bruno Haible  <bruno@clisp.org>
27091
27092         Tests for module 'havelib', moved here from GNU gettext.
27093         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27094         modifications.
27095         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27096         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27097         with modifications.
27098         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27099         modifications.
27100         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27101         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27102         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27103         with modifications.
27104         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27105         with modifications.
27106         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27107         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27108         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27109         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27110         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27111         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27112         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27113         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27114         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27115         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27116         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27117         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27118         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27119         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27120         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27121         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27122         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27123         with modifications.
27124         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27125         with modifications.
27126         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27127         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27128         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27129         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27130         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27131         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27132         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27133         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27134         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27135         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27136         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27137         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27138         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27139         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27140         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27141         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27142         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27143         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27144         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27145         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27146         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27147         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27148         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27149         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27150         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27151         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27152         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27153         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27154         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27155         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27156         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27157         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27158         * tests/havelib/rpathx/rpathx.c: New file, from
27159         gettext/autoconf-lib-link.
27160         * tests/havelib/rpathx/Makefile.am: New file, from
27161         gettext/autoconf-lib-link.
27162         * tests/havelib/rpathx/configure.ac: New file, from
27163         gettext/autoconf-lib-link with modifications.
27164         * tests/havelib/rpathy/rpathy.c: New file, from
27165         gettext/autoconf-lib-link.
27166         * tests/havelib/rpathy/Makefile.am: New file, from
27167         gettext/autoconf-lib-link.
27168         * tests/havelib/rpathy/configure.ac: New file, from
27169         gettext/autoconf-lib-link with modifications.
27170         * tests/havelib/rpathz/rpathz.c: New file, from
27171         gettext/autoconf-lib-link.
27172         * tests/havelib/rpathz/Makefile.am: New file, from
27173         gettext/autoconf-lib-link.
27174         * tests/havelib/rpathz/configure.ac: New file, from
27175         gettext/autoconf-lib-link with modifications.
27176         * tests/havelib/rpathlx/usex.c: New file, from
27177         gettext/autoconf-lib-link.
27178         * tests/havelib/rpathlx/Makefile.am: New file, from
27179         gettext/autoconf-lib-link.
27180         * tests/havelib/rpathlx/configure.ac: New file, from
27181         gettext/autoconf-lib-link with modifications.
27182         * tests/havelib/rpathly/usey.c: New file, from
27183         gettext/autoconf-lib-link.
27184         * tests/havelib/rpathly/Makefile.am: New file, from
27185         gettext/autoconf-lib-link.
27186         * tests/havelib/rpathly/configure.ac: New file, from
27187         gettext/autoconf-lib-link with modifications.
27188         * tests/havelib/rpathlz/usez.c: New file, from
27189         gettext/autoconf-lib-link.
27190         * tests/havelib/rpathlz/Makefile.am: New file, from
27191         gettext/autoconf-lib-link.
27192         * tests/havelib/rpathlz/configure.ac: New file, from
27193         gettext/autoconf-lib-link with modifications.
27194         * tests/havelib/rpathlyx/usey.c: New file, from
27195         gettext/autoconf-lib-link.
27196         * tests/havelib/rpathlyx/Makefile.am: New file, from
27197         gettext/autoconf-lib-link.
27198         * tests/havelib/rpathlyx/configure.ac: New file, from
27199         gettext/autoconf-lib-link with modifications.
27200         * tests/havelib/rpathlzyx/usez.c: New file, from
27201         gettext/autoconf-lib-link.
27202         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27203         gettext/autoconf-lib-link.
27204         * tests/havelib/rpathlzyx/configure.ac: New file, from
27205         gettext/autoconf-lib-link with modifications.
27206         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27207         with modifications.
27208
27209 2010-04-02  Bruno Haible  <bruno@clisp.org>
27210
27211         gnulib-tool: Create distributed built sources also for the tests.
27212         * gnulib-tool (func_create_testdir): Also generate distributed built
27213         sources in the tests directory.
27214
27215 2010-04-02  Bruno Haible  <bruno@clisp.org>
27216
27217         gnulib-tool: Obey user's environment variables.
27218         * gnulib-tool (func_create_testdir): When creating built sources,
27219         respect the environment variables for autoconf, automake, etc. given by
27220         the user.
27221
27222 2010-04-02  Bruno Haible  <bruno@clisp.org>
27223
27224         gnulib-tool: Provide the value of --m4-base to modules.
27225         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27226         of gl_m4_base.
27227
27228 2010-04-02  Eric Blake  <eblake@redhat.com>
27229
27230         maint.mk: fix some fallout
27231         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27232         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27233
27234 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27235
27236         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27237         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27238         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27239         (sc_cast_of_x_alloc_return_value): Likewise.
27240         (sc_cast_of_alloca_return_value): Likewise.
27241         (sc_space_tab): Likewise.
27242         (sc_prohibit_atoi_atof): Likewise.
27243         (sc_prohibit_magic_number_exit): Likewise.
27244         (sc_error_exit_success): Likewise.
27245         (sc_file_system): Likewise.
27246         (sc_prohibit_have_config_h): Likewise.
27247         (sc_require_config_h): Likewise.
27248         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27249         (sc_obsolete_symbols): Likewise.
27250         (sc_changelog): Likewise.
27251         (sc_program_name): Likewise.
27252         (sc_the_the): Likewise.
27253         (sc_trailing_blank): Likewise.
27254         (sc_two_space_separator_in_usage): Likewise.
27255         (sc_useless_cpp_parens): Likewise.
27256         (sc_GPL_version): Likewise.
27257         (sc_GFDL_version): Likewise.
27258         (sc_texinfo_acronym): Likewise.
27259         (sc_prohibit_cvs_keyword): Likewise.
27260         (sc_prohibit_stat_st_blocks): Likewise.
27261         (sc_prohibit_S_IS_definition): Likewise.
27262         (sc_redundant_const): Likewise.
27263         (sc_makefile_TAB_only_indentation): Likewise.
27264         (sc_m4_quote_check): Likewise.
27265         (sc_makefile_path_separator_check): Likewise.
27266         (sc_copyright_check): Likewise.
27267         (sc_Wundef_boolean): Likewise.
27268         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27269
27270         maint.mk: match 0 or more whitespace-before-function-call '('
27271         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27272         that have zero or two-and-more spaces between the function name
27273         and the open parenthesis.
27274         (sc_error_message_warn_fatal): Likewise.
27275         (sc_error_message_uppercase): Likewise.
27276         (sc_error_message_period): Likewise.
27277
27278 2010-03-31  Eric Blake  <eblake@redhat.com>
27279
27280         maint.mk: check for [ as well as test
27281         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27282         Based on a libvirt report by Matthias Bolte.
27283
27284         gnumakefile: don't squelch _version output
27285         * top/GNUmakefile (_version): Create one-shot dependency rather
27286         than using $(shell) when version must be regenerated.
27287         (_autoreconf): Run verbosely, by default.
27288
27289         sys_time: avoid compiler warnings
27290         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27291         unconditional, fixing regression from 2010-03-29.
27292         Reported by Simon Josefsson.
27293
27294 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27295
27296         maint.mk: s/_header_without_use/_sc_header_without_use/
27297         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27298         (sc_prohibit_assert_without_use): Use the new name.
27299         (sc_prohibit_close_stream_without_use): Likewise.
27300         (sc_prohibit_getopt_without_use): Likewise.
27301         (sc_prohibit_quotearg_without_use): Likewise.
27302         (sc_prohibit_quote_without_use): Likewise.
27303         (sc_prohibit_long_options_without_use): Likewise.
27304         (sc_prohibit_inttostr_without_use): Likewise.
27305         (sc_prohibit_ignore_value_without_use): Likewise.
27306         (sc_prohibit_error_without_use): Likewise.
27307         (sc_prohibit_xalloc_without_use): Likewise.
27308         (sc_prohibit_hash_without_use): Likewise.
27309         (sc_prohibit_hash_pjw_without_use): Likewise.
27310         (sc_prohibit_safe_read_without_use): Likewise.
27311         (sc_prohibit_argmatch_without_use): Likewise.
27312         (sc_prohibit_canonicalize_without_use): Likewise.
27313         (sc_prohibit_root_dev_ino_without_use): Likewise.
27314         (sc_prohibit_openat_without_use): Likewise.
27315         (sc_prohibit_c_ctype_without_use): Likewise.
27316         (sc_prohibit_signal_without_use): Likewise.
27317         (sc_prohibit_intprops_without_use): Likewise.
27318
27319 2010-03-30  Eric Blake  <eblake@redhat.com>
27320
27321         maint: improve module indicators
27322         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27323         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27324         columns, and avoid extra macro expansion.
27325
27326         fdopendir: work around FreeBSD bug
27327         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27329         * modules/dirent (Makefile.am): Substitute it.
27330         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27331         declaration.
27332         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27333         fix.
27334         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27335
27336 2010-03-29  Bruno Haible  <bruno@clisp.org>
27337
27338         Emit #pragma system_header after the inclusion guard, not before.
27339         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27340         guard that spans the entire file, not before. This enables an
27341         optimization in GCC's preprocessor.
27342         * lib/ctype.in.h: Likewise.
27343         * lib/dirent.in.h: Likewise.
27344         * lib/errno.in.h: Likewise.
27345         * lib/float.in.h: Likewise.
27346         * lib/getopt.in.h: Likewise.
27347         * lib/iconv.in.h: Likewise.
27348         * lib/langinfo.in.h: Likewise.
27349         * lib/locale.in.h: Likewise.
27350         * lib/math.in.h: Likewise.
27351         * lib/netdb.in.h: Likewise.
27352         * lib/netinet_in.in.h: Likewise.
27353         * lib/pty.in.h: Likewise.
27354         * lib/sched.in.h: Likewise.
27355         * lib/se-selinux.in.h: Likewise.
27356         * lib/search.in.h: Likewise.
27357         * lib/spawn.in.h: Likewise.
27358         * lib/stdarg.in.h: Likewise.
27359         * lib/stdint.in.h: Likewise.
27360         * lib/string.in.h: Likewise.
27361         * lib/strings.in.h: Likewise.
27362         * lib/sys_file.in.h: Likewise.
27363         * lib/sys_ioctl.in.h: Likewise.
27364         * lib/sys_time.in.h: Likewise.
27365         * lib/sys_times.in.h: Likewise.
27366         * lib/sys_utsname.in.h: Likewise.
27367         * lib/sys_wait.in.h: Likewise.
27368         * lib/sysexits.in.h: Likewise.
27369         * lib/wctype.in.h: Likewise.
27370
27371 2010-03-28  James Youngman  <jay@gnu.org>
27372
27373         save-cwd: don't leak a file descriptor when the caller execs.
27374         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27375         saved file descriptor.
27376         * modules/save-cwd (Depends-on): Depend on cloexec.
27377
27378 2010-03-29  Bruno Haible  <bruno@clisp.org>
27379
27380         Remove vestiges of fts-lgpl module.
27381         * lib/fts_.h: Assume GNULIB_FTS is 1.
27382         * lib/fts.c: Likewise.
27383         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27384
27385 2010-03-28  Bruno Haible  <bruno@clisp.org>
27386
27387         Fix definition of tests witness macro.
27388         * gnulib-tool (func_import): Fix definition of witness macro.
27389
27390 2010-03-28  Bruno Haible  <bruno@clisp.org>
27391
27392         Fix ioctl's protoype on glibc systems.
27393         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27394         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27395         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27396         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27397         signature. If not, arrange to replace the ioctl function.
27398         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27399         REPLACE_IOCTL.
27400         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27401         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27402         Reported by Ludovic Courtès <ludo@gnu.org>.
27403
27404 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27405
27406         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27407         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27408         made it so grep -r --include=GLOB* ... did not work.
27409
27410 2010-03-26  Jim Meyering  <meyering@redhat.com>
27411             Eric Blake  <eblake@redhat.com>
27412
27413         maint.mk: prohibit use of test's -o and -a operators
27414         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27415
27416 2010-03-28  Bruno Haible  <bruno@clisp.org>
27417
27418         Remove unused GNULIB_XYZ macro definitions.
27419         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27420         invocation.
27421
27422 2010-03-28  Bruno Haible  <bruno@clisp.org>
27423
27424         Mark privileged tests modules.
27425         * modules/idpriv-drop-tests (Status): New section.
27426         * modules/idpriv-droptemp-tests (Status): New section.
27427
27428 2010-03-28  Bruno Haible  <bruno@clisp.org>
27429
27430         Split C++ tests into separate tests modules.
27431         * modules/dirent-c++-tests: New file, extracted from
27432         modules/dirent-tests.
27433         * modules/dirent-tests: Depend on it.
27434         * modules/fcntl-h-c++-tests: New file, extracted from
27435         modules/fcntl-h-tests.
27436         * modules/fcntl-h-tests: Depend on it.
27437         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27438         * modules/glob-tests: Depend on it.
27439         * modules/iconv-h-c++-tests: New file, extracted from
27440         modules/iconv-h-tests.
27441         * modules/iconv-h-tests: Depend on it.
27442         * modules/langinfo-c++-tests: New file, extracted from
27443         modules/langinfo-tests.
27444         * modules/langinfo-tests: Depend on it.
27445         * modules/locale-c++-tests: New file, extracted from
27446         modules/locale-tests.
27447         * modules/locale-tests: Depend on it.
27448         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27449         * modules/math-tests: Depend on it.
27450         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27451         * modules/pty-tests: Depend on it.
27452         * modules/search-c++-tests: New file, extracted from
27453         modules/search-tests.
27454         * modules/search-tests: Depend on it.
27455         * modules/signal-c++-tests: New file, extracted from
27456         modules/signal-tests.
27457         * modules/signal-tests: Depend on it.
27458         * modules/spawn-c++-tests: New file, extracted from
27459         modules/spawn-tests.
27460         * modules/spawn-tests: Depend on it.
27461         * modules/stdio-c++-tests: New file, extracted from
27462         modules/stdio-tests.
27463         * modules/stdio-tests: Depend on it.
27464         * modules/stdlib-c++-tests: New file, extracted from
27465         modules/stdlib-tests.
27466         * modules/stdlib-tests: Depend on it.
27467         * modules/string-c++-tests: New file, extracted from
27468         modules/string-tests.
27469         * modules/string-tests: Depend on it.
27470         * modules/sys_ioctl-c++-tests: New file, extracted from
27471         modules/sys_ioctl-tests.
27472         * modules/sys_ioctl-tests: Depend on it.
27473         * modules/sys_select-c++-tests: New file, extracted from
27474         modules/sys_select-tests.
27475         * modules/sys_select-tests: Depend on it.
27476         * modules/sys_socket-c++-tests: New file, extracted from
27477         modules/sys_socket-tests.
27478         * modules/sys_socket-tests: Depend on it.
27479         * modules/sys_stat-c++-tests: New file, extracted from
27480         modules/sys_stat-tests.
27481         * modules/sys_stat-tests: Depend on it.
27482         * modules/sys_time-c++-tests: New file, extracted from
27483         modules/sys_time-tests.
27484         * modules/sys_time-tests: Depend on it.
27485         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27486         * modules/time-tests: Depend on it.
27487         * modules/unistd-c++-tests: New file, extracted from
27488         modules/unistd-tests.
27489         * modules/unistd-tests: Depend on it.
27490         * modules/wchar-c++-tests: New file, extracted from
27491         modules/wchar-tests.
27492         * modules/wchar-tests: Depend on it.
27493         * modules/wctype-c++-tests: New file, extracted from
27494         modules/wctype-tests.
27495         * modules/wctype-tests: Depend on it.
27496         Reported by Simon Josefsson.
27497
27498 2010-03-28  Bruno Haible  <bruno@clisp.org>
27499
27500         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27501         * gnulib-tool (func_exists_module): New function, extracted from
27502         func_verify_module.
27503         (func_verify_module): Use it.
27504         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27505         'foo' only if 'foo' exists.
27506         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27507         module.
27508
27509 2010-03-28  Bruno Haible  <bruno@clisp.org>
27510
27511         gnulib-tool: Add support for special categories of tests.
27512         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27513         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27514         (func_usage): Document them.
27515         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27516         inc_unportable_tests, inc_all_tests): New variables.
27517         (func_acceptable): Consider these variables.
27518         (func_modules_transitive_closure): Make it work when the 'Status' field
27519         consists of multiple words.
27520         (func_import): Store and restore the values of inc_cxx_tests,
27521         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27522         inc_all_tests in gnulib-comp.m4.
27523         (func_create_testdir): Set inc_all_tests to true.
27524         * doc/gnulib.texi (Extra tests modules): New section.
27525         Suggested by Jim Meyering.
27526
27527 2010-03-28  Bruno Haible  <bruno@clisp.org>
27528
27529         ansi-c++-opt: Allow turning off the C++ build by default.
27530         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27531         gl_CXX_CHOICE_DEFAULT_NO is defined.
27532         Requested by Eric Blake.
27533
27534 2010-03-28  Bruno Haible  <bruno@clisp.org>
27535
27536         unistd: Avoid #define replacements in C++ mode.
27537         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27538         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27539         setsockopt, shutdown, select): In C++, attach a warning to the function
27540         if possible, rather than #defining the symbol to a dysfunctional alias.
27541         Reported by John W. Eaton <jwe@gnu.org>.
27542
27543 2010-03-28  Bruno Haible  <bruno@clisp.org>
27544
27545         Fix link errors on mingw.
27546         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27547         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27548         $(LIBSOCKET).
27549         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27550         $(LIBSOCKET).
27551
27552 2010-03-28  Bruno Haible  <bruno@clisp.org>
27553             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27554
27555         lib-ignore: Determine different options for different compilers.
27556         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27557         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27558         Add comments.
27559         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27560         * NEWS: Mention the change.
27561
27562 2010-03-27  Bruno Haible  <bruno@clisp.org>
27563
27564         Remove unused GNULIB_XYZ macro definitions.
27565         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27566         * modules/fseek (configure.ac): Likewise.
27567         * modules/ioctl (configure.ac): Likewise.
27568         * modules/open (configure.ac): Likewise.
27569         * modules/stdlib-safer (configure.ac): Likewise.
27570
27571 2010-03-27  Bruno Haible  <bruno@clisp.org>
27572
27573         Add a remark about certain modules.
27574         * modules/malloc (Comment): New section.
27575         * modules/realloc (Comment): Likewise.
27576         * modules/sigpipe (Comment): Likewise.
27577
27578 2010-03-27  Bruno Haible  <bruno@clisp.org>
27579
27580         Resolve conflict between the two kinds of module indicators.
27581         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27582         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27583         * modules/canonicalize (configure.ac): Invoke
27584         gl_MODULE_INDICATOR_FOR_TESTS.
27585         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27586         GNULIB_XYZ.
27587         * tests/test-dirent-c++.cc: Likewise.
27588         * tests/test-dirent-safer.c: Likewise.
27589         * tests/test-dup2.c: Likewise.
27590         * tests/test-fchdir.c: Likewise.
27591         * tests/test-fcntl-h-c++.cc: Likewise.
27592         * tests/test-getopt.c: Likewise.
27593         * tests/test-getopt.h: Likewise.
27594         * tests/test-langinfo-c++.cc: Likewise.
27595         * tests/test-locale-c++.cc: Likewise.
27596         * tests/test-math-c++.cc: Likewise.
27597         * tests/test-pty-c++.cc: Likewise.
27598         * tests/test-search-c++.cc: Likewise.
27599         * tests/test-signal-c++.cc: Likewise.
27600         * tests/test-spawn-c++.cc: Likewise.
27601         * tests/test-stdio-c++.cc: Likewise.
27602         * tests/test-stdlib-c++.cc: Likewise.
27603         * tests/test-string-c++.cc: Likewise.
27604         * tests/test-sys_ioctl-c++.cc: Likewise.
27605         * tests/test-sys_select-c++.cc: Likewise.
27606         * tests/test-sys_socket-c++.cc: Likewise.
27607         * tests/test-sys_stat-c++.cc: Likewise.
27608         * tests/test-sys_time-c++.cc: Likewise.
27609         * tests/test-time-c++.cc: Likewise.
27610         * tests/test-unistd-c++.cc: Likewise.
27611         * tests/test-wchar-c++.cc: Likewise.
27612         * tests/uninorm/test-u8-nfc.c: Likewise.
27613         * tests/uninorm/test-u8-nfd.c: Likewise.
27614         * tests/uninorm/test-u8-nfkc.c: Likewise.
27615         * tests/uninorm/test-u8-nfkd.c: Likewise.
27616         * tests/uninorm/test-u16-nfc.c: Likewise.
27617         * tests/uninorm/test-u16-nfd.c: Likewise.
27618         * tests/uninorm/test-u16-nfkc.c: Likewise.
27619         * tests/uninorm/test-u16-nfkd.c: Likewise.
27620         * tests/uninorm/test-u32-nfc.c: Likewise.
27621         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27622         * tests/uninorm/test-u32-nfd.c: Likewise.
27623         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27624         * tests/uninorm/test-u32-nfkc.c: Likewise.
27625         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27626         * tests/uninorm/test-u32-nfkd.c: Likewise.
27627         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27628         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27629
27630 2010-03-27  Bruno Haible  <bruno@clisp.org>
27631
27632         Distinguish two kinds of module indicators.
27633         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27634         gl_MODULE_INDICATOR.
27635         (gl_MODULE_INDICATOR): New macro.
27636         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27637         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27638         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27639         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27640         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27641         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27642         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27643         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27644         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27645         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27646         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27647         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27649         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27650         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27651         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27652         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27653         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27654         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27655         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27656         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27657         * modules/cloexec (configure.ac): Likewise.
27658         * modules/getopt-gnu (configure.ac): Likewise.
27659         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27660         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27661         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27662         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27663
27664 2010-03-27  Bruno Haible  <bruno@clisp.org>
27665
27666         New module description field 'Comment'.
27667         * gnulib-tool: New option --extract-comment.
27668         (func_usage): Document it.
27669         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27670         (func_get_comment): New function.
27671         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27672
27673 2010-03-27  Bruno Haible  <bruno@clisp.org>
27674
27675         Addendum to 2010-02-07 commit.
27676         * gnulib-tool (func_usage): Document --extract-applicability option.
27677
27678 2010-03-27  Bruno Haible  <bruno@clisp.org>
27679
27680         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27681         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27682         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27683         rather than link errors.
27684
27685 2010-03-27  Bruno Haible  <bruno@clisp.org>
27686
27687         Avoid side effects from tests-related modules on the compilation of lib.
27688         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27689         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27690         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27691         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27692         macro.
27693         (func_import): Define a witness macro. Assign it a value that depends
27694         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27695         tests-related modules.
27696         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27697         Reported by Jim Meyering.
27698
27699 2010-03-27  Bruno Haible  <bruno@clisp.org>
27700
27701         Factorize common .m4 code.
27702         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27703         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27704         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27705         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27706         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27707         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27708         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27709         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27710         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27711         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27712         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27713         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27714         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27715         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27716         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27717         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27718         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27719         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27720         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27721         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27722         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27723         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27724         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27725         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27726         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27727         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27728         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27729         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27730         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27731         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27732         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27733         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27734
27735 2010-03-27  Bruno Haible  <bruno@clisp.org>
27736
27737         Fix a compilation error on Cygwin with g++ >= 4.3.
27738         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27739         if it is undefined or if we alias it to chmod.
27740         (lstat): Don't warn about the use of this function if it is undefined
27741         or if we alias it to stat.
27742         Reported by Simon Josefsson.
27743
27744 2010-03-27  Bruno Haible  <bruno@clisp.org>
27745
27746         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27747         * modules/getlogin (configure.ac): Update.
27748
27749         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27750         * modules/getlogin_r (configure.ac): Update.
27751
27752         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27754         * modules/inet_ntop (configure.ac): Update.
27755
27756         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27757         * modules/inet_pton (configure.ac): Update.
27758
27759         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27760         * modules/mbslen (configure.ac): Update.
27761
27762         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27763         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27764         * modules/forkpty (configure.ac): Update.
27765         * modules/openpty (configure.ac): Update.
27766
27767 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27768
27769         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27770         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27771
27772 2010-03-25  Eric Blake  <eblake@redhat.com>
27773
27774         maint: use pragma consistently across replacement headers
27775         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27776         * lib/dirent.in.h (system_header): Likewise.
27777         * lib/errno.in.h (system_header): Likewise.
27778         * lib/float.in.h (system_header): Likewise.
27779         * lib/getopt.in.h (system_header): Likewise.
27780         * lib/iconv.in.h (system_header): Likewise.
27781         * lib/inttypes.in.h (system_header): Likewise.
27782         * lib/langinfo.in.h (system_header): Likewise.
27783         * lib/locale.in.h (system_header): Likewise.
27784         * lib/math.in.h (system_header): Likewise.
27785         * lib/netdb.in.h (system_header): Likewise.
27786         * lib/netinet_in.in.h (system_header): Likewise.
27787         * lib/pty.in.h (system_header): Likewise.
27788         * lib/sched.in.h (system_header): Likewise.
27789         * lib/se-selinux.in.h (system_header): Likewise.
27790         * lib/search.in.h (system_header): Likewise.
27791         * lib/spawn.in.h (system_header): Likewise.
27792         * lib/stdarg.in.h (system_header): Likewise.
27793         * lib/stdint.in.h (system_header): Likewise.
27794         * lib/string.in.h (system_header): Likewise.
27795         * lib/strings.in.h (system_header): Likewise.
27796         * lib/sys_file.in.h (system_header): Likewise.
27797         * lib/sys_ioctl.in.h (system_header): Likewise.
27798         * lib/sys_socket.in.h (system_header): Likewise.
27799         * lib/sys_times.in.h (system_header): Likewise.
27800         * lib/sys_utsname.in.h (system_header): Likewise.
27801         * lib/sys_wait.in.h (system_header): Likewise.
27802         * lib/sysexits.in.h (system_header): Likewise.
27803         * lib/unistd.in.h (system_header): Likewise.
27804         * lib/wctype.in.h (system_header): Likewise.
27805
27806         arpa/inet: fix mingw compilation warning
27807         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27808         Reported by Matthew Bolte.
27809
27810 2010-03-25  Bruno Haible  <bruno@clisp.org>
27811
27812         Avoid collision between gnulib wrapper and libintl wrapper.
27813         * lib/printf.c (printf): Don't define if a printf wrapper is already
27814         defined in intl/printf.c.
27815         Reported by Michel Boaventura <michel@michelboaventura.com>.
27816
27817 2010-03-25  Bruno Haible  <bruno@clisp.org>
27818
27819         Use ANSI C.
27820         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27821
27822 2010-03-25  Bruno Haible  <bruno@clisp.org>
27823
27824         Minor formatting changes.
27825         * lib/acosl.c: Insert space before function argument list.
27826         * lib/argz.c: Likewise.
27827         * lib/asinl.c: Likewise.
27828         * lib/expl.c: Likewise.
27829         * lib/gen-uni-tables.c: Likewise.
27830         * lib/gettext.h: Likewise.
27831         * lib/glthread/lock.h: Likewise.
27832         * lib/tanl.c: Likewise.
27833         * lib/uniname/uniname.c: Likewise.
27834         * tests/test-idpriv-drop.c: Likewise.
27835         * tests/test-idpriv-droptemp.c: Likewise.
27836         * tests/test-lock.c: Likewise.
27837         * tests/test-tls.c: Likewise.
27838         * lib/argp-help.c: Insert space before function-like macro argument
27839         list.
27840         * lib/memcmp.c: Likewise.
27841         * tests/test-base64.c: Likewise.
27842         * lib/localename.c: Insert space before sizeof's argument list.
27843         * lib/safe-alloc.h: Likewise.
27844         * lib/file-set.h: Insert space before macro argument list.
27845         * tests/test-argp.c: Likewise.
27846         * lib/argp-namefrob.h: Insert space before function parameter list.
27847         * lib/getaddrinfo.c: Likewise.
27848         * lib/netdb.in.h: Likewise.
27849         * lib/parse-duration.h: Likewise.
27850         * lib/parse-duration.c: Likewise.
27851         * lib/poll.c: Likewise.
27852         * lib/select.c: Likewise.
27853         * lib/trim.h: Likewise.
27854         * tests/test-usleep.c: Likewise.
27855         * lib/ldexpl.c: Insert space before function parameter list and before
27856         function argument list.
27857         * lib/logl.c: Likewise.
27858         * lib/sqrtl.c: Likewise.
27859         * lib/trim.c: Likewise.
27860         * lib/cosl.c: Use GNU style indentation. Insert space before function
27861         argument list.
27862         * lib/sinl.c: Likewise.
27863         * lib/tsearch.c: Insert space after 'for'.
27864         Reported by Jim Meyering.
27865
27866 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27867
27868         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27869         config header before grepping, as it's not present before
27870         autoreconf/configure are run.  Reported by Simon Josefsson.
27871
27872 2010-03-23  Bruno Haible  <bruno@clisp.org>
27873
27874         pt_chown: Make it work with automake < 1.11.
27875         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27876         Reported by Simon Josefsson.
27877
27878 2010-03-23  Bruno Haible  <bruno@clisp.org>
27879
27880         pt_chown: Don't depend on GPLed modules.
27881         * lib/pt_chown.c: Don't include idpriv.h.
27882         (main): Don't drop privileges.
27883         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27884         Reported by Simon Josefsson.
27885
27886 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27887
27888         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27889         suggestions from karl@freefriends.org (Karl Berry).
27890
27891 2010-03-22  Eric Blake  <eblake@redhat.com>
27892
27893         gethostname: further tweaks
27894         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27895         are overriding gethostname.
27896         Suggested by Bruno Haible.
27897
27898 2010-03-21  Bruno Haible  <bruno@clisp.org>
27899
27900         Fix comments.
27901         * lib/forkpty.c (rpl_forkpty): Fix comment.
27902         * lib/openpty.c (rpl_openpty): Likewise.
27903         Reported by Eric Blake.
27904
27905 2010-03-22  Eric Blake  <eblake@redhat.com>
27906
27907         gethostname: fix build on mingw
27908         * lib/unistd.in.h (includes): Work around fact that mingw
27909         <winsock2.h> re-includes <unistd.h>, by avoiding any
27910         redeclarations if we are being included by <winsock2.h>.
27911         Reported by Matthias Bolte.
27912
27913 2010-03-21  Bruno Haible  <bruno@clisp.org>
27914
27915         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27916         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27917         modifications.
27918         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27919         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27920         provide the replacement.
27921         * modules/forkpty (Depends-on): Add openpty, login_tty.
27922         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27923         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27924         * doc/glibc-functions/forkpty.texi: More supported platforms.
27925         * config/srclist.txt: Add forkpty.c (commented).
27926
27927 2010-03-21  Bruno Haible  <bruno@clisp.org>
27928
27929         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27930         (Makefile.am): Verify that PTY_LIB is defined.
27931
27932         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27933
27934 2010-03-21  Bruno Haible  <bruno@clisp.org>
27935
27936         Tests for module 'login_tty'.
27937         * modules/login_tty-tests: New file.
27938         * tests/test-login_tty.c: New file.
27939
27940         New module 'login_tty'.
27941         * lib/login_tty.c: New file.
27942         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27943         * modules/login_tty: New file.
27944         * doc/glibc-functions/login_tty.texi: Mention the new module.
27945
27946 2010-03-21  Bruno Haible  <bruno@clisp.org>
27947
27948         login_tty: Documentation.
27949         * doc/glibc-functions/login_tty.texi: New file.
27950         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27951
27952 2010-03-21  Bruno Haible  <bruno@clisp.org>
27953
27954         pty: Consistent macro naming.
27955         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27956         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27957         * modules/pty (configure.ac): Update.
27958
27959 2010-03-21  Bruno Haible  <bruno@clisp.org>
27960
27961         Tests for openpty: Make stricter.
27962         * tests/test-openpty.c (main): Add test of canonical processing and
27963         erase.
27964         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27965
27966         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27967         * lib/openpty.c (openpty): New replacement function.
27968         * lib/pty.in.h: Include <termios.h>.
27969         (openpty): Update declaration. Add comments.
27970         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27971         is not declared, arrange to provide the replacement. Check for _getpty
27972         and posix_openpt.
27973         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27974         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27975         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27976         * modules/pty-tests (test_pty_c___LDADD): New variable.
27977         * doc/glibc-functions/openpty.texi: More supported platforms.
27978
27979 2010-03-21  Bruno Haible  <bruno@clisp.org>
27980
27981         setenv: Tweaks.
27982         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27983         the test program.
27984         * doc/posix-functions/setenv.texi: Update platforms list.
27985
27986 2010-03-21  Bruno Haible  <bruno@clisp.org>
27987
27988         New module 'unlockpt'.
27989         * lib/unlockpt.c: New file, from glibc with modifications.
27990         * m4/unlockpt.m4: New file.
27991         * modules/unlockpt: New file.
27992         * lib/stdlib.in.h (unlockpt): New declaration.
27993         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27994         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27995         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27996         HAVE_UNLOCKPT.
27997         * doc/posix-functions/unlockpt.texi: Mention the new module.
27998         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27999         * config/srclist.txt: Add unlockpt.c (commented).
28000
28001 2010-03-21  Jim Meyering  <meyering@redhat.com>
28002
28003         maint.mk: prohibit inclusion of "intprops.h" without use
28004         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28005
28006 2010-03-21  Bruno Haible  <bruno@clisp.org>
28007
28008         New module 'grantpt'.
28009         * lib/grantpt.c: New file, from glibc with modifications.
28010         * m4/grantpt.m4: New file.
28011         * modules/grantpt: New file.
28012         * lib/stdlib.in.h (grantpt): New declaration.
28013         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28014         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28015         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28016         HAVE_GRANTPT.
28017         * doc/posix-functions/grantpt.texi: Mention the new module.
28018         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28019         * config/srclist.txt: Add grantpt.c (commented).
28020
28021 2010-03-21  Bruno Haible  <bruno@clisp.org>
28022
28023         New module 'pt_chown'.
28024         * lib/pt_chown.c: New file, from glibc with modifications.
28025         * lib/pty-private.h: New file, from glibc with modifications.
28026         * modules/pt_chown: New file.
28027         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28028
28029 2010-03-21  Bruno Haible  <bruno@clisp.org>
28030
28031         Tests for module 'ptsname'.
28032         * modules/ptsname-tests: New file.
28033         * tests/test-ptsname.c: New file.
28034
28035         New module 'ptsname'.
28036         * lib/ptsname.c: New file, from glibc with modifications.
28037         * m4/ptsname.m4: New file.
28038         * modules/ptsname: New file.
28039         * lib/stdlib.in.h (ptsname): New declaration.
28040         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28041         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28042         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28043         HAVE_PTSNAME.
28044         * doc/posix-functions/ptsname.texi: Mention the new module.
28045         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28046         * config/srclist.txt: Add ptsname.c (commented).
28047
28048 2010-03-21  Bruno Haible  <bruno@clisp.org>
28049
28050         Tests for module 'ttyname_r'.
28051         * modules/ttyname_r-tests: New file.
28052         * tests/test-ttyname_r.c: New file.
28053
28054         New module 'ttyname_r'.
28055         * lib/ttyname_r.c: New file.
28056         * m4/ttyname_r.m4: New file.
28057         * modules/ttyname_r: New file.
28058         * lib/unistd.in.h (ttyname_r): New declaration.
28059         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28060         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28061         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28062         HAVE_TTYNAME_R.
28063         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28064         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28065
28066 2010-03-20  Bruno Haible  <bruno@clisp.org>
28067
28068         signal: Undefine macro definitions in C++ mode.
28069         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28070         sigfillset): Undefine macro definitions from the system header in C++
28071         mode.
28072         Reported by John W. Eaton <jwe@gnu.org>.
28073
28074 2010-03-20  Bruno Haible  <bruno@clisp.org>
28075
28076         Ensure no #include statements inside extern "C" { ... }.
28077         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28078         contain #include statements.
28079         * lib/time.in.h: Likewise.
28080
28081 2010-03-20  Bruno Haible  <bruno@clisp.org>
28082
28083         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28084         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28085         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28086         Reported by John W. Eaton <jwe@gnu.org>.
28087
28088 2010-03-20  Bruno Haible  <bruno@clisp.org>
28089
28090         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28091         Reported by Jim Meyering.
28092
28093 2010-03-20  Bruno Haible  <bruno@clisp.org>
28094
28095         pipe: Set errno upon failure.
28096         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28097         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28098         errno value in error message.
28099
28100 2010-03-20  Bruno Haible  <bruno@clisp.org>
28101             Jim Meyering  <meyering@redhat.com>
28102
28103         lchown: Avoid "unused variable" warning.
28104         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28105
28106 2010-03-20  Bruno Haible  <bruno@clisp.org>
28107
28108         Work around unlink() bug on MacOS X 10.5.6.
28109         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28110         attempting to unlink a parent directory.
28111         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28112         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28113         activate for the replacement function.
28114         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28115
28116 2010-03-20  Bruno Haible  <bruno@clisp.org>
28117
28118         Fix link errors on Solaris 8.
28119         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28120         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28121
28122 2010-03-19  Jim Meyering  <meyering@redhat.com>
28123
28124         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28125         The _LIBC implementation of build_range_exp correctly honors the
28126         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28127         However, the non-_LIBC implementation would ignore that syntax-bit
28128         flag and return REG_ERANGE unconditionally.
28129         This change makes it honor that flag.
28130         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28131         Make two pointer parameters "const".
28132         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28133         (parse_bracket_exp): Update caller.
28134
28135         regex.m4: correct the reversed range endpoint ([b-a]) test
28136         * m4/regex.m4: When requiring that [b-a] evoke failure,
28137         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28138         test pass once again for x86-based systems.
28139
28140 2010-03-19  Bruno Haible  <bruno@clisp.org>
28141
28142         scandir: Fix link error on Solaris 8.
28143         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28144         macros.
28145
28146 2010-03-19  Bruno Haible  <bruno@clisp.org>
28147
28148         getusershell: Fix documentation.
28149         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28150         module.
28151         * doc/glibc-functions/setusershell.texi: Likewise.
28152
28153         getusershell: Provide declaration, missing on Solaris 9.
28154         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28155         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28156         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28157         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28159         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28160         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28161         HAVE_GETUSERSHELL.
28162         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28163
28164 2010-03-19  Bruno Haible  <bruno@clisp.org>
28165
28166         wctype: Provide iswblank function.
28167         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28168         exists and is fine.
28169         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28170         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28171         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28172         * doc/posix-functions/iswblank.texi: Update.
28173
28174 2010-03-19  Bruno Haible  <bruno@clisp.org>
28175
28176         Tests of module 'pty' in C++ mode.
28177         * modules/pty-tests: New file.
28178         * tests/test-pty-c++.cc: New file.
28179         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28180
28181 2010-03-19  Eric Blake  <eblake@redhat.com>
28182
28183         logb: fix documentation
28184         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28185         1.5 declaration bug.
28186
28187         forkpty, openpty: prefer glibc's const-safe prototype
28188         * lib/forkpty.c (rpl_forkpty): New file.
28189         * lib/openpty.c (rpl_openpty): Likewise.
28190         * modules/forkpty (Files): Distribute it.
28191         * modules/openpty (Files): Likewise.
28192         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28193         check...
28194         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28195         replacement for for non-const BSD signature.
28196         * modules/pty (Makefile.am): Substitute witnesses.
28197         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28198         * tests/test-forkpty.c: Update signature check.
28199         * tests/test-openpty.c: Likewise.
28200         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28201         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28202
28203         forkpty, openpty: split functions into new modules
28204         * modules/pty (Makefile.am): Substitute new witnesses.
28205         (Libraries): Move library detection...
28206         * modules/forkpty: ...into new module.
28207         * modules/openpty: Another new module.
28208         * modules/pty-tests: Rename and split...
28209         * modules/forkpty-tests: ...to this...
28210         * modules/openpty-tests: ...and this.
28211         * tests/test-pty.c: Rename and split...
28212         * tests/test-forkpty.c: ...to this...
28213         * tests/test-openpty.c: ...and this.
28214         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28215         (gl_PTY): Split library searching...
28216         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28217         (gl_FORKPTY, gl_OPENPTY): New macros.
28218         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28219         * NEWS: Mention the split.
28220         * MODULES.html.sh (Misc): Document the modules.
28221         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28222         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28223
28224         pty: improve replacement header
28225         * lib/pty.in.h: New file.
28226         * modules/pty (Files): Ship it.
28227         (Makefile.am): Always build replacement.
28228         * m4/pty.m4: Rename...
28229         * m4/pty_h.m4: ...to this.
28230         (gl_PTY): Modernize setting of witness macros; update check of
28231         forkpty to take proper advantage of cache.
28232         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28233
28234         getopt: avoid compiler warning
28235         * lib/getopt.c (attribute_hidden): Remove unused macro.
28236
28237 2010-03-18  Bruno Haible  <bruno@clisp.org>
28238
28239         Fix link errors on Solaris 8.
28240         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28241         * modules/search-tests (test_search_c___LDADD): Likewise.
28242         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28243         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28244         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28245         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28246         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28247         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28248         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28249
28250 2010-03-18  Bruno Haible  <bruno@clisp.org>
28251
28252         Fix bug introduced on 2010-03-14.
28253         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28254         (gl_SPAWN_H): Require it.
28255         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28256         Reported by Simon Josefsson.
28257
28258 2010-03-18  Bruno Haible  <bruno@clisp.org>
28259
28260         Fix typo introduced on 2009-12-31.
28261         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28262         posix_spawn_file_actions_adddup2.
28263
28264 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28265         and Eric Blake  <eblake@redhat.com>
28266
28267         test-vc-list-files-git: make more robust
28268         * tests/test-vc-list-files-git.sh: Unset problematic environment
28269         variables.  Chain commands together.
28270
28271 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28272
28273         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28274         `AC_CHECK_DECL' invocation.
28275
28276 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28277
28278         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28279         appears before executable statements. Suggested by Petr Sumbera
28280         <Petr.Sumbera@Sun.COM>.
28281
28282 2010-03-14  Bruno Haible  <bruno@clisp.org>
28283
28284         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28285         portability problems. Instead use a simpler test.
28286         (main): Check that invalid arguments are rejected only on Linux.
28287
28288 2010-03-14  Bruno Haible  <bruno@clisp.org>
28289
28290         Fix bug introduced on 2009-12-31.
28291         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28292         gl_PREREQ_SYS_H_WINSOCK2 always.
28293         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28294         SYS_SOCKET_H variable.
28295         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28296         Update comments.
28297         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28298         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28299         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28300         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28301         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28302
28303 2010-03-14  Bruno Haible  <bruno@clisp.org>
28304
28305         Fix values returned by sinl, cosl.
28306         * lib/trigl.h: Add specification comments.
28307         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28308         that combines the values from the precomputed table with the values of
28309         the Chebyshev polynomials.
28310
28311 2010-03-14  Bruno Haible  <bruno@clisp.org>
28312
28313         Fix compilation error when modules 'posix_spawn[p]' are not used.
28314         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28316
28317 2010-03-14  Bruno Haible  <bruno@clisp.org>
28318
28319         Fix compilation error on mingw when module 'time_r' is not used.
28320         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28321         is 1.
28322         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28323         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28324         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28325         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28326
28327 2010-03-14  Bruno Haible  <bruno@clisp.org>
28328
28329         Fix compilation error with Sun C.
28330         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28331         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28332         instead of GCC specific ULONG_LONG_MAX.
28333         * lib/xstrtoll.c: Likewise.
28334         * lib/xstrtoull.c: Likewise.
28335
28336 2010-03-13  Bruno Haible  <bruno@clisp.org>
28337
28338         Allow the user to disable C++ code and tests.
28339         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28340         (gl_PROG_ANSI_CXX): Require it.
28341
28342 2010-03-13  Bruno Haible  <bruno@clisp.org>
28343
28344         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28345         cases.
28346
28347 2010-03-13  Bruno Haible  <bruno@clisp.org>
28348
28349         Test that gnulib does not break the standard C++ headers.
28350         * tests/test-locale-c++2.cc: New file.
28351         * modules/locale-tests (Files): Add it.
28352         (Makefile.am): Compile it for test-locale-c++.
28353         * tests/test-math-c++2.cc: New file.
28354         * modules/math-tests (Files): Add it.
28355         (Makefile.am): Compile it for test-math-c++.
28356         * tests/test-signal-c++2.cc: New file.
28357         * modules/signal-tests (Files): Add it.
28358         (Makefile.am): Compile it for test-signal-c++.
28359         * tests/test-stdio-c++2.cc: New file.
28360         * modules/stdio-tests (Files): Add it.
28361         (Makefile.am): Compile it for test-stdio-c++.
28362         * tests/test-stdlib-c++2.cc: New file.
28363         * modules/stdlib-tests (Files): Add it.
28364         (Makefile.am): Compile it for test-stdlib-c++.
28365         * tests/test-string-c++2.cc: New file.
28366         * modules/string-tests (Files): Add it.
28367         (Makefile.am): Compile it for test-string-c++.
28368         * tests/test-time-c++2.cc: New file.
28369         * modules/time-tests (Files): Add it.
28370         (Makefile.am): Compile it for test-time-c++.
28371         Reported by John W. Eaton <jwe@gnu.org>.
28372
28373 2010-03-13  Bruno Haible  <bruno@clisp.org>
28374
28375         * gnulib-tool (func_usage): Clarify which options are available for
28376         --create-testdir and --create-megatestdir.
28377
28378 2010-03-13  Bruno Haible  <bruno@clisp.org>
28379
28380         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28381         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28382         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28383         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28384         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28385         when appropriate.
28386         Reported by Jim Meyering.
28387
28388 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28389
28390         * gnulib-tool (func_import): Explain origin of code.
28391
28392 2010-03-12  Bruno Haible  <bruno@clisp.org>
28393
28394         Fix problem with automake's definition of CXXLINK.
28395         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28396         Reported by Simon Josefsson and Ludovic Courtès.
28397
28398 2010-03-12  Bruno Haible  <bruno@clisp.org>
28399
28400         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28401         stable releases.
28402
28403 2010-03-11  Bruno Haible  <bruno@clisp.org>
28404
28405         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28406         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28407         whether the system provides one variant or multiple variants of the
28408         function.
28409         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28410         C++ compilers.
28411         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28412         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28413         Reported by Jim Meyering.
28414
28415 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28416
28417         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28418
28419 2010-03-08  Bruno Haible  <bruno@clisp.org>
28420
28421         gnulib-tool: Add support for --libtool in --create-testdir.
28422         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28423         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28424
28425 2010-03-08  Eric Blake  <eblake@redhat.com>
28426
28427         gnulib-tool.texi: mention possibility of git submodule
28428         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28429         submodules.
28430         * doc/.gitignore: Ignore another generated file.
28431
28432 2010-03-08  Karl Berry  <karl@gnu.org>
28433
28434         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28435         of committing gnulib files while skipping others.
28436
28437 2010-03-07  Bruno Haible  <bruno@clisp.org>
28438
28439         Tests of module 'wctype' in C++ mode.
28440         * tests/test-wctype-c++.cc: New file.
28441         * modules/wctype-tests (Files): Add it and tests/signature.h.
28442         (Depends-on): Add ansi-c++-opt.
28443         (Makefile.am): Arrange to compile and run test-wctype-c++.
28444
28445         Tests of module 'wchar' in C++ mode.
28446         * tests/test-wchar-c++.cc: New file.
28447         * modules/wchar-tests (Files): Add it and tests/signature.h.
28448         (Depends-on): Add ansi-c++-opt.
28449         (Makefile.am): Arrange to compile and run test-wchar-c++.
28450         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28451         gl_MODULE_INDICATOR.
28452
28453         Tests of module 'unistd' in C++ mode.
28454         * tests/test-unistd-c++.cc: New file.
28455         * modules/unistd-tests (Files): Add it and tests/signature.h.
28456         (Depends-on): Add ansi-c++-opt.
28457         (Makefile.am): Arrange to compile and run test-unistd-c++.
28458         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28459         gl_MODULE_INDICATOR.
28460
28461         Tests of module 'time' in C++ mode.
28462         * tests/test-time-c++.cc: New file.
28463         * modules/time-tests (Files): Add it and tests/signature.h.
28464         (Depends-on): Add ansi-c++-opt.
28465         (Makefile.am): Arrange to compile and run test-time-c++.
28466         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28467
28468         Tests of module 'sys_time' in C++ mode.
28469         * tests/test-sys_time-c++.cc: New file.
28470         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28471         (Depends-on): Add ansi-c++-opt.
28472         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28473         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28474         gl_MODULE_INDICATOR.
28475
28476         Tests of module 'sys_stat' in C++ mode.
28477         * tests/test-sys_stat-c++.cc: New file.
28478         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28479         (Depends-on): Add ansi-c++-opt.
28480         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28481         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28482         gl_MODULE_INDICATOR.
28483
28484         Tests of module 'sys_socket' in C++ mode.
28485         * tests/test-sys_socket-c++.cc: New file.
28486         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28487         (Depends-on): Add ansi-c++-opt.
28488         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28489         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28490         gl_MODULE_INDICATOR.
28491
28492         Tests of module 'sys_select' in C++ mode.
28493         * tests/test-sys_select-c++.cc: New file.
28494         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28495         (Depends-on): Add ansi-c++-opt.
28496         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28497         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28498         gl_MODULE_INDICATOR.
28499
28500         Tests of module 'sys_ioctl' in C++ mode.
28501         * tests/test-sys_ioctl-c++.cc: New file.
28502         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28503         (Depends-on): Add ansi-c++-opt.
28504         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28505         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28506         gl_MODULE_INDICATOR.
28507
28508         Tests of module 'string' in C++ mode.
28509         * tests/test-string-c++.cc: New file.
28510         * modules/string-tests (Files): Add it and tests/signature.h.
28511         (Depends-on): Add ansi-c++-opt.
28512         (Makefile.am): Arrange to compile and run test-string-c++.
28513         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28514         gl_MODULE_INDICATOR.
28515
28516         Tests of module 'stdlib' in C++ mode.
28517         * tests/test-stdlib-c++.cc: New file.
28518         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28519         (Depends-on): Add ansi-c++-opt.
28520         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28521         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28522         gl_MODULE_INDICATOR.
28523
28524         Tests of module 'stdio' in C++ mode.
28525         * tests/test-stdio-c++.cc: New file.
28526         * modules/stdio-tests (Files): Add it and tests/signature.h.
28527         (Depends-on): Add ansi-c++-opt.
28528         (Makefile.am): Arrange to compile and run test-stdio-c++.
28529         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28530         gl_MODULE_INDICATOR.
28531
28532         Tests of module 'spawn' in C++ mode.
28533         * tests/test-spawn-c++.cc: New file.
28534         * modules/spawn-tests (Files): Add it and tests/signature.h.
28535         (Depends-on): Add ansi-c++-opt.
28536         (Makefile.am): Arrange to compile and run test-spawn-c++.
28537         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28538         gl_MODULE_INDICATOR.
28539
28540         Tests of module 'signal' in C++ mode.
28541         * tests/test-signal-c++.cc: New file.
28542         * modules/signal-tests (Files): Add it and tests/signature.h.
28543         (Depends-on): Add ansi-c++-opt.
28544         (Makefile.am): Arrange to compile and run test-signal-c++.
28545         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28546         gl_MODULE_INDICATOR.
28547
28548         Tests of module 'search' in C++ mode.
28549         * tests/test-search-c++.cc: New file.
28550         * modules/search-tests (Files): Add it and tests/signature.h.
28551         (Depends-on): Add ansi-c++-opt.
28552         (Makefile.am): Arrange to compile and run test-search-c++.
28553         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28554         gl_MODULE_INDICATOR.
28555
28556         Tests of module 'math' in C++ mode.
28557         * tests/test-math-c++.cc: New file.
28558         * modules/math-tests (Files): Add it and tests/signature.h.
28559         (Depends-on): Add ansi-c++-opt.
28560         (Makefile.am): Arrange to compile and run test-math-c++.
28561         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28562
28563         Tests of module 'locale' in C++ mode.
28564         * tests/test-locale-c++.cc: New file.
28565         * modules/locale-tests (Files): Add it and tests/signature.h.
28566         (Depends-on): Add ansi-c++-opt.
28567         (Makefile.am): Arrange to compile and run test-locale-c++.
28568         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28569         gl_MODULE_INDICATOR.
28570
28571         Tests of module 'langinfo' in C++ mode.
28572         * tests/test-langinfo-c++.cc: New file.
28573         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28574         (Depends-on): Add ansi-c++-opt.
28575         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28576         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28577         gl_MODULE_INDICATOR.
28578
28579         Tests of module 'iconv-h' in C++ mode.
28580         * tests/test-iconv-h-c++.cc: New file.
28581         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28582         (Depends-on): Add ansi-c++-opt.
28583         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28584
28585         Tests of module 'glob' in C++ mode.
28586         * tests/test-glob-c++.cc: New file.
28587         * modules/glob-tests (Files): Add it.
28588         (Depends-on): Add ansi-c++-opt.
28589         (Makefile.am): Arrange to compile and run test-glob-c++.
28590
28591         Tests of module 'fcntl-h' in C++ mode.
28592         * tests/test-fcntl-h-c++.cc: New file.
28593         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28594         (Depends-on): Add ansi-c++-opt.
28595         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28596         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28597         gl_MODULE_INDICATOR.
28598
28599         Tests of module 'dirent' in C++ mode.
28600         * tests/test-dirent-c++.cc: New file.
28601         * modules/dirent-tests (Files): Add it and tests/signature.h.
28602         (Depends-on): Add ansi-c++-opt.
28603         (Makefile.am): Arrange to compile and run test-dirent-c++.
28604         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28605         gl_MODULE_INDICATOR.
28606
28607         New module 'ansi-c++-opt'.
28608         * modules/ansi-c++-opt: New file.
28609         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28610
28611         Document C++ namespace mode.
28612         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28613
28614         wctype: Avoid #define replacements in C++ mode.
28615         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28616         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28617         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28618         In C++, define a namespaced alias symbol.
28619         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28620         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28621         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28622         rule.
28623
28624         wchar: Avoid #define replacements in C++ mode.
28625         * lib/wchar.in.h: Include c++defs.h.
28626         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28627         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28628         symbol.
28629         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28630         * modules/wchar (Depends-on): Add c++defs.
28631         (Makefile.am): Update wchar.h rule.
28632
28633         unistd: Avoid #define replacements in C++ mode.
28634         * lib/unistd.in.h: Include c++defs.h.
28635         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28636         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28637         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28638         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28639         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28640         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28641         symbol.
28642         (environ): Update.
28643         * modules/unistd (Depends-on): Add c++defs.
28644         (Makefile.am): Update unistd.h rule.
28645
28646         time: Avoid #define replacements in C++ mode.
28647         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28648         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28649         define a namespaced alias symbol.
28650         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28651         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28652         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28653         * modules/time (Depends-on): Add c++defs, warn-on-use.
28654         (Makefile.am): Update time.h rule.
28655         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28656         * modules/nanosleep (configure.ac): Likewise.
28657         * modules/strptime (configure.ac): Likewise.
28658         * modules/timegm (configure.ac): Likewise.
28659
28660         sys_time: Avoid #define replacements in C++ mode.
28661         * lib/sys_time.in.h: Include c++defs.h.
28662         (gettimeofday): In C++, define a namespaced alias symbol.
28663         * modules/sys_time (Depends-on): Add c++defs.
28664         (Makefile.am): Update sys/time.h rule.
28665
28666         sys_stat: Avoid #define replacements in C++ mode.
28667         * lib/sys_stat.in.h: Include c++defs.h.
28668         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28669         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28670         namespaced alias symbol.
28671         In C++, define a namespaced alias symbol.
28672         * modules/sys_stat (Depends-on): Add c++defs.
28673         (Makefile.am): Update sys/stat.h rule.
28674
28675         sys_socket: Avoid #define replacements in C++ mode.
28676         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28677         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28678         definitions also when the system has a <sys/socket.h>.
28679         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28680         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28681         In C++, define a namespaced alias symbol.
28682         * modules/sys_socket (Depends-on): Add c++defs.
28683         (Makefile.am): Update sys/socket.h rule.
28684
28685         sys_select: Avoid #define replacements in C++ mode.
28686         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28687         definitions also when the system has a <sys/select.h>.
28688         (select): In C++, define a namespaced alias symbol.
28689         * modules/sys_select (Depends-on): Add c++defs.
28690         (Makefile.am): Update sys/select.h rule.
28691
28692         sys_ioctl: Avoid #define replacements in C++ mode.
28693         * lib/sys_ioctl.in.h: Include c++defs.h.
28694         (ioctl): In C++, define a namespaced alias symbol.
28695         * modules/sys_ioctl (Depends-on): Add c++defs.
28696         (Makefile.am): Update sys/ioctl.h rule.
28697
28698         string: Avoid #define replacements in C++ mode.
28699         * lib/string.in.h: Include c++defs.h.
28700         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28701         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28702         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28703         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28704         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28705         * modules/string (Depends-on): Add c++defs.
28706         (Makefile.am): Update string.h rule.
28707
28708         stdlib: Avoid #define replacements in C++ mode.
28709         * lib/stdlib.in.h: Include c++defs.h.
28710         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28711         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28712         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28713         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28714         symbol.
28715         * modules/stdlib (Depends-on): Add c++defs.
28716         (Makefile.am): Update stdlib.h rule.
28717
28718         stdio: Avoid #define replacements in C++ mode.
28719         * lib/stdio.in.h: Include c++defs.h.
28720         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28721         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28722         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28723         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28724         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28725         namespaced alias symbol.
28726         * modules/stdio (Depends-on): Add c++defs.
28727         (Makefile.am): Update stdio.h rule.
28728
28729         spawn: Avoid #define replacements in C++ mode.
28730         * lib/spawn.in.h: Include c++defs.h.
28731         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28732         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28733         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28734         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28735         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28736         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28737         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28738         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28739         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28740         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28741         In C++, define a namespaced alias symbol.
28742         * modules/spawn (Depends-on): Add c++defs.
28743         (Makefile.am): Update spawn.h rule.
28744
28745         signal: Avoid #define replacements in C++ mode.
28746         * lib/signal.in.h: Include c++defs.h.
28747         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28748         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28749         namespaced alias symbol.
28750         * modules/signal (Depends-on): Add c++defs.
28751         (Makefile.am): Update signal.h rule.
28752
28753         search: Avoid #define replacements in C++ mode.
28754         * lib/search.in.h: Include c++defs.h.
28755         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28756         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28757         symbol.
28758         * modules/search (Depends-on): Add c++defs.
28759         (Makefile.am): Update search.h rule.
28760
28761         math: Avoid #define replacements in C++ mode.
28762         * lib/math.in.h: Include c++defs.h.
28763         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28764         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28765         trunc, truncl): In C++, define a namespaced alias symbol.
28766         * modules/math (Depends-on): Add c++defs.
28767         (Makefile.am): Update math.h rule.
28768
28769         locale: Avoid #define replacements in C++ mode.
28770         * lib/locale.in.h: Include c++defs.h.
28771         (duplocale): In C++, define a namespaced alias symbol.
28772         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28773         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28774         * modules/locale (Depends-on): Add c++defs.
28775         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28776
28777         langinfo: Avoid #define replacements in C++ mode.
28778         * lib/langinfo.in.h: Include c++defs.h.
28779         (nl_langinfo): In C++, define a namespaced alias symbol.
28780         * modules/langinfo (Depends-on): Add c++defs.
28781         (Makefile.am): Update langinfo.h rule.
28782
28783         iconv-h: Avoid #define replacements in C++ mode.
28784         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28785         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28786         symbol.
28787         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28788         whenever iconv is present.
28789         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28790         (Makefile.am): Update iconv.h rule.
28791
28792         glob: Avoid #define replacements in C++ mode.
28793         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28794         (_gl_glob_errfunc_fn): New type.
28795         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28796         symbol.
28797         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28798         (Makefile.am): Update glob.h rule.
28799
28800         fcntl-h: Avoid #define replacements in C++ mode.
28801         * lib/fcntl.in.h: Include c++defs.h.
28802         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28803         * modules/fcntl-h (Depends-on): Add c++defs.
28804         (Makefile.am): Update fcntl.h rule.
28805
28806         dirent: Avoid #define replacements in C++ mode.
28807         * lib/dirent.in.h: Include c++defs.h.
28808         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28809         namespaced alias symbol.
28810         (dirfd): Update declaration.
28811         * modules/dirent (Depends-on): Add c++defs.
28812         (Makefile.am): Update dirent.h rule.
28813
28814         ctype: Make it usable in C++ code.
28815         * lib/ctype.in.h: Include c++defs.h.
28816         (isblank): Declare as extern "C".
28817         * modules/ctype (Depends-on): Add c++defs.
28818         (Makefile.am): Update ctype.h rule.
28819
28820         New module 'c++defs'.
28821         * modules/c++defs: New file.
28822         * build-aux/c++defs.h: New file.
28823         Reported by John W. Eaton <jwe@gnu.org>.
28824
28825 2010-03-07  Bruno Haible  <bruno@clisp.org>
28826
28827         logb: Provide missing declaration for Cygwin.
28828         * lib/math.in.h (logb): New declaration.
28829         * m4/logb.m4: New file.
28830         * modules/logb (Files): Add m4/logb.m4.
28831         (Depends-on): Add math.
28832         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28833         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28834         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28835         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28836         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28837
28838 2010-03-07  Bruno Haible  <bruno@clisp.org>
28839
28840         Fix test-cond link error.
28841         * tests/test-cond.c: Include <stdio.h>.
28842
28843 2010-03-07  Bruno Haible  <bruno@clisp.org>
28844
28845         Fix test-dirent-safer link error.
28846         * modules/dirent-safer-tests (Makefile.am): Define
28847         test_dirent_safer_LDADD.
28848
28849 2010-03-07  Bruno Haible  <bruno@clisp.org>
28850
28851         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28852         among default module list.
28853
28854 2010-03-07  Bruno Haible  <bruno@clisp.org>
28855
28856         Fix link error on platforms with GNU libiconv.
28857         * modules/unistr/u8-strcoll-tests (Makefile): Define
28858         test_u8_strcoll_LDADD.
28859         * modules/unistr/u16-strcoll-tests (Makefile): Define
28860         test_u16_strcoll_LDADD.
28861         * modules/unistr/u32-strcoll-tests (Makefile): Define
28862         test_u32_strcoll_LDADD.
28863
28864 2010-03-07  Bruno Haible  <bruno@clisp.org>
28865
28866         Use POSIX declarations for socket functions.
28867         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28868         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28869         rpl_sendto): Change declaration to match POSIX.
28870         * lib/connect.c (rpl_connect): Likewise.
28871         * lib/accept.c (rpl_accept): Likewise.
28872         * lib/bind.c (rpl_bind): Likewise.
28873         * lib/getpeername.c (rpl_getpeername): Likewise.
28874         * lib/getsockname.c (rpl_getsockname): Likewise.
28875         * lib/recv.c (rpl_recv): Likewise.
28876         * lib/send.c (rpl_send): Likewise.
28877         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28878         * lib/sendto.c (rpl_sendto): Likewise.
28879
28880 2010-03-06  Bruno Haible  <bruno@clisp.org>
28881
28882         Clarify access, euidaccess, faccessat.
28883         * doc/posix-functions/faccessat.texi: Mention security problem under
28884         "Other problems", not "Portability problems".
28885         * doc/posix-functions/access.texi: Likewise. Mention a related security
28886         problem.
28887         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28888         * lib/euidaccess.c: Add comments about platforms.
28889         * lib/unistd.in.h (access, euidaccess): Add warnings.
28890
28891 2010-03-07  Bruno Haible  <bruno@clisp.org>
28892
28893         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28894         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28895         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28896         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28897         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28898         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28899         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28900         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28901         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28902         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28903         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28904         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28905         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28906         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28907         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28908         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28909         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28910         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28911         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28912         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28913         Likewise.
28914         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28915         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28916         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28917         Likewise.
28918         * tests/test-spawn.c (main): Make it work when
28919         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28920
28921 2010-03-07  Bruno Haible  <bruno@clisp.org>
28922
28923         Fix incorrect Makefile.am generation in German locale.
28924         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28925         Execute sed command with character range in C locale.
28926
28927 2010-03-06  Bruno Haible  <bruno@clisp.org>
28928
28929         Tests for module 'iconv-h'.
28930         * modules/iconv-h-tests: New file.
28931         * tests/test-iconv-h.c: New file.
28932
28933         New module 'iconv-h'.
28934         * modules/iconv-h: New file.
28935         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28936         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28937         (configure.ac): Remove gl_ICONV_H.
28938         (Makefile.am): Remove rule for iconv.h.
28939
28940 2010-03-06  Bruno Haible  <bruno@clisp.org>
28941
28942         More consistent naming of *.m4 files.
28943         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28944         * modules/wctype (Files): Update.
28945
28946         More consistent naming of *.m4 files.
28947         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28948         * modules/wchar (Files): Update.
28949
28950 2010-03-06  Jim Meyering  <meyering@redhat.com>
28951
28952         euidaccess: relax license to LGPLv2+
28953         * modules/euidaccess (License): Relax to LGPLv2+.
28954
28955 2010-03-06  Bruno Haible  <bruno@clisp.org>
28956
28957         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28958         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28959         (Makefile.am): Augment lib_SOURCES instead.
28960
28961 2010-03-04  Jim Meyering  <meyering@redhat.com>
28962
28963         utime: remove obsolete module
28964         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28965         unnecessary for years, and has been marked as obsolete for 10 months.
28966         * modules/utime: Remove file.
28967         * lib/utime.c: Remove file.
28968         * m4/utime.m4: Remove file.
28969         * m4/utimes-null.m4: Remove file.
28970         * doc/posix-functions/utime.texi (utime): Remove reference to
28971         the module.  Move the sole "fixed by gnulib" item into the
28972         "problems not fixed by Gnulib" list.
28973         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28974
28975 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28976
28977         * modules/exit (License): Relax license to LGPLv2+.
28978         (Status): Mark as obsolete.
28979         * NEWS: Mention deprecated 'exit' module.
28980         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28981         of now obsolete 'exit'.
28982
28983 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28984
28985         fts-lgpl: remove unused module
28986         * modules/fts-lgpl: Remove.
28987         * MODULES.html.sh (func_all_modules): Adjust.
28988         * check-module (find_included_lib_files): Adjust.
28989         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28990
28991 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28992
28993         copy-acl: enhance Solaris ACL error handling
28994         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28995         * lib/set-mode-acl.c (qset_acl): Likewise.
28996
28997 2010-03-02  Bruno Haible  <bruno@clisp.org>
28998
28999         spawn: Don't override the system defined values on FreeBSD 8.
29000         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29001         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29002         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29003         if HAVE_POSIX_SPAWN is 1.
29004         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29005
29006 2010-03-01  Bruno Haible  <bruno@clisp.org>
29007
29008         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29009         regarding Automake.
29010
29011 2010-02-25  Bruno Haible  <bruno@clisp.org>
29012
29013         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29014         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29015         setting, not afterwards.
29016         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29017
29018 2010-02-24  Eric Blake  <eblake@redhat.com>
29019
29020         bootstrap, git-version-gen: use timestamp
29021         * build-aux/git-version-gen (scriptversion): Force UTC.
29022         * build-aux/bootstrap (scriptversion): New variable.
29023
29024         bootstrap: allow older git
29025         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29026         older than 1.6.4.  Requested by the libvirt project.
29027
29028 2010-02-23  Eric Blake  <eblake@redhat.com>
29029
29030         warn-on-use: work with old autoconf
29031         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29032         AS_VAR semantics of autoconf 2.60.
29033         Reported by Bruno Haible.
29034
29035         bootstrap: improve some comments
29036         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29037         clarification comments.
29038
29039         gettimeofday: provide correct function
29040         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29041         when replacement is declared, otherwise provide gettimeofday.
29042         Reported by Michael Goffioul.
29043
29044 2010-02-23  Jim Meyering  <meyering@redhat.com>
29045
29046         lib-ignore: relax license to "unlimited", not LGPLv2+
29047         * modules/lib-ignore (License): Relax to "unlimited".
29048
29049 2010-02-23  Jim Meyering  <meyering@redhat.com>
29050
29051         lib-ignore: relax license to LGPLv2+
29052         * modules/lib-ignore (License): Relax to LGPLv2+.
29053
29054 2010-02-22  Eric Blake  <eblake@redhat.com>
29055
29056         lseek: avoid bash 3.2 broken pipe bug
29057         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29058         warning from bash 3.2.
29059         Reported by Ben Pfaff, with analysis from Bruno Haible.
29060
29061         bootstrap: support non-FSF copyright holder
29062         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29063         bootstrap.conf override of COPYRIGHT_HOLDER.
29064         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29065
29066         bootstrap: interoperate with gettext 0.14.1
29067         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29068
29069         bootstrap: allow for alternate submodule location
29070         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29071         hardcoding submodule location.
29072         (gnulib_mk): Allow direct use of Makefile.am.
29073
29074         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29075         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29076         rather than reconfiguring where the submodule points.
29077
29078         gettimeofday: restore support for platforms that lack function
29079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29080         replacement if function is missing.
29081         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29082         * modules/sys_time (Makefile.am): Substitute it.
29083         * lib/sys_time.in.h (gettimeofday): Check it.
29084         Reported by Michael Goffioul.
29085
29086 2010-02-21  Bruno Haible  <bruno@clisp.org>
29087
29088         * lib/stdio.in.h (obstack_printf): Fix typo.
29089
29090 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29091
29092         vc-list-files: use bzr ls's -R option
29093         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29094         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29095
29096 2010-02-21  Jim Meyering  <meyering@redhat.com>
29097
29098         init.sh: fix EXEEXT shims to work also for names like test-prog
29099         * tests/init.sh: Re-exec a better shell, when needed.
29100         If the current shell lacks support for posix $(...), an init.sh-using
29101         test will now try to find a shell that supports that.  If EXEEXT is
29102         nonempty, we also require support for hyphen-in-alias-name and shell
29103         substitutions like ${var#glob}.  Failure to find such a shell results
29104         in a skipped test.
29105
29106 2010-02-21  Bruno Haible  <bruno@clisp.org>
29107
29108         Really work around around "broken pipe" error message from bash 3.2.
29109         * gnulib-tool (func_reset_sigpipe): Remove function.
29110         (echo): In bash 3.2, define to a function that uses printf.
29111         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29112
29113 2010-02-20  Bruno Haible  <bruno@clisp.org>
29114
29115         Restore support for automake 1.9.6 with autoconf 2.61.
29116         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29117         Reported by James Youngman <jay@gnu.org>.
29118
29119 2010-02-20  Bruno Haible  <bruno@clisp.org>
29120
29121         Improve *printf warning condition.
29122         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29123         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29124         and the function is overridden due to SIGPIPE emulation.
29125
29126 2010-02-20  Bruno Haible  <bruno@clisp.org>
29127
29128         * lib/stdio.in.h: Tweak comments.
29129
29130 2010-02-19  Bruno Haible  <bruno@clisp.org>
29131
29132         Make it easier to find modules. New gnulib-tool option '--find'.
29133         * gnulib-tool: New option --find.
29134         (func_usage): Document it.
29135         (func_sanitize_modulelist): New function, extracted from
29136         func_all_modules.
29137         (func_all_modules): Invoke it.
29138         * doc/gnulib-tool.texi (Which modules?): New node.
29139
29140 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29141
29142         * lib/sys_select.in.h: Provide select replacement even if
29143         sys/select.h exists on a system, for Interix.
29144
29145 2010-02-18  Jim Meyering  <meyering@redhat.com>
29146
29147         init.sh: don't use $(...) just yet
29148         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29149         to accommodate e.g., Solaris' /bin/sh.
29150
29151 2010-02-17  Bruno Haible  <bruno@clisp.org>
29152
29153         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29154         Reported by Ludovic Courtès <ludo@gnu.org>.
29155
29156 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29157
29158         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29159         linking with -lintl.
29160
29161 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29162
29163         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29164         if not provided by the system's netdb.h.  Reported by
29165         ludo@gnu.org (Ludovic Courtès).
29166
29167 2010-02-15  Jim Meyering  <meyering@redhat.com>
29168
29169         init.sh: improve portability and efficiency
29170         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29171         "dummy" in a for loop.
29172         Use '!', not '^' to select the complement of a character set used
29173         in a "case" statement.
29174         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29175         Suggestions from Eric Blake.
29176
29177         init.sh: automatically accommodate programs with the .exe suffix
29178         Automatically arrange for an invocation of "prog" to execute the
29179         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29180         may use the simpler "prog", yet still work when built on a system
29181         that requires specifying the added suffix.
29182         Do this by constructing a function named "prog" that invokes
29183         "prog.exe" for each .exe file in selected directories.
29184         * tests/init.sh (find_exe_basenames_): New function.
29185         (create_exe_shim_functions_): New function.
29186         (path_prepend_): Use it.
29187
29188         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29189         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29190         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29191
29192 2010-02-14  Jim Meyering  <meyering@redhat.com>
29193
29194         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29195         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29196         (sc_prohibit_hash_pjw_without_use): New rule.
29197
29198         maint.mk: allow the default upload destination dir to be overridden
29199         * top/maint.mk (upload_dest_dir_): Define with a default that
29200         preserves the status quo.
29201         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29202         Reported by Peter Simons.
29203
29204         maint.mk: prohibit inclusion of "hash.h" without_use
29205         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29206
29207 2010-02-10  Jim Meyering  <meyering@redhat.com>
29208
29209         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29210         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29211
29212 2010-02-09  Eric Blake  <ebb9@byu.net>
29213         and Bruno Haible  <bruno@clisp.org>
29214
29215         obstack-printf-posix: ensure declaration
29216         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29217         extracted from gl_FUNC_OBSTACK_PRINTF.
29218         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29219         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29220         Likewise.
29221         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29222         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29223         0.
29224
29225 2010-02-08  Bruno Haible  <bruno@clisp.org>
29226
29227         gnulib-tool: Fix typo in 2010-02-07 commit.
29228         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29229         Reported by Eric Blake.
29230
29231 2010-02-07  Bruno Haible  <bruno@clisp.org>
29232
29233         gnulib-tool: Fix up caching patches.
29234         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29235         option --no-cache. Use associative arrays when supported by the shell.
29236         (sed_comments): New variable.
29237         (modcache): Renamed from do_cache.
29238         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29239         abbreviate unnecessarily.
29240         (have_associative): New variable.
29241         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29242         way also for ksh and zsh.
29243         (func_init_sed_convert_to_cache_statements): New function, extracted
29244         from func_cache_lookup_module. Add support for associative arrays.
29245         Don't set the c_MODULE_cached variable here. Ignore all lines before
29246         the first field header. Remove only the final newline, not all trailing
29247         newlines. Support empty fields correctly. Limit the use of 'eval' to
29248         assignments.
29249         (func_get_description, func_get_status, func_get_notice,
29250         func_get_applicability, func_get_filelist, func_get_dependencies,
29251         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29252         func_get_automake_snippet, func_get_include_directive,
29253         func_get_link_directive, func_get_license, func_get_maintainer):
29254         Update documentation. List the unoptimized code first. Add support for
29255         associative arrays. Limit the use of 'eval' to assignments.
29256         (func_get_applicability): Undo stylistic pessimisations.
29257         (func_get_automake_snippet, func_get_include_directive): Reduce code
29258         duplication.
29259         (func_modules_transitive_closure, func_modules_add_dummy,
29260         func_modules_notice, func_modules_to_filelist, func_add_file,
29261         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29262         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29263         func_create_testdir, func_create_megatestdir): Update documentation.
29264
29265 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29266
29267         * gnulib-tool (func_cache_lookup_module): Store the module name
29268         belonging to the cache variable; error out if two different
29269         module names map to the same cache variable name.
29270
29271 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29272
29273         gnulib-tool: Make caching optional.
29274         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29275         Update matching short versions of --no-changelog.
29276         (func_usage): Update.
29277         (sed_extract_cache_prog): Renamed from ...
29278         (sed_extract_prog): ... this; revert to old extraction script.
29279         (func_get_description, func_get_status)
29280         (func_get_notice, func_get_applicability, func_get_filelist)
29281         (func_get_dependencies, func_get_autoconf_early_snippet)
29282         (func_get_autoconf_snippet, func_get_automake_snippet)
29283         (func_get_include_directive, func_get_link_directive)
29284         (func_get_license, func_get_maintainer): If $do_cache is false,
29285         use old, non-caching extraction scripts.
29286         Suggestion by Bruno Haible.
29287
29288 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29289
29290         gnulib-tool: cache module metainformation.
29291         * gnulib-tool (sed_extract_prog): Match newline before each
29292         header, and rewrite header to a shell variable suffix.
29293         (func_cache_var, func_cache_lookup_module): New functions,
29294         to turn a module name into a cache variable prefix, and to
29295         look up and cache module metainformation.
29296         (func_get_description, func_get_status)
29297         (func_get_notice, func_get_applicability, func_get_filelist)
29298         (func_get_dependencies, func_get_autoconf_early_snippet)
29299         (func_get_autoconf_snippet, func_get_automake_snippet)
29300         (func_get_include_directive, func_get_link_directive)
29301         (func_get_license, func_get_maintainer): Use
29302         func_cache_lookup_module.
29303
29304 2010-02-07  Bruno Haible  <bruno@clisp.org>
29305
29306         fnctl: Fix missing dependency.
29307         * modules/fcntl (Depends-on): Add getdtablesize.
29308         Reported by John W. Eaton <jwe@gnu.org>.
29309
29310 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29311
29312         Argp: fix recognition of short alias options.
29313
29314         * lib/argp-parse.c (convert_options): Fix improper use of
29315         `|' between character values.
29316         * tests/test-argp.c (group1_option): New alias option
29317         --read (-r).
29318         (group1_parser): Special handling for 'r'.
29319         (test15): New test case.
29320         (test_fun): Add test15.
29321         * tests/test-argp-2.sh: Update expected --help and --usage
29322         outputs.
29323
29324 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29325
29326         * tests/test-argp.c: Fix indentation.
29327
29328 2010-02-04  Eric Blake  <ebb9@byu.net>
29329
29330         gettimeofday: expose type of second argument
29331         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29332         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29333         * tests/test-gettimeofday.c: Use it to silence warning.
29334         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29335         the issue.
29336
29337 2010-02-03  Jim Meyering  <meyering@redhat.com>
29338
29339         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29340         * lib/regcomp.c (TYPE_SIGNED): Define.
29341         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29342
29343         regcomp.c: avoid a new -Wshadow warning
29344         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29345
29346 2010-02-01  Jim Meyering  <meyering@redhat.com>
29347
29348         removing useless parentheses in cpp #define directives
29349         For motivation, see commit c0221df4, "define STREQ(a,b)
29350         consistently, removing useless parentheses"
29351         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29352         * lib/mountlist.c (MNT_IGNORE): Likewise.
29353         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29354
29355 2010-02-01  Eric Blake  <ebb9@byu.net>
29356
29357         sys_time: use link-warning
29358         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29359         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29360         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29361         * modules/sys_time (Depends-on): Add warn-on-use.
29362         (Makefile.am): Always build replacement.
29363         (configure.ac): Update substitutions.
29364         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29365         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29366         bother with SYS_TIME_H.
29367         * modules/gettimeofday (configure.ac): Declare indicator.
29368         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29369         in use.
29370
29371         closein-tests: silence compiler warning
29372         * tests/test-closein.c (main): Ignore fread result.
29373         * modules/closein-tests (Depends-on): Add ignore-value.
29374
29375         tests: silence warning about system return
29376         * tests/test-areadlink-with-size.c (main): Ignore system result.
29377         * tests/test-areadlink.c (main): Likewise.
29378         * tests/test-areadlinkat-with-size.c (main): Likewise.
29379         * tests/test-areadlinkat.c (main): Likewise.
29380         * tests/test-canonicalize-lgpl.c (main): Likewise.
29381         * tests/test-canonicalize.c (main): Likewise.
29382         * tests/test-chown.c (main): Likewise.
29383         * tests/test-fchownat.c (main): Likewise.
29384         * tests/test-fdutimensat.c (main): Likewise.
29385         * tests/test-fstatat.c (main): Likewise.
29386         * tests/test-futimens.c (main): Likewise.
29387         * tests/test-lchown.c (main): Likewise.
29388         * tests/test-link.c (main): Likewise.
29389         * tests/test-linkat.c (main): Likewise.
29390         * tests/test-lstat.c (main): Likewise.
29391         * tests/test-mkdir.c (main): Likewise.
29392         * tests/test-mkdirat.c (main): Likewise.
29393         * tests/test-mkfifo.c (main): Likewise.
29394         * tests/test-mkfifoat.c (main): Likewise.
29395         * tests/test-mknod.c (main): Likewise.
29396         * tests/test-readlink.c (main): Likewise.
29397         * tests/test-remove.c (main): Likewise.
29398         * tests/test-rename.c (main): Likewise.
29399         * tests/test-renameat.c (main): Likewise.
29400         * tests/test-rmdir.c (main): Likewise.
29401         * tests/test-symlink.c (main): Likewise.
29402         * tests/test-symlinkat.c (main): Likewise.
29403         * tests/test-unlink.c (main): Likewise.
29404         * tests/test-unlinkat.c (main): Likewise.
29405         * tests/test-utimens.c (main): Likewise.
29406         * tests/test-utimensat.c (main): Likewise.
29407         * modules/areadlink-tests (Depends-on): Add ignore-value.
29408         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29409         * modules/areadlinkat-tests (Depends-on): Likewise.
29410         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29411         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29412         * modules/canonicalize-tests (Depends-on): Likewise.
29413         * modules/chown-tests (Depends-on): Likewise.
29414         * modules/fdutimensat-tests (Depends-on): Likewise.
29415         * modules/futimens-tests (Depends-on): Likewise.
29416         * modules/lchown-tests (Depends-on): Likewise.
29417         * modules/link-tests (Depends-on): Likewise.
29418         * modules/linkat-tests (Depends-on): Likewise.
29419         * modules/lstat-tests (Depends-on): Likewise.
29420         * modules/mkdir-tests (Depends-on): Likewise.
29421         * modules/mkfifo-tests (Depends-on): Likewise.
29422         * modules/mkfifoat-tests (Depends-on): Likewise.
29423         * modules/mknod-tests (Depends-on): Likewise.
29424         * modules/openat-tests (Depends-on): Likewise.
29425         * modules/readlink-tests (Depends-on): Likewise.
29426         * modules/remove-tests (Depends-on): Likewise.
29427         * modules/rename-tests (Depends-on): Likewise.
29428         * modules/renameat-tests (Depends-on): Likewise.
29429         * modules/rmdir-tests (Depends-on): Likewise.
29430         * modules/symlink-tests (Depends-on): Likewise.
29431         * modules/symlinkat-tests (Depends-on): Likewise.
29432         * modules/unlink-tests (Depends-on): Likewise.
29433         * modules/utimens-tests (Depends-on): Likewise.
29434         * modules/utimensat-tests (Depends-on): Likewise.
29435
29436 2010-01-31  Bruno Haible  <bruno@clisp.org>
29437
29438         Perform the same test for many <math.h> functions.
29439         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29440         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29441         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29442         of gl_MATHFUNC.
29443         * modules/acos (configure.ac): Likewise.
29444         * modules/asin (configure.ac): Likewise.
29445         * modules/atan (configure.ac): Likewise.
29446         * modules/atan2 (configure.ac): Likewise.
29447         * modules/cbrt (configure.ac): Likewise.
29448         * modules/copysign (configure.ac): Likewise.
29449         * modules/cos (configure.ac): Likewise.
29450         * modules/cosh (configure.ac): Likewise.
29451         * modules/erf (configure.ac): Likewise.
29452         * modules/erfc (configure.ac): Likewise.
29453         * modules/exp (configure.ac): Likewise.
29454         * modules/fmod (configure.ac): Likewise.
29455         * modules/hypot (configure.ac): Likewise.
29456         * modules/j0 (configure.ac): Likewise.
29457         * modules/j1 (configure.ac): Likewise.
29458         * modules/jn (configure.ac): Likewise.
29459         * modules/lgamma (configure.ac): Likewise.
29460         * modules/log (configure.ac): Likewise.
29461         * modules/log10 (configure.ac): Likewise.
29462         * modules/log1p (configure.ac): Likewise.
29463         * modules/pow (configure.ac): Likewise.
29464         * modules/remainder (configure.ac): Likewise.
29465         * modules/sin (configure.ac): Likewise.
29466         * modules/sinh (configure.ac): Likewise.
29467         * modules/tan (configure.ac): Likewise.
29468         * modules/tanh (configure.ac): Likewise.
29469         * modules/y0 (configure.ac): Likewise.
29470         * modules/y1 (configure.ac): Likewise.
29471         * modules/yn (configure.ac): Likewise.
29472         Suggested by Paolo Bonzini.
29473
29474 2010-01-31  Bruno Haible  <bruno@clisp.org>
29475
29476         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29477
29478 2010-01-31  Bruno Haible  <bruno@clisp.org>
29479
29480         Work around getdelim() bug on FreeBSD 8.0.
29481         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29482         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29483         not work.
29484         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29485         is 1.
29486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29487         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29488         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29489         a non-zero size.
29490         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29491
29492 2010-01-31  Bruno Haible  <bruno@clisp.org>
29493
29494         Work around getline() bug on FreeBSD 8.0.
29495         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29496         and a non-zero size.
29497         * tests/test-getline.c (main): Likewise.
29498         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29499         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29500
29501 2010-01-28  Eric Blake  <ebb9@byu.net>
29502
29503         regex: fix build failure
29504         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29505         platforms.
29506
29507 2010-01-28  Jim Meyering  <meyering@redhat.com>
29508
29509         regex: do not ignore memory allocation failure
29510         * lib/regex_internal.c (create_cd_newstate): Detect
29511         re_node_set_init_copy failure.   Extracted from glibc commit
29512         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29513
29514         regex: sync more white-space changes from libc
29515         * lib/regex_internal.c: White-space only changes.
29516         * lib/regexec.c: Likewise.
29517
29518         regex: add many uses of __attribute_warn_unused_result__
29519         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29520         * lib/regexec.c: Likewise.
29521         Extracted from a messy glibc commit.
29522
29523         regcomp.c: spelling and merge-artifact from glibc
29524         * lib/regcomp.c: Merge remainder of glibc's
29525         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29526
29527         regcomp.c: sync white-space changes from glibc
29528         * lib/regcomp.c: Merge to accommodate white space
29529         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29530
29531         regcomp.c: do not ignore internal return values
29532         * lib/regcomp.c: Do not ignore internal return values.
29533         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29534         but without its white-space changes and spelling fixes.
29535
29536         regex_internal.h: define __attribute_warn_unused_result__
29537         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29538
29539         maint: add a syntax-check rule to check for vulnerable Makefile.in
29540         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29541
29542 2010-01-27  Jim Meyering  <meyering@redhat.com>
29543
29544         ncftpput-ftp: clean up spaces
29545         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29546         Remove trailing blanks.
29547
29548 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29549
29550         * build-aux/git-version-gen: Fix copyright statement.
29551         * build-aux/gnupload: Likewise.
29552         * tests/test-arcfour.c: Likewise.
29553         * tests/test-arctwo.c: Likewise.
29554         * tests/test-count-one-bits.c: Likewise.
29555         * tests/test-crc.c: Likewise.
29556         * tests/test-des.c: Likewise.
29557         * tests/test-gc-arcfour.c: Likewise.
29558         * tests/test-gc-arctwo.c: Likewise.
29559         * tests/test-gc-des.c: Likewise.
29560         * tests/test-gc-hmac-md5.c: Likewise.
29561         * tests/test-gc-hmac-sha1.c: Likewise.
29562         * tests/test-gc-md2.c: Likewise.
29563         * tests/test-gc-md4.c: Likewise.
29564         * tests/test-gc-md5.c: Likewise.
29565         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29566         * tests/test-gc-rijndael.c: Likewise.
29567         * tests/test-gc-sha1.c: Likewise.
29568         * tests/test-gc.c: Likewise.
29569         * tests/test-gethostname.c: Likewise.
29570         * tests/test-gettimeofday.c: Likewise.
29571         * tests/test-hash.c: Likewise.
29572         * tests/test-hmac-md5.c: Likewise.
29573         * tests/test-hmac-sha1.c: Likewise.
29574         * tests/test-md2.c: Likewise.
29575         * tests/test-md4.c: Likewise.
29576         * tests/test-md5.c: Likewise.
29577         * tests/test-memchr.c: Likewise.
29578         * tests/test-memchr2.c: Likewise.
29579         * tests/test-memcmp.c: Likewise.
29580         * tests/test-memmem.c: Likewise.
29581         * tests/test-memrchr.c: Likewise.
29582         * tests/test-rawmemchr.c: Likewise.
29583         * tests/test-read-file.c: Likewise.
29584         * tests/test-rijndael.c: Likewise.
29585         * tests/test-sockets.c: Likewise.
29586         * tests/test-strchrnul.c: Likewise.
29587         * tests/test-strstr.c: Likewise.
29588         * tests/test-strtod.c: Likewise.
29589         * build-aux/ncftpput-ftp: Likewise.
29590
29591 2010-01-26  Eric Blake  <ebb9@byu.net>
29592
29593         ignore-value: update recommended header name
29594         * modules/ignore-value (Include): Only use <> for headers that
29595         exist in glibc.
29596
29597 2010-01-26  Jim Meyering  <meyering@redhat.com>
29598
29599         test-userspec.c: avoid compiler warnings
29600         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29601         and "initialization discards qualifiers..." warnings.
29602         Put the first "uid" in its own scope, and make char* members "const".
29603
29604 2010-01-25  Bruno Haible  <bruno@clisp.org>
29605
29606         gnulib-tool: Make warning diagnostics consistent.
29607         * gnulib-tool (func_warning): New function.
29608         Use it everywhere where gnulib-tool produces output to stderr and it is
29609         not a fatal error.
29610
29611 2010-01-25  Bruno Haible  <bruno@clisp.org>
29612
29613         Fix test dependencies.
29614         * modules/xstrtol-tests (Depends-on): Add inttypes.
29615         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29616
29617 2010-01-25 Pádraig Brady <P@draigBrady.com>
29618
29619         syntax-check: detect incorrect boolean macro values in config.h
29620         * modules/maintainer-makefile (configure.ac): Parameterize the location
29621         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29622         The logic is from Eric Blake and the location indicated by Jim Meyering.
29623         Note the more natural CONFIG_HEADER name is prohibited by automake
29624         for backwards compatibility reasons.
29625         * top/maint.mk (sc_Wundef_boolean): New rule.
29626
29627 2010-01-25  Jim Meyering  <meyering@redhat.com>
29628
29629         bootstrap: detect MacOS 10.6's shasum, too
29630         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29631         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29632
29633 2010-01-23  Jim Meyering  <meyering@redhat.com>
29634
29635         xstrtoll: new module
29636         * modules/xstrtoll: New file.
29637         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29638         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29639         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29640         ./configure fails if you use this module and lack "long long".
29641         * modules/xstrtoll-tests: New module.
29642         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29643         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29644         new init.sh-based test framework.
29645
29646 2010-01-24  Bruno Haible  <bruno@clisp.org>
29647
29648         Tests for module 'yn'.
29649         * modules/yn-tests: New file.
29650         * tests/test-yn.c: New file.
29651
29652         Tests for module 'y1'.
29653         * modules/y1-tests: New file.
29654         * tests/test-y1.c: New file.
29655
29656         Tests for module 'y0'.
29657         * modules/y0-tests: New file.
29658         * tests/test-y0.c: New file.
29659
29660         Tests for module 'tanh'.
29661         * modules/tanh-tests: New file.
29662         * tests/test-tanh.c: New file.
29663
29664         Tests for module 'tan'.
29665         * modules/tan-tests: New file.
29666         * tests/test-tan.c: New file.
29667
29668         Tests for module 'sqrt'.
29669         * modules/sqrt-tests: New file.
29670         * tests/test-sqrt.c: New file.
29671
29672         Tests for module 'sinh'.
29673         * modules/sinh-tests: New file.
29674         * tests/test-sinh.c: New file.
29675
29676         Tests for module 'sin'.
29677         * modules/sin-tests: New file.
29678         * tests/test-sin.c: New file.
29679
29680         Tests for module 'rint'.
29681         * modules/rint-tests: New file.
29682         * tests/test-rint.c: New file.
29683
29684         Tests for module 'remainder'.
29685         * modules/remainder-tests: New file.
29686         * tests/test-remainder.c: New file.
29687
29688         Tests for module 'pow'.
29689         * modules/pow-tests: New file.
29690         * tests/test-pow.c: New file.
29691
29692         Tests for module 'nextafter'.
29693         * modules/nextafter-tests: New file.
29694         * tests/test-nextafter.c: New file.
29695
29696         Tests for module 'modf'.
29697         * modules/modf-tests: New file.
29698         * tests/test-modf.c: New file.
29699
29700         Tests for module 'logb'.
29701         * modules/logb-tests: New file.
29702         * tests/test-logb.c: New file.
29703
29704         Tests for module 'log1p'.
29705         * modules/log1p-tests: New file.
29706         * tests/test-log1p.c: New file.
29707
29708         Tests for module 'log10'.
29709         * modules/log10-tests: New file.
29710         * tests/test-log10.c: New file.
29711
29712         Tests for module 'log'.
29713         * modules/log-tests: New file.
29714         * tests/test-log.c: New file.
29715
29716         Tests for module 'lgamma'.
29717         * modules/lgamma-tests: New file.
29718         * tests/test-lgamma.c: New file.
29719
29720         Tests for module 'ldexp'.
29721         * modules/ldexp-tests: New file.
29722         * tests/test-ldexp.c: New file.
29723
29724         Tests for module 'jn'.
29725         * modules/jn-tests: New file.
29726         * tests/test-jn.c: New file.
29727
29728         Tests for module 'j1'.
29729         * modules/j1-tests: New file.
29730         * tests/test-j1.c: New file.
29731
29732         Tests for module 'j0'.
29733         * modules/j0-tests: New file.
29734         * tests/test-j0.c: New file.
29735
29736         Tests for module 'hypot'.
29737         * modules/hypot-tests: New file.
29738         * tests/test-hypot.c: New file.
29739
29740         Tests for module 'fmod'.
29741         * modules/fmod-tests: New file.
29742         * tests/test-fmod.c: New file.
29743
29744         Tests for module 'fabs'.
29745         * modules/fabs-tests: New file.
29746         * tests/test-fabs.c: New file.
29747
29748         Tests for module 'exp'.
29749         * modules/exp-tests: New file.
29750         * tests/test-exp.c: New file.
29751
29752         Tests for module 'erfc'.
29753         * modules/erfc-tests: New file.
29754         * tests/test-erfc.c: New file.
29755
29756         Tests for module 'erf'.
29757         * modules/erf-tests: New file.
29758         * tests/test-erf.c: New file.
29759
29760         Tests for module 'cosh'.
29761         * modules/cosh-tests: New file.
29762         * tests/test-cosh.c: New file.
29763
29764         Tests for module 'cos'.
29765         * modules/cos-tests: New file.
29766         * tests/test-cos.c: New file.
29767
29768         Tests for module 'copysign'.
29769         * modules/copysign-tests: New file.
29770         * tests/test-copysign.c: New file.
29771
29772         Tests for module 'cbrt'.
29773         * modules/cbrt-tests: New file.
29774         * tests/test-cbrt.c: New file.
29775
29776         Tests for module 'atan2'.
29777         * modules/atan2-tests: New file.
29778         * tests/test-atan2.c: New file.
29779
29780         Tests for module 'atan'.
29781         * modules/atan-tests: New file.
29782         * tests/test-atan.c: New file.
29783
29784         Tests for module 'asin'.
29785         * modules/asin-tests: New file.
29786         * tests/test-asin.c: New file.
29787
29788         Tests for module 'acos'.
29789         * modules/acos-tests: New file.
29790         * tests/test-acos.c: New file.
29791
29792 2010-01-24  Bruno Haible  <bruno@clisp.org>
29793
29794         Fix tests for common <math.h> functions.
29795         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29796         code snippet that references the function pointer, rather than merely
29797         calling the function. Substitute the FUNC_LIBM variable.
29798         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29799         * modules/acos (configure.ac): Likewise.
29800         * modules/asin (configure.ac): Likewise.
29801         * modules/atan (configure.ac): Likewise.
29802         * modules/atan2 (configure.ac): Likewise.
29803         * modules/cbrt (configure.ac): Likewise.
29804         * modules/copysign (configure.ac): Likewise.
29805         * modules/cos (configure.ac): Likewise.
29806         * modules/cosh (configure.ac): Likewise.
29807         * modules/erf (configure.ac): Likewise.
29808         * modules/erfc (configure.ac): Likewise.
29809         * modules/exp (configure.ac): Likewise.
29810         * modules/fabs (configure.ac): Likewise.
29811         * modules/fmod (configure.ac): Likewise.
29812         * modules/hypot (configure.ac): Likewise.
29813         * modules/j0 (configure.ac): Likewise.
29814         * modules/j1 (configure.ac): Likewise.
29815         * modules/jn (configure.ac): Likewise.
29816         * modules/ldexp (configure.ac): Likewise.
29817         * modules/lgamma (configure.ac): Likewise.
29818         * modules/log (configure.ac): Likewise.
29819         * modules/log10 (configure.ac): Likewise.
29820         * modules/log1p (configure.ac): Likewise.
29821         * modules/logb (configure.ac): Likewise.
29822         * modules/modf (configure.ac): Likewise.
29823         * modules/nextafter (configure.ac): Likewise.
29824         * modules/pow (configure.ac): Likewise.
29825         * modules/remainder (configure.ac): Likewise.
29826         * modules/rint (configure.ac): Likewise.
29827         * modules/sin (configure.ac): Likewise.
29828         * modules/sinh (configure.ac): Likewise.
29829         * modules/tan (configure.ac): Likewise.
29830         * modules/tanh (configure.ac): Likewise.
29831         * modules/y0 (configure.ac): Likewise.
29832         * modules/y1 (configure.ac): Likewise.
29833         * modules/yn (configure.ac): Likewise.
29834
29835 2010-01-24  Bruno Haible  <bruno@clisp.org>
29836
29837         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29838         * tests/test-acosl.c (x): New variable.
29839         (main): Store argument in x and fetch it from x.
29840         * tests/test-asinl.c (x): New variable.
29841         (main): Store argument in x and fetch it from x.
29842         * tests/test-atanl.c (x): New variable.
29843         (main): Store argument in x and fetch it from x.
29844         * tests/test-cosl.c (x): New variable.
29845         (main): Store argument in x and fetch it from x.
29846         * tests/test-expl.c (x): New variable.
29847         (main): Store argument in x and fetch it from x.
29848         * tests/test-logl.c (x): New variable.
29849         (main): Store argument in x and fetch it from x.
29850         * tests/test-sinl.c (x): New variable.
29851         (main): Store argument in x and fetch it from x.
29852         * tests/test-sqrtl.c (x): New variable.
29853         (main): Store argument in x and fetch it from x.
29854         * tests/test-tanl.c (x): New variable.
29855         (main): Store argument in x and fetch it from x.
29856
29857 2010-01-24  Bruno Haible  <bruno@clisp.org>
29858
29859         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29860         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29861         assignments to the initial TESTS_ENVIRONMENT.
29862         * doc/gnulib.texi (Unit test modules): Document it.
29863         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29864         TESTS_ENVIRONMENT.
29865         * modules/btowc-tests (Makefile.am): Likewise.
29866         * modules/c-stack-tests (Makefile.am): Likewise.
29867         * modules/c-strcase-tests (Makefile.am): Likewise.
29868         * modules/copy-file-tests (Makefile.am): Likewise.
29869         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29870         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29871         * modules/mbrtowc-tests (Makefile.am): Likewise.
29872         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29873         * modules/mbscasestr-tests (Makefile.am): Likewise.
29874         * modules/mbschr-tests (Makefile.am): Likewise.
29875         * modules/mbscspn-tests (Makefile.am): Likewise.
29876         * modules/mbsinit-tests (Makefile.am): Likewise.
29877         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29878         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29879         * modules/mbspbrk-tests (Makefile.am): Likewise.
29880         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29881         * modules/mbsrchr-tests (Makefile.am): Likewise.
29882         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29883         * modules/mbsspn-tests (Makefile.am): Likewise.
29884         * modules/mbsstr-tests (Makefile.am): Likewise.
29885         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29886         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29887         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29888         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29889         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29890         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29891         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29892         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29893         * modules/wcrtomb-tests (Makefile.am): Likewise.
29894         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29895         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29896         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29897         assignments from TESTS_ENVIRONMENT.
29898         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29899         augmentation.
29900         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29901         * modules/atexit-tests (Makefile.am): Likewise.
29902         * modules/binary-io-tests (Makefile.am): Likewise.
29903         * modules/closein-tests (Makefile.am): Likewise.
29904         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29905         * modules/exclude-tests (Makefile.am): Likewise.
29906         * modules/fflush-tests (Makefile.am): Likewise.
29907         * modules/fpending-tests (Makefile.am): Likewise.
29908         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29909         * modules/freadahead-tests (Makefile.am): Likewise.
29910         * modules/freadptr-tests (Makefile.am): Likewise.
29911         * modules/freadseek-tests (Makefile.am): Likewise.
29912         * modules/fseek-tests (Makefile.am): Likewise.
29913         * modules/fseeko-tests (Makefile.am): Likewise.
29914         * modules/ftell-tests (Makefile.am): Likewise.
29915         * modules/ftello-tests (Makefile.am): Likewise.
29916         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29917         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29918         * modules/lseek-tests (Makefile.am): Likewise.
29919         * modules/parse-duration-tests (Makefile.am): Likewise.
29920         * modules/perror-tests (Makefile.am): Likewise.
29921         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29922         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29923         * modules/pipe-tests (Makefile.am): Likewise.
29924         * modules/pread-tests (Makefile.am): Likewise.
29925         * modules/printf-posix-tests (Makefile.am): Likewise.
29926         * modules/select-tests (Makefile.am): Likewise.
29927         * modules/sigpipe-tests (Makefile.am): Likewise.
29928         * modules/tsearch-tests (Makefile.am): Likewise.
29929         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29930         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29931         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29932         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29933         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29934         * modules/version-etc-tests (Makefile.am): Likewise.
29935         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29936         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29937         * modules/xalloc-die-tests (Makefile.am): Likewise.
29938         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29939         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29940         * modules/xstrtol-tests (Makefile.am): Likewise.
29941         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29942         * modules/yesno-tests (Makefile.am): Likewise.
29943         Suggested by Jim Meyering.
29944
29945 2010-01-24  Bruno Haible  <bruno@clisp.org>
29946
29947         More documentation.
29948         * doc/gnulib.texi (Writing modules): New chapter.
29949         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29950         the new chapter.
29951
29952 2010-01-24  Jim Meyering  <meyering@redhat.com>
29953
29954         maint.mk: do not prepend "./" after filtering
29955         * top/maint.mk (_prepend_srcdir_prefix): New variable
29956         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29957         "./" when $(srcdir) is ".".
29958
29959         define STREQ(a,b) consistently, removing useless parentheses
29960         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29961         since the only risk is that "a" or "b" contains an unparenthesized
29962         comma, but if either did that, STREQ would have 3 or more arguments.
29963         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29964         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29965         * lib/hash-triple.c (STREQ): Likewise.
29966         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29967         * lib/getugroups.c (STREQ): Likewise.
29968
29969 2010-01-23  Jim Meyering  <meyering@redhat.com>
29970
29971         maint.mk: fix syntax-check in a non-srcdir build directory
29972         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29973         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29974
29975 2010-01-22  Jim Meyering  <meyering@redhat.com>
29976
29977         userspec: add unit tests
29978         * tests/test-userspec.c: New file.
29979         * modules/userspec-tests: Likewise.
29980
29981 2010-01-21  Jim Meyering  <meyering@redhat.com>
29982
29983         maint.mk: handle source file names containing "." robustly
29984         * top/maint.mk (_dot_escaped_srcdir): Define.
29985         (VC_LIST): Use it in LHS of sed substitution.
29986
29987 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29988
29989         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29990         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29991         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29992         from a non-srcdir build.
29993
29994 2010-01-20  Eric Blake  <ebb9@byu.net>
29995
29996         warn-on-use: use instead of link-warning
29997         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29998         * modules/unistd (Depends-on, Makefile.am): Likewise.
29999         * modules/arpa_inet (Depends-on): Replace link-warning with
30000         warn-on-use.
30001         (Makefile.am): Update rules accordingly.
30002         * modules/ctype (Depends-on, Makefile.am): Likewise.
30003         * modules/dirent (Depends-on, Makefile.am): Likewise.
30004         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30005         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30006         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30007         * modules/locale (Depends-on, Makefile.am): Likewise.
30008         * modules/math (Depends-on, Makefile.am): Likewise.
30009         * modules/search (Depends-on, Makefile.am): Likewise.
30010         * modules/signal (Depends-on, Makefile.am): Likewise.
30011         * modules/spawn (Depends-on, Makefile.am): Likewise.
30012         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30013         * modules/string (Depends-on, Makefile.am): Likewise.
30014         * modules/strings (Depends-on, Makefile.am): Likewise.
30015         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30016         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30017         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30018         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30019         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30020         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30021         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30022         * modules/wchar (Depends-on, Makefile.am): Likewise.
30023         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30024         should be poisoned.
30025         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30026         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30027         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30028         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30030         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30031         * m4/math_h.m4 (gl_MATH_H): Likewise.
30032         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30033         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30034         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30035         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30036         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30037         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30038         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30039         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30040         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30043         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30044         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30045         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30046         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30047         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30048         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30049         GL_LINK_WARNING.
30050         * lib/ctype.in.h: Likewise.
30051         * lib/dirent.in.h: Likewise.
30052         * lib/fcntl.in.h: Likewise.
30053         * lib/inttypes.in.h: Likewise.
30054         * lib/langinfo.in.h: Likewise.
30055         * lib/locale.in.h: Likewise.
30056         * lib/math.in.h: Likewise.
30057         * lib/search.in.h: Likewise.
30058         * lib/signal.in.h: Likewise.
30059         * lib/spawn.in.h: Likewise.
30060         * lib/stdio.in.h: Likewise.
30061         * lib/stdlib.in.h: Likewise.
30062         * lib/string.in.h: Likewise.
30063         * lib/strings.in.h: Likewise.
30064         * lib/sys_file.in.h: Likewise.
30065         * lib/sys_ioctl.in.h: Likewise.
30066         * lib/sys_select.in.h: Likewise.
30067         * lib/sys_socket.in.h: Likewise.
30068         * lib/sys_stat.in.h: Likewise.
30069         * lib/sys_times.in.h: Likewise.
30070         * lib/sys_utsname.in.h: Likewise.
30071         * lib/unistd.in.h: Likewise.
30072         * lib/wchar.in.h: Likewise.
30073
30074 2010-01-20  Bruno Haible  <bruno@clisp.org>
30075
30076         Avoid duplicate -lm.
30077         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30078         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30080         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30081         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30082         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30083         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30084         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30085         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30086         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30087         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30088         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30089         Reported by Paolo Bonzini.
30090
30091 2010-01-19  Bruno Haible  <bruno@clisp.org>
30092
30093         langinfo, nl_langinfo: Relicense under LGPLv2+.
30094         * modules/langinfo (License): Change to LGPLv2+.
30095         * modules/nl_langinfo (License): Likewise.
30096         Patch by David Lutterkort <lutter@redhat.com>.
30097
30098 2010-01-19  Bruno Haible  <bruno@clisp.org>
30099
30100         Avoid compilation error with cc on OSF/1 5.1.
30101         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30102         statement, not before.
30103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30104
30105 2010-01-18  Bruno Haible  <bruno@clisp.org>
30106
30107         Avoid a link error due to the __printf__ symbol.
30108         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30109         and 2.6.x.
30110         (__format__, __printf__): Remove definitions.
30111         * lib/argp-fmtstream.h: Likewise.
30112         * lib/argp.h: Likewise.
30113         * lib/error.h: Likewise.
30114         * lib/vasnprintf.h: Likewise.
30115         * lib/xprintf.h: Likewise.
30116         * lib/xvasprintf.h: Likewise.
30117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30118
30119 2010-01-18  Bruno Haible  <bruno@clisp.org>
30120
30121         Tests for module 'tanl'.
30122         * modules/tanl-tests: New file.
30123         * tests/test-tanl.c: New file.
30124
30125         Tests for module 'sqrtl'.
30126         * modules/sqrtl-tests: New file.
30127         * tests/test-sqrtl.c: New file.
30128
30129         Tests for module 'sinl'.
30130         * modules/sinl-tests: New file.
30131         * tests/test-sinl.c: New file.
30132
30133         Tests for module 'logl'.
30134         * modules/logl-tests: New file.
30135         * tests/test-logl.c: New file.
30136
30137         Tests for module 'expl'.
30138         * modules/expl-tests: New file.
30139         * tests/test-expl.c: New file.
30140
30141         Tests for module 'cosl'.
30142         * modules/cosl-tests: New file.
30143         * tests/test-cosl.c: New file.
30144
30145         Tests for module 'atanl'.
30146         * modules/atanl-tests: New file.
30147         * tests/test-atanl.c: New file.
30148
30149         Tests for module 'asinl'.
30150         * modules/asinl-tests: New file.
30151         * tests/test-asinl.c: New file.
30152
30153         Tests for module 'acosl'.
30154         * modules/acosl-tests: New file.
30155         * tests/test-acosl.c: New file.
30156
30157         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30158         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30159         tanl): Use the standard gnulib idiom.
30160         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30161         * lib/sinl.c: Likewise.
30162         * lib/tanl.c: Don't include trigl.c.
30163         (kernel_tanl): Make static.
30164         * lib/sincosl.c: Include trigl.h first.
30165         * lib/trigl.c: Likewise.
30166         * m4/acosl.m4: New file.
30167         * m4/asinl.m4: New file.
30168         * m4/atanl.m4: New file.
30169         * m4/cosl.m4: New file.
30170         * m4/expl.m4: New file.
30171         * m4/logl.m4: New file.
30172         * m4/sinl.m4: New file.
30173         * m4/sqrtl.m4: New file.
30174         * m4/tanl.m4: New file.
30175         * m4/mathl.m4: Remove file.
30176         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30177         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30178         Don't initialize GNULIB_MATHL.
30179         * modules/acosl: New file.
30180         * modules/asinl: New file.
30181         * modules/atanl: New file.
30182         * modules/cosl: New file.
30183         * modules/expl: New file.
30184         * modules/logl: New file.
30185         * modules/sinl: New file.
30186         * modules/sqrtl: New file.
30187         * modules/tanl: New file.
30188         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30189         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30190         substitute GNULIB_MATHL.
30191         * modules/mathl: Rewritten.
30192         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30193         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30194         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30195         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30196         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30197         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30198         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30199         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30200         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30201
30202 2010-01-18  Bruno Haible  <bruno@clisp.org>
30203
30204         sqrt: Make gl_FUNC_SQRT requirable.
30205         * m4/sqrt.m4: New file.
30206         * modules/sqrt (Files): Add it.
30207         (configure.ac): Invoke gl_FUNC_SQRT.
30208
30209 2010-01-18  Bruno Haible  <bruno@clisp.org>
30210
30211         New modules for common <math.h> functions.
30212         * m4/mathfunc.m4: New file.
30213         * modules/acos: New file.
30214         * modules/asin: New file.
30215         * modules/atan: New file.
30216         * modules/atan2: New file.
30217         * modules/cbrt: New file.
30218         * modules/copysign: New file.
30219         * modules/cos: New file.
30220         * modules/cosh: New file.
30221         * modules/erf: New file.
30222         * modules/erfc: New file.
30223         * modules/exp: New file.
30224         * modules/fabs: New file.
30225         * modules/fmod: New file.
30226         * modules/hypot: New file.
30227         * modules/j0: New file.
30228         * modules/j1: New file.
30229         * modules/jn: New file.
30230         * modules/ldexp: New file.
30231         * modules/lgamma: New file.
30232         * modules/log: New file.
30233         * modules/log10: New file.
30234         * modules/log1p: New file.
30235         * modules/logb: New file.
30236         * modules/modf: New file.
30237         * modules/nextafter: New file.
30238         * modules/pow: New file.
30239         * modules/remainder: New file.
30240         * modules/rint: New file.
30241         * modules/sin: New file.
30242         * modules/sinh: New file.
30243         * modules/sqrt: New file.
30244         * modules/tan: New file.
30245         * modules/tanh: New file.
30246         * modules/y0: New file.
30247         * modules/y1: New file.
30248         * modules/yn: New file.
30249         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30250         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30251         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30252         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30253         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30254         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30255         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30256         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30257         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30258         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30259         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30260         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30261         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30262         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30263         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30264         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30265         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30266         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30267         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30268         * doc/posix-functions/log.texi: Mention the 'log' module.
30269         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30270         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30271         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30272         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30273         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30274         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30275         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30276         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30277         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30278         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30279         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30280         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30281         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30282         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30283         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30284         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30285
30286 2010-01-18  Jim Meyering  <meyering@redhat.com>
30287
30288         ignore-value: relax license to LGPLv2+
30289         * modules/ignore-value (License): Relax to LGPLv2+.
30290
30291         getdate: don't leak when TZ contains two or more '"'s
30292         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30293         double quote in TZ after the first one.
30294
30295         readtokens: do not leak internal token_lengths buffer
30296         * lib/readtokens.c (readtokens): Free the local, lengths,
30297         when the supplied "token_lengths" parameter is NULL.
30298
30299 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30300
30301         Fix a couple of missing LIBTHREAD link failures on AIX.
30302         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30303         $(LIBTHREAD).
30304         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30305
30306         Link test-poll against INET_PTON_LIB.
30307         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30308         for inet_pton on Solaris 10.
30309
30310 2010-01-17  Bruno Haible  <bruno@clisp.org>
30311
30312         unistdio/*-sprintf: Fix typo in module description.
30313         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30314         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30315         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30316         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30317         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30318         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30319         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30321
30322 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30323
30324         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30325         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30326         variables in shell case patterns, for AIX and HP-UX ksh.
30327
30328         Split large sed scripts, for HP-UX sed.
30329         * modules/stdio: Split sed scripts around 50 sed commands,
30330         to avoid HP-UX limit of 99 commands, in the near future.
30331         * modules/string: Likewise.
30332         * modules/unistd: Likewise.
30333
30334         gnulib-tool: avoid writing in the current directory.
30335         * gnulib-tool (func_emit_lib_Makefile_am)
30336         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30337         not in the current directory, so concurrent gnulib-tool
30338         instances do not interfere.
30339
30340 2010-01-16  Jim Meyering  <meyering@redhat.com>
30341
30342         doc: update users.txt
30343         * users.txt: Add grep.
30344         (diffutils, gzip): Update URLs.
30345
30346 2010-01-12  Bruno Haible  <bruno@clisp.org>
30347
30348         posix_spawn: Avoid test failure on Cygwin.
30349         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30350         characters.
30351         Reported by Simon Josefsson.
30352
30353 2010-01-12  Bruno Haible  <bruno@clisp.org>
30354
30355         * tests/test-cond.c (main): When skipping the test, show the reason.
30356
30357 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30358
30359         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30360
30361 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30362
30363         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30364         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30365
30366 2010-01-12  Eric Blake  <ebb9@byu.net>
30367
30368         build: guarantee AS_VAR_IF
30369         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30370         (gl_AS_VAR_IF): Move...
30371         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30372         Reported by Simon Josefsson.
30373
30374 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30375
30376         * lib/stdio.in.h: Fix typo.
30377
30378 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30379
30380         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30381         libgpg-error.
30382
30383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30384
30385         * tests/test-xalloc-die.sh: Use $EXEEXT.
30386
30387 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30388             Bruno Haible  <bruno@clisp.org>
30389
30390         getlogin, getlogin_r: Avoid test failure.
30391         * tests/test-getlogin.c: Include <stdio.h>.
30392         (main): Skip the test when the function fails because stdin is not a
30393         tty.
30394         * tests/test-getlogin_r.c: Include <stdio.h>.
30395         (main): Skip the test when the function fails because stdin is not a
30396         tty.
30397
30398 2010-01-11  Eric Blake  <ebb9@byu.net>
30399
30400         tests: avoid more large file warnings
30401         * tests/test-fflush.c: Avoid warning about ftell use.
30402         * tests/test-fseek.c: Avoid warning about fseek use.
30403
30404 2010-01-10  Bruno Haible  <bruno@clisp.org>
30405
30406         nproc: Work better on Linux when /proc and /sys are not mounted.
30407         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30408         as lower bound when, on glibc/Linux systems,
30409         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30410         Suggested by Pádraig Brady <P@draigbrady.com>.
30411         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30412
30413         nproc: Refactor.
30414         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30415         extracted from num_processors.
30416         (num_processors): Call it.
30417
30418 2010-01-11  Jim Meyering  <meyering@redhat.com>
30419
30420         utimecmp: avoid new warning from upcoming gcc-4.5.0
30421         * lib/utimecmp.c (BILLION): Define using #define rather than an
30422         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30423
30424 2010-01-11  Eric Blake  <ebb9@byu.net>
30425
30426         math: add portability warnings for classification macros
30427         * modules/math (Depends-on): Add warn-on-use.
30428         (Makefile.am): Provide new substitutions.
30429         * m4/math_h.m4 (gl_MATH_H): Require inline.
30430         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30431         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30432         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30433         implement warnings.
30434
30435         unistd: warn on use of environ without module
30436         * modules/unistd (Depends-on): Add warn-on-use.
30437         (Makefile.am): Provide new substitutions.
30438         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30439         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30440
30441         stdio: warn on suspicious uses
30442         * modules/stdio (Depends-on): Add warn-on-use.
30443         (Makefile.am): Provide new substitutions.
30444         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30445         fseeko.
30446         * lib/stdio.in.h (gets): Always warn on use.
30447         (fseek, ftell): Adjust when warnings are issued, and honor
30448         _GL_NO_LARGE_FILES as a way to silence the warning.
30449         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30450         any warning about large file offsets.
30451         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30452         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30453         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30454         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30455         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30456         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30457         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30458         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30459
30460         warn-on-use: new module
30461         * modules/warn-on-use: New file.
30462         * build-aux/warn-on-use.h: Likewise.
30463         * m4/warn-on-use.m4: Likewise.
30464         * MODULES.html.sh (Support for building): Mention it.
30465
30466 2010-01-10  Bruno Haible  <bruno@clisp.org>
30467
30468         Tests for module 'unistr/u32-strdup'.
30469         * modules/unistr/u32-strdup-tests: New file.
30470         * tests/unistr/test-u32-strdup.c: New file.
30471
30472         Tests for module 'unistr/u16-strdup'.
30473         * modules/unistr/u16-strdup-tests: New file.
30474         * tests/unistr/test-u16-strdup.c: New file.
30475
30476         Tests for module 'unistr/u8-strdup'.
30477         * modules/unistr/u8-strdup-tests: New file.
30478         * tests/unistr/test-u8-strdup.c: New file.
30479         * tests/unistr/test-strdup.h: New file.
30480
30481         Tests for module 'unistr/u32-strncmp'.
30482         * modules/unistr/u32-strncmp-tests: New file.
30483         * tests/unistr/test-u32-strncmp.c: New file.
30484
30485         Tests for module 'unistr/u16-strncmp'.
30486         * modules/unistr/u16-strncmp-tests: New file.
30487         * tests/unistr/test-u16-strncmp.c: New file.
30488
30489         Tests for module 'unistr/u8-strncmp'.
30490         * modules/unistr/u8-strncmp-tests: New file.
30491         * tests/unistr/test-u8-strncmp.c: New file.
30492         * tests/unistr/test-strncmp.h: New file.
30493
30494         Tests for module 'unistr/u32-strcoll'.
30495         * modules/unistr/u32-strcoll-tests: New file.
30496         * tests/unistr/test-u32-strcoll.c: New file.
30497
30498         Tests for module 'unistr/u16-strcoll'.
30499         * modules/unistr/u16-strcoll-tests: New file.
30500         * tests/unistr/test-u16-strcoll.c: New file.
30501
30502         Tests for module 'unistr/u8-strcoll'.
30503         * modules/unistr/u8-strcoll-tests: New file.
30504         * tests/unistr/test-u8-strcoll.c: New file.
30505
30506         Tests for module 'unistr/u32-strcmp'.
30507         * modules/unistr/u32-strcmp-tests: New file.
30508         * tests/unistr/test-u32-strcmp.c: New file.
30509         * tests/unistr/test-u32-strcmp.h: New file.
30510
30511         Tests for module 'unistr/u16-strcmp'.
30512         * modules/unistr/u16-strcmp-tests: New file.
30513         * tests/unistr/test-u16-strcmp.c: New file.
30514         * tests/unistr/test-u16-strcmp.h: New file.
30515
30516         Tests for module 'unistr/u8-strcmp'.
30517         * modules/unistr/u8-strcmp-tests: New file.
30518         * tests/unistr/test-u8-strcmp.c: New file.
30519         * tests/unistr/test-u8-strcmp.h: New file.
30520         * tests/unistr/test-strcmp.h: New file.
30521
30522         Tests for module 'unistr/u32-strncat'.
30523         * modules/unistr/u32-strncat-tests: New file.
30524         * tests/unistr/test-u32-strncat.c: New file.
30525
30526         Tests for module 'unistr/u16-strncat'.
30527         * modules/unistr/u16-strncat-tests: New file.
30528         * tests/unistr/test-u16-strncat.c: New file.
30529
30530         Tests for module 'unistr/u8-strncat'.
30531         * modules/unistr/u8-strncat-tests: New file.
30532         * tests/unistr/test-u8-strncat.c: New file.
30533         * tests/unistr/test-strncat.h: New file.
30534
30535         Tests for module 'unistr/u32-strcat'.
30536         * modules/unistr/u32-strcat-tests: New file.
30537         * tests/unistr/test-u32-strcat.c: New file.
30538
30539         Tests for module 'unistr/u16-strcat'.
30540         * modules/unistr/u16-strcat-tests: New file.
30541         * tests/unistr/test-u16-strcat.c: New file.
30542
30543         Tests for module 'unistr/u8-strcat'.
30544         * modules/unistr/u8-strcat-tests: New file.
30545         * tests/unistr/test-u8-strcat.c: New file.
30546         * tests/unistr/test-strcat.h: New file.
30547
30548         Tests for module 'unistr/u32-stpncpy'.
30549         * modules/unistr/u32-stpncpy-tests: New file.
30550         * tests/unistr/test-u32-stpncpy.c: New file.
30551
30552         Tests for module 'unistr/u16-stpncpy'.
30553         * modules/unistr/u16-stpncpy-tests: New file.
30554         * tests/unistr/test-u16-stpncpy.c: New file.
30555
30556         Tests for module 'unistr/u8-stpncpy'.
30557         * modules/unistr/u8-stpncpy-tests: New file.
30558         * tests/unistr/test-u8-stpncpy.c: New file.
30559         * tests/unistr/test-stpncpy.h: New file.
30560
30561         Tests for module 'unistr/u32-strncpy'.
30562         * modules/unistr/u32-strncpy-tests: New file.
30563         * tests/unistr/test-u32-strncpy.c: New file.
30564
30565         Tests for module 'unistr/u16-strncpy'.
30566         * modules/unistr/u16-strncpy-tests: New file.
30567         * tests/unistr/test-u16-strncpy.c: New file.
30568
30569         Tests for module 'unistr/u8-strncpy'.
30570         * modules/unistr/u8-strncpy-tests: New file.
30571         * tests/unistr/test-u8-strncpy.c: New file.
30572         * tests/unistr/test-strncpy.h: New file.
30573
30574         Tests for module 'unistr/u32-stpcpy'.
30575         * modules/unistr/u32-stpcpy-tests: New file.
30576         * tests/unistr/test-u32-stpcpy.c: New file.
30577
30578         Tests for module 'unistr/u16-stpcpy'.
30579         * modules/unistr/u16-stpcpy-tests: New file.
30580         * tests/unistr/test-u16-stpcpy.c: New file.
30581
30582         Tests for module 'unistr/u8-stpcpy'.
30583         * modules/unistr/u8-stpcpy-tests: New file.
30584         * tests/unistr/test-u8-stpcpy.c: New file.
30585         * tests/unistr/test-stpcpy.h: New file.
30586
30587         Tests for module 'unistr/u32-strcpy'.
30588         * modules/unistr/u32-strcpy-tests: New file.
30589         * tests/unistr/test-u32-strcpy.c: New file.
30590
30591         Tests for module 'unistr/u16-strcpy'.
30592         * modules/unistr/u16-strcpy-tests: New file.
30593         * tests/unistr/test-u16-strcpy.c: New file.
30594
30595         Tests for module 'unistr/u8-strcpy'.
30596         * modules/unistr/u8-strcpy-tests: New file.
30597         * tests/unistr/test-u8-strcpy.c: New file.
30598         * tests/unistr/test-strcpy.h: New file.
30599
30600         Tests for module 'unistr/u32-strnlen'.
30601         * modules/unistr/u32-strnlen-tests: New file.
30602         * tests/unistr/test-u32-strnlen.c: New file.
30603
30604         Tests for module 'unistr/u16-strnlen'.
30605         * modules/unistr/u16-strnlen-tests: New file.
30606         * tests/unistr/test-u16-strnlen.c: New file.
30607
30608         Tests for module 'unistr/u8-strnlen'.
30609         * modules/unistr/u8-strnlen-tests: New file.
30610         * tests/unistr/test-u8-strnlen.c: New file.
30611         * tests/unistr/test-strnlen.h: New file.
30612
30613         Tests for module 'unistr/u32-strlen'.
30614         * modules/unistr/u32-strlen-tests: New file.
30615         * tests/unistr/test-u32-strlen.c: New file.
30616
30617         Tests for module 'unistr/u16-strlen'.
30618         * modules/unistr/u16-strlen-tests: New file.
30619         * tests/unistr/test-u16-strlen.c: New file.
30620
30621         Tests for module 'unistr/u8-strlen'.
30622         * modules/unistr/u8-strlen-tests: New file.
30623         * tests/unistr/test-u8-strlen.c: New file.
30624
30625         Tests for module 'unistr/u32-prev'.
30626         * modules/unistr/u32-prev-tests: New file.
30627         * tests/unistr/test-u32-prev.c: New file.
30628
30629         Tests for module 'unistr/u16-prev'.
30630         * modules/unistr/u16-prev-tests: New file.
30631         * tests/unistr/test-u16-prev.c: New file.
30632
30633         Tests for module 'unistr/u8-prev'.
30634         * modules/unistr/u8-prev-tests: New file.
30635         * tests/unistr/test-u8-prev.c: New file.
30636
30637         Tests for module 'unistr/u32-next'.
30638         * modules/unistr/u32-next-tests: New file.
30639         * tests/unistr/test-u32-next.c: New file.
30640
30641         Tests for module 'unistr/u16-next'.
30642         * modules/unistr/u16-next-tests: New file.
30643         * tests/unistr/test-u16-next.c: New file.
30644
30645         Tests for module 'unistr/u8-next'.
30646         * modules/unistr/u8-next-tests: New file.
30647         * tests/unistr/test-u8-next.c: New file.
30648
30649         Tests for module 'unistr/u32-strmbtouc'.
30650         * modules/unistr/u32-strmbtouc-tests: New file.
30651         * tests/unistr/test-u32-strmbtouc.c: New file.
30652
30653         Tests for module 'unistr/u16-strmbtouc'.
30654         * modules/unistr/u16-strmbtouc-tests: New file.
30655         * tests/unistr/test-u16-strmbtouc.c: New file.
30656
30657         Tests for module 'unistr/u8-strmbtouc'.
30658         * modules/unistr/u8-strmbtouc-tests: New file.
30659         * tests/unistr/test-u8-strmbtouc.c: New file.
30660
30661         Tests for module 'unistr/u32-strmblen'.
30662         * modules/unistr/u32-strmblen-tests: New file.
30663         * tests/unistr/test-u32-strmblen.c: New file.
30664
30665         Tests for module 'unistr/u16-strmblen'.
30666         * modules/unistr/u16-strmblen-tests: New file.
30667         * tests/unistr/test-u16-strmblen.c: New file.
30668
30669         Tests for module 'unistr/u8-strmblen'.
30670         * modules/unistr/u8-strmblen-tests: New file.
30671         * tests/unistr/test-u8-strmblen.c: New file.
30672
30673         Tests for module 'unistr/u32-cpy-alloc'.
30674         * modules/unistr/u32-cpy-alloc-tests: New file.
30675         * tests/unistr/test-u32-cpy-alloc.c: New file.
30676
30677         Tests for module 'unistr/u16-cpy-alloc'.
30678         * modules/unistr/u16-cpy-alloc-tests: New file.
30679         * tests/unistr/test-u16-cpy-alloc.c: New file.
30680
30681         Tests for module 'unistr/u8-cpy-alloc'.
30682         * modules/unistr/u8-cpy-alloc-tests: New file.
30683         * tests/unistr/test-u8-cpy-alloc.c: New file.
30684         * tests/unistr/test-cpy-alloc.h: New file.
30685
30686         Tests for module 'unistr/u32-mbsnlen'.
30687         * modules/unistr/u32-mbsnlen-tests: New file.
30688         * tests/unistr/test-u32-mbsnlen.c: New file.
30689
30690         Tests for module 'unistr/u16-mbsnlen'.
30691         * modules/unistr/u16-mbsnlen-tests: New file.
30692         * tests/unistr/test-u16-mbsnlen.c: New file.
30693
30694         Tests for module 'unistr/u8-mbsnlen'.
30695         * modules/unistr/u8-mbsnlen-tests: New file.
30696         * tests/unistr/test-u8-mbsnlen.c: New file.
30697
30698         Tests for module 'unistr/u32-chr'.
30699         * modules/unistr/u32-chr-tests: New file.
30700         * tests/unistr/test-u32-chr.c: New file.
30701
30702         Tests for module 'unistr/u16-chr'.
30703         * modules/unistr/u16-chr-tests: New file.
30704         * tests/unistr/test-u16-chr.c: New file.
30705
30706         Tests for module 'unistr/u8-chr'.
30707         * modules/unistr/u8-chr-tests: New file.
30708         * tests/unistr/test-u8-chr.c: New file.
30709         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30710
30711         Tests for module 'unistr/u32-cmp2'.
30712         * modules/unistr/u32-cmp2-tests: New file.
30713         * tests/unistr/test-u32-cmp2.c: New file.
30714
30715         Tests for module 'unistr/u16-cmp2'.
30716         * modules/unistr/u16-cmp2-tests: New file.
30717         * tests/unistr/test-u16-cmp2.c: New file.
30718
30719         Tests for module 'unistr/u8-cmp2'.
30720         * modules/unistr/u8-cmp2-tests: New file.
30721         * tests/unistr/test-u8-cmp2.c: New file.
30722         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30723
30724         Tests for module 'unistr/u32-cmp'.
30725         * modules/unistr/u32-cmp-tests: New file.
30726         * tests/unistr/test-u32-cmp.c: New file.
30727
30728         Tests for module 'unistr/u16-cmp'.
30729         * modules/unistr/u16-cmp-tests: New file.
30730         * tests/unistr/test-u16-cmp.c: New file.
30731
30732         Tests for module 'unistr/u8-cmp'.
30733         * modules/unistr/u8-cmp-tests: New file.
30734         * tests/unistr/test-u8-cmp.c: New file.
30735         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30736
30737         Tests for module 'unistr/u32-set'.
30738         * modules/unistr/u32-set-tests: New file.
30739         * tests/unistr/test-u32-set.c: New file.
30740
30741         Tests for module 'unistr/u16-set'.
30742         * modules/unistr/u16-set-tests: New file.
30743         * tests/unistr/test-u16-set.c: New file.
30744
30745         Tests for module 'unistr/u8-set'.
30746         * modules/unistr/u8-set-tests: New file.
30747         * tests/unistr/test-u8-set.c: New file.
30748         * tests/unistr/test-set.h: New file.
30749
30750         Tests for module 'unistr/u32-move'.
30751         * modules/unistr/u32-move-tests: New file.
30752         * tests/unistr/test-u32-move.c: New file.
30753
30754         Tests for module 'unistr/u16-move'.
30755         * modules/unistr/u16-move-tests: New file.
30756         * tests/unistr/test-u16-move.c: New file.
30757
30758         Tests for module 'unistr/u8-move'.
30759         * modules/unistr/u8-move-tests: New file.
30760         * tests/unistr/test-u8-move.c: New file.
30761         * tests/unistr/test-move.h: New file.
30762
30763         Tests for module 'unistr/u32-cpy'.
30764         * modules/unistr/u32-cpy-tests: New file.
30765         * tests/unistr/test-u32-cpy.c: New file.
30766
30767         Tests for module 'unistr/u16-cpy'.
30768         * modules/unistr/u16-cpy-tests: New file.
30769         * tests/unistr/test-u16-cpy.c: New file.
30770
30771         Tests for module 'unistr/u8-cpy'.
30772         * modules/unistr/u8-cpy-tests: New file.
30773         * tests/unistr/test-u8-cpy.c: New file.
30774         * tests/unistr/test-cpy.h: New file.
30775
30776 2010-01-09  Bruno Haible  <bruno@clisp.org>
30777
30778         Tests for module 'unistr/u32-uctomb'.
30779         * modules/unistr/u32-uctomb-tests: New file.
30780         * tests/unistr/test-u32-uctomb.c: New file.
30781
30782         Tests for module 'unistr/u16-uctomb'.
30783         * modules/unistr/u16-uctomb-tests: New file.
30784         * tests/unistr/test-u16-uctomb.c: New file.
30785
30786         Tests for module 'unistr/u8-uctomb'.
30787         * modules/unistr/u8-uctomb-tests: New file.
30788         * tests/unistr/test-u8-uctomb.c: New file.
30789
30790         Tests for module 'unistr/u32-mbtoucr'.
30791         * modules/unistr/u32-mbtoucr-tests: New file.
30792         * tests/unistr/test-u32-mbtoucr.c: New file.
30793
30794         Tests for module 'unistr/u16-mbtoucr'.
30795         * modules/unistr/u16-mbtoucr-tests: New file.
30796         * tests/unistr/test-u16-mbtoucr.c: New file.
30797
30798         Tests for module 'unistr/u8-mbtoucr'.
30799         * modules/unistr/u8-mbtoucr-tests: New file.
30800         * tests/unistr/test-u8-mbtoucr.c: New file.
30801
30802         Tests for module 'unistr/u32-mbtouc'.
30803         * modules/unistr/u32-mbtouc-tests: New file.
30804         * tests/unistr/test-u32-mbtouc.c: New file.
30805
30806         Tests for module 'unistr/u16-mbtouc'.
30807         * modules/unistr/u16-mbtouc-tests: New file.
30808         * tests/unistr/test-u16-mbtouc.c: New file.
30809
30810         Tests for module 'unistr/u8-mbtouc'.
30811         * modules/unistr/u8-mbtouc-tests: New file.
30812         * tests/unistr/test-u8-mbtouc.c: New file.
30813
30814         Tests for module 'unistr/u32-mbtouc-unsafe'.
30815         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30816         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30817         * tests/unistr/test-u32-mbtouc.h: New file.
30818
30819         Tests for module 'unistr/u16-mbtouc-unsafe'.
30820         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30821         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30822         * tests/unistr/test-u16-mbtouc.h: New file.
30823
30824         Tests for module 'unistr/u8-mbtouc-unsafe'.
30825         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30826         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30827         * tests/unistr/test-u8-mbtouc.h: New file.
30828
30829         Tests for module 'unistr/u32-mblen'.
30830         * modules/unistr/u32-mblen-tests: New file.
30831         * tests/unistr/test-u32-mblen.c: New file.
30832
30833         Tests for module 'unistr/u16-mblen'.
30834         * modules/unistr/u16-mblen-tests: New file.
30835         * tests/unistr/test-u16-mblen.c: New file.
30836
30837         Tests for module 'unistr/u8-mblen'.
30838         * modules/unistr/u8-mblen-tests: New file.
30839         * tests/unistr/test-u8-mblen.c: New file.
30840
30841         Tests for module 'unistr/u32-to-u16'.
30842         * modules/unistr/u32-to-u16-tests: New file.
30843         * tests/unistr/test-u32-to-u16.c: New file.
30844
30845         Tests for module 'unistr/u32-to-u8'.
30846         * modules/unistr/u32-to-u8-tests: New file.
30847         * tests/unistr/test-u32-to-u8.c: New file.
30848
30849         Tests for module 'unistr/u16-to-u32'.
30850         * modules/unistr/u16-to-u32-tests: New file.
30851         * tests/unistr/test-u16-to-u32.c: New file.
30852
30853         Tests for module 'unistr/u16-to-u8'.
30854         * modules/unistr/u16-to-u8-tests: New file.
30855         * tests/unistr/test-u16-to-u8.c: New file.
30856
30857         Tests for module 'unistr/u8-to-u32'.
30858         * modules/unistr/u8-to-u32-tests: New file.
30859         * tests/unistr/test-u8-to-u32.c: New file.
30860
30861         Tests for module 'unistr/u8-to-u16'.
30862         * modules/unistr/u8-to-u16-tests: New file.
30863         * tests/unistr/test-u8-to-u16.c: New file.
30864
30865         Tests for module 'unistr/u32-check'.
30866         * modules/unistr/u32-check-tests: New file.
30867         * tests/unistr/test-u32-check.c: New file.
30868
30869         Tests for module 'unistr/u16-check'.
30870         * modules/unistr/u16-check-tests: New file.
30871         * tests/unistr/test-u16-check.c: New file.
30872
30873         Tests for module 'unistr/u8-check'.
30874         * modules/unistr/u8-check-tests: New file.
30875         * tests/unistr/test-u8-check.c: New file.
30876
30877         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30878         (category_equals): New function.
30879         (main): Add more tests.
30880         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30881
30882         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30883
30884 2010-01-10  Bruno Haible  <bruno@clisp.org>
30885
30886         unistr/u*-strcoll: Try harder to distinguish different strings.
30887         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30888         compare s1 and s2 to see if they are different.
30889
30890 2010-01-10  Bruno Haible  <bruno@clisp.org>
30891
30892         unistr/u*-stpncpy: Fix the return value.
30893         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30894         description of the return value consistent with stpncpy in glibc.
30895         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30896         written non-NUL unit.
30897
30898 2010-01-10  Bruno Haible  <bruno@clisp.org>
30899
30900         unistr/u*-next: Add missing dependencies.
30901         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30902         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30903         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30904
30905 2010-01-10  Bruno Haible  <bruno@clisp.org>
30906
30907         unistr/u8-mbsnlen: Fix return value for incomplete character.
30908         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30909         u8_mblen.
30910         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30911         Remove unistr/u8-mblen.
30912         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30913         u16_mblen.
30914         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30915         Remove unistr/u16-mblen.
30916
30917 2010-01-10  Bruno Haible  <bruno@clisp.org>
30918
30919         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30920         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30921         Reported by Brian Gough <bjg@gnu.org> and
30922         Chris Clayton <chris2553@googlemail.com> via
30923         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30924
30925 2010-01-09  Bruno Haible  <bruno@clisp.org>
30926
30927         unistr/u16-to-u32: Reject invalid input.
30928         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30929         u16_mbtouc.
30930         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30931         Remove unistr/u16-mbtouc.
30932
30933         unistr/u16-to-u8: Reject invalid input.
30934         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30935         u16_mbtouc.
30936         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30937         Remove unistr/u16-mbtouc.
30938
30939         unistr/u8-to-u32: Reject invalid input.
30940         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30941         u8_mbtouc.
30942         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30943         Remove unistr/u8-mbtouc.
30944
30945         unistr/u8-to-u16: Reject invalid input.
30946         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30947         u8_mbtouc.
30948         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30949         Remove unistr/u8-mbtouc.
30950
30951 2010-01-09  Bruno Haible  <bruno@clisp.org>
30952
30953         Tests for module 'getlogin'.
30954         * modules/getlogin-tests: New file.
30955         * tests/test-getlogin.c: New file.
30956
30957         New module 'getlogin'.
30958         * lib/unistd.in.h (getlogin): New declaration.
30959         * lib/getlogin.c: New file.
30960         * m4/getlogin.m4: New file.
30961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30962         HAVE_GETLOGIN.
30963         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30964         HAVE_GETLOGIN.
30965         * modules/getlogin: New file.
30966         * doc/posix-functions/getlogin.texi: Mention the new module.
30967         Reported by John W. Eaton <jwe@gnu.org>.
30968
30969 2010-01-09  Bruno Haible  <bruno@clisp.org>
30970
30971         getlogin_r: Support for native Windows.
30972         * lib/getlogin_r.c: Include <windows.h>
30973         (getlogin_r): Implement for native Windows.
30974         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30975         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30976         via John W. Eaton <jwe@gnu.org>.
30977
30978 2010-01-09  Bruno Haible  <bruno@clisp.org>
30979
30980         getlogin_r: Small fixes.
30981         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30982         succeeds.
30983         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30984         before testing whether getlogin_r is declared. No need to set
30985         HAVE_DECL_GETLOGIN_R to 1.
30986         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30987
30988 2010-01-09  Bruno Haible  <bruno@clisp.org>
30989
30990         * lib/unistd.in.h (getlogin_r): Add comment.
30991
30992 2010-01-09  Bruno Haible  <bruno@clisp.org>
30993
30994         Tests for module 'getlogin_r'.
30995         * modules/getlogin_r-tests: New file.
30996         * tests/test-getlogin_r.c: New file.
30997
30998 2010-01-09  Jim Meyering  <meyering@redhat.com>
30999
31000         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31001         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31002         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31003
31004 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31005
31006         * lib/dup2.c (rpl_dup2): Improve comment.
31007
31008 2010-01-08  Eric Blake  <ebb9@byu.net>
31009
31010         maint.mk: allow packages to add makefile @@ exceptions
31011         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31012         (sc_makefile_check): Rename...
31013         (sc_makefile_at_at_check): ...to this, and use hook.
31014
31015         dup2: work around mingw bug
31016         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31017         Reported by Simon Josefsson.
31018
31019 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31020
31021         glob: Fix C++ compilation.
31022         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31023         C++.
31024
31025 2010-01-07  Bruno Haible  <bruno@clisp.org>
31026
31027         Fix indentation of wctype.in.h, broken since 2007-01-06.
31028         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31029
31030 2010-01-07  Bruno Haible  <bruno@clisp.org>
31031
31032         mbslen: Avoid collision with system function.
31033         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31034         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31035         * m4/mbslen.m4: New file.
31036         * modules/mbslen (Files): Add it.
31037         (configure.ac): Invoke gl_MBSLEN.
31038         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31039         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31040         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31041         via Ian Beckwith <ianb@erislabs.net>.
31042
31043 2010-01-07  Bruno Haible  <bruno@clisp.org>
31044
31045         dirent: Document the last fix.
31046         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31047
31048 2010-01-07  Bruno Haible  <bruno@clisp.org>
31049
31050         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31051         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31052         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31053         va_list are defined.
31054         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31055         Reported by Eric Blake.
31056
31057 2010-01-07  Bruno Haible  <bruno@clisp.org>
31058
31059         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31060         * modules/xlist (Depends-on): Add 'list',
31061         * modules/xoset (Depends-on): Add 'oset'.
31062         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31063
31064 2010-01-07  Bruno Haible  <bruno@clisp.org>
31065
31066         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31067         * doc/posix-functions/strncasecmp.texi: Likewise.
31068
31069 2010-01-07  Bruno Haible  <bruno@clisp.org>
31070
31071         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31072
31073 2010-01-07  John W. Eaton  <jwe@octave.org>
31074
31075         wctype: allow C++ use
31076         * lib/wctype.in.h: Add extern "C" block for C++.
31077
31078 2010-01-06  Eric Blake  <ebb9@byu.net>
31079
31080         maint.mk: detect incorrect GFDL usage
31081         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31082
31083 2010-01-06  Jim Meyering  <meyering@redhat.com>
31084         and Eric Blake  <ebb9@byu.net>
31085
31086         maint.mk: ignore multi-line copyright in NEWS
31087         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31088
31089 2010-01-06  Eric Blake  <ebb9@byu.net>
31090
31091         select: add missing dependency
31092         * modules/select-tests (Depends-on): Move sockets dependency...
31093         * modules/select (Depends-on): ...here.
31094         Reported by Ian Beckwith.
31095
31096         doc: regenerate INSTALL
31097         * doc/INSTALL: Reflect recent autoconf update.
31098         * doc/INSTALL.ISO: Likewise.
31099         * doc/INSTALL.UTF-8: Likewise.
31100
31101         pread: fix compilation on glibc
31102         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31103         Reported by Ralf Wildenhues.
31104
31105         dirent: fix test failure
31106         * lib/dirent.in.h (includes): Guarantee ino_t.
31107         Reported by Ralf Wildenhues.
31108
31109 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31110
31111         linkat, renameat: avoid bad free
31112         * lib/at-func2.c (at_func2): Fix typo.
31113         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31114
31115 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31116
31117         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31118         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31119         to avoid failure of symlink test later.
31120
31121 2010-01-06  Eric Blake  <ebb9@byu.net>
31122
31123         stdio, unistd: guarantee ssize_t
31124         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31125         2008 are exposed when needed.
31126         * lib/stdio.in.h (includes): Likewise.
31127         Reported by Ralf Wildenhues.
31128
31129 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31130
31131         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31132         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31133         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31134
31135 2010-01-06  Jim Meyering  <meyering@redhat.com>
31136
31137         readtokens: this module *does* require xalloc.h
31138         It uses only functions that were omitted by the old syntax-check rule.
31139         * lib/readtokens.c: Include "xalloc.h" once again.
31140         * modules/readtokens (Depends-on): Add xalloc.
31141         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31142
31143 2010-01-05  Eric Blake  <ebb9@byu.net>
31144
31145         maint: support 'make announcement' from a VPATH build
31146         * top/maint.mk (announcement): Look for correct NEWS file.
31147
31148 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31149
31150         utimens (fdutimens): ignore a negative FD, per contract
31151         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31152         when we have a valid file descriptor.  Otherwise, using a brand
31153         new glibc (with just-patched futimens that now fails with EBADF)
31154         would cause this function to fail with ENOSYS.
31155         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31156         See also http://bugzilla.redhat.com/552320.
31157
31158 2010-01-05  Eric Blake  <ebb9@byu.net>
31159
31160         strcase: document what it provides
31161         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31162         gnulib module.
31163         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31164         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31165
31166 2010-01-05  Jim Meyering  <meyering@redhat.com>
31167
31168         maint: remove useless inclusions of "xalloc.h"
31169         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31170         * lib/readtokens.c: Likewise.
31171         * lib/same.c: Likewise.
31172         * modules/getloadavg (Depends-on): Remove xalloc.
31173         * modules/readtokens: Likewise.
31174         * modules/same: Likewise.
31175
31176         maint.mk: include 4 more function names in alloca.h-checking regexp
31177         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31178         regexp.  Before, we would give a false-positive (saying alloca.h
31179         is included unnecessarily) when the only uses involved omitted symbols.
31180
31181         xalloc.h: use consistent formatting
31182         * lib/xalloc.h: Move declarations to start in the first column.
31183
31184 2010-01-05  Eric Blake  <ebb9@byu.net>
31185
31186         mkdir: avoid xalloc
31187         * lib/mkdir.c (includes): Drop unused header.
31188         Reported by John W. Eaton.
31189
31190 2010-01-04  Jim Meyering  <meyering@redhat.com>
31191
31192         nl_langinfo: avoid configure-time syntax error
31193         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31194         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31195         the empty string.  Don't let that provoke a shell syntax error.
31196
31197         regcomp, regexec, fnmatch: avoid array bounds read error
31198         * lib/regcomp.c (build_equiv_class): From glibc:
31199         Use only the low 24 bits of a findidx return value as an index
31200         into the weights array.  Patch by Ulrich Drepper:
31201         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31202         * lib/regexec.c (check_node_accept_bytes): Likewise.
31203         * lib/fnmatch_loop.c (FCT): Likewise.
31204
31205         regcomp: skip collseq lookup when there are no rules
31206         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31207         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31208
31209         regcomp: recognize ill-formed { } expressions
31210         * lib/regcomp.c (parse_dup_op): From glibc:
31211         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31212
31213         regcomp: fix typo in comment
31214         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31215         s/satisfy/satisfies/.
31216
31217         regcomp: sync from glibc: remove dead store
31218         * lib/regcomp.c (duplicate_node_closure): Remove useless
31219         search_duplicated_node call and dead store.
31220
31221         regcomp: sync from glibc; always use nl_langinfo
31222         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31223         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31224         * modules/regex (Depends-on): Add nl_langinfo.
31225
31226 2010-01-04  Eric Blake  <ebb9@byu.net>
31227
31228         fdopendir: fix configure test
31229         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31230
31231 2010-01-01  Bruno Haible  <bruno@clisp.org>
31232
31233         wchar: Remove unused configure check.
31234         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31235
31236 2010-01-01  Eric Blake  <ebb9@byu.net>
31237
31238         headers: make check of system header explicit
31239         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31240         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31241         ourselves.
31242         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31243         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31244         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31245         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31246         internals.
31247         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31248         missing.
31249         Suggested by Bruno Haible.
31250
31251 2010-01-01  Jim Meyering  <meyering@redhat.com>
31252
31253         ChangeLog: tweak to eliminate unnecessary copyright line
31254         * ChangeLog: Remove a copyright line that was mistakenly updated
31255         by today's update-copyright run.  Reported by Eric Blake.
31256
31257         test-update-copyright: don't let envvar setting cause test failure
31258         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31259
31260 2010-01-01  Bruno Haible  <bruno@clisp.org>
31261
31262         localename: Avoid gcc warning.
31263         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31264         function if it is not used.
31265
31266 2010-01-01  Jim Meyering  <meyering@redhat.com>
31267
31268         update nearly all FSF copyright year lists to include 2010
31269         Use the same procedure as for 2009, outlined in
31270         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31271
31272         version-etc: set COPYRIGHT_YEAR to 2010
31273         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31274
31275 2009-12-31  Eric Blake  <ebb9@byu.net>
31276
31277         doc: correct availability of cygwin 1.5.x getopt
31278         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31279         variables.
31280         * doc/posix-functions/opterr.texi (opterr): Likewise.
31281         * doc/posix-functions/optind.texi (optind): Likewise.
31282         * doc/posix-functions/optopt.texi (optopt): Likewise.
31283         * doc/posix-functions/tzname.texi (tzname): Likewise.
31284
31285         openat: update maintainer
31286         * modules/openat (Maintainer): Add myself.
31287
31288         utimens: avoid shadowing warning
31289         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31290         buffers into one, to avoid shadowing, as well as avoiding a
31291         redundant stat.
31292         Reported by Jim Meyering.
31293
31294         test-dup2: avoid compiler warning
31295         * tests/test-dup2.c (is_inheritable): Only define if used.
31296
31297 2010-01-01  Bruno Haible  <bruno@clisp.org>
31298
31299         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31300         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31301         defined, use wctomb instead of wcrtomb.
31302
31303 2010-01-01  Bruno Haible  <bruno@clisp.org>
31304
31305         iconv: Reject native Solaris iconv.
31306         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31307         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31308
31309 2009-12-31  Bruno Haible  <bruno@clisp.org>
31310
31311         * tests/test-signal.c (main): Remove test of 'SIG'.
31312
31313 2009-12-31  Bruno Haible  <bruno@clisp.org>
31314
31315         spawn: Fix incomplete fix.
31316         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31317         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31318         warnings for GNULIB_POSIXCHECK again.
31319         Reported by Eric Blake.
31320
31321 2009-12-31  Bruno Haible  <bruno@clisp.org>
31322
31323         Avoid namespace pollution on glibc systems.
31324         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31325         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31326         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31327         glibc systems.
31328
31329 2009-12-31  Bruno Haible  <bruno@clisp.org>
31330
31331         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31332         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31333         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31334         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31335         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31336         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31337         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31338
31339 2009-12-31  Bruno Haible  <bruno@clisp.org>
31340
31341         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31342         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31343         afterwards.
31344
31345 2009-12-31  Bruno Haible  <bruno@clisp.org>
31346
31347         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31348         SYS_UTSNAME_H.
31349
31350 2009-12-31  Bruno Haible  <bruno@clisp.org>
31351
31352         spawn: Fix misapplied patch.
31353         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31354         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31355         warnings for GNULIB_POSIXCHECK.
31356
31357 2009-12-31  Bruno Haible  <bruno@clisp.org>
31358
31359         times: Update after sys_times changed.
31360         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31361         * modules/times (Files): Add it.
31362         (configure.ac): Invoke gl_FUNC_TIMES.
31363
31364 2009-12-31  Bruno Haible  <bruno@clisp.org>
31365
31366         Use AC_C_INLINE where necessary.
31367         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31368         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31370         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31371         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31372         * m4/mbiter.m4 (gl_MBITER): Likewise.
31373         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31374         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31375         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31376         * modules/u64 (configure.ac): Likewise.
31377
31378 2009-12-31  Bruno Haible  <bruno@clisp.org>
31379
31380         Use AC_C_INLINE instead of module 'inline' where possible.
31381         * modules/inline (Description): Clarify purpose.
31382         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31383         * modules/count-one-bits (Depends-on): Remove inline.
31384         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31385         * modules/openat (Depends-on): Remove inline.
31386         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31387         instead of depending on module 'inline'.
31388         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31389         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31390         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31391         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31392         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31393         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31394         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31395         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31396         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31397         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31398         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31399         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31400         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31401         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31402         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31403         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31404         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31405         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31406         Likewise.
31407         * modules/unictype/property-ascii-hex-digit (Depends-on,
31408         configure.ac): Likewise.
31409         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31410         configure.ac): Likewise.
31411         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31412         configure.ac): Likewise.
31413         * modules/unictype/property-bidi-block-separator (Depends-on,
31414         configure.ac): Likewise.
31415         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31416         configure.ac): Likewise.
31417         * modules/unictype/property-bidi-common-separator (Depends-on,
31418         configure.ac): Likewise.
31419         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31420         Likewise.
31421         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31422         configure.ac): Likewise.
31423         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31424         configure.ac): Likewise.
31425         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31426         configure.ac): Likewise.
31427         * modules/unictype/property-bidi-european-digit (Depends-on,
31428         configure.ac): Likewise.
31429         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31430         configure.ac): Likewise.
31431         * modules/unictype/property-bidi-left-to-right (Depends-on,
31432         configure.ac): Likewise.
31433         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31434         configure.ac): Likewise.
31435         * modules/unictype/property-bidi-other-neutral (Depends-on,
31436         configure.ac): Likewise.
31437         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31438         Likewise.
31439         * modules/unictype/property-bidi-segment-separator (Depends-on,
31440         configure.ac): Likewise.
31441         * modules/unictype/property-bidi-whitespace (Depends-on,
31442         configure.ac): Likewise.
31443         * modules/unictype/property-combining (Depends-on, configure.ac):
31444         Likewise.
31445         * modules/unictype/property-composite (Depends-on, configure.ac):
31446         Likewise.
31447         * modules/unictype/property-currency-symbol (Depends-on,
31448         configure.ac): Likewise.
31449         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31450         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31451         Likewise.
31452         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31453         configure.ac): Likewise.
31454         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31455         Likewise.
31456         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31457         Likewise.
31458         * modules/unictype/property-extender (Depends-on, configure.ac):
31459         Likewise.
31460         * modules/unictype/property-format-control (Depends-on, configure.ac):
31461         Likewise.
31462         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31463         Likewise.
31464         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31465         Likewise.
31466         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31467         Likewise.
31468         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31469         Likewise.
31470         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31471         Likewise.
31472         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31473         Likewise.
31474         * modules/unictype/property-id-start (Depends-on, configure.ac):
31475         Likewise.
31476         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31477         Likewise.
31478         * modules/unictype/property-ids-binary-operator (Depends-on,
31479         configure.ac): Likewise.
31480         * modules/unictype/property-ids-trinary-operator (Depends-on,
31481         configure.ac): Likewise.
31482         * modules/unictype/property-ignorable-control (Depends-on,
31483         configure.ac): Likewise.
31484         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31485         Likewise.
31486         * modules/unictype/property-join-control (Depends-on, configure.ac):
31487         Likewise.
31488         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31489         Likewise.
31490         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31491         Likewise.
31492         * modules/unictype/property-logical-order-exception (Depends-on,
31493         configure.ac): Likewise.
31494         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31495         Likewise.
31496         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31497         * modules/unictype/property-non-break (Depends-on, configure.ac):
31498         Likewise.
31499         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31500         Likewise.
31501         * modules/unictype/property-numeric (Depends-on, configure.ac):
31502         Likewise.
31503         * modules/unictype/property-other-alphabetic (Depends-on,
31504         configure.ac): Likewise.
31505         * modules/unictype/property-other-default-ignorable-code-point
31506         (Depends-on, configure.ac): Likewise.
31507         * modules/unictype/property-other-grapheme-extend (Depends-on,
31508         configure.ac): Likewise.
31509         * modules/unictype/property-other-id-continue (Depends-on,
31510         configure.ac): Likewise.
31511         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31512         Likewise.
31513         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31514         Likewise.
31515         * modules/unictype/property-other-math (Depends-on, configure.ac):
31516         Likewise.
31517         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31518         Likewise.
31519         * modules/unictype/property-paired-punctuation (Depends-on,
31520         configure.ac): Likewise.
31521         * modules/unictype/property-paragraph-separator (Depends-on,
31522         configure.ac): Likewise.
31523         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31524         Likewise.
31525         * modules/unictype/property-pattern-white-space (Depends-on,
31526         configure.ac): Likewise.
31527         * modules/unictype/property-private-use (Depends-on, configure.ac):
31528         Likewise.
31529         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31530         Likewise.
31531         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31532         Likewise.
31533         * modules/unictype/property-radical (Depends-on, configure.ac):
31534         Likewise.
31535         * modules/unictype/property-sentence-terminal (Depends-on,
31536         configure.ac): Likewise.
31537         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31538         Likewise.
31539         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31540         * modules/unictype/property-terminal-punctuation (Depends-on,
31541         configure.ac): Likewise.
31542         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31543         Likewise.
31544         * modules/unictype/property-unassigned-code-value (Depends-on,
31545         configure.ac): Likewise.
31546         * modules/unictype/property-unified-ideograph (Depends-on,
31547         configure.ac): Likewise.
31548         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31549         Likewise.
31550         * modules/unictype/property-variation-selector (Depends-on,
31551         configure.ac): Likewise.
31552         * modules/unictype/property-white-space (Depends-on, configure.ac):
31553         Likewise.
31554         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31555         Likewise.
31556         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31557         Likewise.
31558         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31559         Likewise.
31560         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31561         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31562         Likewise.
31563
31564 2009-12-31  Bruno Haible  <bruno@clisp.org>
31565
31566         Remove unnecessary AC_C_INLINE invocation.
31567         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31568         since 2009-08-21.
31569
31570 2009-12-31  Jim Meyering  <meyering@redhat.com>
31571
31572         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31573         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31574         With this change, we can all remove the gpg_key_ID = ... definition
31575         from our respective cfg.mk files.
31576
31577         maint.mk: create announcement template in ~/, not in /tmp
31578         * top/maint.mk (emit_upload_commands): Adjust.
31579         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31580         Remove temporary file, .ci-msg.
31581
31582 2009-12-31  Eric Blake  <ebb9@byu.net>
31583
31584         link-warning: always build headers with link warnings
31585         * modules/arpa_inet (Makefile.am): Always build replacement
31586         header.
31587         * modules/ctype (Makefile.am): Likewise.
31588         * modules/dirent (Makefile.am): Likewise.
31589         * modules/inttypes (Makefile.am): Likewise.
31590         * modules/langinfo (Makefile.am): Likewise.
31591         * modules/locale (Makefile.am): Likewise.
31592         * modules/spawn (Makefile.am): Likewise.
31593         * modules/sys_file (Makefile.am): Likewise.
31594         * modules/sys_ioctl (Makefile.am): Likewise.
31595         * modules/sys_select (Makefile.am): Likewise.
31596         * modules/sys_socket (Makefile.am): Likewise.
31597         * modules/sys_times (Makefile.am): Likewise.
31598         * modules/sys_utsname (Makefile.am): Likewise.
31599         * modules/sys_wait (Makefile.am): Likewise.
31600         * modules/wchar (Makefile.am): Likewise.
31601         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31602         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31603         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31604         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31605         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31606         Likewise.
31607         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31608         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31609         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31610         Likewise.
31611         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31612         Likewise.
31613         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31614         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31615         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31617         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31619         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31620         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31621         (gl_WCHAR_H_DEFAULTS): Likewise.
31622
31623 2009-12-31  Eric Blake  <ebb9@byu.net>
31624
31625         signal, spawn: use link warnings
31626         * lib/signal.in.h (sigset_t): Make unconditional.
31627         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31628         (sigpending, sigprocmask, sigaction): Add link warnings.
31629         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31630         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31631         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31632         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31633         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31634         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31635         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31636         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31637         (posix_spawn_file_actions_destroy)
31638         (posix_spawn_file_actions_addopen)
31639         (posix_spawn_file_actions_addclose)
31640         (posix_spawn_file_actions_adddup2): Likewise.
31641         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31642         * tests/test-signal.c (main): Enhance test.
31643
31644         spawn: improve wrapper support
31645         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31646         (gl_SPAWN_H_DEFAULTS): New defaults.
31647         * modules/spawn (Makefile.am): Substitute them.
31648         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31649         Only declare if missing or broken.
31650
31651         sys_times, sys_utsname: use include_next
31652         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31653         header.
31654         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31655         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31656         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31657         * modules/sys_times (Depends-on): Add include_next.
31658         (Makefile.am): Substitute additional values.
31659         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31660         * lib/sys_times.in.h (includes): Include native header, if
31661         available.
31662         * lib/sys_utsname.in.h (includes): Likewise.
31663         * tests/test-sys_times.c (main): Enhance test.
31664
31665         fdutimensat: revert prior patch
31666         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31667         utimens.h.
31668         Reported by Bruno Haible.
31669
31670 2009-12-30  Eric Blake  <ebb9@byu.net>
31671
31672         sys_wait: drop link-warning dependency
31673         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31674         link-warning efforts.
31675         * lib/sys_wait.in.h: Likewise.
31676
31677         fdutimensat: remove bogus dependency
31678         * modules/fdutimensat (Depends-on): Drop inline.
31679
31680         unistd: fix typo
31681         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31682
31683 2009-12-30  Bruno Haible  <bruno@clisp.org>
31684
31685         Fix compilation error with Solaris cc.
31686         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31687         * lib/unicase/u16-is-invariant.c: Likewise.
31688         * lib/unicase/u32-is-invariant.c: Likewise.
31689         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31690
31691 2009-12-30  Bruno Haible  <bruno@clisp.org>
31692
31693         Fix test crash.
31694         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31695         locales.
31696         Reported by Simon Josefsson <simon@josefsson.org>.
31697
31698 2009-12-30  Bruno Haible  <bruno@clisp.org>
31699
31700         Fix compilation error on most platforms.
31701         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31702         Reported by Simon Josefsson <simon@josefsson.org>
31703         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31704
31705 2009-12-30  Eric Blake  <ebb9@byu.net>
31706
31707         futimens, utimensat: work around ntfs-3g bug
31708         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31709         a ctime bug is present, and expand workaround to cover ntfs-3g.
31710         * lib/utimens.c (fdutimens, lutimens): Likewise.
31711         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31712         (validate_timespec): Adjust return value.
31713         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31714         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31715         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31716
31717 2009-12-29  Eric Blake  <ebb9@byu.net>
31718
31719         link-warning: make usage consistent
31720         * modules/ctype (Depends-on): Add link-warning.
31721         (Makefile.am): Update rules accordingly.
31722         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31723         * modules/locale (Depends-on, Makefile.am): Likewise.
31724         * modules/sys_file (Makefile.am): Likewise.
31725         * modules/getopt-posix (Makefile.am): Delete unused link warning
31726         efforts.
31727         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31728         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31729         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31730         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31731
31732         stdio: remove unused variables
31733         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31734         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31735         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31736
31737         tests: test more substitute headers
31738         * modules/ctype-tests: New file.
31739         * modules/dirent-tests: Likewise.
31740         * modules/spawn-tests: Likewise.
31741         * modules/sys_file-tests: Likewise.
31742         * modules/sys_ioctl-tests: Likewise.
31743         * modules/sys_wait-tests: Likewise.
31744         * tests/test-ctype.c: Likewise.
31745         * tests/test-dirent.c: Likewise.
31746         * tests/test-spawn.c: Likewise.
31747         * tests/test-sys_file.c: Likewise.
31748         * tests/test-sys_ioctl.c: Likewise.
31749         * tests/test-sys_wait.c: Likewise.
31750         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31751         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31752         whether or not flock is in use.
31753
31754         tests: remove License section from module
31755         * modules/arpa_inet-tests: Remove unneeded section.
31756         * modules/byteswap-tests: Likewise.
31757         * modules/ceilf-tests: Likewise.
31758         * modules/ceill-tests: Likewise.
31759         * modules/crypto/des-tests: Likewise.
31760         * modules/crypto/gc-arcfour-tests: Likewise.
31761         * modules/crypto/gc-arctwo-tests: Likewise.
31762         * modules/crypto/gc-des-tests: Likewise.
31763         * modules/crypto/gc-hmac-md5-tests: Likewise.
31764         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31765         * modules/crypto/gc-md2-tests: Likewise.
31766         * modules/crypto/gc-md4-tests: Likewise.
31767         * modules/crypto/gc-md5-tests: Likewise.
31768         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31769         * modules/crypto/gc-rijndael-tests: Likewise.
31770         * modules/crypto/gc-sha1-tests: Likewise.
31771         * modules/crypto/gc-tests: Likewise.
31772         * modules/crypto/md2-tests: Likewise.
31773         * modules/crypto/md4-tests: Likewise.
31774         * modules/fcntl-h-tests: Likewise.
31775         * modules/floorf-tests: Likewise.
31776         * modules/floorl-tests: Likewise.
31777         * modules/frexp-nolibm-tests: Likewise.
31778         * modules/frexp-tests: Likewise.
31779         * modules/frexpl-nolibm-tests: Likewise.
31780         * modules/frexpl-tests: Likewise.
31781         * modules/getaddrinfo-tests: Likewise.
31782         * modules/inttypes-tests: Likewise.
31783         * modules/isfinite-tests: Likewise.
31784         * modules/isinf-tests: Likewise.
31785         * modules/ldexpl-tests: Likewise.
31786         * modules/locale-tests: Likewise.
31787         * modules/math-tests: Likewise.
31788         * modules/netdb-tests: Likewise.
31789         * modules/netinet_in-tests: Likewise.
31790         * modules/printf-frexp-tests: Likewise.
31791         * modules/printf-frexpl-tests: Likewise.
31792         * modules/priv-set-tests: Likewise.
31793         * modules/random_r-tests: Likewise.
31794         * modules/round-tests: Likewise.
31795         * modules/roundf-tests: Likewise.
31796         * modules/roundl-tests: Likewise.
31797         * modules/search-tests: Likewise.
31798         * modules/select-tests: Likewise.
31799         * modules/signal-tests: Likewise.
31800         * modules/stdbool-tests: Likewise.
31801         * modules/stddef-tests: Likewise.
31802         * modules/stdint-tests: Likewise.
31803         * modules/stdio-tests: Likewise.
31804         * modules/stdlib-tests: Likewise.
31805         * modules/string-tests: Likewise.
31806         * modules/strings-tests: Likewise.
31807         * modules/sys_select-tests: Likewise.
31808         * modules/sys_socket-tests: Likewise.
31809         * modules/sys_stat-tests: Likewise.
31810         * modules/sys_time-tests: Likewise.
31811         * modules/sys_utsname-tests: Likewise.
31812         * modules/sysexits-tests: Likewise.
31813         * modules/time-tests: Likewise.
31814         * modules/trunc-tests: Likewise.
31815         * modules/truncf-tests: Likewise.
31816         * modules/truncl-tests: Likewise.
31817         * modules/tsearch-tests: Likewise.
31818         * modules/unistd-tests: Likewise.
31819         * modules/wchar-tests: Likewise.
31820         * modules/wctype-tests: Likewise.
31821
31822         tests: fix license on several tests
31823         * tests/test-des.c: Update to GPLv3+.
31824         * tests/test-flock.c: Likewise.
31825         * tests/test-fsync.c: Likewise.
31826         * tests/test-futimens.h: Likewise.
31827         * tests/test-gc-arcfour.c: Likewise.
31828         * tests/test-gc-arctwo.c: Likewise.
31829         * tests/test-gc-des.c: Likewise.
31830         * tests/test-gc-hmac-md5.c: Likewise.
31831         * tests/test-gc-hmac-sha1.c: Likewise.
31832         * tests/test-gc-md2.c: Likewise.
31833         * tests/test-gc-md4.c: Likewise.
31834         * tests/test-gc-md5.c: Likewise.
31835         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31836         * tests/test-gc-rijndael.c: Likewise.
31837         * tests/test-gc-sha1.c: Likewise.
31838         * tests/test-gc.c: Likewise.
31839         * tests/test-getcwd.c: Likewise.
31840         * tests/test-link.c: Likewise.
31841         * tests/test-link.h: Likewise.
31842         * tests/test-lutimens.h: Likewise.
31843         * tests/test-md2.c: Likewise.
31844         * tests/test-md4.c: Likewise.
31845         * tests/test-mkdir.h: Likewise.
31846         * tests/test-rename.c: Likewise.
31847         * tests/test-rename.h: Likewise.
31848         * tests/test-safe-alloc.c: Likewise.
31849         * tests/test-utimens-common.h: Likewise.
31850         * tests/test-utimens.h: Likewise.
31851
31852         maint: sync license texts
31853         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31854         * doc/gpl-3.0.texi: Revert copyright year update.
31855         * doc/lgpl-3.0.texi: Likewise.
31856
31857 2009-12-29  Jim Meyering  <meyering@redhat.com>
31858
31859         update nearly all FSF copyright year lists to include 2009
31860         The files named by the following are exempted:
31861             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31862               test -f "$dst" && { echo "$dst"; continue; }
31863               test -d "$dst" || continue
31864               echo "$dst"/$(basename "$src")
31865             done > exempt
31866             git ls-files tests/unictype >> exempt
31867         In the remaining files, convert to all-interval notation if
31868         - there is already at least one year interval like 2000-2003
31869         - the file is maintained by me
31870         - the file is in lib/uni*/, where that style already prevails
31871         Otherwise, use update-copyright's default.
31872
31873 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31874         and Eric Blake  <ebb9@byu.net>
31875
31876         tests: don't require debug system() to pass
31877         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31878         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31879         * tests/test-unlink.h (test_unlink_func): Likewise.
31880         * tests/test-fstatat.c (main): ...into callers.
31881         * tests/test-lstat.c (main): Likewise.
31882         * tests/test-rmdir.c (main): Likewise.
31883         * tests/test-unlink.c (main): Likewise.
31884         * tests/test-unlinkat.c (main): Likewise.
31885         * tests/test-areadlink-with-size.c (main): Don't require a
31886         debug-only system call to pass, aiding cross-testing to mingw.
31887         * tests/test-areadlink.c (main): Likewise.
31888         * tests/test-areadlinkat-with-size.c (main): Likewise.
31889         * tests/test-areadlinkat.c (main): Likewise.
31890         * tests/test-canonicalize-lgpl.c (main): Likewise.
31891         * tests/test-canonicalize.c (main): Likewise.
31892         * tests/test-chown.c (main): Likewise.
31893         * tests/test-fchownat.c (main): Likewise.
31894         * tests/test-lchown.c (main): Likewise.
31895         * tests/test-fdutimensat.c (main): Likewise.
31896         * tests/test-futimens.c (main): Likewise.
31897         * tests/test-link.c (main): Likewise.
31898         * tests/test-linkat.c (main): Likewise.
31899         * tests/test-mkdir.c (main): Likewise.
31900         * tests/test-mkdirat.c (main): Likewise.
31901         * tests/test-mkfifo.c (main): Likewise.
31902         * tests/test-mkfifoat.c (main): Likewise.
31903         * tests/test-mknod.c (main): Likewise.
31904         * tests/test-readlink.c (main): Likewise.
31905         * tests/test-remove.c (main): Likewise.
31906         * tests/test-rename.c (main): Likewise.
31907         * tests/test-renameat.c (main): Likewise.
31908         * tests/test-symlink.c (main): Likewise.
31909         * tests/test-symlinkat.c (main): Likewise.
31910         * tests/test-utimens.c (main): Likewise.
31911         * tests/test-utimensat.c (main): Likewise.
31912
31913 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31914
31915         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31916         on $(UNUSED_PARAMETER_H) to avoid build failure.
31917
31918 2009-12-28  Jim Meyering  <meyering@redhat.com>
31919
31920         update-copyright: you may specify a max. line length other than 72
31921         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31922
31923         maint: use consistent FSF copyright line syntax
31924         * lib/posixtm.c: Add missing comma in FSF copyright line.
31925         * lib/posixtm.h: Likewise.
31926         * lib/getugroups.c: Add missing ", Inc.".
31927
31928         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31929         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31930         FSF copyright line.  Remove trailing blanks.
31931
31932 2009-12-28  Eric Blake  <ebb9@byu.net>
31933
31934         test-dup2: reduce dependencies
31935         * modules/cloexec (Configure.ac): Set witness.
31936         * modules/dup2-tests (Depends-on): Drop cloexec.
31937         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31938         not present.
31939         Suggested by Bruno Haible.
31940
31941 2009-12-26  Bruno Haible  <bruno@clisp.org>
31942
31943         Remove an unneeded dependency.
31944         * modules/fseterr (Depends-on): Remove dup2.
31945
31946 2009-12-26  Eric Blake  <ebb9@byu.net>
31947
31948         tests: use macros.h in more places
31949         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31950         (ASSERT_STREAM): Provide default of stderr.
31951         * tests/test-dirent-safer.c: Include macros.h, using alternate
31952         stream for assertions.
31953         * tests/test-dup-safer.c: Likewise.
31954         * tests/test-freopen-safer.c: Likewise.
31955         * tests/test-getopt.c: Likewise.
31956         * tests/test-openat-safer.c: Likewise.
31957         * tests/test-pipe.c: Likewise.
31958         * tests/test-popen-safer.c: Likewise.
31959         * modules/dirent-safer-tests (Files): Include macros.h.
31960         * modules/unistd-safer-tests (Files): Likewise.
31961         * modules/freopen-safer-tests (Files): Likewise.
31962         * modules/getopt-posix-tests (Files): Likewise.
31963         * modules/openat-safer-tests (Files): Likewise.
31964         * modules/pipe-tests (Files): Likewise.
31965
31966 2009-12-26  Bruno Haible  <bruno@clisp.org>
31967
31968         javacomp: Portability fix.
31969         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31970         that it also works on Solaris.
31971
31972 2009-12-26  Bruno Haible  <bruno@clisp.org>
31973
31974         localename: Fix storage allocation of gl_locale_name_thread's result.
31975         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31976         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31977         all platforms that have 'uselocale'.
31978         (gl_locale_name_thread_unsafe): New function, extracted from
31979         gl_locale_name_thread.
31980         (gl_locale_name_thread): Call struniq on all platforms that have
31981         'uselocale'.
31982         * tests/test-localename.c (test_locale_name_thread): Check that the
31983         resulting strings are permanently allocated.
31984         * modules/localename-tests (Depends-on): Add strdup.
31985
31986 2009-12-26  Bruno Haible  <bruno@clisp.org>
31987
31988         * tests/test-localename.c (categories): Fill in the strings.
31989
31990 2009-12-26  Jim Meyering  <meyering@redhat.com>
31991
31992         isdir: complete the removal of m4/isdir.m4
31993         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31994
31995         isdir: clean up, since at least grep still uses it
31996         * lib/isdir.c: Include "isdir.h".
31997         (S_ISDIR): Remove now-unneeded definition.
31998         * modules/isdir (Files): Add lib/isdir.h.
31999         * lib/isdir.h: New file, with declaration.
32000         * m4/isdir.m4: Remove file -- unneeded.
32001
32002 2009-12-25  Bruno Haible  <bruno@clisp.org>
32003
32004         selinux-h: Make generated .h files standalone.
32005         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32006         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32007         * lib/se-selinux.in.h: Likewise.
32008         * modules/selinux-h (Depends-on): Add unused-parameter.
32009         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32010         selinux/selinux.h and selinux/context.h.
32011         Suggested by Eric Blake.
32012
32013 2009-12-25  Bruno Haible  <bruno@clisp.org>
32014
32015         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32016         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32017         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32018         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32019         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32020
32021 2009-12-24  Bruno Haible  <bruno@clisp.org>
32022
32023         openat: Fix warning.
32024         * lib/openat-proc.c: Include <unistd.h>.
32025
32026 2009-12-24  Bruno Haible  <bruno@clisp.org>
32027
32028         New module 'unused-parameter'.
32029         * build-aux/unused-parameter.h: New file, extracted from earlier
32030         gnulib-common.m4.
32031         * modules/unused-parameter: New file.
32032         * lib/unistr.h: Include unused-parameter.h.
32033         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32034         _GL_UNUSED.
32035         * modules/unistr/base (Depends-on): Add unused-parameter.
32036
32037 2009-12-24  Bruno Haible  <bruno@clisp.org>
32038
32039         Add missing dependencies to 'extensions' module.
32040         * m4/extensions.m4: Add comment.
32041         * modules/accept4 (Depends-on): Add extensions.
32042         * modules/dup3 (Depends-on): Likewise.
32043         * modules/fcntl (Depends-on): Likewise.
32044         * modules/futimens (Depends-on): Likewise.
32045         * modules/mknod (Depends-on): Likewise.
32046         * modules/pipe2 (Depends-on): Likewise.
32047         * modules/stat-time (Depends-on): Likewise.
32048         * modules/strcasestr-simple (Depends-on): Likewise.
32049         * modules/strsignal (Depends-on): Likewise.
32050         * modules/utimensat (Depends-on): Likewise.
32051         * modules/localcharset (Depends-on): Likewise. Needed because of
32052         gl_FCNTL_O_FLAGS.
32053         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32054         AC_TYPE_MBSTATE_T.
32055         * modules/wcsnrtombs (Depends-on): Likewise.
32056         * modules/wcsrtombs (Depends-on): Likewise.
32057
32058 2009-12-24  Bruno Haible  <bruno@clisp.org>
32059
32060         binary-io: Avoid gcc warning due to SET_BINARY.
32061         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32062         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32063
32064 2009-12-24  Bruno Haible  <bruno@clisp.org>
32065
32066         Avoid future namespace pollution on glibc systems.
32067         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32068         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32069         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32070         glibc systems.
32071
32072 2009-12-24  Bruno Haible  <bruno@clisp.org>
32073
32074         Refactor common macros used in tests.
32075         * tests/macros.h: New file.
32076         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32077         and/or <stdlib.h>, if appropriate.
32078         (ASSERT, SIZEOF): Remove macros.
32079         * tests/test-areadlink-with-size.c: Likewise.
32080         * tests/test-areadlinkat.c: Likewise.
32081         * tests/test-areadlinkat-with-size.c: Likewise.
32082         * tests/test-argmatch.c: Likewise.
32083         * tests/test-argv-iter.c: Likewise.
32084         * tests/test-array-mergesort.c: Likewise.
32085         * tests/test-array_list.c: Likewise.
32086         * tests/test-array_oset.c: Likewise.
32087         * tests/test-avltree_list.c: Likewise.
32088         * tests/test-avltree_oset.c: Likewise.
32089         * tests/test-avltreehash_list.c: Likewise.
32090         * tests/test-base64.c: Likewise.
32091         * tests/test-binary-io.c: Likewise.
32092         * tests/test-bitrotate.c: Likewise.
32093         * tests/test-btowc.c: Likewise.
32094         * tests/test-byteswap.c: Likewise.
32095         * tests/test-c-ctype.c: Likewise.
32096         * tests/test-c-stack.c: Likewise.
32097         * tests/test-c-strcasecmp.c: Likewise.
32098         * tests/test-c-strcasestr.c: Likewise.
32099         * tests/test-c-strncasecmp.c: Likewise.
32100         * tests/test-c-strstr.c: Likewise.
32101         * tests/test-canonicalize-lgpl.c: Likewise.
32102         * tests/test-canonicalize.c: Likewise.
32103         * tests/test-carray_list.c: Likewise.
32104         * tests/test-ceilf1.c: Likewise.
32105         * tests/test-ceilf2.c: Likewise.
32106         * tests/test-ceill.c: Likewise.
32107         * tests/test-chown.c: Likewise.
32108         * tests/test-cloexec.c: Likewise.
32109         * tests/test-copy-acl.c: Likewise.
32110         * tests/test-copy-file.c: Likewise.
32111         * tests/test-count-one-bits.c: Likewise.
32112         * tests/test-dprintf-posix.c: Likewise.
32113         * tests/test-dup2.c: Likewise.
32114         * tests/test-dup3.c: Likewise.
32115         * tests/test-duplocale.c: Likewise.
32116         * tests/test-fbufmode.c: Likewise.
32117         * tests/test-fchdir.c: Likewise.
32118         * tests/test-fchownat.c: Likewise.
32119         * tests/test-fcntl-safer.c: Likewise.
32120         * tests/test-fcntl.c: Likewise.
32121         * tests/test-fdopendir.c: Likewise.
32122         * tests/test-fdutimensat.c: Likewise.
32123         * tests/test-fflush2.c: Likewise.
32124         * tests/test-file-has-acl.c: Likewise.
32125         * tests/test-filevercmp.c: Likewise.
32126         * tests/test-flock.c: Likewise.
32127         * tests/test-floorf1.c: Likewise.
32128         * tests/test-floorf2.c: Likewise.
32129         * tests/test-floorl.c: Likewise.
32130         * tests/test-fnmatch.c: Likewise.
32131         * tests/test-fopen.h: Likewise.
32132         * tests/test-fpending.c: Likewise.
32133         * tests/test-fprintf-posix.c: Likewise.
32134         * tests/test-fpurge.c: Likewise.
32135         * tests/test-freadable.c: Likewise.
32136         * tests/test-freadahead.c: Likewise.
32137         * tests/test-freading.c: Likewise.
32138         * tests/test-freadptr.c: Likewise.
32139         * tests/test-freadptr2.c: Likewise.
32140         * tests/test-freadseek.c: Likewise.
32141         * tests/test-freopen.c: Likewise.
32142         * tests/test-frexp.c: Likewise.
32143         * tests/test-frexpl.c: Likewise.
32144         * tests/test-fseek.c: Likewise.
32145         * tests/test-fseeko.c: Likewise.
32146         * tests/test-fstatat.c: Likewise.
32147         * tests/test-fstrcmp.c: Likewise.
32148         * tests/test-fsync.c: Likewise.
32149         * tests/test-ftell.c: Likewise.
32150         * tests/test-ftello.c: Likewise.
32151         * tests/test-func.c: Likewise.
32152         * tests/test-futimens.c: Likewise.
32153         * tests/test-fwritable.c: Likewise.
32154         * tests/test-fwriting.c: Likewise.
32155         * tests/test-getcwd.c: Likewise.
32156         * tests/test-getdate.c: Likewise.
32157         * tests/test-getdelim.c: Likewise.
32158         * tests/test-getdtablesize.c: Likewise.
32159         * tests/test-getgroups.c: Likewise.
32160         * tests/test-getline.c: Likewise.
32161         * tests/test-getndelim2.c: Likewise.
32162         * tests/test-glob.c: Likewise.
32163         * tests/test-hash.c: Likewise.
32164         * tests/test-i-ring.c: Likewise.
32165         * tests/test-iconv-utf.c: Likewise.
32166         * tests/test-iconv.c: Likewise.
32167         * tests/test-idpriv-drop.c: Likewise.
32168         * tests/test-idpriv-droptemp.c: Likewise.
32169         * tests/test-inet_ntop.c: Likewise.
32170         * tests/test-inet_pton.c: Likewise.
32171         * tests/test-isblank.c: Likewise.
32172         * tests/test-isfinite.c: Likewise.
32173         * tests/test-isinf.c: Likewise.
32174         * tests/test-isnan.c: Likewise.
32175         * tests/test-isnand.h: Likewise.
32176         * tests/test-isnanf.h: Likewise.
32177         * tests/test-isnanl.h: Likewise.
32178         * tests/test-lchown.c: Likewise.
32179         * tests/test-ldexpl.c: Likewise.
32180         * tests/test-link.c: Likewise.
32181         * tests/test-linkat.c: Likewise.
32182         * tests/test-linked_list.c: Likewise.
32183         * tests/test-linkedhash_list.c: Likewise.
32184         * tests/test-localename.c: Likewise.
32185         * tests/test-lseek.c: Likewise.
32186         * tests/test-lstat.c: Likewise.
32187         * tests/test-mbmemcasecmp.c: Likewise.
32188         * tests/test-mbmemcasecoll.c: Likewise.
32189         * tests/test-mbrtowc.c: Likewise.
32190         * tests/test-mbscasecmp.c: Likewise.
32191         * tests/test-mbscasestr1.c: Likewise.
32192         * tests/test-mbscasestr2.c: Likewise.
32193         * tests/test-mbscasestr3.c: Likewise.
32194         * tests/test-mbscasestr4.c: Likewise.
32195         * tests/test-mbschr.c: Likewise.
32196         * tests/test-mbscspn.c: Likewise.
32197         * tests/test-mbsinit.c: Likewise.
32198         * tests/test-mbsncasecmp.c: Likewise.
32199         * tests/test-mbsnrtowcs.c: Likewise.
32200         * tests/test-mbspbrk.c: Likewise.
32201         * tests/test-mbspcasecmp.c: Likewise.
32202         * tests/test-mbsrchr.c: Likewise.
32203         * tests/test-mbsrtowcs.c: Likewise.
32204         * tests/test-mbsspn.c: Likewise.
32205         * tests/test-mbsstr1.c: Likewise.
32206         * tests/test-mbsstr2.c: Likewise.
32207         * tests/test-mbsstr3.c: Likewise.
32208         * tests/test-memchr.c: Likewise.
32209         * tests/test-memchr2.c: Likewise.
32210         * tests/test-memcmp.c: Likewise.
32211         * tests/test-memmem.c: Likewise.
32212         * tests/test-memrchr.c: Likewise.
32213         * tests/test-mkdir.c: Likewise.
32214         * tests/test-mkdirat.c: Likewise.
32215         * tests/test-mkfifo.c: Likewise.
32216         * tests/test-mkfifoat.c: Likewise.
32217         * tests/test-mknod.c: Likewise.
32218         * tests/test-nanosleep.c: Likewise.
32219         * tests/test-nl_langinfo.c: Likewise.
32220         * tests/test-obstack-printf.c: Likewise.
32221         * tests/test-open.c: Likewise.
32222         * tests/test-openat.c: Likewise.
32223         * tests/test-pipe-filter-gi1.c: Likewise.
32224         * tests/test-pipe-filter-gi2-main.c: Likewise.
32225         * tests/test-pipe-filter-ii1.c: Likewise.
32226         * tests/test-pipe-filter-ii2-main.c: Likewise.
32227         * tests/test-pipe2.c: Likewise.
32228         * tests/test-popen.h: Likewise.
32229         * tests/test-posixtm.c: Likewise.
32230         * tests/test-pread.c: Likewise.
32231         * tests/test-printf-frexp.c: Likewise.
32232         * tests/test-printf-frexpl.c: Likewise.
32233         * tests/test-printf-posix.c: Likewise.
32234         * tests/test-priv-set.c: Likewise.
32235         * tests/test-quotearg.c: Likewise.
32236         * tests/test-random_r.c: Likewise.
32237         * tests/test-rawmemchr.c: Likewise.
32238         * tests/test-rbtree_list.c: Likewise.
32239         * tests/test-rbtree_oset.c: Likewise.
32240         * tests/test-rbtreehash_list.c: Likewise.
32241         * tests/test-readlink.c: Likewise.
32242         * tests/test-remove.c: Likewise.
32243         * tests/test-rename.c: Likewise.
32244         * tests/test-renameat.c: Likewise.
32245         * tests/test-rmdir.c: Likewise.
32246         * tests/test-round1.c: Likewise.
32247         * tests/test-roundf1.c: Likewise.
32248         * tests/test-roundl.c: Likewise.
32249         * tests/test-safe-alloc.c: Likewise.
32250         * tests/test-sameacls.c: Likewise.
32251         * tests/test-set-mode-acl.c: Likewise.
32252         * tests/test-setenv.c: Likewise.
32253         * tests/test-sigaction.c: Likewise.
32254         * tests/test-signbit.c: Likewise.
32255         * tests/test-sleep.c: Likewise.
32256         * tests/test-snprintf-posix.c: Likewise.
32257         * tests/test-snprintf.c: Likewise.
32258         * tests/test-sprintf-posix.c: Likewise.
32259         * tests/test-stat-time.c: Likewise.
32260         * tests/test-stat.c: Likewise.
32261         * tests/test-strcasestr.c: Likewise.
32262         * tests/test-strchrnul.c: Likewise.
32263         * tests/test-strerror.c: Likewise.
32264         * tests/test-striconv.c: Likewise.
32265         * tests/test-striconveh.c: Likewise.
32266         * tests/test-striconveha.c: Likewise.
32267         * tests/test-strsignal.c: Likewise.
32268         * tests/test-strstr.c: Likewise.
32269         * tests/test-strtod.c: Likewise.
32270         * tests/test-strverscmp.c: Likewise.
32271         * tests/test-symlink.c: Likewise.
32272         * tests/test-symlinkat.c: Likewise.
32273         * tests/test-trunc1.c: Likewise.
32274         * tests/test-trunc2.c: Likewise.
32275         * tests/test-truncf1.c: Likewise.
32276         * tests/test-truncf2.c: Likewise.
32277         * tests/test-truncl.c: Likewise.
32278         * tests/test-uname.c: Likewise.
32279         * tests/test-unlink.c: Likewise.
32280         * tests/test-unlinkat.c: Likewise.
32281         * tests/test-unsetenv.c: Likewise.
32282         * tests/test-usleep.c: Likewise.
32283         * tests/test-utimens.c: Likewise.
32284         * tests/test-utimensat.c: Likewise.
32285         * tests/test-vasnprintf-posix.c: Likewise.
32286         * tests/test-vasnprintf-posix2.c: Likewise.
32287         * tests/test-vasnprintf.c: Likewise.
32288         * tests/test-vasprintf-posix.c: Likewise.
32289         * tests/test-vasprintf.c: Likewise.
32290         * tests/test-vdprintf-posix.c: Likewise.
32291         * tests/test-vfprintf-posix.c: Likewise.
32292         * tests/test-vprintf-posix.c: Likewise.
32293         * tests/test-vsnprintf-posix.c: Likewise.
32294         * tests/test-vsnprintf.c: Likewise.
32295         * tests/test-vsprintf-posix.c: Likewise.
32296         * tests/test-wcrtomb.c: Likewise.
32297         * tests/test-wcsnrtombs.c: Likewise.
32298         * tests/test-wcsrtombs.c: Likewise.
32299         * tests/test-wctype.c: Likewise.
32300         * tests/test-wcwidth.c: Likewise.
32301         * tests/test-xfprintf-posix.c: Likewise.
32302         * tests/test-xmemdup0.c: Likewise.
32303         * tests/test-xprintf-posix.c: Likewise.
32304         * tests/test-xvasprintf.c: Likewise.
32305         * tests/unicase/test-locale-language.c: Likewise.
32306         * tests/unicase/test-mapping-part1.h: Likewise.
32307         * tests/unicase/test-predicate-part1.h: Likewise.
32308         * tests/unicase/test-u8-casecmp.c: Likewise.
32309         * tests/unicase/test-u8-casecoll.c: Likewise.
32310         * tests/unicase/test-u8-casefold.c: Likewise.
32311         * tests/unicase/test-u8-is-cased.c: Likewise.
32312         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32313         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32314         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32315         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32316         * tests/unicase/test-u8-tolower.c: Likewise.
32317         * tests/unicase/test-u8-totitle.c: Likewise.
32318         * tests/unicase/test-u8-toupper.c: Likewise.
32319         * tests/unicase/test-u16-casecmp.c: Likewise.
32320         * tests/unicase/test-u16-casecoll.c: Likewise.
32321         * tests/unicase/test-u16-casefold.c: Likewise.
32322         * tests/unicase/test-u16-is-cased.c: Likewise.
32323         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32324         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32325         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32326         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32327         * tests/unicase/test-u16-tolower.c: Likewise.
32328         * tests/unicase/test-u16-totitle.c: Likewise.
32329         * tests/unicase/test-u16-toupper.c: Likewise.
32330         * tests/unicase/test-u32-casecmp.c: Likewise.
32331         * tests/unicase/test-u32-casecoll.c: Likewise.
32332         * tests/unicase/test-u32-casefold.c: Likewise.
32333         * tests/unicase/test-u32-is-cased.c: Likewise.
32334         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32335         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32336         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32337         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32338         * tests/unicase/test-u32-tolower.c: Likewise.
32339         * tests/unicase/test-u32-totitle.c: Likewise.
32340         * tests/unicase/test-u32-toupper.c: Likewise.
32341         * tests/unicase/test-ulc-casecmp.c: Likewise.
32342         * tests/unicase/test-ulc-casecoll.c: Likewise.
32343         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32344         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32345         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32346         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32347         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32348         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32349         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32350         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32351         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32352         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32353         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32354         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32355         * tests/unictype/test-bidi_byname.c: Likewise.
32356         * tests/unictype/test-bidi_name.c: Likewise.
32357         * tests/unictype/test-bidi_of.c: Likewise.
32358         * tests/unictype/test-bidi_test.c: Likewise.
32359         * tests/unictype/test-block_list.c: Likewise.
32360         * tests/unictype/test-block_of.c: Likewise.
32361         * tests/unictype/test-block_test.c: Likewise.
32362         * tests/unictype/test-categ_and.c: Likewise.
32363         * tests/unictype/test-categ_and_not.c: Likewise.
32364         * tests/unictype/test-categ_byname.c: Likewise.
32365         * tests/unictype/test-categ_name.c: Likewise.
32366         * tests/unictype/test-categ_none.c: Likewise.
32367         * tests/unictype/test-categ_of.c: Likewise.
32368         * tests/unictype/test-categ_or.c: Likewise.
32369         * tests/unictype/test-categ_test_withtable.c: Likewise.
32370         * tests/unictype/test-combining.c: Likewise.
32371         * tests/unictype/test-decdigit.c: Likewise.
32372         * tests/unictype/test-digit.c: Likewise.
32373         * tests/unictype/test-mirror.c: Likewise.
32374         * tests/unictype/test-numeric.c: Likewise.
32375         * tests/unictype/test-pr_byname.c: Likewise.
32376         * tests/unictype/test-pr_test.c: Likewise.
32377         * tests/unictype/test-predicate-part1.h: Likewise.
32378         * tests/unictype/test-scripts.c: Likewise.
32379         * tests/unictype/test-sy_c_ident.c: Likewise.
32380         * tests/unictype/test-sy_java_ident.c: Likewise.
32381         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32382         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32383         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32384         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32385         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32386         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32387         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32388         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32389         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32390         * tests/uninorm/test-compat-decomposition.c: Likewise.
32391         * tests/uninorm/test-composition.c: Likewise.
32392         * tests/uninorm/test-decomposing-form.c: Likewise.
32393         * tests/uninorm/test-decomposition.c: Likewise.
32394         * tests/uninorm/test-u8-nfc.c: Likewise.
32395         * tests/uninorm/test-u8-nfd.c: Likewise.
32396         * tests/uninorm/test-u8-nfkc.c: Likewise.
32397         * tests/uninorm/test-u8-nfkd.c: Likewise.
32398         * tests/uninorm/test-u8-normcmp.c: Likewise.
32399         * tests/uninorm/test-u8-normcoll.c: Likewise.
32400         * tests/uninorm/test-u16-nfc.c: Likewise.
32401         * tests/uninorm/test-u16-nfd.c: Likewise.
32402         * tests/uninorm/test-u16-nfkc.c: Likewise.
32403         * tests/uninorm/test-u16-nfkd.c: Likewise.
32404         * tests/uninorm/test-u16-normcmp.c: Likewise.
32405         * tests/uninorm/test-u16-normcoll.c: Likewise.
32406         * tests/uninorm/test-u32-nfc.c: Likewise.
32407         * tests/uninorm/test-u32-nfd.c: Likewise.
32408         * tests/uninorm/test-u32-nfkc.c: Likewise.
32409         * tests/uninorm/test-u32-nfkd.c: Likewise.
32410         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32411         * tests/uninorm/test-u32-normcmp.c: Likewise.
32412         * tests/uninorm/test-u32-normcoll.c: Likewise.
32413         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32414         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32415         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32416         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32417         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32418         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32419         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32420         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32421         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32422         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32423         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32424         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32425         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32426         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32427         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32428         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32429         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32430         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32431         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32432         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32433         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32434         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32435         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32436         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32437         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32438         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32439         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32440         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32441         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32442         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32443         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32444         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32445         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32446         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32447         * tests/uniwidth/test-u8-width.c: Likewise.
32448         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32449         * tests/uniwidth/test-u16-width.c: Likewise.
32450         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32451         * tests/uniwidth/test-u32-width.c: Likewise.
32452         * tests/uniwidth/test-uc_width.c: Likewise.
32453         * tests/uniwidth/test-uc_width2.c: Likewise.
32454         * modules/acl-tests (Files): Add tests/macros.h.
32455         * modules/areadlink-tests (Files): Likewise.
32456         * modules/areadlink-with-size-tests (Files): Likewise.
32457         * modules/areadlinkat-tests (Files): Likewise.
32458         * modules/areadlinkat-with-size-tests (Files): Likewise.
32459         * modules/argmatch-tests (Files): Likewise.
32460         * modules/argv-iter-tests (Files): Likewise.
32461         * modules/array-list-tests (Files): Likewise.
32462         * modules/array-mergesort-tests (Files): Likewise.
32463         * modules/array-oset-tests (Files): Likewise.
32464         * modules/avltree-list-tests (Files): Likewise.
32465         * modules/avltree-oset-tests (Files): Likewise.
32466         * modules/avltreehash-list-tests (Files): Likewise.
32467         * modules/base64-tests (Files): Likewise.
32468         * modules/binary-io-tests (Files): Likewise.
32469         * modules/bitrotate-tests (Files): Likewise.
32470         * modules/btowc-tests (Files): Likewise.
32471         * modules/byteswap-tests (Files): Likewise.
32472         * modules/c-ctype-tests (Files): Likewise.
32473         * modules/c-stack-tests (Files): Likewise.
32474         * modules/c-strcase-tests (Files): Likewise.
32475         * modules/c-strcasestr-tests (Files): Likewise.
32476         * modules/c-strstr-tests (Files): Likewise.
32477         * modules/canonicalize-lgpl-tests (Files): Likewise.
32478         * modules/canonicalize-tests (Files): Likewise.
32479         * modules/carray-list-tests (Files): Likewise.
32480         * modules/ceilf-tests (Files): Likewise.
32481         * modules/ceill-tests (Files): Likewise.
32482         * modules/chown-tests (Files): Likewise.
32483         * modules/cloexec-tests (Files): Likewise.
32484         * modules/copy-file-tests (Files): Likewise.
32485         * modules/count-one-bits-tests (Files): Likewise.
32486         * modules/dprintf-posix-tests (Files): Likewise.
32487         * modules/dup2-tests (Files): Likewise.
32488         * modules/dup3-tests (Files): Likewise.
32489         * modules/duplocale-tests (Files): Likewise.
32490         * modules/fbufmode-tests (Files): Likewise.
32491         * modules/fchdir-tests (Files): Likewise.
32492         * modules/fcntl-safer-tests (Files): Likewise.
32493         * modules/fcntl-tests (Files): Likewise.
32494         * modules/fdopendir-tests (Files): Likewise.
32495         * modules/fdutimensat-tests (Files): Likewise.
32496         * modules/fflush-tests (Files): Likewise.
32497         * modules/filevercmp-tests (Files): Likewise.
32498         * modules/flock-tests (Files): Likewise.
32499         * modules/floorf-tests (Files): Likewise.
32500         * modules/floorl-tests (Files): Likewise.
32501         * modules/fnmatch-tests (Files): Likewise.
32502         * modules/fopen-safer-tests (Files): Likewise.
32503         * modules/fopen-tests (Files): Likewise.
32504         * modules/fpending-tests (Files): Likewise.
32505         * modules/fprintf-posix-tests (Files): Likewise.
32506         * modules/fpurge-tests (Files): Likewise.
32507         * modules/freadable-tests (Files): Likewise.
32508         * modules/freadahead-tests (Files): Likewise.
32509         * modules/freading-tests (Files): Likewise.
32510         * modules/freadptr-tests (Files): Likewise.
32511         * modules/freadseek-tests (Files): Likewise.
32512         * modules/freopen-tests (Files): Likewise.
32513         * modules/frexp-nolibm-tests (Files): Likewise.
32514         * modules/frexp-tests (Files): Likewise.
32515         * modules/frexpl-nolibm-tests (Files): Likewise.
32516         * modules/frexpl-tests (Files): Likewise.
32517         * modules/fseek-tests (Files): Likewise.
32518         * modules/fseeko-tests (Files): Likewise.
32519         * modules/fstrcmp-tests (Files): Likewise.
32520         * modules/fsync-tests (Files): Likewise.
32521         * modules/ftell-tests (Files): Likewise.
32522         * modules/ftello-tests (Files): Likewise.
32523         * modules/func-tests (Files): Likewise.
32524         * modules/futimens-tests (Files): Likewise.
32525         * modules/fwritable-tests (Files): Likewise.
32526         * modules/fwriting-tests (Files): Likewise.
32527         * modules/getcwd-tests (Files): Likewise.
32528         * modules/getdate-tests (Files): Likewise.
32529         * modules/getdelim-tests (Files): Likewise.
32530         * modules/getdtablesize-tests (Files): Likewise.
32531         * modules/getgroups-tests (Files): Likewise.
32532         * modules/getline-tests (Files): Likewise.
32533         * modules/getndelim2-tests (Files): Likewise.
32534         * modules/glob-tests (Files): Likewise.
32535         * modules/hash-tests (Files): Likewise.
32536         * modules/i-ring-tests (Files): Likewise.
32537         * modules/iconv-tests (Files): Likewise.
32538         * modules/iconv_open-utf-tests (Files): Likewise.
32539         * modules/idpriv-drop-tests (Files): Likewise.
32540         * modules/idpriv-droptemp-tests (Files): Likewise.
32541         * modules/inet_ntop-tests (Files): Likewise.
32542         * modules/inet_pton-tests (Files): Likewise.
32543         * modules/isblank-tests (Files): Likewise.
32544         * modules/isfinite-tests (Files): Likewise.
32545         * modules/isinf-tests (Files): Likewise.
32546         * modules/isnan-tests (Files): Likewise.
32547         * modules/isnand-nolibm-tests (Files): Likewise.
32548         * modules/isnand-tests (Files): Likewise.
32549         * modules/isnanf-nolibm-tests (Files): Likewise.
32550         * modules/isnanf-tests (Files): Likewise.
32551         * modules/isnanl-nolibm-tests (Files): Likewise.
32552         * modules/isnanl-tests (Files): Likewise.
32553         * modules/lchown-tests (Files): Likewise.
32554         * modules/ldexpl-tests (Files): Likewise.
32555         * modules/link-tests (Files): Likewise.
32556         * modules/linkat-tests (Files): Likewise.
32557         * modules/linked-list-tests (Files): Likewise.
32558         * modules/linkedhash-list-tests (Files): Likewise.
32559         * modules/localename-tests (Files): Likewise.
32560         * modules/lseek-tests (Files): Likewise.
32561         * modules/lstat-tests (Files): Likewise.
32562         * modules/mbmemcasecmp-tests (Files): Likewise.
32563         * modules/mbmemcasecoll-tests (Files): Likewise.
32564         * modules/mbrtowc-tests (Files): Likewise.
32565         * modules/mbscasecmp-tests (Files): Likewise.
32566         * modules/mbscasestr-tests (Files): Likewise.
32567         * modules/mbschr-tests (Files): Likewise.
32568         * modules/mbscspn-tests (Files): Likewise.
32569         * modules/mbsinit-tests (Files): Likewise.
32570         * modules/mbsncasecmp-tests (Files): Likewise.
32571         * modules/mbsnrtowcs-tests (Files): Likewise.
32572         * modules/mbspbrk-tests (Files): Likewise.
32573         * modules/mbspcasecmp-tests (Files): Likewise.
32574         * modules/mbsrchr-tests (Files): Likewise.
32575         * modules/mbsrtowcs-tests (Files): Likewise.
32576         * modules/mbsspn-tests (Files): Likewise.
32577         * modules/mbsstr-tests (Files): Likewise.
32578         * modules/memchr-tests (Files): Likewise.
32579         * modules/memchr2-tests (Files): Likewise.
32580         * modules/memcmp-tests (Files): Likewise.
32581         * modules/memmem-tests (Files): Likewise.
32582         * modules/memrchr-tests (Files): Likewise.
32583         * modules/mkdir-tests (Files): Likewise.
32584         * modules/mkfifo-tests (Files): Likewise.
32585         * modules/mkfifoat-tests (Files): Likewise.
32586         * modules/mknod-tests (Files): Likewise.
32587         * modules/nanosleep-tests (Files): Likewise.
32588         * modules/nl_langinfo-tests (Files): Likewise.
32589         * modules/obstack-printf-tests (Files): Likewise.
32590         * modules/open-tests (Files): Likewise.
32591         * modules/openat-tests (Files): Likewise.
32592         * modules/pipe-filter-gi-tests (Files): Likewise.
32593         * modules/pipe-filter-ii-tests (Files): Likewise.
32594         * modules/pipe2-tests (Files): Likewise.
32595         * modules/popen-safer-tests (Files): Likewise.
32596         * modules/popen-tests (Files): Likewise.
32597         * modules/posixtm-tests (Files): Likewise.
32598         * modules/pread-tests (Files): Likewise.
32599         * modules/printf-frexp-tests (Files): Likewise.
32600         * modules/printf-frexpl-tests (Files): Likewise.
32601         * modules/printf-posix-tests (Files): Likewise.
32602         * modules/priv-set-tests (Files): Likewise.
32603         * modules/quotearg-tests (Files): Likewise.
32604         * modules/random_r-tests (Files): Likewise.
32605         * modules/rawmemchr-tests (Files): Likewise.
32606         * modules/rbtree-list-tests (Files): Likewise.
32607         * modules/rbtree-oset-tests (Files): Likewise.
32608         * modules/rbtreehash-list-tests (Files): Likewise.
32609         * modules/readlink-tests (Files): Likewise.
32610         * modules/remove-tests (Files): Likewise.
32611         * modules/rename-tests (Files): Likewise.
32612         * modules/renameat-tests (Files): Likewise.
32613         * modules/rmdir-tests (Files): Likewise.
32614         * modules/round-tests (Files): Likewise.
32615         * modules/roundf-tests (Files): Likewise.
32616         * modules/roundl-tests (Files): Likewise.
32617         * modules/safe-alloc-tests (Files): Likewise.
32618         * modules/setenv-tests (Files): Likewise.
32619         * modules/sigaction-tests (Files): Likewise.
32620         * modules/signbit-tests (Files): Likewise.
32621         * modules/sleep-tests (Files): Likewise.
32622         * modules/snprintf-posix-tests (Files): Likewise.
32623         * modules/snprintf-tests (Files): Likewise.
32624         * modules/sprintf-posix-tests (Files): Likewise.
32625         * modules/stat-tests (Files): Likewise.
32626         * modules/stat-time-tests (Files): Likewise.
32627         * modules/strcasestr-tests (Files): Likewise.
32628         * modules/strchrnul-tests (Files): Likewise.
32629         * modules/strerror-tests (Files): Likewise.
32630         * modules/striconv-tests (Files): Likewise.
32631         * modules/striconveh-tests (Files): Likewise.
32632         * modules/striconveha-tests (Files): Likewise.
32633         * modules/strsignal-tests (Files): Likewise.
32634         * modules/strstr-tests (Files): Likewise.
32635         * modules/strtod-tests (Files): Likewise.
32636         * modules/strverscmp-tests (Files): Likewise.
32637         * modules/symlink-tests (Files): Likewise.
32638         * modules/symlinkat-tests (Files): Likewise.
32639         * modules/trunc-tests (Files): Likewise.
32640         * modules/truncf-tests (Files): Likewise.
32641         * modules/truncl-tests (Files): Likewise.
32642         * modules/uname-tests (Files): Likewise.
32643         * modules/unicase/cased-tests (Files): Likewise.
32644         * modules/unicase/ignorable-tests (Files): Likewise.
32645         * modules/unicase/locale-language-tests (Files): Likewise.
32646         * modules/unicase/tolower-tests (Files): Likewise.
32647         * modules/unicase/totitle-tests (Files): Likewise.
32648         * modules/unicase/toupper-tests (Files): Likewise.
32649         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32650         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32651         * modules/unicase/u8-casefold-tests (Files): Likewise.
32652         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32653         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32654         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32655         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32656         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32657         * modules/unicase/u8-tolower-tests (Files): Likewise.
32658         * modules/unicase/u8-totitle-tests (Files): Likewise.
32659         * modules/unicase/u8-toupper-tests (Files): Likewise.
32660         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32661         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32662         * modules/unicase/u16-casefold-tests (Files): Likewise.
32663         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32664         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32665         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32666         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32667         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32668         * modules/unicase/u16-tolower-tests (Files): Likewise.
32669         * modules/unicase/u16-totitle-tests (Files): Likewise.
32670         * modules/unicase/u16-toupper-tests (Files): Likewise.
32671         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32672         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32673         * modules/unicase/u32-casefold-tests (Files): Likewise.
32674         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32675         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32676         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32677         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32678         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32679         * modules/unicase/u32-tolower-tests (Files): Likewise.
32680         * modules/unicase/u32-totitle-tests (Files): Likewise.
32681         * modules/unicase/u32-toupper-tests (Files): Likewise.
32682         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32683         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32684         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32685         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32686         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32687         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32688         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32689         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32690         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32691         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32692         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32693         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32694         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32695         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32696         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32697         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32698         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32699         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32700         * modules/unictype/block-list-tests (Files): Likewise.
32701         * modules/unictype/block-of-tests (Files): Likewise.
32702         * modules/unictype/block-test-tests (Files): Likewise.
32703         * modules/unictype/category-C-tests (Files): Likewise.
32704         * modules/unictype/category-Cc-tests (Files): Likewise.
32705         * modules/unictype/category-Cf-tests (Files): Likewise.
32706         * modules/unictype/category-Cn-tests (Files): Likewise.
32707         * modules/unictype/category-Co-tests (Files): Likewise.
32708         * modules/unictype/category-Cs-tests (Files): Likewise.
32709         * modules/unictype/category-L-tests (Files): Likewise.
32710         * modules/unictype/category-Ll-tests (Files): Likewise.
32711         * modules/unictype/category-Lm-tests (Files): Likewise.
32712         * modules/unictype/category-Lo-tests (Files): Likewise.
32713         * modules/unictype/category-Lt-tests (Files): Likewise.
32714         * modules/unictype/category-Lu-tests (Files): Likewise.
32715         * modules/unictype/category-M-tests (Files): Likewise.
32716         * modules/unictype/category-Mc-tests (Files): Likewise.
32717         * modules/unictype/category-Me-tests (Files): Likewise.
32718         * modules/unictype/category-Mn-tests (Files): Likewise.
32719         * modules/unictype/category-N-tests (Files): Likewise.
32720         * modules/unictype/category-Nd-tests (Files): Likewise.
32721         * modules/unictype/category-Nl-tests (Files): Likewise.
32722         * modules/unictype/category-No-tests (Files): Likewise.
32723         * modules/unictype/category-P-tests (Files): Likewise.
32724         * modules/unictype/category-Pc-tests (Files): Likewise.
32725         * modules/unictype/category-Pd-tests (Files): Likewise.
32726         * modules/unictype/category-Pe-tests (Files): Likewise.
32727         * modules/unictype/category-Pf-tests (Files): Likewise.
32728         * modules/unictype/category-Pi-tests (Files): Likewise.
32729         * modules/unictype/category-Po-tests (Files): Likewise.
32730         * modules/unictype/category-Ps-tests (Files): Likewise.
32731         * modules/unictype/category-S-tests (Files): Likewise.
32732         * modules/unictype/category-Sc-tests (Files): Likewise.
32733         * modules/unictype/category-Sk-tests (Files): Likewise.
32734         * modules/unictype/category-Sm-tests (Files): Likewise.
32735         * modules/unictype/category-So-tests (Files): Likewise.
32736         * modules/unictype/category-Z-tests (Files): Likewise.
32737         * modules/unictype/category-Zl-tests (Files): Likewise.
32738         * modules/unictype/category-Zp-tests (Files): Likewise.
32739         * modules/unictype/category-Zs-tests (Files): Likewise.
32740         * modules/unictype/category-and-not-tests (Files): Likewise.
32741         * modules/unictype/category-and-tests (Files): Likewise.
32742         * modules/unictype/category-byname-tests (Files): Likewise.
32743         * modules/unictype/category-name-tests (Files): Likewise.
32744         * modules/unictype/category-none-tests (Files): Likewise.
32745         * modules/unictype/category-of-tests (Files): Likewise.
32746         * modules/unictype/category-or-tests (Files): Likewise.
32747         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32748         * modules/unictype/combining-class-tests (Files): Likewise.
32749         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32750         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32751         * modules/unictype/ctype-blank-tests (Files): Likewise.
32752         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32753         * modules/unictype/ctype-digit-tests (Files): Likewise.
32754         * modules/unictype/ctype-graph-tests (Files): Likewise.
32755         * modules/unictype/ctype-lower-tests (Files): Likewise.
32756         * modules/unictype/ctype-print-tests (Files): Likewise.
32757         * modules/unictype/ctype-punct-tests (Files): Likewise.
32758         * modules/unictype/ctype-space-tests (Files): Likewise.
32759         * modules/unictype/ctype-upper-tests (Files): Likewise.
32760         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32761         * modules/unictype/decimal-digit-tests (Files): Likewise.
32762         * modules/unictype/digit-tests (Files): Likewise.
32763         * modules/unictype/mirror-tests (Files): Likewise.
32764         * modules/unictype/numeric-tests (Files): Likewise.
32765         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32766         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32767         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32768         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32769         Likewise.
32770         * modules/unictype/property-bidi-block-separator-tests (Files):
32771         Likewise.
32772         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32773         Likewise.
32774         * modules/unictype/property-bidi-common-separator-tests (Files):
32775         Likewise.
32776         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32777         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32778         Likewise.
32779         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32780         Likewise.
32781         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32782         Likewise.
32783         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32784         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32785         Likewise.
32786         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32787         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32788         Likewise.
32789         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32790         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32791         * modules/unictype/property-bidi-segment-separator-tests (Files):
32792         Likewise.
32793         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32794         * modules/unictype/property-byname-tests (Files): Likewise.
32795         * modules/unictype/property-combining-tests (Files): Likewise.
32796         * modules/unictype/property-composite-tests (Files): Likewise.
32797         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32798         * modules/unictype/property-dash-tests (Files): Likewise.
32799         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32800         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32801         Likewise.
32802         * modules/unictype/property-deprecated-tests (Files): Likewise.
32803         * modules/unictype/property-diacritic-tests (Files): Likewise.
32804         * modules/unictype/property-extender-tests (Files): Likewise.
32805         * modules/unictype/property-format-control-tests (Files): Likewise.
32806         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32807         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32808         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32809         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32810         * modules/unictype/property-hyphen-tests (Files): Likewise.
32811         * modules/unictype/property-id-continue-tests (Files): Likewise.
32812         * modules/unictype/property-id-start-tests (Files): Likewise.
32813         * modules/unictype/property-ideographic-tests (Files): Likewise.
32814         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32815         * modules/unictype/property-ids-trinary-operator-tests (Files):
32816         Likewise.
32817         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32818         * modules/unictype/property-iso-control-tests (Files): Likewise.
32819         * modules/unictype/property-join-control-tests (Files): Likewise.
32820         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32821         * modules/unictype/property-line-separator-tests (Files): Likewise.
32822         * modules/unictype/property-logical-order-exception-tests (Files):
32823         Likewise.
32824         * modules/unictype/property-lowercase-tests (Files): Likewise.
32825         * modules/unictype/property-math-tests (Files): Likewise.
32826         * modules/unictype/property-non-break-tests (Files): Likewise.
32827         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32828         * modules/unictype/property-numeric-tests (Files): Likewise.
32829         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32830         * modules/unictype/property-other-default-ignorable-code-point-tests
32831         (Files): Likewise.
32832         * modules/unictype/property-other-grapheme-extend-tests (Files):
32833         Likewise.
32834         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32835         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32836         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32837         * modules/unictype/property-other-math-tests (Files): Likewise.
32838         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32839         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32840         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32841         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32842         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32843         * modules/unictype/property-private-use-tests (Files): Likewise.
32844         * modules/unictype/property-punctuation-tests (Files): Likewise.
32845         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32846         * modules/unictype/property-radical-tests (Files): Likewise.
32847         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32848         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32849         * modules/unictype/property-space-tests (Files): Likewise.
32850         * modules/unictype/property-terminal-punctuation-tests (Files):
32851         Likewise.
32852         * modules/unictype/property-test-tests (Files): Likewise.
32853         * modules/unictype/property-titlecase-tests (Files): Likewise.
32854         * modules/unictype/property-unassigned-code-value-tests (Files):
32855         Likewise.
32856         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32857         * modules/unictype/property-uppercase-tests (Files): Likewise.
32858         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32859         * modules/unictype/property-white-space-tests (Files): Likewise.
32860         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32861         * modules/unictype/property-xid-start-tests (Files): Likewise.
32862         * modules/unictype/property-zero-width-tests (Files): Likewise.
32863         * modules/unictype/scripts-tests (Files): Likewise.
32864         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32865         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32866         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32867         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32868         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32869         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32870         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32871         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32872         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32873         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32874         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32875         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32876         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32877         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32878         * modules/uninorm/composition-tests (Files): Likewise.
32879         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32880         * modules/uninorm/decomposition-tests (Files): Likewise.
32881         * modules/uninorm/filter-tests (Files): Likewise.
32882         * modules/uninorm/nfc-tests (Files): Likewise.
32883         * modules/uninorm/nfd-tests (Files): Likewise.
32884         * modules/uninorm/nfkc-tests (Files): Likewise.
32885         * modules/uninorm/nfkd-tests (Files): Likewise.
32886         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32887         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32888         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32889         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32890         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32891         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32892         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32893         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32894         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32895         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32896         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32897         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32898         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32899         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32900         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32901         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32902         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32903         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32904         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32905         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32906         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32907         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32908         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32909         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32910         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32911         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32912         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32913         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32914         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32915         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32916         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32917         * modules/uniwidth/u8-width-tests (Files): Likewise.
32918         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32919         * modules/uniwidth/u16-width-tests (Files): Likewise.
32920         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32921         * modules/uniwidth/u32-width-tests (Files): Likewise.
32922         * modules/uniwidth/width-tests (Files): Likewise.
32923         * modules/unlink-tests (Files): Likewise.
32924         * modules/unsetenv-tests (Files): Likewise.
32925         * modules/usleep-tests (Files): Likewise.
32926         * modules/utimens-tests (Files): Likewise.
32927         * modules/utimensat-tests (Files): Likewise.
32928         * modules/vasnprintf-posix-tests (Files): Likewise.
32929         * modules/vasnprintf-tests (Files): Likewise.
32930         * modules/vasprintf-posix-tests (Files): Likewise.
32931         * modules/vasprintf-tests (Files): Likewise.
32932         * modules/vdprintf-posix-tests (Files): Likewise.
32933         * modules/vfprintf-posix-tests (Files): Likewise.
32934         * modules/vprintf-posix-tests (Files): Likewise.
32935         * modules/vsnprintf-posix-tests (Files): Likewise.
32936         * modules/vsnprintf-tests (Files): Likewise.
32937         * modules/vsprintf-posix-tests (Files): Likewise.
32938         * modules/wcrtomb-tests (Files): Likewise.
32939         * modules/wcsnrtombs-tests (Files): Likewise.
32940         * modules/wcsrtombs-tests (Files): Likewise.
32941         * modules/wctype-tests (Files): Likewise.
32942         * modules/wcwidth-tests (Files): Likewise.
32943         * modules/xmemdup0-tests (Files): Likewise.
32944         * modules/xprintf-posix-tests (Files): Likewise.
32945         * modules/xvasprintf-tests (Files): Likewise.
32946
32947 2009-12-24  Eric Blake  <ebb9@byu.net>
32948
32949         test-nanosleep: fix typo
32950         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32951         patch.
32952         Reported by Bruno Haible.
32953
32954 2009-12-24  Bruno Haible  <bruno@clisp.org>
32955
32956         Reduce namespace pollution on glibc systems.
32957         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32958         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32959         systems.
32960         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32961         <getopt.h> on glibc systems.
32962         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32963         systems.
32964         * lib/fcntl.c: Include <unistd.h> here instead.
32965
32966 2009-12-24  Bruno Haible  <bruno@clisp.org>
32967
32968         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32969
32970 2009-12-24  Eric Blake  <ebb9@byu.net>
32971
32972         tests: add signature checks
32973         * tests/signature.h (SIGNATURE_CHECK): New file.
32974         * modules/atexit-tests (Files): Use it.
32975         * modules/btowc-tests (Files): Likewise.
32976         * modules/canonicalize-lgpl-tests (Files): Likewise.
32977         * modules/ceilf-tests (Files): Likewise.
32978         * modules/ceill-tests (Files): Likewise.
32979         * modules/chown-tests (Files): Likewise.
32980         * modules/dprintf-posix-tests (Files): Likewise.
32981         * modules/dup2-tests (Files): Likewise.
32982         * modules/dup3-tests (Files): Likewise.
32983         * modules/duplocale-tests (Files): Likewise.
32984         * modules/fchdir-tests (Files): Likewise.
32985         * modules/fcntl-tests (Files): Likewise.
32986         * modules/fdopendir-tests (Files): Likewise.
32987         * modules/fflush-tests (Files): Likewise.
32988         * modules/flock-tests (Files): Likewise.
32989         * modules/floorf-tests (Files): Likewise.
32990         * modules/floorl-tests (Files): Likewise.
32991         * modules/fnmatch-tests (Files): Likewise.
32992         * modules/fopen-tests (Files): Likewise.
32993         * modules/fprintf-posix-tests (Files): Likewise.
32994         * modules/freopen-tests (Files): Likewise.
32995         * modules/frexp-nolibm-tests (Files): Likewise.
32996         * modules/frexp-tests (Files): Likewise.
32997         * modules/frexpl-nolibm-tests (Files): Likewise.
32998         * modules/frexpl-tests (Files): Likewise.
32999         * modules/fseek-tests (Files): Likewise.
33000         * modules/fseeko-tests (Files): Likewise.
33001         * modules/fsync-tests (Files): Likewise.
33002         * modules/ftell-tests (Files): Likewise.
33003         * modules/ftello-tests (Files): Likewise.
33004         * modules/futimens-tests (Files): Likewise.
33005         * modules/getaddrinfo-tests (Files): Likewise.
33006         * modules/getcwd-tests (Files): Likewise.
33007         * modules/getdelim-tests (Files): Likewise.
33008         * modules/getdtablesize-tests (Files): Likewise.
33009         * modules/getgroups-tests (Files): Likewise.
33010         * modules/gethostname-tests (Files): Likewise.
33011         * modules/getline-tests (Files): Likewise.
33012         * modules/getopt-posix-tests (Files): Likewise.
33013         * modules/gettimeofday-tests (Files): Likewise.
33014         * modules/glob-tests (Files): Likewise.
33015         * modules/iconv-tests (Files): Likewise.
33016         * modules/inet_ntop-tests (Files): Likewise.
33017         * modules/inet_pton-tests (Files): Likewise.
33018         * modules/isblank-tests (Files): Likewise.
33019         * modules/lchown-tests (Files): Likewise.
33020         * modules/ldexpl-tests (Files): Likewise.
33021         * modules/link-tests (Files): Likewise.
33022         * modules/linkat-tests (Files): Likewise.
33023         * modules/lseek-tests (Files): Likewise.
33024         * modules/lstat-tests (Files): Likewise.
33025         * modules/mbrtowc-tests (Files): Likewise.
33026         * modules/mbsinit-tests (Files): Likewise.
33027         * modules/mbsnrtowcs-tests (Files): Likewise.
33028         * modules/mbsrtowcs-tests (Files): Likewise.
33029         * modules/memchr-tests (Files): Likewise.
33030         * modules/memcmp-tests (Files): Likewise.
33031         * modules/memmem-tests (Files): Likewise.
33032         * modules/memrchr-tests (Files): Likewise.
33033         * modules/mkdir-tests (Files): Likewise.
33034         * modules/mkfifo-tests (Files): Likewise.
33035         * modules/mkfifoat-tests (Files): Likewise.
33036         * modules/mknod-tests (Files): Likewise.
33037         * modules/nanosleep-tests (Files): Likewise.
33038         * modules/nl_langinfo-tests (Files): Likewise.
33039         * modules/obstack-printf-tests (Files): Likewise.
33040         * modules/open-tests (Files): Likewise.
33041         * modules/openat-tests (Files): Likewise.
33042         * modules/perror-tests (Files): Likewise.
33043         * modules/pipe2-tests (Files): Likewise.
33044         * modules/poll-tests (Files): Likewise.
33045         * modules/popen-tests (Files): Likewise.
33046         * modules/posix_spawn-tests (Files): Likewise.
33047         * modules/posix_spawnp-tests (Files): Likewise.
33048         * modules/pread-tests (Files): Likewise.
33049         * modules/printf-posix-tests (Files): Likewise.
33050         * modules/pty-tests (Files): Likewise.
33051         * modules/random_r-tests (Files): Likewise.
33052         * modules/rawmemchr-tests (Files): Likewise.
33053         * modules/readlink-tests (Files): Likewise.
33054         * modules/remove-tests (Files): Likewise.
33055         * modules/rename-tests (Files): Likewise.
33056         * modules/renameat-tests (Files): Likewise.
33057         * modules/rmdir-tests (Files): Likewise.
33058         * modules/round-tests (Files): Likewise.
33059         * modules/roundf-tests (Files): Likewise.
33060         * modules/roundl-tests (Files): Likewise.
33061         * modules/select-tests (Files): Likewise.
33062         * modules/setenv-tests (Files): Likewise.
33063         * modules/sigaction-tests (Files): Likewise.
33064         * modules/sleep-tests (Files): Likewise.
33065         * modules/snprintf-posix-tests (Files): Likewise.
33066         * modules/snprintf-tests (Files): Likewise.
33067         * modules/sprintf-posix-tests (Files): Likewise.
33068         * modules/stat-tests (Files): Likewise.
33069         * modules/strcasestr-tests (Files): Likewise.
33070         * modules/strchrnul-tests (Files): Likewise.
33071         * modules/strerror-tests (Files): Likewise.
33072         * modules/strsignal-tests (Files): Likewise.
33073         * modules/strstr-tests (Files): Likewise.
33074         * modules/strtod-tests (Files): Likewise.
33075         * modules/strverscmp-tests (Files): Likewise.
33076         * modules/symlink-tests (Files): Likewise.
33077         * modules/symlinkat-tests (Files): Likewise.
33078         * modules/times-tests (Files): Likewise.
33079         * modules/trunc-tests (Files): Likewise.
33080         * modules/truncf-tests (Files): Likewise.
33081         * modules/truncl-tests (Files): Likewise.
33082         * modules/tsearch-tests (Files): Likewise.
33083         * modules/uname-tests (Files): Likewise.
33084         * modules/unlink-tests (Files): Likewise.
33085         * modules/unsetenv-tests (Files): Likewise.
33086         * modules/usleep-tests (Files): Likewise.
33087         * modules/utimensat-tests (Files): Likewise.
33088         * modules/vasprintf-tests (Files): Likewise.
33089         * modules/vdprintf-posix-tests (Files): Likewise.
33090         * modules/vfprintf-posix-tests (Files): Likewise.
33091         * modules/vprintf-posix-tests (Files): Likewise.
33092         * modules/vsnprintf-posix-tests (Files): Likewise.
33093         * modules/vsnprintf-tests (Files): Likewise.
33094         * modules/vsprintf-posix-tests (Files): Likewise.
33095         * modules/wcrtomb-tests (Files): Likewise.
33096         * modules/wcsnrtombs-tests (Files): Likewise.
33097         * modules/wcsrtombs-tests (Files): Likewise.
33098         * modules/wcwidth-tests (Files): Likewise.
33099         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33100         * tests/test-isinf.c (isinf): Likewise.
33101         * tests/test-isnan.c (isnan): Likewise.
33102         * tests/test-signbit.c (signbit): Likewise.
33103         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33104         declaration, either as macro or with correct signature.
33105         (select): Ensure function under test is declared with correct
33106         signature in correct header.
33107         * tests/test-atexit.c (atexit): Likewise.
33108         * tests/test-btowc.c (btowc): Likewise.
33109         * tests/test-canonicalize-lgpl.c (realpath)
33110         (canonicalize_file_name): Likewise.
33111         * tests/test-ceilf1.c (ceilf): Likewise.
33112         * tests/test-ceill.c (ceill): Likewise.
33113         * tests/test-chown.c (chown): Likewise.
33114         * tests/test-dprintf-posix.c (dprintf): Likewise.
33115         * tests/test-dup2.c (dup2): Likewise.
33116         * tests/test-dup3.c (dup3): Likewise.
33117         * tests/test-duplocale.c (duplocale): Likewise.
33118         * tests/test-fchdir.c (fchdir): Likewise.
33119         * tests/test-fchownat.c (fchownat): Likewise.
33120         * tests/test-fcntl.c (fcntl): Likewise.
33121         * tests/test-fdopendir.c (fdopendir): Likewise.
33122         * tests/test-fflush.c (fflush): Likewise.
33123         * tests/test-flock.c (flock): Likewise.
33124         * tests/test-floorf1.c (floorf): Likewise.
33125         * tests/test-floorl.c (floorl): Likewise.
33126         * tests/test-fnmatch.c (fnmatch): Likewise.
33127         * tests/test-fopen.c (fopen): Likewise.
33128         * tests/test-fprintf-posix.c (fprintf): Likewise.
33129         * tests/test-freopen.c (freopen): Likewise.
33130         * tests/test-frexp.c (frexp): Likewise.
33131         * tests/test-frexpl.c (frexpl): Likewise.
33132         * tests/test-fseek.c (fseek): Likewise.
33133         * tests/test-fseeko.c (fseeko): Likewise.
33134         * tests/test-fstatat.c (fstatat): Likewise.
33135         * tests/test-fsync.c (fsync): Likewise.
33136         * tests/test-ftell.c (ftell): Likewise.
33137         * tests/test-ftello.c (ftello): Likewise.
33138         * tests/test-futimens.c (futimens): Likewise.
33139         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33140         (gai_strerror): Likewise.
33141         * tests/test-getcwd.c (getcwd): Likewise.
33142         * tests/test-getdelim.c (getdelim): Likewise.
33143         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33144         * tests/test-getgroups.c (getgroups): Likewise.
33145         * tests/test-gethostname.c (gethostname): Likewise.
33146         * tests/test-getline.c (getline): Likewise.
33147         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33148         Likewise.
33149         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33150         * tests/test-glob.c (glob, globfree): Likewise.
33151         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33152         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33153         * tests/test-inet_pton.c (inet_pton): Likewise.
33154         * tests/test-isblank.c (isblank): Likewise.
33155         * tests/test-lchown.c (lchown): Likewise.
33156         * tests/test-ldexpl.c (ldexpl): Likewise.
33157         * tests/test-link.c (link): Likewise.
33158         * tests/test-linkat.c (linkat): Likewise.
33159         * tests/test-lseek.c (lseek): Likewise.
33160         * tests/test-lstat.c (lstat): Likewise.
33161         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33162         * tests/test-mbsinit.c (mbsinit): Likewise.
33163         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33164         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33165         * tests/test-memchr.c (memchr): Likewise.
33166         * tests/test-memcmp.c (memcmp): Likewise.
33167         * tests/test-memmem.c (memmem): Likewise.
33168         * tests/test-memrchr.c (memrchr): Likewise.
33169         * tests/test-mkdir.c (mkdir): Likewise.
33170         * tests/test-mkdirat.c (mkdirat): Likewise.
33171         * tests/test-mkfifo.c (mkfifo): Likewise.
33172         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33173         * tests/test-mknod.c (mknod): Likewise.
33174         * tests/test-nanosleep.c (nanosleep): Likewise.
33175         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33176         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33177         Likewise.
33178         * tests/test-open.c (open): Likewise.
33179         * tests/test-openat.c (openat): Likewise.
33180         * tests/test-perror.c (perror): Likewise.
33181         * tests/test-pipe2.c (pipe2): Likewise.
33182         * tests/test-poll.c (poll): Likewise.
33183         * tests/test-popen.c (popen, pclose): Likewise.
33184         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33185         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33186         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33187         (posix_spawn_file_actions_destroy)
33188         (posix_spawn_file_actions_addclose)
33189         (posix_spawn_file_actions_addopen)
33190         (posix_spawn_file_actions_adddup2): Likewise.
33191         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33192         * tests/test-pread.c (pread): Likewise.
33193         * tests/test-printf-posix.c (printf): Likewise.
33194         * tests/test-pty.c (openpty, forkpty): Likewise.
33195         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33196         (random_r): Likewise.
33197         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33198         * tests/test-readlink.c (readlink): Likewise.
33199         * tests/test-remove.c (remove): Likewise.
33200         * tests/test-rename.c (rename): Likewise.
33201         * tests/test-renameat.c (renameat): Likewise.
33202         * tests/test-rmdir.c (rmdir): Likewise.
33203         * tests/test-round1.c (round): Likewise.
33204         * tests/test-roundf1.c (roundf): Likewise.
33205         * tests/test-roundl.c (roundl): Likewise.
33206         * tests/test-setenv.c (setenv): Likewise.
33207         * tests/test-sigaction.c (sigaction): Likewise.
33208         * tests/test-sleep.c (sleep): Likewise.
33209         * tests/test-snprintf.c (snprintf): Likewise.
33210         * tests/test-sprintf-posix.c (sprintf): Likewise.
33211         * tests/test-stat.c (stat): Likewise.
33212         * tests/test-stpncpy.c (stpncpy): Likewise.
33213         * tests/test-strcasestr.c (strcasestr): Likewise.
33214         * tests/test-strchrnul.c (strchrnul): Likewise.
33215         * tests/test-strerror.c (strerror): Likewise.
33216         * tests/test-strsignal.c (strsignal): Likewise.
33217         * tests/test-strstr.c (strstr): Likewise.
33218         * tests/test-strtod.c (strtod): Likewise.
33219         * tests/test-strverscmp.c (strverscmp): Likewise.
33220         * tests/test-symlink.c (symlink): Likewise.
33221         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33222         * tests/test-times.c (times): Likewise.
33223         * tests/test-trunc1.c (trunc): Likewise.
33224         * tests/test-truncf1.c (truncf): Likewise.
33225         * tests/test-truncl.c (truncl): Likewise.
33226         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33227         Likewise.
33228         * tests/test-uname.c (uname): Likewise.
33229         * tests/test-unlink.c (unlink): Likewise.
33230         * tests/test-unlinkat.c (unlinkat): Likewise.
33231         * tests/test-unsetenv.c (unsetenv): Likewise.
33232         * tests/test-usleep.c (usleep): Likewise.
33233         * tests/test-utimensat.c (utimensat): Likewise.
33234         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33235         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33236         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33237         * tests/test-vprintf-posix.c (vprintf): Likewise.
33238         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33239         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33240         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33241         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33242         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33243         * tests/test-wcwidth.c (wcwidth): Likewise.
33244
33245         build: pull in conditional headers during GNULIB_POSIXCHECK
33246         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33247         definitions from any conditionally-included headers.
33248         * lib/stdlib.in.h (includes): Likewise.
33249         * lib/unistd.in.h (includes): Likewise.
33250
33251 2009-12-24  Bruno Haible  <bruno@clisp.org>
33252
33253         * tests/test-argv-iter.c: Include header file being tested immediately
33254         after config.h.
33255         * tests/test-base64.c: Likewise.
33256         * tests/test-flock.c: Likewise.
33257         * tests/test-fsync.c: Likewise.
33258         * tests/test-getdate.c: Likewise.
33259         * tests/test-getndelim2.c: Likewise.
33260         * tests/test-isfinite.c: Likewise.
33261         * tests/test-isinf.c: Likewise.
33262         * tests/test-strerror.c: Likewise.
33263         * tests/test-strsignal.c: Likewise.
33264
33265 2009-12-23  Eric Blake  <ebb9@byu.net>
33266
33267         unistd: work around cygwin bug
33268         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33269         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33270         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33271
33272 2009-12-23  Bruno Haible  <bruno@clisp.org>
33273
33274         localename: More tests.
33275         * tests/test-localename.c (SIZEOF): New macro.
33276         (categories): New variable.
33277         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33278         test_locale_name_default): Add test w.r.t. thread locale.
33279         (test_locale_name_thread): New function.
33280         (main): Invoke it.
33281
33282         localename: Make aware of thread locale.
33283         * lib/localename.h (gl_locale_name_thread): New declaration.
33284         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33285         behaviour with respect to thread locale.
33286         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33287         <langinfo.h>, glthread/lock.h.
33288         (SIZE_BITS): New macro.
33289         (string_hash): New function.
33290         (struct hash_node): New type.
33291         (HASH_TABLE_SIZE): New macro.
33292         (struniq_hash_table, struniq_lock): New variables.
33293         (struniq): New function.
33294         (gl_locale_name_thread): New function.
33295         (gl_locale_name): Invoke it.
33296         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33297         * modules/localename (Depends-on): Add lock.
33298         Reported by Mike Gran <spk121@yahoo.com>.
33299
33300 2009-12-23  Eric Blake  <ebb9@byu.net>
33301
33302         va-args: new module
33303         * modules/va-args: New file.
33304         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33305         * MODULES.html.sh (Core language properties): Mention it.
33306
33307         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33308         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33309         named alias for __attribute__((__unused__)).
33310         * lib/chown.c: Update client.
33311         * lib/fchmodat.c: Likewise.
33312         * lib/fts.c: Likewise.
33313         * lib/getdate.y: Likewise.
33314         * lib/getgroups.c: Likewise.
33315         * lib/getopt.c: Likewise.
33316         * lib/getugroups.c: Likewise.
33317         * lib/mkdir.c: Likewise.
33318         * lib/mkfifo.c: Likewise.
33319         * lib/mkfifoat.c: Likewise.
33320         * lib/mknod.c: Likewise.
33321         * lib/mknodat.c: Likewise.
33322         * lib/readlink.c: Likewise.
33323         * lib/se-context.in.h: Likewise.
33324         * lib/se-selinux.in.h: Likewise.
33325         * lib/sockets.c: Likewise.
33326         * lib/symlink.c: Likewise.
33327         * lib/symlinkat.c: Likewise.
33328         * lib/unicodeio.c: Likewise.
33329         * lib/unistr.h: Likewise.
33330         * tests/test-areadlink.c: Likewise.
33331         * tests/test-areadlinkat.c: Likewise.
33332         * tests/test-filenamecat.c: Likewise.
33333         * tests/test-fseeko.c: Likewise.
33334         * tests/test-ftello.c: Likewise.
33335         * tests/test-getdate.c: Likewise.
33336         * tests/test-getgroups.c: Likewise.
33337         * tests/test-gethostname.c: Likewise.
33338         * tests/test-quotearg.c: Likewise.
33339         * tests/test-version-etc.c: Likewise.
33340         * tests/test-xalloc-die.c: Likewise.
33341         * tests/test-xfprintf-posix.c: Likewise.
33342         * tests/test-xprintf-posix.c: Likewise.
33343         * tests/test-xvasprintf.c: Likewise.
33344
33345         tests: avoid compiler warnings
33346         * tests/test-fcntl.c (main): Delete unused parameters.
33347         * tests/test-freopen-safer.c (main): Likewise.
33348         * tests/test-xalloc-die.c (main): Mark unused parameters.
33349         * tests/test-fseeko.c (main): Likewise.
33350         * tests/test-ftello.c (main): Likewise.
33351         * tests/test-nanosleep.c (main): Avoid declaration warning.
33352         * tests/test-sleep.c (main): Likewise.
33353         * tests/test-unsetenv.c (main): Silence warning about string
33354         literal.
33355         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33356
33357 2009-12-23  Bruno Haible  <bruno@clisp.org>
33358
33359         * tests/test-localename.c (test_locale_name): New function, extracted
33360         from main. Also test mixed situations.
33361         (test_locale_name_posix, test_locale_name_environ,
33362         test_locale_name_default): New functions.
33363         (main): Invoke them all.
33364         * modules/localename-tests (configure.ac): Test for newlocale.
33365
33366 2009-12-23  Bruno Haible  <bruno@clisp.org>
33367
33368         unistd: Ensure getcwd gets declared before being overridden.
33369         * lib/unistd.in.h: Conditionally include <io.h>.
33370
33371 2009-12-22  Bruno Haible  <bruno@clisp.org>
33372
33373         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33374         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33375         (gl_WCHAR_H): Invoke it.
33376         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33377         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33378         Reported by Karl Berry <karl@freefriends.org>.
33379
33380 2009-12-22  Eric Blake  <ebb9@byu.net>
33381
33382         math, unistd: avoid redundant includes
33383         * lib/math.in.h (isnan): No need to re-include <math.h>.
33384         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33385
33386         getsubopt: work around cygwin bug
33387         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33388         avoid conflicting with system getsubopt.
33389         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33390         bug.
33391
33392         getopt: synchronize from glibc
33393         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33394         parameter order.  Adjust all callers.
33395         (_getopt_internal_r, main): Adjust quoting in error messages.
33396         Drop considerations for outdated POSIX 1003.2 error message.
33397         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33398         callers.
33399         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33400
33401         test-getopt: test stderr behavior
33402         * modules/getopt-posix-tests (Depends-on): Add dup2.
33403         * tests/test-getopt.c (ASSERT): Avoid stderr.
33404         (main): Move stderr to a temporary file.
33405         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33406         Instead, add parameter to inform caller if output occurred.
33407         (test_getopt): Adjust all existing tests to expect silence, and
33408         add new tests of leading ":".
33409         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33410         glibc shortcomings with leading "-:" or "+:" in optstring.
33411         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33412         Likewise.
33413         * doc/posix-functions/getopt.texi (getopt): Likewise.
33414
33415         test-getopt: enhance test
33416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33417         supports optind=0.
33418         * tests/test-getopt.c (OPTIND_MIN): Move...
33419         * tests/test-getopt.h (OPTIND_MIN): ...here.
33420         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33421         Require that optind=0 works, since modern BSD supports it in
33422         addition to optreset, and since coreutils expects it.
33423         (test_getopt_long_only): New test.
33424         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33425         glibc shortcomings with 'W;', and enforcement of optind=0.
33426         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33427         Likewise.
33428
33429 2009-12-21  Bruno Haible  <bruno@clisp.org>
33430
33431         localename: Improvements for MacOS X and Cygwin.
33432         * lib/localename.h (gl_locale_name_environ): New declaration.
33433         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33434         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33435         (gl_locale_name_posix): Invoke it.
33436         (gl_locale_name_default): Add comments. Use Windows native API also on
33437         Cygwin.
33438
33439 2009-12-21  Bruno Haible  <bruno@clisp.org>
33440
33441         Update list of Win32 locale ids.
33442         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33443         (LANG_SAMI): Renamed from LANG_SAAMI.
33444         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33445         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33446         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33447         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33448         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33449         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33450         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33451         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33452         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33453         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33454         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33455         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33456         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33457         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33458         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33459         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33460         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33461         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33462         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33463         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33464         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33465         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33466         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33467         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33468         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33469         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33470         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33471         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33472         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33473         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33474         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33475         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33476         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33477         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33478         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33479         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33480         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33481         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33482         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33483         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33484         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33485         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33486         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33487         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33488         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33489         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33490         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33491         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33492         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33493         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33494         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33495         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33496         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33497         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33498         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33499         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33500         Add more languages and countries for Sami, Sorbian. Add more countries
33501         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33502         for Pashto. Change country for Syriac, Tswana.
33503
33504 2009-12-21  Eric Blake  <ebb9@byu.net>
33505
33506         test-utimens: avoid spurious failure
33507         * tests/test-chown.h (nap): Factor...
33508         * tests/nap.h: ...into new file.
33509         * tests/test-lchown.h (nap): Avoid duplication.
33510         * tests/test-utimens-common.h (nap): Use shared implementation,
33511         necessary on file systems with 1-second resolution.
33512         * modules/chown-tests (Files): Include new file.
33513         * modules/fdutimensat-tests (Files): Likewise.
33514         * modules/futimens-tests (Files): Likewise.
33515         * modules/lchown-tests (Files): Likewise.
33516         * modules/openat-tests (Files): Likewise.
33517         * modules/utimens-tests (Files): Likewise.
33518         * modules/utimensat-tests (Files): Likewise.
33519
33520 2009-12-19  Eric Blake  <ebb9@byu.net>
33521
33522         futimens, utimensat: work around Linux bug
33523         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33524         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33525         * lib/utimensat.c (rpl_utimensat): Work around it.
33526         * lib/futimens.c (rpl_futimens): Adjust comment.
33527
33528         utimens: work around Linux ctime bug
33529         * lib/utimens.c (detect_ctime_bug): New helper function.
33530         (update_timespec): Differentiate between workaround needed for
33531         this bug vs. what is needed for systems that lack utimensat.
33532         (fdutimens, lutimens): Work around bug.
33533
33534         utimens: check for ctime update
33535         * tests/test-utimens-common.h (check_ctime): Define.
33536         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33537         * tests/test-futimens.h (test_futimens): Likewise.
33538         * tests/test-lutimens.h (test_lutimens): Likewise.
33539         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33540         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33541
33542 2009-12-19  Bruno Haible  <bruno@clisp.org>
33543
33544         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33545         * tests/test-dprintf-posix2.sh: New file.
33546         * tests/test-dprintf-posix2.c: New file.
33547         * modules/dprintf-posix-tests (Files): Add them.
33548         (configure.ac): Check for getrlimit and setrlimit.
33549         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33550
33551 2009-12-19  Bruno Haible  <bruno@clisp.org>
33552
33553         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33554         * tests/test-fprintf-posix3.sh: New file.
33555         * tests/test-fprintf-posix3.c: New file.
33556         * modules/fprintf-posix-tests (Files): Add them.
33557         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33558
33559 2009-12-19  Eric Blake  <ebb9@byu.net>
33560
33561         dirfd: fix prototype
33562         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33563         * lib/dirfd.c (dirfd): Likewise.
33564
33565         canonicalize: reduce memory usage
33566         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33567         allocation to size.
33568         Reported by Solar Designer <solar@openwall.com>.
33569
33570 2009-12-19  Bruno Haible  <bruno@clisp.org>
33571
33572         New module attribute 'Applicability'.
33573         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33574         * gnulib-tool: New option --extract-applicability.
33575         (func_usage): Document it.
33576         (sed_extract_prog): Recognize it.
33577         (func_get_applicability): New function.
33578         (func_import): Generalize handling of 'link-warning' module.
33579         * modules/link-warning (Applicability): New section.
33580         * modules/arg-nonnull (Applicability): New section.
33581         Repoted by Simon Josefsson <simon@josefsson.org>.
33582
33583 2009-12-19  Bruno Haible  <bruno@clisp.org>
33584
33585         fflush: tweak
33586         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33587         * lib/fseeko.c (rpl_fseeko): Likewise.
33588
33589 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33590
33591         * lib/gl_list.h: Fix typo in comment.
33592
33593 2009-12-16  Eric Blake  <ebb9@byu.net>
33594
33595         fcntl: use to simplify other modules
33596         * modules/cloexec (Depends-on): Add fcntl.
33597         * modules/fchdir (Depends-on): Likewise.
33598         * modules/fd-safer-flag (Depends-on): Likewise.
33599         * modules/unistd-safer (Depends-on): Likewise.
33600         * modules/dup3 (configure.ac): Set module indicator.
33601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33602         missing.
33603         * lib/fchdir.c (_gl_register_dup): Fix comment.
33604         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33605         * lib/dup-safer.c (dup_safer): Likewise.
33606         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33607         * lib/dup3.c (dup3): Likewise.
33608         * tests/test-fchdir.c (main): Enhance test.
33609         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33610
33611         fcntl: port portions of fcntl to mingw
33612         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33613         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33614         replacement for mingw.
33615         * modules/fcntl (Description): Update.
33616         (Depends-on): Add dup2.
33617         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33618         * modules/fcntl-h (Makefile.am): Substitute it.
33619         * lib/fcntl.in.h (fcntl): Update declaration.
33620         (F_DUPFD, F_GETFD): New macros, when needed.
33621         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33622         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33623         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33624         we now guarantee.
33625
33626         fcntl: work around cygwin bug in F_DUPFD
33627         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33628         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33629         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33630         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33631         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33632
33633         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33634         * modules/fcntl (Files): List new files.
33635         (configure.ac): Run a test.
33636         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33637         * lib/fcntl.c (rpl_fcntl): Likewise.
33638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33639         (gl_FCNTL_H): Always replace fcntl.h.
33640         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33641         * lib/fcntl.in.h (fcntl): Declare replacement.
33642         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33643         needed, plus a witness.
33644         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33645         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33646         * tests/test-fcntl.c: New file.
33647         * modules/fcntl-tests: Likewise.
33648
33649         binary-io: avoid potential compilation warning
33650         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33651         directives.
33652
33653         fflush: avoid compilation error on NetBSD
33654         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33655         between off_t and fpos_t, since the latter is sometimes a struct.
33656         * lib/fseeko.c (rpl_fseeko): Likewise.
33657         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33658
33659 2009-12-15  Eric Blake  <ebb9@byu.net>
33660
33661         fcntl-h, stdio, sys_ioctl: fix declarations
33662         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33663         function must not take arguments.
33664         * lib/sys_ioctl.in.h (ioctl): Likewise.
33665         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33666         (open): Add a link warning.
33667
33668 2009-12-15  Jim Meyering  <meyering@redhat.com>
33669
33670         areadlink, areadlink-with-size: relax license to LGPLv2+
33671         * modules/areadlink (License): Relax to LGPLv2+.
33672         * modules/areadlink-with-size (License): Likewise.
33673
33674 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33675             Bruno Haible  <bruno@clisp.org>
33676
33677         *printf: Fix memory leak.
33678         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33679         * lib/vfprintf.c (vfprintf): Likewise.
33680         * lib/dprintf.c (dprintf): Likewise.
33681         * lib/vdprintf.c (vdprintf): Likewise.
33682
33683 2009-12-14  Eric Blake  <ebb9@byu.net>
33684
33685         accept4: adjust module dependencies
33686         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33687
33688         utimens: one more try at avoiding compiler warning
33689         * lib/utimens.c (lutimens): Lower scope of result.
33690
33691 2009-12-13  Bruno Haible  <bruno@clisp.org>
33692
33693         Move the malloc checking from module 'list' to new module 'xlist'.
33694         * modules/xlist: New file.
33695         * lib/gl_xlist.h: New file.
33696         * lib/gl_xlist.c: New file.
33697         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33698         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33699         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33700         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33701         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33702         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33703         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33704         gl_sortedlist_nx_add): New declarations.
33705         (struct gl_list_implementation): Rename and change methods accordingly.
33706         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33707         (gl_list_nx_create): Renamed from gl_list_create.
33708         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33709         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33710         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33711         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33712         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33713         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33714         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33715         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33716         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33717         gl_list_create_empty.
33718         (gl_list_nx_create): Renamed from gl_list_create.
33719         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33720         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33721         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33722         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33723         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33724         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33725         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33726         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33727         * lib/gl_array_list.c: Don't include xalloc.h.
33728         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33729         NULL upon out-of-memory.
33730         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33731         out-of-memory.
33732         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33733         Change return type to 'int'.
33734         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33735         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33736         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33737         upon out-of-memory.
33738         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33739         upon out-of-memory.
33740         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33741         upon out-of-memory.
33742         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33743         upon out-of-memory.
33744         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33745         out-of-memory.
33746         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33747         Update.
33748         (gl_array_list_implementation): Update.
33749         * lib/gl_carray_list.c: Don't include xalloc.h.
33750         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33751         Return NULL upon out-of-memory.
33752         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33753         out-of-memory.
33754         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33755         Change return type to 'int'.
33756         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33757         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33758         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33759         upon out-of-memory.
33760         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33761         upon out-of-memory.
33762         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33763         out-of-memory.
33764         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33765         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33766         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33767         Update.
33768         (gl_carray_list_implementation): Update.
33769         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33770         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33771         gl_linked_create_empty. Return NULL upon out-of-memory.
33772         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33773         out-of-memory.
33774         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33775         Change return type to 'int'. Return -1 upon out-of-memory.
33776         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33777         out-of-memory.
33778         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33779         upon out-of-memory.
33780         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33781         upon out-of-memory.
33782         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33783         NULL upon out-of-memory.
33784         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33785         upon out-of-memory.
33786         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33787         out-of-memory.
33788         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33789         Update.
33790         * lib/gl_linked_list.c: Don't include xalloc.h.
33791         (gl_linked_list_implementation): Update.
33792         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33793         (add_to_bucket): Change return type to 'int'.
33794         (gl_linkedhash_list_implementation): Update.
33795         * lib/gl_anytree_list1.h (free_subtree): New function.
33796         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33797         gl_tree_create_empty. Return NULL upon out-of-memory.
33798         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33799         Change return type to 'int'. Return -1 upon out-of-memory.
33800         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33801         out-of-memory.
33802         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33803         (gl_tree_remove_node): New function, moved here from
33804         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33805         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33806         Update.
33807         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33808         malloc, not xmalloc. Return NULL upon out-of-memory.
33809         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33810         out-of-memory.
33811         (gl_tree_remove_node_from_tree): New function, extracted from
33812         gl_tree_remove_node.
33813         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33814         upon out-of-memory.
33815         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33816         out-of-memory.
33817         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33818         upon out-of-memory.
33819         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33820         upon out-of-memory.
33821         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33822         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33823         not xmalloc. Return NULL upon out-of-memory.
33824         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33825         out-of-memory.
33826         (gl_tree_remove_node_from_tree): New function, extracted from
33827         gl_tree_remove_node.
33828         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33829         upon out-of-memory.
33830         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33831         out-of-memory.
33832         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33833         upon out-of-memory.
33834         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33835         upon out-of-memory.
33836         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33837         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33838         gl_anytree_list1.h before gl_anyavltree_list2.h.
33839         (gl_avltree_list_implementation): Update.
33840         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33841         gl_anytree_list1.h before gl_anyavltree_list2.h.
33842         (gl_rbtree_list_implementation): Update.
33843         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33844         Change return type to 'int'. Return -1 upon out-of-memory. Use
33845         __builtin_expect.
33846         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33847         (gl_avltreehash_list_implementation): Update.
33848         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33849         (gl_rbtreehash_list_implementation): Update.
33850         * modules/array-list (Depends-on): Remove xalloc.
33851         * modules/carray-list (Depends-on): Likewise.
33852         * modules/linked-list (Depends-on): Likewise.
33853         * modules/linkedhash-list (Depends-on): Likewise.
33854         * modules/avltree-list (Depends-on): Likewise.
33855         * modules/rbtree-list (Depends-on): Likewise.
33856         * modules/avltreehash-list (Depends-on): Likewise.
33857         * modules/rbtreehash-list (Depends-on): Likewise.
33858
33859         * modules/xsublist: New file.
33860         * lib/gl_xsublist.h: New file.
33861         * lib/gl_xsublist.c: New file.
33862         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33863         (gl_sublist_nx_create): New declaration.
33864         * lib/gl_sublist.c: Don't include xalloc.h.
33865         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33866         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33867         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33868         Change return type to 'int'. Return -1 upon out-of-memory.
33869         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33870         upon out-of-memory.
33871         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33872         NULL upon out-of-memory.
33873         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33874         upon out-of-memory.
33875         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33876         NULL upon out-of-memory.
33877         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33878         NULL upon out-of-memory.
33879         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33880         upon out-of-memory.
33881         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33882         (gl_sublist_list_implementation): Update.
33883         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33884         upon out-of-memory.
33885         * modules/sublist (Depends-on): Remove xalloc.
33886
33887         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33888         * tests/test-carray_list.c: Likewise.
33889         * tests/test-linked_list.c: Likewise.
33890         * tests/test-linkedhash_list.c: Likewise.
33891         * tests/test-avltree_list.c: Likewise.
33892         * tests/test-rbtree_list.c: Likewise.
33893         * tests/test-avltreehash_list.c: Likewise.
33894         * tests/test-rbtreehash_list.c: Likewise.
33895         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33896         * modules/carray-list-tests (Makefile.am): Likewise.
33897         * modules/linked-list-tests (Makefile.am): Likewise.
33898         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33899         * modules/avltree-list-tests (Makefile.am): Likewise.
33900         * modules/rbtree-list-tests (Makefile.am): Likewise.
33901         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33902         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33903
33904         * NEWS: Mention the changes.
33905
33906         * lib/clean-temp.c: Include gl_xlist.h.
33907         * modules/clean-temp (Depends-on): Add xlist.
33908
33909         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33910         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33911
33912         * tests/test-array_oset.c: Include gl_xlist.h.
33913         * modules/array-oset-tests (Depends-on): Add xlist.
33914
33915         Reported by José E. Marchesi <jemarch@gnu.org>.
33916
33917 2009-12-13  Bruno Haible  <bruno@clisp.org>
33918
33919         Move the malloc checking from module 'oset' to new module 'xoset'.
33920         * modules/xoset: New file.
33921         * lib/gl_xoset.h: New file.
33922         * lib/gl_xoset.c: New file.
33923         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33924         declarations.
33925         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33926         (struct gl_oset_implementation): Rename and change methods accordingly.
33927         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33928         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33929         'int'. Mark as __warn_unused_result__.
33930         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33931         gl_oset_create_empty.
33932         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33933         'int'.
33934         * lib/gl_array_oset.c: Don't include xalloc.h.
33935         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33936         malloc, not xmalloc.
33937         (grow): Change return type to 'int'. Don't call xalloc_die.
33938         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33939         to 'int'.
33940         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33941         'int'.
33942         (gl_array_oset_implementation): Update.
33943         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33944         gl_tree_create_empty.
33945         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33946         'int'.
33947         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33948         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33949         xmalloc.
33950         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33951         not xmalloc.
33952         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33953         xmalloc.
33954         (gl_avltree_oset_implementation): Update.
33955         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33956         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33957         xmalloc.
33958         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33959         not xmalloc.
33960         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33961         xmalloc.
33962         (gl_rbtree_oset_implementation): Update.
33963         * modules/array-oset (Depends-on): Remove xalloc.
33964         * modules/avltree-oset (Depends-on): Likewise.
33965         * modules/rbtree-oset (Depends-on): Likewise.
33966         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33967         * tests/test-avltree_oset.c: Likewise.
33968         * tests/test-rbtree_oset.c: Likewise.
33969         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33970         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33971         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33972         * NEWS: Mention the change.
33973
33974 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33975
33976         maint.mk: allow a project to override release-prep commands
33977         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33978         commands into a new rule.
33979         (release-prep): New rule.
33980         (release-prep-hook): New overridable variable.
33981
33982 2009-12-13  Bruno Haible  <bruno@clisp.org>
33983
33984         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33985
33986 2009-12-13  Jim Meyering  <meyering@redhat.com>
33987
33988         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33989         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33990
33991 2009-12-12  Bruno Haible  <bruno@clisp.org>
33992
33993         duplocale: Tweak.
33994         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33995
33996 2009-12-12  Karl Berry  <karl@gnu.org>
33997
33998         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33999
34000 2009-12-12  Bruno Haible  <bruno@clisp.org>
34001
34002         * m4/po.m4: Undo incorrect untabification.
34003
34004 2009-12-12  Bruno Haible  <bruno@clisp.org>
34005
34006         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34007         * modules/c-strtod (Depends-on): Add locale.
34008         * modules/c-strtold (Depends-on): Likewise.
34009
34010 2009-12-12  Bruno Haible  <bruno@clisp.org>
34011
34012         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34013
34014 2009-12-11  Eric Blake  <ebb9@byu.net>
34015
34016         setenv: relax requirement in light of POSIX ruling
34017         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34018         not NULL.
34019         * tests/test-setenv.c (main): Relax test.
34020         * tests/test-unsetenv.c (main): Likewise.
34021         * doc/posix-functions/setenv.texi (setenv): Document this.
34022         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34023
34024 2009-12-11  Bruno Haible  <bruno@clisp.org>
34025
34026         New module 'fd-safer-flag'.
34027         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34028         * lib/dup-safer.c (dup_safer_flag): Remove function.
34029         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34030         * lib/fd-safer.c (fd_safer_flag): Remove function.
34031         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34032         * modules/cloexec (configure.ac): Drop indicator macro.
34033         * modules/fd-safer-flag: New file.
34034         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34035         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34036         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34037
34038 2009-12-11  Bruno Haible  <bruno@clisp.org>
34039
34040         Tests for module 'nl_langinfo'.
34041         * modules/nl_langinfo-tests: New file.
34042         * tests/test-nl_langinfo.sh: New file.
34043         * tests/test-nl_langinfo.c: New file.
34044
34045         New module 'nl_langinfo'.
34046         * lib/nl_langinfo.c: New file.
34047         * m4/nl_langinfo.m4: New file.
34048         * modules/nl_langinfo: New file.
34049         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34050
34051 2009-12-11  Bruno Haible  <bruno@clisp.org>
34052
34053         Tests for module 'langinfo'.
34054         * modules/langinfo-tests: New file.
34055         * tests/test-langinfo.c: New file.
34056
34057         New module 'langinfo'.
34058         * lib/langinfo.in.h: New file.
34059         * m4/langinfo_h.m4: New file.
34060         * modules/langinfo: New file.
34061         * doc/posix-headers/langinfo.texi: Mention the new module.
34062
34063 2009-12-11  Bruno Haible  <bruno@clisp.org>
34064
34065         * lib/config.charset: Untabify.
34066
34067 2009-12-11  Bruno Haible  <bruno@clisp.org>
34068
34069         * modules/unistd-safer (configure.ac): Drop indicator macro.
34070
34071 2009-12-11  Bruno Haible  <bruno@clisp.org>
34072
34073         Move pipe2-safer code to its own file.
34074         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34075         * lib/pipe-safer.c (pipe2_safer): Remove function.
34076         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34077         (Makefile.am): Add it to lib_SOURCES.
34078
34079 2009-12-10  Bruno Haible  <bruno@clisp.org>
34080
34081         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34082
34083 2009-12-10  Bruno Haible  <bruno@clisp.org>
34084
34085         Declare which arguments expect non-NULL values, for GCC and clang.
34086         * build-aux/arg-nonnull.h: New file.
34087         * modules/arg-nonnull: New file.
34088         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34089         (inet_ntop, inet_pton): Use it.
34090         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34091         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34092         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34093         (open, openat): Use it.
34094         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34095         (fnmatch): Use it.
34096         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34097         (getopt, getopt_long, getopt_long_only): Use it.
34098         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34099         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34100         Use it.
34101         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34102         (iconv_open): Use it.
34103         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34104         (strtoimax, strtoumax): Use it.
34105         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34106         (duplocale): Use it.
34107         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34108         (frexp, frexpl): Use it.
34109         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34110         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34111         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34112         (tsearch, tfind, tdelete, twalk): Use it.
34113         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34114         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34115         sigpending): Use it.
34116         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34117         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34118         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34119         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34120         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34121         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34122         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34123         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34124         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34125         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34126         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34127         Use it.
34128         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34129         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34130         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34131         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34132         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34133         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34134         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34135         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34136         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34137         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34138         strtoull, unsetenv): Use it.
34139         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34140         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34141         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34142         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34143         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34144         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34145         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34146         (strcasecmp, strncasecmp): Use it.
34147         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34148         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34149         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34150         rpl_setsockopt): Use it.
34151         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34152         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34153         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34154         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34155         (gettimeofday): Use it.
34156         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34157         (times): Use it.
34158         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34159         (uname): Use it.
34160         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34161         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34162         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34163         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34164         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34165         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34166         unlinkat, write): Use it.
34167         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34168         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34169         * lib/argv-iter.h: Include arg-nonnull.h.
34170         (_ATTRIBUTE_NONNULL_): Remove macro.
34171         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34172         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34173         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34174         optimization.
34175         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34176         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34177         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34178         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34179         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34180         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34181         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34182         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34183         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34184         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34185         * modules/dirent (Depends-on): Add arg-nonnull.
34186         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34187         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34188         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34189         * modules/fnmatch (Depends-on): Add arg-nonnull.
34190         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34191         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34192         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34193         * modules/glob (Depends-on): Add arg-nonnull.
34194         (Makefile.am): Insert arg-nonnull.h into glob.h.
34195         * modules/iconv_open (Depends-on): Add arg-nonnull.
34196         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34197         * modules/inttypes (Depends-on): Add arg-nonnull.
34198         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34199         * modules/locale (Depends-on): Add arg-nonnull.
34200         (Makefile.am): Insert arg-nonnull.h into locale.h.
34201         * modules/math (Depends-on): Add arg-nonnull.
34202         (Makefile.am): Insert arg-nonnull.h into math.h.
34203         * modules/netdb (Depends-on): Add arg-nonnull.
34204         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34205         * modules/search (Depends-on): Add arg-nonnull.
34206         (Makefile.am): Insert arg-nonnull.h into search.h.
34207         * modules/signal (Depends-on): Add arg-nonnull.
34208         (Makefile.am): Insert arg-nonnull.h into signal.h.
34209         * modules/spawn (Depends-on): Add arg-nonnull.
34210         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34211         * modules/stdio (Depends-on): Add arg-nonnull.
34212         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34213         * modules/stdlib (Depends-on): Add arg-nonnull.
34214         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34215         * modules/string (Depends-on): Add arg-nonnull.
34216         (Makefile.am): Insert arg-nonnull.h into string.h.
34217         * modules/strings (Depends-on): Add arg-nonnull.
34218         (Makefile.am): Insert arg-nonnull.h into strings.h.
34219         * modules/sys_socket (Depends-on): Add arg-nonnull.
34220         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34221         * modules/sys_stat (Depends-on): Add arg-nonnull.
34222         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34223         * modules/sys_time (Depends-on): Add arg-nonnull.
34224         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34225         * modules/sys_times (Depends-on): Add arg-nonnull.
34226         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34227         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34228         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34229         * modules/time (Depends-on): Add arg-nonnull.
34230         (Makefile.am): Insert arg-nonnull.h into time.h.
34231         * modules/unistd (Depends-on): Add arg-nonnull.
34232         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34233         * modules/wchar (Depends-on): Add arg-nonnull.
34234         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34235         * modules/argv-iter (Depends-on): Add arg-nonnull.
34236         * tests/test-canonicalize.c (null_ptr): New function.
34237         (main): Use it.
34238         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34239         (main): Use it.
34240         * tests/test-memmem.c (null_ptr): New function.
34241         (main): Use it.
34242         Reported by Jim Meyering.
34243
34244 2009-12-10  Bruno Haible  <bruno@clisp.org>
34245
34246         Use spaces for indentation, not tabs.
34247         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34248         * m4/*.m4: Untabify.
34249         * build-aux/*.h: Untabify.
34250         * tests/**/*.[hc]: Untabify.
34251         * README: New section "Indent with spaces, not TABs", based on
34252         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34253         * NEWS: Mention the change.
34254
34255 2009-12-10  Bruno Haible  <bruno@clisp.org>
34256
34257         pty test: Fix link error.
34258         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34259         test_pty_LDADD.
34260
34261 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34262
34263         * modules/pty: New file.
34264         * modules/pty-tests: New file.
34265         * m4/pty.m4: New file.
34266         * tests/test-pty.c: New file.
34267         * doc/glibc-headers/pty.texi: Modified.
34268         * doc/glibc-functions/forkpty.texi: Modified.
34269         * doc/glibc-functions/openpty.texi: Modified.
34270
34271 2009-12-10  Bruno Haible  <bruno@clisp.org>
34272
34273         Avoid syntax error in C++ mode.
34274         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34275
34276 2009-12-10  Bruno Haible  <bruno@clisp.org>
34277
34278         Use sed with option -e.
34279         * gnulib-tool (func_version, func_emit_copyright_notice,
34280         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34281         option -e to sed.
34282         * modules/link-warning (Makefile.am): Likewise.
34283
34284 2009-12-10  Jim Meyering  <meyering@redhat.com>
34285
34286         mgetgroups: do not write bytes beyond end of malloc'd buffer
34287         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34288         username, we call getgroups with a one-element-shorter buffer,
34289         but still told it the length was original, max_n_groups.
34290
34291 2009-12-09  Eric Blake  <ebb9@byu.net>
34292
34293         cloexec: relax license
34294         * modules/cloexec (Maintainer): Add myself.
34295         (License): Use LGPL, not GPL.
34296
34297         link-warning: optimize generation
34298         * modules/link-warning (Makefile.am): Reduce process usage.
34299
34300 2009-12-09  Bruno Haible  <bruno@clisp.org>
34301
34302         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34303         workaround was added on 2009-11-17.
34304
34305 2009-12-09  Jim Meyering  <meyering@redhat.com>
34306             Bruno Haible  <bruno@clisp.org>
34307
34308         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34309         * modules/link-warning (Makefile.am): Make the comment-removing sed
34310         command more robust in the face of bootstrap-prepended comment lines.
34311
34312 2009-12-09  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34315         most one group.
34316
34317 2009-12-09  Simon Josefsson <simon@josefsson.org>
34318             Bruno Haible  <bruno@clisp.org>
34319
34320         * build-aux/link-warning.h: Add copyright notice.
34321         * modules/link-warning (Makefile.am): Generate link-warning.h from
34322         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34323         * NEWS: Mention change in link-warning module.
34324         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34325         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34326         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34327         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34328         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34329         * modules/math (Makefile.am): Add dependency to math.h.
34330         * modules/search (Makefile.am): Add dependency to search.h.
34331         * modules/signal (Makefile.am): Add dependency to signal.h.
34332         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34333         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34334         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34335         * modules/string (Makefile.am): Add dependency to string.h.
34336         * modules/strings (Makefile.am): Add dependency to strings.h.
34337         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34338         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34339         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34340         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34341         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34342         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34343         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34344         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34345         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34346
34347 2009-12-09  Bruno Haible  <bruno@clisp.org>
34348
34349         fchdir: Optimize away rpl_fstat when possible.
34350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34351         REPLACE_OPEN_DIRECTORY.
34352         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34353
34354 2009-12-09  Bruno Haible  <bruno@clisp.org>
34355
34356         * lib/fchdir.c: Update comment.
34357
34358 2009-12-09  Bruno Haible  <bruno@clisp.org>
34359
34360         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34361
34362 2009-12-08  Eric Blake  <ebb9@byu.net>
34363
34364         fchdir: avoid memory leak on re-registration.
34365         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34366
34367 2009-12-08  Jim Meyering  <meyering@redhat.com>
34368
34369         init.sh: avoid Solaris 10 /bin/sh portability problem
34370         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34371         sourced script:
34372           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34373           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34374           bar
34375         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34376         and two tests used that idiom.
34377         * tests/init.sh: Update suggested usage comments.
34378         (path_prepend_): New function, to be used in place
34379         of the --src-path=DIR option.
34380         (setup_): Move PATH-prepending code into path_prepend_.
34381         * tests/test-pread.sh: Adapt to new usage.
34382         * tests/test-xalloc-die.sh: Likewise.
34383
34384 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34385
34386         * doc/gnulib.texi (Glibc pty.h): Add.
34387         * doc/glibc-functions/forkpty.texi: Add.
34388         * doc/glibc-functions/openpty.texi: Add.
34389         Suggested by Bruno Haible.
34390
34391 2009-12-08  Eric Blake  <ebb9@byu.net>
34392
34393         fchdir: fix logic bugs
34394         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34395         * tests/test-fchdir.c (main): Enhance test.
34396         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34397         is in use.
34398
34399         dup2: fix logic bugs
34400         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34401         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34402         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34403         exists.
34404         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34405
34406 2009-12-07  Eric Blake  <ebb9@byu.net>
34407
34408         unlink: fix m4 detection
34409         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34410
34411         unistd-safer: add unit test
34412         * modules/unistd-safer-tests: New file.
34413         * tests/test-dup-safer.c: Likewise.
34414         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34415         * tests/test-dup2.c (setmode): Likewise.
34416         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34417
34418         cloexec: preserve text vs. binary across dup_cloexec
34419         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34420         mode.
34421         * modules/dup2-tests (Depends-on): Add binary-io.
34422         * modules/cloexec-tests (Depends-on): Likewise.
34423         * tests/test-dup2.c (setmode, is_mode): New helpers.
34424         (main): Add tests that translation mode is preserved.
34425         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34426         Reported by Bruno Haible.
34427
34428         mgetgroups: reduce duplicate listings
34429         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34430         resulting array.
34431         * tests/test-chown.h (test_chown): Simplify client.
34432         * tests/test-lchown.h (test_lchown): Likewise.
34433
34434 2009-12-06  Bruno Haible  <bruno@clisp.org>
34435
34436         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34437         value.
34438
34439 2009-12-06  Bruno Haible  <bruno@clisp.org>
34440
34441         * lib/progname.c: Include stdio.h, stdlib.h.
34442         (set_program_name): Reject a NULL argument.
34443
34444 2009-12-05  Eric Blake  <ebb9@byu.net>
34445
34446         pipe2-safer: new module
34447         * modules/pipe2-safer: New file.
34448         * lib/unistd-safer.h (pipe2_safer): New prototype.
34449         * lib/unistd--.h (pipe2): New wrapper.
34450         * lib/pipe-safer.c (pipe2_safer): New function.
34451         * modules/pipe (Depends-on): Add pipe2-safer.
34452         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34453
34454         stdlib-safer: preserve cloexec flag for mkostemp[s]
34455         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34456         fd_safer_flag.
34457
34458         unistd-safer: allow preservation of cloexec status via flag
34459         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34460         prototypes.
34461         * lib/dup-safer.c (dup_safer_flag): New function.
34462         * lib/fd-safer.c (fd_safer_flag): Likewise.
34463         * modules/cloexec (configure.ac): Set witness.
34464
34465         test-dup2: enhance test
34466         * modules/dup2-tests (Depends-on): Add cloexec.
34467         * tests/test-dup2.c (main): Enhance test.
34468
34469         cloexec: add dup_cloexec
34470         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34471         header and comments.
34472         * lib/cloexec.c (set_cloexec_flag): Add comments.
34473         (dup_cloexec): New function, with mingw implementation borrowed
34474         from...
34475         * lib/w32spawn.h (dup_noinherit): ...here.
34476         * modules/execute (Depends-on): Add cloexec.
34477         * modules/pipe (Depends-on): Likewise.
34478         * modules/cloexec (Depends-on): Add dup2.
34479         * modules/cloexec-tests (Files): New file.
34480         * tests/test-cloexec.c: Likewise.
34481
34482         test-xalloc-die: fix test for mingw
34483         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34484         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34485         directory and .exe suffix off argv[0] output.
34486
34487         test-fseeko: fix test for mingw
34488         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34489         than undefining fseek, so test will pass on mingw.
34490
34491 2009-12-05  Bruno Haible  <bruno@clisp.org>
34492
34493         * lib/progname.h (set_program_name): Clarify specification.
34494         * lib/progname.c (set_program_name): Likewise.
34495         Reported by Jim Meyering.
34496
34497 2009-12-05  Jim Meyering  <meyering@redhat.com>
34498
34499         maint.mk: backslash-escape parens in default regexp
34500         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34501         backslash-escape the literal parentheses.
34502
34503         maint.mk: news-date-check: use grep -E
34504         * top/maint.mk (today): Define a Make variable, not a...
34505         (news-date-check): ...shell variable.
34506         (news-date-regexp): Use the Make variable.
34507         Use grep's -E option.  Change the failing diagnostic to mention
34508         the variable, $(news-date-regexp).
34509
34510 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34511
34512         maintainer-makefile: allow customization of NEWS entry format
34513         * top/maint.mk (news-date-regexp): New overridable variable.
34514         (news-date-check): Use it.
34515
34516 2009-12-04  Eric Blake  <ebb9@byu.net>
34517
34518         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34519         * lib/mgetgroups.h (xgetgroups): New prototype.
34520         * lib/mgetgroups.c (xgetgroups): New wrapper.
34521         (mgetgroups): Handle ENOSYS.
34522         * modules/mgetgroups (Depends-on): Add realloc.
34523         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34524
34525         mgetgroups: avoid argument promotion issues with -1
34526         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34527         for invalid gid_t.
34528         * tests/test-chown.h (getegid, test_chown): Likewise.
34529         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34530
34531 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34532
34533         exclude: Fix header file problems.
34534         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34535
34536 2009-12-01  Jim Meyering  <meyering@redhat.com>
34537
34538         fts: fts_open: do not let an empty string cause immediate failure
34539         This is required in support of GNU rm, for which the command
34540         "rm A '' B" must process and remove both A and B, in spite of
34541         the empty string argument.
34542         * lib/fts.c (fts_open): Do not let the presence of an empty string
34543         cause fts_open to fail immediately.  Most fts-using tools must be
34544         able to process all arguments, in order, and can be expected to
34545         diagnose such arguments themselves.
34546
34547 2009-11-30  Eric Blake  <ebb9@byu.net>
34548
34549         utimens: fix compilation error
34550         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34551         Declare variable at right scope.
34552
34553 2009-11-29  Jim Meyering  <meyering@redhat.com>
34554
34555         bootstrap: handle perl-5.11's changed --version output
34556         * build-aux/bootstrap (get_version): Handle perl separately,
34557         since perl-5.11's --version output is different.
34558
34559 2009-11-28  Jim Meyering  <meyering@redhat.com>
34560
34561         userspec: depend on the inttostr module, too
34562         * modules/userspec (Depends-on): Add inttostr.
34563
34564         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34565         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34566         number of MAXUID when it evaluates to (uid_t) -1.
34567         Likewise for group ID.  Reported by Matt McCutchen in
34568         <http://savannah.gnu.org/bugs/?28113>
34569
34570         userspec: reformat to use spaces, not TABs
34571         * lib/userspec.c: Expand TABs to spaces.
34572         Add Emacs' "indent-tabs-mode: nil" hint.
34573
34574 2009-11-27  Eric Blake  <ebb9@byu.net>
34575
34576         getopt-gnu: flush out another BSD bug
34577         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34578         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34579         flush out BSD bug.
34580         * tests/test-getopt.h (test_getopt): End lists with NULL.
34581         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34582         (test_getopt_long_posix): Enhance test.
34583         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34584         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34585         getopt-gnu.
34586         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34587         Likewise.
34588
34589 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34590
34591         * modules/idpriv-droptemp-tests (Notice): Fix text.
34592
34593 2009-11-27  Jim Meyering  <meyering@redhat.com>
34594
34595         test-xalloc-die: avoid spurious failure due to libtool argv difference
34596         In a libtool-enabled project, this test would fail due to a difference
34597         in the emitted program name, e.g.,
34598         -test-xalloc-die: memory exhausted
34599         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34600         Use program to avoid that.
34601         * modules/xalloc-die-tests (Depends-on): Add progname.
34602         * tests/test-xalloc-die.c: Include progname.h".
34603         (program_name): Remove decl.
34604         (main): Call set_program_name.
34605         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34606
34607 2009-11-26  Richard Jones  <rjones@redhat.com>
34608
34609         w32sock: leave win32 error in place.
34610         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34611
34612 2009-11-26  Eric Blake  <ebb9@byu.net>
34613
34614         init.sh: suggest to use skip_ and fail_ functions in comments
34615         * tests/init.sh: Add a sentence.
34616
34617 2009-11-25  Bruno Haible  <bruno@clisp.org>
34618
34619         init.sh: add documentation in comments
34620         * tests/init.sh: Add some developer and user documentation.
34621
34622 2009-11-26  Jim Meyering  <meyering@redhat.com>
34623
34624         init.sh: accommodate even those who specify bogus srcdir manually
34625         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34626         configure-time tests to be sanitized, so that there is no need to
34627         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34628         (with no double quotes) suffices.  However, since tests may be
34629         invoked manually, and since you may explicitly set srcdir to the
34630         name of a directory containing spaces, do quote its uses here.
34631         * tests/test-pread.sh: Likewise.
34632         Suggested by Bruno Haible.
34633
34634         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34635         * tests/test-pread.sh: Write no data into the pipe, because
34636         test-pread actually reads none.  This avoids a diagnostic,
34637         "bash: echo: write error: Broken pipe", that arises in the unusual
34638         event something is ignoring SIGPIPE, and might be interpreted
34639         as some sort of failure.  Reported by Bruno Haible.
34640
34641 2009-11-25  Jim Meyering  <meyering@redhat.com>
34642
34643         test-pread: cover failure with ESPIPE and EINVAL
34644         * tests/test-pread.c (main): Test for failure, too.
34645         * tests/test-pread.sh: Invoke with stdin on a pipe.
34646         Suggested by Eric Blake.
34647
34648         pread: improvement and fix
34649         * modules/pread (Depends-on): Depend on lseek, for portability to
34650         e.g., mingw.  Suggested by Eric Blake.
34651         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34652
34653         unistd.in.h: correct declaration of pread
34654         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34655         Reported by Richard W.M. Jones.
34656
34657         test-pread.sh: distribute the test script
34658         * modules/pread-tests (Files): Include test-pread.sh.
34659
34660         test-pread.sh: clean up
34661         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34662         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34663         That is unnecessary, since it's always ".".
34664         Suggestion from Eric Blake.
34665
34666         test-pread.sh: make executable
34667         * tests/test-pread.sh: Set executable bit.
34668         Reported by Eric Blake.
34669
34670         correct typo in test-pread.sh
34671         * tests/test-pread.sh: Add #! line.
34672
34673         test pread
34674         * tests/test-pread.c: New file.
34675         * tests/test-pread.sh: Likewise.
34676         * modules/pread-tests: Likewise.
34677
34678         pread: new module
34679         * modules/pread: New file.
34680         * lib/unistd.in.h (pread): Define/declare.
34681         * lib/pread.c (pread): New file.
34682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34683         * modules/unistd (Makefile.am): Substitute witnesses.
34684         * doc/posix-functions/pread.texi (pread): Update.
34685         * MODULES.html.sh: Add pread.
34686
34687 2009-11-25  Jim Meyering  <meyering@redhat.com>
34688
34689         tests/init.sh: new file to be used via most *.sh tests
34690         * tests/init.sh: New file.
34691
34692 2009-11-25  Eric Blake  <ebb9@byu.net>
34693
34694         utimens: work around older Linux failure with symlinks
34695         * lib/utimens.c (lutimensat_works_really): New variable.
34696         (fdutimens, lutimens): Use it to manage kernels that support
34697         nanosecond times on files, but not on symlinks.
34698         Reported by OndÅ™ej Vašík.
34699
34700         utimes: fix configure grammar
34701         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34702
34703 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34704
34705         regex: Fix fastmap for multibyte character ranges.
34706         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34707         characters when a multibyte character range is included.
34708
34709 2009-11-22  Andy Wingo  <wingo@pobox.com>
34710
34711         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34712         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34713
34714 2009-11-24  Bruno Haible  <bruno@clisp.org>
34715
34716         doc: Most *_l functions exist in MacOS X 10.5.
34717         * doc/posix-functions/duplocale.texi: Update platforms list.
34718         * doc/posix-functions/freelocale.texi: Likewise.
34719         * doc/posix-functions/newlocale.texi: Likewise.
34720         * doc/posix-functions/uselocale.texi: Likewise.
34721         * doc/posix-functions/isalnum_l.texi: Likewise.
34722         * doc/posix-functions/isalpha_l.texi: Likewise.
34723         * doc/posix-functions/isblank_l.texi: Likewise.
34724         * doc/posix-functions/iscntrl_l.texi: Likewise.
34725         * doc/posix-functions/isdigit_l.texi: Likewise.
34726         * doc/posix-functions/isgraph_l.texi: Likewise.
34727         * doc/posix-functions/islower_l.texi: Likewise.
34728         * doc/posix-functions/isprint_l.texi: Likewise.
34729         * doc/posix-functions/ispunct_l.texi: Likewise.
34730         * doc/posix-functions/isspace_l.texi: Likewise.
34731         * doc/posix-functions/isupper_l.texi: Likewise.
34732         * doc/posix-functions/iswalnum_l.texi: Likewise.
34733         * doc/posix-functions/iswalpha_l.texi: Likewise.
34734         * doc/posix-functions/iswblank_l.texi: Likewise.
34735         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34736         * doc/posix-functions/iswctype_l.texi: Likewise.
34737         * doc/posix-functions/iswdigit_l.texi: Likewise.
34738         * doc/posix-functions/iswgraph_l.texi: Likewise.
34739         * doc/posix-functions/iswlower_l.texi: Likewise.
34740         * doc/posix-functions/iswprint_l.texi: Likewise.
34741         * doc/posix-functions/iswpunct_l.texi: Likewise.
34742         * doc/posix-functions/iswspace_l.texi: Likewise.
34743         * doc/posix-functions/iswupper_l.texi: Likewise.
34744         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34745         * doc/posix-functions/isxdigit_l.texi: Likewise.
34746         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34747         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34748         * doc/posix-functions/strcoll_l.texi: Likewise.
34749         * doc/posix-functions/strfmon_l.texi: Likewise.
34750         * doc/posix-functions/strftime_l.texi: Likewise.
34751         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34752         * doc/posix-functions/strxfrm_l.texi: Likewise.
34753         * doc/posix-functions/tolower_l.texi: Likewise.
34754         * doc/posix-functions/toupper_l.texi: Likewise.
34755         * doc/posix-functions/towctrans_l.texi: Likewise.
34756         * doc/posix-functions/towlower_l.texi: Likewise.
34757         * doc/posix-functions/towupper_l.texi: Likewise.
34758         * doc/posix-functions/wcscoll_l.texi: Likewise.
34759         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34760         * doc/posix-functions/wctrans_l.texi: Likewise.
34761         * doc/posix-functions/wctype_l.texi: Likewise.
34762         * doc/glibc-functions/strptime_l.texi: Likewise.
34763         * doc/glibc-functions/strtod_l.texi: Likewise.
34764         * doc/glibc-functions/strtof_l.texi: Likewise.
34765         * doc/glibc-functions/strtol_l.texi: Likewise.
34766         * doc/glibc-functions/strtold_l.texi: Likewise.
34767         * doc/glibc-functions/strtoll_l.texi: Likewise.
34768         * doc/glibc-functions/strtoul_l.texi: Likewise.
34769         * doc/glibc-functions/strtoull_l.texi: Likewise.
34770         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34771         * doc/glibc-functions/wcstod_l.texi: Likewise.
34772         * doc/glibc-functions/wcstof_l.texi: Likewise.
34773         * doc/glibc-functions/wcstol_l.texi: Likewise.
34774         * doc/glibc-functions/wcstold_l.texi: Likewise.
34775         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34776         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34777         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34778
34779 2009-11-24  Bruno Haible  <bruno@clisp.org>
34780
34781         duplocale: Fix logic bug.
34782         * lib/duplocale.c: Don't include <langinfo.h>.
34783         (_NL_LOCALE_NAME): Remove macro.
34784         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34785         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34786
34787 2009-11-23  Jim Meyering  <meyering@redhat.com>
34788
34789         test-update-copyright: don't hard-code /usr/bin/perl
34790         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34791         perl to print the current year.  Gilles Espinasse reported that
34792         the replaced use of perl was hard-coded as /usr/bin/perl.
34793
34794 2009-11-23  Bruno Haible  <bruno@clisp.org>
34795
34796         duplocale: Add support for glibc 2.3.x.
34797         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34798
34799 2009-11-22  Bruno Haible  <bruno@clisp.org>
34800
34801         vasnprintf: Tiny optimization.
34802         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34803         MacOS X.
34804
34805 2009-11-22  Bruno Haible  <bruno@clisp.org>
34806
34807         Tests for module 'duplocale'.
34808         * modules/duplocale-tests: New file.
34809         * tests/test-duplocale.c: New file.
34810
34811         New module 'duplocale'.
34812         * m4/duplocale.m4: New file.
34813         * lib/locale.in.h (duplocale): New declaration.
34814         * lib/duplocale.c: New file.
34815         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34816         gl_LOCALE_H_DEFAULTS): New macros.
34817         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34818         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34819         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34820         REPLACE_DUPLOCALE.
34821         * modules/duplocale: New file.
34822         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34823
34824 2009-11-22  Bruno Haible  <bruno@clisp.org>
34825
34826         * modules/locale-tests (configure.ac): Test for newlocale function.
34827         * tests/test-locale.c: When the system has extended locale functions,
34828         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34829
34830         locale: Make locale_t available when possible.
34831         * lib/locale.in.h: Include <xlocale.h> when it exists.
34832         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34833         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34834         * modules/locale (Depends-on): Add extensions.
34835         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34836         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34837
34838 2009-11-22  Bruno Haible  <bruno@clisp.org>
34839
34840         Add comments.
34841         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34842         invocation.
34843         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34844         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34845         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34846
34847 2009-11-22  Bruno Haible  <bruno@clisp.org>
34848
34849         error: account for the possibility of freopen (stdout).
34850         * lib/error.c: Include <unistd.h>.
34851         (flush_stdout): New function, extracted from error and error_at_line.
34852         Determine stdout's fd dynamically.
34853         (error, error_at_line): Invoke flush_stdout.
34854         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34855         * modules/error (Depends-on): Add unistd.
34856
34857 2009-11-22  Bruno Haible  <bruno@clisp.org>
34858
34859         diffseq: Add comment.
34860         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34861
34862 2009-11-22  Jim Meyering  <meyering@redhat.com>
34863
34864         c-stack: avoid defining an unused static function
34865         * lib/c-stack.c (find_stack_direction): Do not define this function
34866         when it will not be used.
34867
34868         diffseq: avoid spurious gcc warnings
34869         * lib/diffseq.h (IF_LINT2): Define.
34870         (compareseq): Use it to initialize two members of "part".
34871         This avoids two used-uninitialized warnings.
34872
34873 2009-11-21  Jim Meyering  <meyering@redhat.com>
34874
34875         c-stack: avoid "ignoring return value of `write'" warning
34876         * lib/c-stack.c: Include "ignore-value.h".
34877         (die): Explicitly ignore each write return value.
34878         * modules/c-stack (Depends-on): Add ignore-value.
34879
34880 2009-11-21  Bruno Haible  <bruno@clisp.org>
34881
34882         diffseq: reduce scope of variable 'best'.
34883         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34884         variable, earlier used for two different purposes.
34885
34886 2009-11-21  Jim Meyering  <meyering@redhat.com>
34887
34888         diffseq: remove useless assignment to "best"
34889         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34890         assignment.  At that point "best" is already guaranteed to be zero.
34891
34892 2009-11-20  Eric Blake  <ebb9@byu.net>
34893
34894         build: mention ftp redirector in release announcements
34895         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34896         values that used to come from cfg.mk; mention FTP redirect URL.
34897         * build-aux/announce-gen: Mention the mirror list.
34898         Suggested by Karl Berry.
34899
34900         nanosleep: improve port to mingw
34901         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34903         LIB_NANOSLEEP, but only when needed.
34904         * modules/select (Link): Document LIBSOCKET.
34905         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34906         enough.
34907
34908         nanosleep: work around cygwin bug
34909         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34910         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34911         bug.
34912         (getnow): Delete, not needed.
34913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34914         LIB_CLOCK_GETTIME.
34915         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34916         clock-time, gettime.
34917         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34918         bug.
34919         * modules/nanosleep-tests: New test.
34920         * tests/test-nanosleep.c: New file.
34921
34922         sleep: work around cygwin bug
34923         * lib/sleep.c (rpl_sleep): Work around the bug.
34924         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34925         (gl_PREREQ_SLEEP): Delete unused macro.
34926         * modules/sleep (Depends-on): Add verify.
34927         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34928         * modules/unistd (Makefile.am): Substitute witness.
34929         * lib/unistd.in.h (sleep): Update prototype.
34930         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34931         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34932         * modules/sleep-tests (Depends-on): Check for alarm.
34933
34934 2009-11-20  Jim Meyering  <meyering@redhat.com>
34935
34936         maint.mk: improve sc_prohibit_magic_number_exit
34937         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34938         so it does not match uses like System.exit(1).
34939         Add comments showing how to correct all offenders.
34940
34941 2009-11-19  Eric Blake  <ebb9@byu.net>
34942
34943         xalloc-die-tests: add missing library
34944         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34945
34946         test-xvasprintf: silence compiler warnings
34947         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34948         empty string from gcc.
34949
34950 2009-11-19  Jim Meyering  <meyering@redhat.com>
34951
34952         xfreopen: new module, from coreutils
34953         * modules/xfreopen: New module.
34954         * lib/xfreopen.c: New file.
34955         * lib/xfreopen.h: New file.
34956         * MODULES.html.sh (File stream based Input/Output"): Add it.
34957
34958 2009-11-19  Eric Blake  <ebb9@byu.net>
34959
34960         manywarnings: depend on warnings
34961         * modules/manywarnings (Depends-on): Add warnings.
34962
34963         build: avoid compiler warnings
34964         * lib/select.c (rpl_select): Delete unused variable.
34965         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34966
34967 2009-11-18  Eric Blake  <ebb9@byu.net>
34968
34969         tests: avoid false negative with --with-packager
34970         * tests/test-version-etc.sh: Discard packager information.
34971         * tests/test-argp-version-etc-1.sh: Likewise.
34972         Reported by Mike Frysinger.
34973
34974         utimens: fix regression on Solaris
34975         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34976         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34977         can only change fd timestamps via futimesat.  Instead, use an
34978         additional witness macro to avoid BSD bug.
34979         Reported by Jim Meyering.
34980
34981 2009-11-17  Eric Blake  <ebb9@byu.net>
34982
34983         usleep: use it to simplify tests
34984         * modules/stat-time-tests (Depends-on): Add usleep.
34985         (configure.ac): Drop usleep check.
34986         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34987         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34988         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34989         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34990         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34991         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34992         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34993         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34994         Likewise.
34995         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34996         * tests/test-lchown.h (nap): Likewise.
34997         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34998         * tests/test-stat-time.c (nap): Likewise.
34999         * tests/test-utimens-common.h (nap): Update comments.
35000
35001         usleep: new module
35002         * modules/usleep: New file.
35003         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35004         * lib/usleep.c (usleep): Likewise.
35005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35006         * modules/unistd (Makefile.am): Substitute witnesses.
35007         * lib/unistd.in.h (usleep): Add declaration.
35008         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35009         * MODULES.html.sh (Date and time): Likewise.
35010         * modules/usleep-tests (Depends-on): New test.
35011         * tests/test-usleep.c: New file.
35012
35013         chown: work around OpenBSD bug
35014         * lib/chown.c (rpl_chown): Work around the bug.
35015         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35016         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35017         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35018         * modules/chown (Depends-on): Add stdbool.
35019         * modules/lchown (Depends-on): Likewise.
35020         * doc/posix-functions/chown.texi (chown): Document the bug.
35021         * doc/posix-functions/lchown.texi (lchown): Likewise.
35022         * tests/test-lchown.h (test_chown): Relax test.
35023
35024         mkstemp: avoid conflict with C++ keyword template
35025         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35026         * lib/mkostemp.c (mkostemp): Likewise.
35027         * lib/mkostemps.c (mkostemps): Likewise.
35028         * lib/mkstemp.c (mkstemp): Likewise.
35029         * lib/mkstemps.c (mkstemps): Likewise.
35030
35031         xalloc-die-tests: optimize
35032         * tests/test-xalloc-die.sh: Reduce number of processes.
35033
35034 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35035
35036         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35037         patch from ludo@gnu.org (Ludovic Courtès).
35038
35039 2009-11-17  Jim Meyering  <meyering@redhat.com>
35040
35041         version-etc: use proper license string
35042         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35043         * modules/version-etc-fsf: Likewise.
35044
35045 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35046
35047         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35048         printed to stdout.  Deal with EOL differences.
35049
35050 2009-11-17  Eric Blake  <ebb9@byu.net>
35051
35052         unsetenv: work around Solaris bug
35053         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35054         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35055         Reported by Jim Meyering.
35056
35057         vasnprintf: avoid compiler warnings
35058         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35059         variables.
35060         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35061
35062 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35063
35064         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35065         settings since xalloc-die is no longer the self test,
35066         xalloc-die.sh is.
35067
35068 2009-11-17  Jim Meyering  <meyering@redhat.com>
35069
35070         test-xalloc-die.sh: make the code agree with the commit log
35071         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35072         at the end, just in case you happen to have a test-xalloc-die
35073         program in some other PATH directory.
35074
35075         test-xalloc-die.sh: fix a portability bug
35076         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35077         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35078         Otherwise, argv[0] (as often seen in diagnostics) would be too
35079         system-dependent, sometimes with, and sometimes without the leading "./".
35080
35081         version-etc-fsf: relax license to LGPLv3+
35082         * modules/version-etc-fsf (License): Relax license.
35083
35084 2009-11-16  Eric Blake  <ebb9@byu.net>
35085
35086         xalloc-die-tests: avoid printing null pointer
35087         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35088         shell script.
35089         * tests/test-xalloc-die.c (program_name): Declare.
35090         * tests/test-xalloc-die.sh (tmpfiles): New file.
35091
35092         setenv, unsetenv: work around various bugs
35093         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35094         (setenv) [HAVE_SETENV]: Work around bugs.
35095         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35096         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35097         for bugs.
35098         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35099         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35100         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35101         * modules/stdlib (Makefile.am): Update substitutions.
35102         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35103         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35104         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35105         * modules/setenv-tests: New test.
35106         * modules/unsetenv-tests: Likewise.
35107         * tests/test-setenv.c: New file.
35108         * tests/test-unsetenv.c: Likewise.
35109
35110 2009-11-16  Jim Meyering  <meyering@redhat.com>
35111
35112         version-etc: relax license to LGPLv3+
35113         * modules/version-etc (License): Relax license.
35114
35115         better AC_REQUIRE expanded-before-required-warning avoidance
35116         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35117         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35118         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35119         which is no longer needed.
35120
35121 2009-11-16  Eric Blake  <ebb9@byu.net>
35122
35123         test-freading: clean up temporary file
35124         * tests/test-freading.c (main): Remove file on success, and use
35125         ASSERT more liberally.
35126         Reported by Jim Meyering.
35127
35128 2009-11-16  Jim Meyering  <meyering@redhat.com>
35129
35130         avoid new AC_REQUIRE expanded-before-required warnings
35131         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35132         merely using it.
35133         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35134         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35135
35136 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35137
35138         * tests/test-xalloc-die.c: New file.
35139         * modules/xalloc-die-tests: New file.
35140         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35141         XFAIL_TESTS so it can be appended by modules.
35142
35143 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35144
35145         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35146         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35147
35148 2009-11-14  Eric Blake  <ebb9@byu.net>
35149
35150         fnmatch: avoid compiler warning
35151         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35152         to silence compiler warning about mismatch signedness in ?:.
35153         Reported by Robert Millan.
35154
35155         intprops: add double-inclusion guard
35156         * lib/intprops.h: Allow idempotent includes.
35157         Suggested by Bruce Korb.
35158
35159         openat: detect Solaris fchownat bug
35160         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35161         penalizing glibc chownat when only lchownat is broken.
35162         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35163         trailing slash bugs.
35164         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35165         * modules/openat-tests (Files): Include more files.
35166         (Depends-on): Add mgetgroups, sleep, stat-time.
35167         (configure.ac): Add additional checks.
35168         (Makefile.am): Build new test.
35169         * tests/test-fchownat.c: New file.
35170
35171         lchown: detect Solaris and FreeBSD bug
35172         * lib/lchown.c (rpl_lchown): Work around bug.
35173         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35175         * modules/unistd (Makefile.am): Populate it.
35176         * lib/unistd.in.h (lchown): Update declaration.
35177         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35178         * modules/lchown-tests: New file.
35179         * tests/test-lchown.h (test_lchown): Likewise.
35180         * tests/test-lchown.c (main): Likewise.
35181
35182         chown: detect Solaris and FreeBSD bug
35183         * lib/chown.c (rpl_chown): Work around bug.
35184         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35185         (gl_PREREQ_CHOWN): Delete.
35186         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35187         * modules/unistd (Makefile.am): Populate it.
35188         * lib/unistd.in.h (chown): Update declaration.
35189         * lib/lchown.c (chown): Update client.
35190         * modules/lchown (Depends-on): Add lstat.
35191         * doc/posix-functions/chown.texi (chown): Document the bug.
35192         * doc/posix-functions/getgroups.texi (getgroups): Document
35193         getgroups pitfall.
35194         * modules/chown-tests: New file.
35195         * tests/test-chown.h (test_chown): Likewise.
35196         * tests/test-chown.c (main): Likewise.
35197
35198 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35199
35200         gnulib-tool: correctly detect absence of m4 directories
35201         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35202
35203 2009-11-14  Jim Meyering  <meyering@redhat.com>
35204
35205         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35206         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35207
35208 2009-11-14  John W. Eaton  <jwe@gnu.org>
35209
35210         strftime.h: wrap funtion declaration in extern "C" block
35211         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35212
35213 2009-11-13  Eric Blake  <ebb9@byu.net>
35214
35215         getgroups: avoid compiler warning
35216         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35217
35218         getgroups: work around FreeBSD bug
35219         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35220         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35221         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35222         * tests/test-getgroups.c (main): Fix buffer overrun.
35223
35224         getgroups: avoid compilation failure
35225         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35226         * modules/getgroups (Depends-on): Add stdint.
35227
35228 2009-11-13  Jim Meyering  <meyering@redhat.com>
35229
35230         test-getgroups: avoid compilation failure
35231         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35232
35233 2009-11-13  Eric Blake  <ebb9@byu.net>
35234
35235         mgetgroups: new module, taken from coreutils
35236         * modules/mgetgroups: New file.
35237         * lib/mgetgroups.h: Likewise.
35238         * lib/mgetgroups.c (mgetgroups): Likewise.
35239         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35240         * MODULES.html.sh (Users and groups): Mention it.
35241
35242         getgroups: don't expose GETGROUPS_T to user
35243         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35244         an element at a time if GETGROUPS_T is wrong size.
35245         * lib/getugroups.h (getugroups): Change signature.
35246         * lib/unistd.in.h (getgroups): Likewise.
35247         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35248         signature needs fixing.
35249         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35250         AC_TYPE_GETGROUPS.
35251         * modules/group-member (Depends-on): Add getgroups.
35252         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35253         (group_member): Rely on getgroups replacement.
35254         * lib/getugroups.c (getugroups): Use gid_t.
35255         * tests/test-getgroups.c (main): Likewise.
35256         * NEWS: Mention the signature change.
35257         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35258         problem with signature.
35259         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35260         GETGROUPS_T is still useful for setgroups.
35261
35262         getgroups, getugroups: provide stubs for mingw
35263         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35264         * lib/getugroups.c (getugroups): Likewise.
35265         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35266         function.  Modernize replacement scheme.
35267         (gl_PREREQ_GETGROUPS): Delete.
35268         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35269         * modules/getgroups (configure.ac): Declare witness.
35270         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35271         * modules/unistd (Depends-on): Substitute witness.
35272         * lib/unistd.in.h (getgroups): Declare replacement.
35273
35274         getgroups: avoid calling exit
35275         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35276         drop xalloc.
35277         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35278         dependencies.
35279         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35280         exiting, in the rare case of malloc failure.
35281
35282         getgroups: fix logic error
35283         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35284         has more than 20 groups.
35285         * modules/getgroups-tests: New test.
35286         * tests/test-getgroups.c: New file.
35287
35288 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35289
35290         * tests/test-base64.c: Improve.
35291
35292 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35293
35294         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35295         Blake <ebb9@byu.net>.
35296
35297 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35298
35299         * tests/test-xvasprintf.c: Add %s%s related checks.
35300
35301 2009-11-12  Eric Blake  <ebb9@byu.net>
35302
35303         version-etc: match standards.texi style
35304         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35305         and use <> only for URLs.
35306
35307 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35308
35309         fts: do not fail on a submount during traversal
35310         * lib/fts.c (fts_build): Read the stat info again after opening
35311         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35312         Original report at http://bugzilla.redhat.com/501848.
35313
35314 2009-11-12  Jim Meyering  <meyering@redhat.com>
35315
35316         bootstrap: sync from coreutils
35317         * build-aux/bootstrap (bootstrap_epilogue): New function.
35318         Use git_modules_config in one more place.  This make bootstrap's
35319         --gnulib-srcdir option more useful for testing.
35320
35321         bootstrap: generalize autoheader check
35322         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35323         AC_CONFIG_HEADERS.
35324
35325 2009-11-11  Eric Blake  <ebb9@byu.net>
35326
35327         mkfifoat: use new modules for Solaris and BSD bugs
35328         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35329         * lib/mkfifoat.c (mknodat): Split...
35330         * lib/mknodat.c (mknodat): ...into new file.
35331         * modules/mkfifoat (Files): Ship new file.
35332         (Depends-on): Add mkfifo, mknod.
35333         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35334         (Depends-on): Add symlink.
35335         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35336         redundant with test_mkfifo.h.
35337         (do_mkfifoat, do_mknodat): New helpers.
35338
35339         mknod: new module
35340         * modules/mknod: New file.
35341         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35342         * lib/mknod.c (mknod): Likewise.
35343         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35344         defaults.
35345         * modules/sys_stat (Makefile.am): Substitute them.
35346         * lib/sys_stat.in.h (mknod): Declare replacement.
35347         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35348         Document it.
35349         * doc/posix-functions/mknod.texi (mknod): Likewise.
35350         * modules/mknod-tests: New test.
35351         * tests/test-mknod.c: Likewise.
35352
35353         mkfifo: new module
35354         * modules/mkfifo: New file.
35355         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35356         * lib/mkfifo.c (mkfifo): Likewise.
35357         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35358         defaults.
35359         * modules/sys_stat (Makefile.am): Substitute them.
35360         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35361         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35362         Document it.
35363         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35364         * modules/mkfifo-tests: New test.
35365         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35366         from test-mkfifoat.c.
35367         * tests/test-mkfifo.c: New file.
35368
35369         readlink: detect FreeBSD bug
35370         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35371         slash on symlink.
35372         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35373         * tests/test-readlink.h (test_readlink): Enhance test.
35374
35375         symlink: detect FreeBSD bug
35376         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35377         slash on symlink.
35378         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35379         * tests/test-symlink.h (test_symlink): Enhance test.
35380
35381 2009-11-10  Eric Blake  <ebb9@byu.net>
35382
35383         link: detect FreeBSD bug
35384         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35385         symlink.
35386         * doc/posix-functions/link.texi (link): Document the bug.
35387         * tests/test-link.h (test_link): Enhance test.
35388         * tests/test-linkat.c (main): Update caller.
35389
35390         unlink, remove: detect FreeBSD bug
35391         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35392         slash on symlink.
35393         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35394         * doc/posix-functions/remove.texi (remove): Likewise.
35395         * tests/test-unlink.h (test_unlink): Enhance test.
35396         * tests/test-remove.c (main): Likewise.
35397
35398 2009-11-09  Eric Blake  <ebb9@byu.net>
35399
35400         rename: detect FreeBSD bug
35401         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35402         slash on symlink.
35403         * modules/renameat-tests (Depends-on): Add filenamecat.
35404         * tests/test-rename.h (test_rename): Allow one more errno.
35405         * tests/test-renameat.c (main): Likewise.
35406         * doc/posix-functions/rename.texi (rename): Document the bug.
35407
35408         open: detect FreeBSD bug
35409         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35410         symlink.
35411         * doc/posix-functions/open.texi (open): Document the bug.
35412         * doc/posix-functions/utimes.texi (utimes): Likewise.
35413         * tests/test-open.h (test_open): Add parameters, and test symlink
35414         handling.
35415         * tests/test-open.c (main): Adjust caller.
35416         * tests/test-fcntl-safer.c (main): Likewise.
35417         * modules/open-tests (Depends-on): Add stdbool, symlink.
35418         * modules/fcntl-safer-tests (Depends-on): Likewise.
35419         * tests/test-openat.c (main): Add test-open tests.
35420
35421         stat: detect FreeBSD bug
35422         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35423         symlink.
35424         * doc/posix-functions/stat.texi (stat): Document the bug.
35425         * tests/test-stat.h (test_stat_func): Add argument.
35426         * tests/test-stat.c (main): Adjust caller.
35427         * tests/test-fstatat.c (main): Likewise.
35428         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35429         Reported by Jim Meyering.
35430
35431 2009-11-09  James Youngman  <jay@gnu.org>
35432
35433         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35434         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35435
35436 2009-11-08  Jim Meyering  <meyering@redhat.com>
35437
35438         utimens: remove invalid futimesat call
35439         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35440         It used the file descriptor of the target file as the DIR_FD
35441         parameter and NULL as the file name.  That caused failure with
35442         errno == EFAULT on FreeBSD-8.0-rc2
35443
35444 2009-11-07  Eric Blake  <ebb9@byu.net>
35445
35446         fflush, freadseek: use fseeko, not fseek
35447         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35448         (clear_ungetc_buffer): Avoid potential problems on large files.
35449         * lib/freadseek.c (freadseek): Likewise.
35450         * modules/freadseek (Depends-on): Add fseeko.
35451         * modules/fseek (configure.ac): Set a witness.
35452         * tests/test-fflush.c (main): Use fseeko.
35453         * tests/test-fpurge.c (fseek): Disable link warning.
35454         * tests/test-freadable.c (fseek): Likewise.
35455         * tests/test-freading.c (fseek): Likewise.
35456         * tests/test-fseeko.c (fseek): Likewise.
35457         * tests/test-ftell.c (fseek): Likewise.
35458         * tests/test-ftello.c (fseek): Likewise.
35459         * tests/test-fwritable.c (fseek): Likewise.
35460         * tests/test-fwriting.c (fseek): Likewise.
35461
35462 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35463
35464         * modules/memchr (Depends-on): Drop getpagesize dependency.
35465
35466 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35467
35468         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35469         Reported by Ludovic Courtès.
35470         * build-aux/pmccabe2html: Improve example usage.
35471         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35472
35473 2009-11-06  Jim Meyering  <meyering@redhat.com>
35474
35475         do-release-commit-and-tag: New module.
35476         Automate the release-commit and tag process.
35477         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35478         * modules/do-release-commit-and-tag: New file.
35479         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35480
35481 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35482
35483         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35484         because test-select.c uses inet_pton.
35485
35486 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35487
35488         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35489         GETADDRINFO_LIB.  Bump serial number.
35490         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35491         Suggested by Eric Blake <ebb9@byu.net>.
35492
35493 2009-11-05  Eric Blake  <ebb9@byu.net>
35494
35495         strtod: detect darwin bug
35496         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35497         Reported by Leo Davis.
35498
35499         freopen-safer: new module
35500         * modules/freopen-safer: New module.
35501         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35502         * lib/freopen-safer.c (freopen_safer): New file.
35503         * lib/stdio-safer.h (freopen_safer): New declaration.
35504         * lib/stdio--.h (freopen): New override.
35505         * MODULES.html.sh (File stream based Input/Output): Mention it.
35506         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35507         freopen-safer module.
35508         * doc/posix-functions/stderr.texi (stderr): Likewise.
35509         * doc/posix-functions/stdin.texi (stdin): Likewise.
35510         * doc/posix-functions/stdout.texi (stdout): Likewise.
35511         * modules/freopen-safer-tests: New test.
35512         * tests/test-reopen-safer.c: New file.
35513
35514 2009-11-05  Jim Meyering  <meyering@redhat.com>
35515
35516         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35517         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35518
35519 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35520
35521         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35522
35523 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35524
35525         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35526
35527 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35528
35529         Fix link error.
35530         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35531         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35532
35533 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35534
35535         * tests/test-func.c: Also test value of __func__.
35536
35537 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35538
35539         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35540         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35541
35542 2009-11-05  Bruno Haible  <bruno@clisp.org>
35543
35544         Fix link error.
35545         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35546         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35547         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35548
35549 2009-11-05  Bruno Haible  <bruno@clisp.org>
35550
35551         Tests for module 'inet_pton'.
35552         * modules/inet_pton-tests: New file.
35553         * tests/test-inet_pton.c: New file.
35554
35555 2009-11-05  Bruno Haible  <bruno@clisp.org>
35556
35557         Tests for module 'inet_ntop'.
35558         * modules/inet_ntop-tests: New file.
35559         * tests/test-inet_ntop.c: New file.
35560
35561 2009-11-04  Eric Blake  <ebb9@byu.net>
35562
35563         stdlib-safer: wrap all mkstemp variants
35564         * modules/mkostemp (configure.ac): Set witness.
35565         * modules/mkostemps (configure.ac): Likewise.
35566         * modules/mkstemps (configure.ac): Likewise.
35567         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35568         (mkstemps_safer): Wrap more functions.
35569         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35570         wrapping.
35571         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35572         (mkstemps_safer): Implement the wrappers.
35573
35574         mkstemps, mkostemps: new modules
35575         * modules/mkostemps: New module.
35576         * modules/mkstemps: Likewise.
35577         * lib/mkostemps.c (mkostemps): New file.
35578         * lib/mkstemps.c (mkstemps): Likewise.
35579         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35580         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35581         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35582         * modules/stdlib (Makefile.am): Substitute them.
35583         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35584         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35585         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35586         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35587         * MODULES.html.sh (File system functions): Mention them.
35588
35589         tempname: resync from glibc
35590         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35591         same values for __GT_FILE as glibc.  Abort even when assertions
35592         are disabled.
35593         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35594         match its value otherwise.  Allow idempotent inclusion.
35595         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35596         * lib/mkostemp.c (mkostemp): Likewise.
35597         * lib/mkstemp.c (mkstemp): Likewise.
35598         * lib/tmpfile.c (tmpfile): Likewise.
35599         * NEWS: Document this.
35600
35601         utimens: fix use of futimens on older Linux
35602         * lib/utimens.c (fdutimens): Use updated, rather than original,
35603         timespec to avoid bug in older Linux kernel.
35604         Reported by Simon Josefsson.
35605
35606 2009-11-04  Bruno Haible  <bruno@clisp.org>
35607
35608         Make num_processors more flexible and consistent.
35609         * lib/nproc.h (enum nproc_query): New type.
35610         (num_processors): Add a 'query' argument.
35611         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35612         (num_processors): Add a 'query' argument. Test the value of the
35613         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35614         mingw, count the number of CPUs available for the current process.
35615         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35616         Check for sched_getaffinity and sched_getaffinity_np.
35617         * modules/nproc (Depends-on): Add c-ctype, extensions.
35618         * NEWS: Mention the change.
35619
35620 2009-11-03  Bruno Haible  <bruno@clisp.org>
35621
35622         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35623
35624 2009-11-03  Jim Meyering  <meyering@redhat.com>
35625
35626         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35627         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35628         if it is defined.
35629
35630 2009-11-02  Eric Blake  <ebb9@byu.net>
35631
35632         mktime, timegm: share common declaration
35633         * lib/mktime-internal.h: New file.
35634         * lib/mktime.c: Use it rather than open-coding a declaration.
35635         * lib/timegm.c: Likewise.
35636         * modules/mktime (Files): Ship it.
35637         * modules/timegm (Files): Likewise.
35638         Suggested by Bruno Haible.
35639
35640         test-update-copyright: update test to match script changes
35641         * tests/test-update-copyright.sh: Avoid hard-coding perl
35642         location.  Don't update *.bak created by earlier runs.
35643
35644 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35645             Simon Josefsson  <simon@josefsson.org>
35646             Bruno Haible  <bruno@clisp.org>
35647
35648         Fix link error on Solaris 8.
35649         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35650         also in libnsl. Define also INET_PTON_LIB.
35651         * modules/inet_pton (Link): New section.
35652
35653 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35654             Bruno Haible  <bruno@clisp.org>
35655
35656         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35657         * modules/inet_ntop (Link): New section.
35658         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35659
35660 2009-11-02  Eric Blake  <ebb9@byu.net>
35661
35662         maint: avoid compiler warnings in m4 macros
35663         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35664         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35665
35666 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35667
35668         * m4/pmccabe2html.m4: Remove file.
35669         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35670         function.  Change maintainer.
35671         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35672         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35673         Courtès).
35674
35675 2009-10-31  Eric Blake  <ebb9@byu.net>
35676
35677         fseeko: fix m4 regression
35678         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35679         regression from 2009-10-27.
35680         Reported by Ralf Wildenhues.
35681
35682 2009-10-31  Jim Meyering  <meyering@redhat.com>
35683
35684         inttostr: aesthetics and improved (compile-time) safety
35685         Define inttype_is_signed rather than inttype_is_unsigned,
35686         since the sole use is via "#if inttype_is_signed".
35687         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35688         inttype_is_unsigned.
35689         * lib/offtostr.c (inttype_is_signed): Likewise.
35690         * lib/uinttostr.c (inttype_is_signed): Likewise.
35691         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35692         * lib/inttostr.c (inttostr): Use verify to cross-check the
35693         inttype_is_signed value and the signedness of the actual type.
35694         * modules/inttostr (Depends-on): Add verify.
35695
35696 2009-10-30  Eric Blake  <ebb9@byu.net>
35697
35698         build: avoid compiler warnings
35699         * lib/fchmodat.c (lchmod): Mark unused variables.
35700         * lib/getopt.c (_getopt_initialize): Likewise.
35701         * lib/mktime.c (__mktime_internal): Provide prototype.
35702         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35703         older gcc that do not understand #pragma GCC diagnostic.
35704         * lib/uinttostr.c (inttype_is_unsigned): Define.
35705         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35706
35707 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35708
35709         stat: fix compilation on AIX
35710         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35711         only see struct stat64.
35712
35713 2009-10-30  Eric Blake  <ebb9@byu.net>
35714
35715         exclude: make more robust
35716         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35717         rather than masking a coding bug.
35718         Suggested by Bruno Haible.
35719
35720 2009-10-30  Jim Meyering  <meyering@redhat.com>
35721
35722         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35723         Rather than putting #!/usr/bin/perl on the first line,
35724         start with a variant of what's recommended by "man perlrun" that
35725         invokes the first "perl" program from your shell's search path.
35726         * build-aux/gitlog-to-changelog: Replace #!... as above.
35727         Add a "Local Variables" perl mode setting.
35728         Prompted by a patch from Ludovic Courtès.
35729         Improved by Eric Blake.
35730         * build-aux/useless-if-before-free: Likewise.
35731         * build-aux/announce-gen: Likewise.
35732         * build-aux/update-copyright: Likewise.
35733
35734 2009-10-29  Eric Blake  <ebb9@byu.net>
35735
35736         filenamecat-lgpl: adjust clients
35737         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35738         filenamecat.
35739         * modules/renameat (Depends-on): Likewise.
35740
35741         filenamecat: split into filenamecat-lgpl
35742         * modules/filenamecat-lgpl: New module.
35743         * modules/filenamecat (Files): Move library-safe files into
35744         filenamecat-lgpl.
35745         (Depends-on): Add filenamecat-lgpl.
35746         (configure.ac): Declare witness.
35747         * lib/filenamecat.h (file_name_concat): Only declare when using
35748         GPL module.
35749         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35750         Move...
35751         * lib/filenamecat-lgpl.c: ...into new file.
35752         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35753         (gl_FILE_NAME_CONCAT): Use it.
35754         * MODULES.html.sh (File system functions): Mention new module.
35755
35756         argp: avoid memory leak
35757         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35758         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35759         base_name, since the latter malloc()s and can call exit().
35760         Leak introduced 2006-07-03.
35761
35762         dirname-lgpl: adjust clients that don't need full dirname
35763         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35764         * modules/filenamecat (Depends-on): Likewise.
35765         * modules/linkat (Depends-on): Likewise.
35766         * modules/mkancesdirs (Depends-on): Likewise.
35767         * modules/mkdir (Depends-on): Likewise.
35768         * modules/openat (Depends-on): Likewise.
35769         * modules/savewd (Depends-on): Likewise.
35770         * modules/rename (Depends-on): Likewise.
35771         (License): Relax license.
35772         * modules/mkdir-tests (Depends-on): Drop progname.
35773         (Makefile.am): Delete unneeded LDADD.
35774         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35775
35776         dirname: split into dirname-lgpl
35777         * modules/dirname-lgpl: New module.
35778         * modules/dirname (Files): Move library-safe files into
35779         dirname-lgpl.
35780         (Depends-on): Add dirname-lgpl.
35781         (configure.ac): Declare witness.
35782         * modules/double-slash-root (License): Relax license.
35783         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35784         module.
35785         * lib/dirname.c (dir_len, mdir_name): Move...
35786         * lib/dirname-lgpl.c: ...into new file.
35787         * lib/basename.c (last_component, base_len): Move...
35788         * lib/basename-lgpl.c: ...into new file.
35789         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35790         (gl_DIRNAME): Use it.
35791         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35792         Mention new module.
35793         * modules/dirname-tests (Depends-on): Add progname.
35794         * tests/test-dirname.c (program_name): Delete.
35795
35796         mkdir: make safe for libraries
35797         * modules/mkdir (Depends-on): Drop xalloc.
35798         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35799         exit.
35800
35801         tests: avoid some compiler warnings
35802         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35803         literals.
35804         * tests/test-memchr.c (main): Avoid type mismatch.
35805         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35806         * tests/test-base64.c (main): Likewise.
35807         * tests/test-getdelim.c (main): Likewise.
35808         * tests/test-gethostname.c (main): Likewise.
35809         * tests/test-getline.c (main): Likewise.
35810         * tests/test-netinet_in.c (main): Likewise.
35811         * tests/test-select.c (open_server_socket, main): Likewise.
35812         * tests/test-select-stdin.c (main): Likewise.
35813         * tests/test-sockets.c (main): Likewise.
35814         * tests/test-strsignal.c (main): Likewise.
35815         * tests/test-sys_select.c (main): Likewise.
35816         * tests/test-sys_socket.c (main): Likewise.
35817         * tests/test-u64.c (main): Likewise.
35818         * tests/test-xfprintf-posix.c (main): Likewise.
35819         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35820
35821         sockets: avoid compiler warning
35822         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35823
35824         maint: detect usage(1) and other suspicious exits
35825         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35826
35827 2009-10-29  Jim Meyering  <meyering@redhat.com>
35828
35829         timespec: long-to-int truncation could make timespec_cmp malfunction
35830         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35831         a multiple of 2^32 nanoseconds as no difference.
35832
35833 2009-10-28  Jim Meyering  <meyering@redhat.com>
35834
35835         fprintftime: wrap macro code argument in "do {...} while(0)"
35836         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35837         cpy macro must be a statement that can be followed by a semicolon.
35838         Now that the else clause contains a comment and is hence longer
35839         than one line, I require curly braces.  That in turn requires
35840         that we wrap this code block in the standard do...while(0).
35841
35842         fprintftime: remove stray semicolon from previous change
35843         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35844
35845         fprintftime: avoid a warning about ignored fwrite return value
35846         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35847         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35848         that is unsafe.
35849         * modules/fprintftime (Depends-on): Add ignore-value.
35850
35851         exclude: avoid an unwarranted warning
35852         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35853
35854 2009-10-27  Eric Blake  <ebb9@byu.net>
35855
35856         fseek: avoid compilation failure when fflush is replaced
35857         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35858         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35859         module is in use.
35860         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35861         module is not in use; since REPLACE_FSEEK worked otherwise.
35862         (GNULIB_FTELLO): Likewise for ftell.
35863         Reported by Ian Beckwith and others.
35864
35865 2009-10-27  Bruno Haible  <bruno@clisp.org>
35866
35867         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35868         Reported by Jim Meyering.
35869
35870 2009-10-27  Jim Meyering  <jim@meyering.net>
35871             Bruno Haible  <bruno@clisp.org>
35872
35873         Avoid warning despite dropping the return value of fwrite.
35874         * lib/unicodeio.c: Include ignore-value.h.
35875         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35876         * modules/unicodeio (Depends-on): Add ignore-value.
35877
35878 2009-10-26  Eric Blake  <ebb9@byu.net>
35879
35880         areadlinkat: fix fallback path
35881         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35882         pointer and zero.
35883
35884 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35885
35886         Use a better IO block size for modern systems
35887         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35888         * lib/md2.c: Likewise.
35889         * lib/md4.c: Likewise.
35890         * lib/md5.c: Likewise.
35891         * lib/sha1.c: Likewise.
35892         * lib/sha256.c: Likewise.
35893         * lib/sha512.c: Likewise.
35894
35895 2009-10-22  Eric Blake  <ebb9@byu.net>
35896
35897         tests: avoid several compiler warnings
35898         * tests/test-getcwd.c (main): Avoid buffer underflow.
35899         * tests/test-getdate.c (main): String literals are not safe with
35900         putenv, so use setenv.  Declare unused argument.
35901         * modules/getdate-tests (Depends-on): Add setenv.
35902         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35903         problems with string literals in char *.
35904         * tests/test-hash.c (main): Avoid shadowing declaration.
35905         (insert_new): Treat string literals as char const *.
35906         * tests/test-getopt.h (test_getopt): Likewise.
35907         (getopt_loop): Alter types to minimize casting elsewhere.
35908         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35909         (test_getopt_long_posix): Likewise.
35910         (do_getopt_long): Add wrapper to minimize casting.
35911         * tests/test-atexit.c (clear_temp_file): Use void.
35912         * tests/test-areadlink-with-size.c (main): Declare unused
35913         arguments.
35914         * tests/test-areadlink.c (main): Likewise.
35915         * tests/test-areadlinkat-with-size.c (main): Likewise.
35916         * tests/test-areadlinkat.c (main): Likewise.
35917         * tests/test-canonicalize-lgpl.c (main): Likewise.
35918         * tests/test-canonicalize.c (main): Likewise.
35919         * tests/test-dirent-safer.c (main): Likewise.
35920         * tests/test-dirname.c (main): Likewise.
35921         * tests/test-dup2.c (main): Likewise.
35922         * tests/test-fchdir.c (main): Likewise.
35923         * tests/test-fcntl-h.c (main): Likewise.
35924         * tests/test-fcntl-safer.c (main): Likewise.
35925         * tests/test-fdopendir.c (main): Likewise.
35926         * tests/test-fdutimensat.c (main): Likewise.
35927         * tests/test-fflush.c (main): Likewise.
35928         * tests/test-filenamecat.c (main): Likewise.
35929         * tests/test-filevercmp.c (main): Likewise.
35930         * tests/test-fopen-safer.c (main): Likewise.
35931         * tests/test-fopen.c (main): Likewise.
35932         * tests/test-fpending.c (main): Likewise.
35933         * tests/test-fpurge.c (main): Likewise.
35934         * tests/test-freading.c (main): Likewise.
35935         * tests/test-fstatat.c (main): Likewise.
35936         * tests/test-fsync.c (main): Likewise.
35937         * tests/test-futimens.c (main): Likewise.
35938         * tests/test-getndelim2.c (main): Likewise.
35939         * tests/test-gettimeofday.c (main): Likewise.
35940         * tests/test-getopt.c (main): Likewise.
35941         * tests/test-i-ring.c (main): Likewise.
35942         * tests/test-inttypes.c (main): Likewise.
35943         * tests/test-link.c (main): Likewise.
35944         * tests/test-lstat.c (main): Likewise.
35945         * tests/test-math.c (main): Likewise.
35946         * tests/test-md5.c (main): Likewise.
35947         * tests/test-memchr2.c (main): Likewise.
35948         * tests/test-memrchr.c (main): Likewise.
35949         * tests/test-mkdir.c (main): Likewise.
35950         * tests/test-mkdirat.c (main): Likewise.
35951         * tests/test-mkfifoat.c (main): Likewise.
35952         * tests/test-open.c (main): Likewise.
35953         * tests/test-openat-safer.c (main): Likewise.
35954         * tests/test-openat.c (main): Likewise.
35955         * tests/test-quotearg.c (main): Likewise.
35956         * tests/test-rawmemchr.c (main): Likewise.
35957         * tests/test-readlink.c (main): Likewise.
35958         * tests/test-remove.c (main): Likewise.
35959         * tests/test-rename.c (main): Likewise.
35960         * tests/test-renameat.c (main): Likewise.
35961         * tests/test-rmdir.c (main): Likewise.
35962         * tests/test-sha1.c (main): Likewise.
35963         * tests/test-signal.c (main): Likewise.
35964         * tests/test-sigaction.c (main): Likewise.
35965         * tests/test-stat.c (main): Likewise.
35966         * tests/test-stat-time.c (main): Likewise.
35967         * tests/test-stddef.c (main): Likewise.
35968         * tests/test-stdint.c (main): Likewise.
35969         * tests/test-stdio.c (main): Likewise.
35970         * tests/test-stdlib.c (main): Likewise.
35971         * tests/test-strchrnul.c (main): Likewise.
35972         * tests/test-strerror.c (main): Likewise.
35973         * tests/test-string.c (main): Likewise.
35974         * tests/test-strtod.c (main): Likewise.
35975         * tests/test-strverscmp.c (main): Likewise.
35976         * tests/test-symlink.c (main): Likewise.
35977         * tests/test-symlinkat.c (main): Likewise.
35978         * tests/test-sys_stat.c (main): Likewise.
35979         * tests/test-sys_time.c (main): Likewise.
35980         * tests/test-time.c (main): Likewise.
35981         * tests/test-unistd.c (main): Likewise.
35982         * tests/test-unlink.c (main): Likewise.
35983         * tests/test-unlinkat.c (main): Likewise.
35984         * tests/test-utimens.c (main): Likewise.
35985         * tests/test-utimensat.c (main): Likewise.
35986         * tests/test-version-etc.c (main): Likewise.
35987         * tests/test-wchar.c (main): Likewise.
35988         * tests/test-wctype.c (main): Likewise.
35989         * tests/test-xprintf-posix.c (main): Likewise.
35990         * tests/test-posixtm.c (main): Likewise.
35991         (STREQ): Delete unused macro.
35992         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35993         shadowed variables.
35994         * tests/test-memchr.c (main): Likewise.
35995
35996 2009-10-21  Eric Blake  <ebb9@byu.net>
35997
35998         areadlinkat: avoid failure on older glibc
35999         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36000         rather than mis-comparing 0 against FUNC_RESULT of char*.
36001
36002 2009-10-21  Bruno Haible  <bruno@clisp.org>
36003
36004         * modules/stpncpy (License): Relicense under LGPLv2+.
36005         Reported by David Lutterkort <lutter@redhat.com>.
36006
36007 2009-10-20  Eric Blake  <ebb9@byu.net>
36008
36009         utimensat: work around Solaris 9 bug
36010         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36011         has trailing slash bugs.
36012         * tests/test-lutimens.h (test_lutimens): Enhance test.
36013         * tests/test-utimens.h (test_utimens): Likewise.
36014         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36015         * doc/posix-functions/utimes.texi (utimes): Likewise.
36016         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36017         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36018         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36019         * doc/posix-functions/futimens.texi (futimens): Likewise.
36020
36021         fdutimensat: new module
36022         * modules/fdutimensat: New file.
36023         * lib/fdutimensat.c (fdutimensat): Likewise.
36024         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36025         * MODULES.html.sh (File system functions): Mention module.
36026         * modules/fdutimensat-tests: New test.
36027         * tests/test-fdutimensat.c: Likewise.
36028
36029         doc: regenerate INSTALL
36030         * doc/INSTALL: Reflect recent autoconf update.
36031         * doc/INSTALL.ISO: Likewise.
36032         * doc/INSTALL.UTF-8: Likewise.
36033
36034 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36035
36036         acl: warn if ACL support is not detected
36037         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36038
36039 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36040
36041         * lib/nproc.h: Add extern "C" block for C++.
36042
36043 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36044             Bruno Haible  <bruno@clisp.org>
36045
36046         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36047         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36048         * doc/posix-functions/isalpha.texi: Likewise.
36049         * doc/posix-functions/isblank.texi: Likewise.
36050         * doc/posix-functions/iscntrl.texi: Likewise.
36051         * doc/posix-functions/isdigit.texi: Likewise.
36052         * doc/posix-functions/isgraph.texi: Likewise.
36053         * doc/posix-functions/islower.texi: Likewise.
36054         * doc/posix-functions/isprint.texi: Likewise.
36055         * doc/posix-functions/ispunct.texi: Likewise.
36056         * doc/posix-functions/isspace.texi: Likewise.
36057         * doc/posix-functions/isupper.texi: Likewise.
36058         * doc/posix-functions/isxdigit.texi: Likewise.
36059
36060 2009-10-18  Bruno Haible  <bruno@clisp.org>
36061
36062         Tests for module 'isblank'.
36063         * modules/isblank-tests: New file.
36064         * tests/test-isblank.c: New file.
36065
36066         New module 'isblank'.
36067         * lib/isblank.c: New file.
36068         * m4/isblank.m4: New file.
36069         * modules/isblank: New file.
36070         * doc/posix-functions/isblank.texi: Mention the new module.
36071
36072 2009-10-18  Bruno Haible  <bruno@clisp.org>
36073
36074         New module 'ctype'.
36075         * lib/ctype.in.h: New file.
36076         * m4/ctype.m4: New file.
36077         * modules/ctype: New file.
36078         * doc/posix-headers/ctype.texi: Mention the new module.
36079
36080 2009-10-18  Jim Meyering  <meyering@redhat.com>
36081
36082         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36083         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36084         right after its initialization, rather than farther down.
36085         Keeping these in close proximity makes it easier to ensure
36086         that each such variable is initialized.  E.g.,
36087
36088             LIB_CLOCK_GETTIME=
36089             AC_SUBST([LIB_CLOCK_GETTIME])
36090
36091         This change also increments these serial numbers.
36092         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36093         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36095
36096 2009-10-18  Bruno Haible  <bruno@clisp.org>
36097
36098         Don't let environment variables perturb build.
36099         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36100         (gl_PREREQ_GETHRXTIME): ... not here.
36101
36102 2009-10-18  Bruno Haible  <bruno@clisp.org>
36103
36104         Avoid symlink attack in localcharset module.
36105         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36106         (O_NOFOLLOW): Define fallback.
36107         (get_charset_aliases): Don't open the file if it is a symbolic link.
36108         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36109         gl_FCNTL_H.
36110         (gl_FCNTL_H): Require it.
36111         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36112         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36113         Reported by Fergal Glynn <fglynn@veracode.com>.
36114
36115 2009-10-18  Bruno Haible  <bruno@clisp.org>
36116
36117         Implement nproc for mingw.
36118         * lib/nproc.c: Include <windows.h>
36119         (num_processors): On native Windows platforms, try GetSystemInfo.
36120
36121 2009-10-18  Bruno Haible  <bruno@clisp.org>
36122
36123         Implement nproc for IRIX.
36124         * lib/nproc.c: Include <sys/sysmp.h>.
36125         (num_processors): On IRIX systems, try sysmp.
36126         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36127
36128 2009-10-18  Bruno Haible  <bruno@clisp.org>
36129
36130         Implement nproc for HP-UX.
36131         * lib/nproc.c: Include <sys/pstat.h>
36132         (num_processors): On HP-UX systems, try pstat_getdynamic.
36133         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36134         pstat_getdynamic.
36135
36136 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36137             Bruno Haible  <bruno@clisp.org>
36138
36139         Implement nproc for NetBSD, OpenBSD.
36140         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36141         (ARRAY_SIZE): New macro.
36142         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36143         * m4/nproc.m4: New file.
36144         * modules/nproc (Files): Add m4/nproc.m4.
36145         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36146         (Makefile.am): Instead, augment lib_SOURCES.
36147
36148 2009-10-18  Bruno Haible  <bruno@clisp.org>
36149
36150         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36151         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36152         sys/param.h.
36153
36154 2009-10-16  Eric Blake  <ebb9@byu.net>
36155
36156         utimensat: new module
36157         * modules/utimensat: New file.
36158         * lib/utimensat.c (utimensat): Likewise.
36159         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36160         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36161         so we can work around Linux bugs.
36162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36163         * modules/sys_stat (Makefile.am): Substitute them.
36164         * lib/sys_stat.in.h (utimensat): Declare it.
36165         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36166         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36167         * modules/utimensat-tests: New test.
36168         * tests/test-utimensat.c: Likewise.
36169
36170         utimens: let lutimens work on non-symlinks
36171         * lib/utimens.c (lutimens): Fall back to utimens rather than
36172         failing with ENOSYS, when file is not a symlink.
36173         (utimens): Reduce redirection.
36174         * tests/test-lutimens.h (test_lutimens): Update test to cover
36175         non-symlinks.
36176         * tests/test-utimens.h (test_utimens): Update test to cover
36177         symlinks.
36178         * tests/test-utimens.c (main): Update caller.
36179
36180         utimens: cache whether utimensat syscall works
36181         * lib/utimens.c (utimensat_works_really): New cache variable.
36182         (fdutimens, lutimens): Use it to avoid failing syscall.
36183
36184         test-stat-time, test-utimens: improve portability
36185         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36186         ext4 on alpha, and for cygwin.
36187         * tests/test-utimens-common.h: New file.
36188         (nap): Factor delays into single function.
36189         * tests/test-lutimens.h (test_lutimens): Use new header.
36190         * tests/test-futimens.h (test_futimens): Likewise.
36191         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36192         timestamps to occur from same machine, as was done previously for
36193         test_utimens.
36194         * modules/utimens-tests (Files): Ship new file.
36195         * modules/futimens-tests (Files): Likewise.
36196         Reported in part by Jim Meyering.
36197
36198         sys_stat: sort replacement declarations
36199         * lib/sys_stat.in.h: Sort declarations.
36200         * lib/futimens.c (futimens): Fix typo.
36201
36202 2009-10-15  Jim Meyering  <meyering@redhat.com>
36203
36204         don't let environment settings perturb build
36205         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36206         could cause a configure-time and/or build-time malfunction.
36207         Typically, a configure-time function-in-library test is performed
36208         via code like this:
36209
36210           LIB_VAR=
36211           AC_SUBST([LIB_VAR])
36212           prefix_saved_LIBS=$LIBS
36213             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36214                        [test "$ac_cv_search_FUNC" = "none required" ||
36215                         LIB_VAR=$ac_cv_search_FUNC])
36216           LIBS=$prefix_saved_LIBS
36217
36218         However, in each of the files affected by this change, the LIB_VAR=
36219         initialization was omitted.  Thus, when set in the environment, its
36220         value would propagate into generated Makefiles when FUNC is not found
36221         in LIB_NAME.
36222         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36223         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36225
36226 2009-10-14  Eric Blake  <ebb9@byu.net>
36227
36228         fchdir: avoid infinite recursion in mingw
36229         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36230         recursing.
36231
36232         test-stat-time: port to mingw
36233         * tests/test-stat-time.c (force_unlink): Return a value.
36234         (test_ctime) [W32]: Fix compilation error.
36235         (nap): Don't call usleep with too large an argument.  Use
36236         force_unlink.
36237         * doc/pastposix-functions/usleep.texi (usleep): Document the
36238         portability issue.
36239
36240 2009-10-13  Jim Meyering  <meyering@redhat.com>
36241
36242         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36243         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36244         * modules/pipe-filter-ii: Likewise.
36245         * modules/sys_socket-tests: Likewise.
36246         * modules/tsearch-tests: Likewise.
36247         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36248         (check): Depend on it.
36249
36250 2009-10-12  Eric Blake  <ebb9@byu.net>
36251
36252         utimens-tests: port to NFS file systems
36253         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36254         comparisons to avoid spurious failures from timestamp drift
36255         between NFS machines.
36256
36257 2009-10-12  Eric Blake  <ebb9@byu.net>
36258
36259         stat-time-tests: minor cleanups
36260         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36261         * tests/test-stat-time.c (nap): Separate assignment from call.
36262         Suggested by Paolo Bonzini and Bruno Haible.
36263
36264         sys_stat: guarantee struct timespec
36265         * lib/sys_stat.in.h (includes): Always include <time.h>
36266         * modules/sys_stat (Depends-on): Add time.
36267         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36268         mode_t permission values.
36269         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36270         get at subsecond timestamps.
36271
36272 2009-10-10  Eric Blake  <ebb9@byu.net>
36273
36274         futimens: new module
36275         * modules/futimens: New file.
36276         * lib/futimens.c (futimens): Likewise.
36277         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36278         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36279         we can work around Linux bugs.
36280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36281         * modules/sys_stat (Makefile.am): Substitute them.
36282         * lib/sys_stat.in.h (futimens): Declare it.
36283         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36284         * doc/posix-functions/futimens.texi (futimens): Likewise.
36285         * modules/futimens-tests: New test.
36286         * tests/test-futimens.c: Likewise.
36287
36288         utimens: introduce fdutimens
36289         * lib/utimens.h (fdutimens): New prototype.
36290         * lib/utimens.c (gl_futimens): Move guts...
36291         (fdutimens): ...to new interface.
36292         * tests/test-utimens.c (do_fdutimens): Use it.
36293
36294         utimens: add UTIME_NOW and UTIME_OMIT support
36295         * lib/utimens.c (validate_timespec, update_timespec): New helper
36296         functions.
36297         (gl_futimens, lutimens): Use them.
36298         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36299         stdbool, sys_stat.
36300         (Link): Mention resulting library dependency.
36301         * modules/utimecmp (Link): Likewise.
36302         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36303         (Makefile.am): Pick up library dependency.
36304         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36305         definition.
36306         * tests/test-sys_stat.c: Test the definitions.
36307         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36308         * NEWS: Document library dependency.
36309
36310         utimecmp: support symlink timestamps
36311         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36312         hashing when possible.  Use pathconf when available.
36313         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36314         * modules/utimecmp (Depends-on): Add lstat.
36315
36316         utimens: add lutimens interface
36317         * lib/utimens.c (lutimens): New function.
36318         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36319         * lib/utimens.h (lutimens): Declare new interface.
36320         * tests/test-utimens.c (main): Enhance test.
36321         * tests/test-lutimens.h (test_lutimens): New file.
36322         * modules/utimens-tests (Files): Distribute it.
36323         (Depends-on): Add symlink.
36324         (configure.ac): Check for usleep.
36325
36326         utimens: validate futimens usage
36327         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36328         fewer syscalls on failure later on.  Avoid compiler warning on
36329         mingw.
36330         * modules/utimens (Depends-on): Add dup2.
36331
36332         utimens: add test
36333         * modules/utimens-tests: New test.
36334         * tests/test-utimens.h: New file.
36335         * tests/test-futimens.h: Likewise.
36336         * tests/test-utimens.c: Likewise.
36337
36338         doc: mention timestamp portability issues
36339         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36340         instead.
36341         * doc/posix-functions/utime.texi (utime): Likewise.
36342         * doc/posix-functions/utimes.texi (utimes): Likewise.
36343         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36344         instead.
36345         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36346         module.
36347         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36348         Mention weakness with symlink timestamps.
36349         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36350         to utimensat/futimens instead.
36351         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36352
36353         test-dup2: enhance test
36354         * tests/test-dup2.c (main): Also check AT_FDCWD.
36355
36356         test-stat-time: avoid more spurious failures
36357         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36358         xfs; and avoid race if the two timestamps cross quantization edge.
36359
36360         relocatable: prefer 'file system' over 'filesystem'
36361         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36362         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36363         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36364         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36365         * lib/relocatable.c (compute_curr_prefix): Likewise.
36366
36367 2009-10-10  Jim Meyering  <meyering@redhat.com>
36368
36369         stat-time-tests: check for the usleep function
36370         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36371
36372 2009-10-10  Bruno Haible  <bruno@clisp.org>
36373
36374         * modules/xnanosleep: Put the Link section after the Include section.
36375
36376 2009-10-09  Eric Blake  <ebb9@byu.net>
36377
36378         dup2: work around FreeBSD 6.1 bug
36379         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36380         * doc/posix-functions/dup2.texi (dup2): Document it.
36381         Reported by Nelson H. F. Beebe and Jim Meyering.
36382
36383         test-stat-time: port to buggy NFS clients
36384         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36385         (test_ctime): Also skip test if mtime and ctime are skewed.
36386
36387         maint: prefer 'file system' over 'filesystem'
36388         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36389         * doc/posix-functions/lstat.texi (lstat): Likewise.
36390         * lib/file-has-acl.c (file_has_acl): Likewise.
36391         * lib/fwriteerror.c [TEST]: Likewise.
36392         * tests/test-areadlink.h (test_areadlink): Likewise.
36393         * tests/test-areadlinkat-with-size.c (main): Likewise.
36394         * tests/test-areadlinkat.c (main): Likewise.
36395         * tests/test-canonicalize-lgpl.c (main): Likewise.
36396         * tests/test-canonicalize.c (main): Likewise.
36397         * tests/test-fstatat.c (main): Likewise.
36398         * tests/test-linkat.c (main): Likewise.
36399         * tests/test-lstat.h (test_lstat_func): Likewise.
36400         * tests/test-mkdir.h (test_mkdir): Likewise.
36401         * tests/test-readlink.h (test_readlink): Likewise.
36402         * tests/test-remove.c (main): Likewise.
36403         * tests/test-rename.h (test_rename): Likewise.
36404         * tests/test-renameat.c (main): Likewise.
36405         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36406         * tests/test-symlink.h (test_symlink): Likewise.
36407         * tests/test-symlinkat.c (main): Likewise.
36408         * tests/test-unlink.h (test_unlink_func): Likewise.
36409         * tests/test-unlinkat.c (main): Likewise.
36410
36411         maint: make realtime library usage explicit
36412         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36413         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36414         * modules/settime (Link): Likewise.
36415         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36416
36417         test-stat-time: speed up execution
36418         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36419         warning on mingw.
36420         (nap): New helper function.
36421         (prepare_test): Use it to reduce sleep time.
36422         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36423         execution.
36424         * modules/stat-time-tests (configure.ac): Check for usleep.
36425
36426 2009-10-09  Jim Meyering  <meyering@redhat.com>
36427
36428         selinux-h: always use getfilecon wrappers
36429         * lib/getfilecon.c: New file.
36430         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36431         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36432         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36433         (fgetfilecon): Provide a stub.
36434         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36435         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36436         file unconditionally.
36437         When <selinux/selinux.h> is found, arrange to use wrappers.
36438         * modules/selinux-h (Files): Add getfilecon.c.
36439         (Makefile.am): Substitute include-next-related bits
36440         into the now-always-generated selinux/selinux.h file.
36441         * doc/glibc-functions/lgetfilecon.texi: New file.
36442         * doc/glibc-functions/fgetfilecon.texi: New file.
36443         * doc/glibc-functions/getfilecon.texi: New file.
36444         * doc/glibc-functions/getfilecon-desc.texi: New file.
36445         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36446         which to pull in the new files.
36447         * MODULES.html.sh (Misc): Add selinux-h.
36448
36449 2009-10-08  Jim Meyering  <meyering@redhat.com>
36450
36451         unistd: fix comment typo
36452         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36453
36454 2009-10-08  Eric Blake  <ebb9@byu.net>
36455
36456         areadlink: use SIZE_MAX consistently
36457         * modules/areadlink (Depends-on): Add stdint.
36458         * modules/areadlink-with-size (Depends-on): Likewise.
36459         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36460         gives NULL; drop sys/types, since unistd gives size_t; and add
36461         stdint for SIZE_MAX.
36462         (SIZE_MAX): Rely on headers.
36463         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36464         and add stdint.
36465         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36466         (SIZE_MAX): Likewise.
36467         (INITIAL_BUF_SIZE): Turn into enum.
36468         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36469
36470 2009-10-08  Jim Meyering  <meyering@redhat.com>
36471
36472         areadlinkat: avoid compilation failure
36473         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36474         Fix typo in comment.
36475
36476 2009-10-07  Eric Blake  <ebb9@byu.net>
36477
36478         areadlinkat-with-size: new module
36479         * modules/areadlinkat-with-size: New module.
36480         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36481         * lib/areadlink.h (areadlinkat): Declare it.
36482         * MODULES.html.sh (File system functions): Mention it.
36483         * modules/areadlinkat-with-size-tests: New test.
36484         * tests/test-areadlinkat-with-size.c: New file.
36485
36486         xreadlinkat: new module
36487         * modules/xreadlinkat: New module.
36488         * lib/xreadlinkat.c (xreadlinkat): New file.
36489         * lib/xreadlink.h (xreadlinkat): Declare it.
36490         * MODULES.html.sh (File system functions): Mention it.
36491
36492         areadlinkat: new module
36493         * lib/at-func.c (FUNC_FAIL): New define.
36494         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36495         * modules/areadlinkat: New module.
36496         * lib/linkat.c (areadlinkat): Move...
36497         * lib/areadlinkat.c (areadlinkat): ...to new file.
36498         * lib/areadlink.h (areadlinkat): Declare it.
36499         * modules/linkat (Depends-on): Add areadlinkat.
36500         * MODULES.html.sh (File system functions): Mention it.
36501         * modules/areadlinkat-tests: New test.
36502         * tests/test-areadlinkat.c: New file.
36503
36504         areadlink, areadlink-with-size: add tests
36505         * modules/areadlink-tests: New test.
36506         * modules/areadlink-with-size-tests: Likewise.
36507         * tests/test-areadlink.h: New file.
36508         * tests/test-areadlink.c: Likewise.
36509         * tests/test-areadlink-with-size.c: Likewise.
36510
36511         maint: minor cleanups
36512         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36513         _UNUSED_PARAMETER_ instead.
36514         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36515         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36516         * modules/linkat-tests (Files): Distribute test-link.h.
36517
36518         openat, utimens: whitespace cleanup
36519         * lib/openat.c: Prefer space throughout, rather than mix of 8
36520         spaces vs. tabs.
36521         * lib/at-func.c: Likewise.
36522         * lib/utimens.c: Likewise.
36523
36524         openat: avoid using wrong fd
36525         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36526         working directory chooses same fd.
36527         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36528
36529         mkdir, mkdirat: fix cygwin 1.5.x bug
36530         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36531         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36532         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36533         bug.
36534         (gl_PREREQ_MKDIR): Delete unused macro.
36535         * modules/mkdir (Files): Track file rename.
36536         (configure.ac): Update macro name.
36537         * modules/openat (Depends-on): Add mkdir.
36538         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36539
36540         mkdir, mkdirat: add tests
36541         * modules/mkdir-tests: New test.
36542         * tests/test-mkdir.h: New file.
36543         * tests/test-mkdir.c: Likewise.
36544         * tests/test-mkdirat.c: Likewise.
36545         * modules/openat-tests (Files): Add new files.
36546         (Makefile.am): Run new test.
36547
36548 2009-10-06  Eric Blake  <ebb9@byu.net>
36549
36550         doc: tweak *at function documentation
36551         * doc/posix-functions/faccessat.texi (faccessat): Mention
36552         known issue with replacement.
36553         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36554         * doc/posix-functions/linkat.texi (linkat): Likewise.
36555         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36556         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36557         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36558         * doc/posix-functions/renameat.texi (renameat): Likewise.
36559         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36560
36561         openat: fix GNU/Hurd bug in unlinkat
36562         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36563         broken.
36564         * doc/posix-functions/unlink.texi (unlink): Document this.
36565         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36566
36567         fdopendir: fix GNU/Hurd bug
36568         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36569         allowing non-directory fds.
36570         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36571         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36572         * modules/dirent (Makefile.am): Substitute it.
36573         * lib/dirent.in.h (fdopendir): Declare replacement.
36574         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36575         * tests/test-fdopendir.c (main): Test something other than
36576         /dev/null, since on Hurd that behaves like a directory.
36577
36578         test-symlink: port to GNU/Hurd
36579         * tests/test-symlink.h (test_symlink): Relax expected errno.
36580
36581         doc: tweak more cygwin information
36582         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36583         now compatible with glibc.
36584         * doc/posix-functions/getopt.texi (getopt): Likewise.
36585
36586         getopt-gnu: add another test
36587         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36588         guarantee behavior relied on by m4.
36589         * tests/test-getopt.c (main): Use it.
36590         * modules/getopt-posix-tests (Depends-on): Add setenv.
36591         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36592
36593         getopt: fix compilation on darwin
36594         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36595         include.
36596         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36597         Reported by Ludovic Courtès.
36598
36599 2009-10-06  Bruno Haible  <bruno@clisp.org>
36600
36601         * modules/size_max (Description): Discourage its use.
36602         Reported by Simon Josefsson.
36603
36604 2009-10-06  Jim Meyering  <meyering@redhat.com>
36605
36606         linkat: avoid compilation failure
36607         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36608
36609 2009-10-05  Eric Blake  <ebb9@byu.net>
36610
36611         linkat: support Linux 2.6.17
36612         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36613         linkat on Linux, but allow cache variable override.
36614         * lib/linkat.c (rpl_linkat): Define override.
36615         * modules/linkat (Depends-on): Add symlinkat.
36616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36617         * modules/unistd (Makefile.am): Substitute it.
36618         * lib/unistd.in.h (linkat): Declare replacement.
36619         Reported by Pádraig Brady.
36620
36621         quotearg: port test to systems with C.UTF-8 locale
36622         * tests/test-quotearg.c (struct result_strings): Add another
36623         member, differentiating between C.ASCII and C.UTF-8 handling.
36624         (compare_strings): Add parameter.
36625         (main): Adjust all callers.
36626
36627         getopt: avoid clash with FreeBSD _getopt_internal
36628         * lib/getopt.in.h (_getopt_internal): Override the name.
36629         * lib/getopt_int.h (includes): Pick up any overrides.
36630         Reported by Reuben Thomas.
36631
36632         hash: allow C89 compilation
36633         * lib/hash.c (check_tuning): Move declaration before statement.
36634         Reported by Reuben Thomas.
36635
36636 2009-10-05  Karl Berry  <karl@gnu.org>
36637
36638         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36639
36640 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36641             Bruno Haible  <bruno@clisp.org>
36642
36643         * lib/uname.c (uname): Use a table-driven algorithm to compute
36644         Windows NT versions.
36645
36646 2009-10-04  Bruno Haible  <bruno@clisp.org>
36647
36648         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36649         program_invocation_short_name.
36650         * modules/progname (configure.ac): Test for presence of
36651         program_invocation_short_name.
36652         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36653
36654 2009-10-04  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/progname.c (set_program_name): Fix comment.
36657         Reported by Jim Meyering.
36658
36659 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36660             Bruno Haible  <bruno@clisp.org>
36661
36662         * lib/uname.c: Include <string.h>.
36663         (uname): Do only one call to GetVersionEx in the common case.
36664
36665 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36666             Bruno Haible  <bruno@clisp.org>
36667
36668         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36669         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36670         (uname): Add support for Windows CE and various non-x86 CPU types.
36671
36672 2009-10-03  Bruno Haible  <bruno@clisp.org>
36673
36674         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36675         invocation to tests/configure.ac.
36676         Reported by Ian Beckwith <ianb@erislabs.net>.
36677
36678 2009-10-02  Eric Blake  <ebb9@byu.net>
36679
36680         fchdir: avoid compiler warning
36681         * lib/fchdir.c (canonicalize_file_name)
36682         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36683
36684         test-open: support mingw errno values
36685         * tests/test-open.h (test_open): Relax test.
36686         * tests/test-fopen.h (test_fopen): Likewise.
36687         * tests/test-openat-safer.c (main): Likewise.
36688
36689         open: fix opening directory on mingw
36690         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36691
36692         test-open: on GNU/Hurd, /dev/null is a directory
36693         * tests/test-fopen.h (main): Rename...
36694         (test_fopen): ...to this.  Use a guaranteed non-directory when
36695         confirming open behavior on trailing slash.
36696         * tests/test-openat-safer.c (main): Likewise.
36697         * tests/test-open.h (main): Likewise....
36698         (test_open): ...to this.
36699         * tests/test-fopen.c (main): Adjust caller.
36700         * tests/test-fopen-safer.c (main): Likewise.
36701         * tests/test-open.c (main): Likewise.
36702         * tests/test-fcntl-safer.c (main): Likewise.
36703         Reported by Samuel Thibault.
36704
36705         rename, fchdir: don't ignore chdir failure
36706         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36707         * lib/rename.c (rpl_rename) [W32]: Likewise.
36708         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36709         an empty destination directory if source cannot be renamed,
36710         although there is still possibility for failure.
36711         * doc/posix-functions/rename.texi (rename): Document the race.
36712         Reported by Jim Meyering.
36713
36714         maint: cleanup whitespace in recent commits
36715         * lib/rename.c (rpl_rename): Remove tabs.
36716         * tests/test-link.h (test_link): Likewise.
36717         * lib/fchdir.c (get_name): Likewise.
36718         Reported by Jim Meyering.
36719
36720 2009-10-02  Ben Pfaff  <blp@gnu.org>
36721
36722         relocatable-prog-wrapper: Add missing dependency on
36723         double-slash-root.
36724         * modules/relocatable-prog-wrapper: Add dependency.
36725         Reported by Ian Beckwith <ianb@erislabs.net>.
36726
36727 2009-10-02  Eric Blake  <ebb9@byu.net>
36728
36729         renameat: fix Solaris bugs
36730         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36731         needed fixing.
36732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36733         * modules/stdio (Makefile.am): Substitute it.
36734         * lib/stdio.in.h (renameat): Declare replacement.
36735         * lib/renameat.c (rpl_renameat): Implement fix.
36736
36737         renameat: new module
36738         * modules/renameat: New file.
36739         * lib/renameat.c (renameat): Likewise.
36740         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36742         * modules/stdio (Makefile.am): Substitute them.
36743         * lib/stdio.in.h (renameat): Declare it.
36744         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36745         * doc/posix-functions/renameat.texi (renameat): Likewise.
36746         * modules/renameat-tests: New test.
36747         * tests/test-renameat.c: Likewise.
36748
36749         rename: fix mingw bugs
36750         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36751         directory overwrite bugs.
36752
36753         rename: fix another cygwin 1.5 bug
36754         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36755         checks.
36756         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36757         unnecessary cygwin workarounds.  Also work around bug with moving
36758         full directory onto an empty one.
36759         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36760
36761         rename-dest-slash: merge into rename module
36762         * modules/rename-dest-slash (Status): Mark obsolete.
36763         (Depends-on): Add rename.
36764         (Files): Let rename do it all.
36765         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36766         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36767         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36768         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36769         * lib/rename.c (rpl_rename): Update comments.
36770
36771         rename: fix cygwin 1.5.x bugs
36772         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36773         * lib/rename.c (rpl_rename): Work around them.
36774         * modules/rename (Depends-on): Add same-inode.
36775
36776         rename: fix Solaris 10 bug
36777         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36778         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36779         was the only bug.
36780
36781         rename: fix Solaris 9 bug
36782         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36783         on non-directory.  Avoid calling exit.
36784         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36785         strdup.
36786         * modules/rename-tests (Depends-on): Drop lstat.
36787         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36788         (gl_PREREQ_RENAME): Delete unused macro.
36789
36790         rename-dest-slash: fix NetBSD bug
36791         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36792         links.
36793         * modules/rename-dest-slash (Depends-on): Add same-inode.
36794
36795         rename-tests: new test, exposes several platform bugs
36796         * modules/rename-tests: New file.
36797         * tests/test-rename.h: Likewise.
36798         * tests/test-rename.c: Likewise.
36799         * doc/posix-functions/rename.texi (rename): Improve documentation,
36800         including bugs that will eventually be fixed in gnulib.
36801
36802 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36803
36804         * lib/uname.c: Include <stdlib.h>
36805         (uname): Assume version info is available.
36806
36807 2009-10-02  Jim Meyering  <meyering@redhat.com>
36808
36809         gnu-web-doc-update: correct --help output
36810         * build-aux/gnu-web-doc-update: Make --help output relevant.
36811
36812         gnu-web-doc-update: add standard options
36813         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36814
36815         gnu-web-doc-update: New module.
36816         Use this script to automatically update the on-line web documentation
36817         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36818         * modules/gnu-web-doc-update: New file, from coreutils.
36819         * build-aux/gnu-web-doc-update: New script.
36820
36821 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36822
36823         link: LoadLibrary is not needed.
36824         * lib/link.c: Use GetModuleHandle.
36825
36826 2009-10-01  Eric Blake  <ebb9@byu.net>
36827
36828         getopt: bump serial number
36829         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36830         change.
36831
36832         tests: tighten link, rmdir, and remove tests
36833         * tests/test-link.h (includes): No need to use <config.h> here.
36834         Clean up if directory hard link was created, otherwise test for
36835         trailing '.'.
36836         * tests/test-linkat.c (main): Simplify.
36837         * tests/test-remove.c (main): Enhance test for trailing '.'.
36838         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36839
36840 2009-10-01  Jim Meyering  <meyering@redhat.com>
36841
36842         maint.mk: requiring "make major" was annoying, for a "minor" release.
36843         What is intended is "stable", to contrast with alpha and beta,
36844         so require "make stable", not "make major".
36845         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36846         (get_tool_versions): Likewise.
36847         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36848
36849 2009-09-30  Ben Pfaff  <blp@gnu.org>
36850
36851         Fix broken build of replacement for Windows tmpfile().
36852         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36853         flags argument added along with the 'mkostemp' module.
36854
36855 2009-09-28  Bruno Haible  <bruno@clisp.org>
36856
36857         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36858         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36859         to 'remove_elt'.
36860         (gl_list_remove): Update.
36861         * lib/gl_list.c (gl_list_remove): Update.
36862         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36863         to 'remove_elt'.
36864         (gl_oset_remove): Update.
36865         * lib/gl_list.c (gl_oset_remove): Update.
36866         Reported by Eric Blake.
36867
36868 2009-09-28  Eric Blake  <ebb9@byu.net>
36869
36870         doc: mention yet more cygwin 1.7 status
36871         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36872         cygwin.
36873         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36874         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36875
36876         argp: fix test failure
36877         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36878         that are not upper-case.  Pass correct range to tolower.
36879
36880 2009-09-27  Jim Meyering  <meyering@redhat.com>
36881
36882         test-yesno: work around sparc-dash here-document infelicity
36883         Without this change, the literal \177 byte in a here document
36884         would make dash 0.5.5.1-3 access uninitialized memory.
36885         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36886         Instead, use a marker, "@", and filter through tr to create the desired
36887         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36888
36889 2009-09-27  Bruno Haible  <bruno@clisp.org>
36890
36891         Disable untested support for new flavours of ACLs on AIX.
36892         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36893         progress.
36894         * lib/set-mode-acl.c (qset_acl): Likewise.
36895
36896 2008-12-07  Bruno Haible  <bruno@clisp.org>
36897
36898         Add support for new flavours of ACLs on AIX. (Untested.)
36899         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36900         (file_has_acl): Add support for newer AIX.
36901         * lib/set-mode-acl.c (qset_acl): Likewise.
36902         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36903         Rainer Tammer <tammer@tammer.net>.
36904
36905 2009-09-26  Eric Blake  <ebb9@byu.net>
36906
36907         argp: fix compilation of getopt
36908         * lib/getopt.in.h (includes): Use different guard than glibc.
36909         Reported by Sergey Poznyakoff.
36910
36911         doc: mention more cygwin 1.7 status
36912         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36913         bug.
36914         * doc/posix-functions/execl.texi (execl): Likewise.
36915         * doc/posix-functions/execle.texi (execle): Likewise.
36916         * doc/posix-functions/execlp.texi (execlp): Likewise.
36917         * doc/posix-functions/execv.texi (execv): Likewise.
36918         * doc/posix-functions/execve.texi (execve): Likewise.
36919         * doc/posix-functions/execvp.texi (execvp): Likewise.
36920         * doc/glibc-functions/canonicalize_file_name.texi
36921         (canonicalize_file_name): Cygwin 1.7 now provides this.
36922         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36923         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36924         on AT_SYMLINK_NOFOLLOW.
36925
36926 2009-09-24  Eric Blake  <ebb9@byu.net>
36927
36928         test-linkat: make test more robust
36929         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36930
36931         getopt: fix inclusion guards for cygwin
36932         * modules/getopt-posix (Depends-on): Add include-next.
36933         (Makefile.am): Substitute more items in replacement header.
36934         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36935         <getopt.h>.
36936         * lib/getopt.in.h (includes): Use split inclusion guard, and
36937         prefer <getopt.h> over include <unistd.h> when one is present.
36938         (option): Also override name of 'struct option'.
36939
36940         same-inode: revert prior change; it is not yet ready
36941         * NEWS: Undo mention of this change.
36942         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36943         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36944         * lib/cycle-check.c (cycle_check): Likewise.
36945         * lib/same.c (same_name): Likewise.
36946         * lib/at-func2.c (at_func2): Likewise.
36947
36948 2009-09-23  Eric Blake  <ebb9@byu.net>
36949
36950         linkat: new module
36951         * modules/linkat: New file.
36952         * lib/at-func2.c (at_func2): Likewise.
36953         * lib/linkat.c (linkat): Likewise.
36954         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36955         * lib/openat-priv.h (at_func2): Add declaration.
36956         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36957         * modules/unistd (Makefile.am): Substitute them.
36958         * lib/unistd.in.h (linkat): Declare it.
36959         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36960         * doc/posix-functions/linkat.texi (linkat): Likewise.
36961         * doc/posix-functions/link.texi (link): Tweak wording.
36962         * tests/test-link.c (main): Move guts...
36963         * tests/test-link.h (test_link): ...into new file.
36964         * modules/linkat-tests: New test.
36965         * tests/test-linkat.c: Likewise.
36966         * modules/link-tests (Files): Ship new file.
36967         (Depends-on): Add stdbool.
36968
36969         dirname: add library-safe mdir_name
36970         * lib/dirname.h (mdir_name): New prototype.
36971         * lib/dirname.c (dir_name): Move guts...
36972         (mdir_name): ...to new function that avoids xalloc_die.
36973
36974         fchdir: another mingw fix
36975         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36976         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36977         on mingw (where it has not yet been ported), and make it optional
36978         elsewhere.
36979         (_gl_register_fd): Use it.
36980
36981         same-inode: make SAME_INODE tri-state, to port to mingw
36982         * NEWS: Mention this change.
36983         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36984         st_ino always being 0.
36985         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36986         * lib/cycle-check.c (cycle_check): Likewise.
36987         * lib/same.c (same_name): Likewise.
36988
36989         lstat: avoid mingw compilation error
36990         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36991         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36992         lstat ourselves.
36993         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36994         was adequate.
36995         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36996         the checks for lstat.
36997         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36998
36999         link: fix test failure on Solaris 9
37000         * lib/link.c (rpl_link): Don't assume link will catch bogus
37001         trailing slash on source.
37002
37003         test-symlinkat: enhance test
37004         * tests/test-readlink.c (main): Move guts...
37005         * tests/test-readlink.h (test_readlink): ...into new file.
37006         * tests/test-symlink.c (main): Move guts...
37007         * tests/test-symlink.h (test_symlink): ...into new file.
37008         * tests/test-symlinkat.c (main): Use new files for further
37009         coverage.
37010         (do_symlink, do_readlink): New helper functions.
37011         * modules/symlink-tests (Files): Ship new file.
37012         (Depends-on): Add stdbool.
37013         * modules/readlink-tests (Files): Ship new file.
37014         (Depends-on): Add stdbool.
37015         * modules/symlinkat-tests (Files): Use new files.
37016
37017 2009-09-23  Eric Blake  <ebb9@byu.net>
37018
37019         readlink: document portability issue with symlink length
37020         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37021         systems have bogus st_size on symlinks, and mention the
37022         areadlink-with-size module.
37023         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37024         * doc/posix-functions/readlink.texi (readlink): Mention the
37025         areadlink module, and ERANGE failure.
37026         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37027         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37028
37029         readlink: fix Solaris 9 bug with trailing slash
37030         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37031         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37032         * doc/posix-functions/readlink.texi (readlink): Document this.
37033         * modules/readlink-tests: New test.
37034         * tests/test-readlink.c: Likewise.
37035
37036         readlink: fix cygwin 1.5.x bug with return type
37037         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37038         * lib/unistd.in.h (readlink): Use ssize_t.
37039         * lib/readlink.c (readlink): Likewise.
37040         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37041         * modules/unistd (Makefile.am): Substitute it.
37042         * lib/unistd.in.h (readlink): Declare replacement.
37043         * doc/posix-functions/readlink.texi (readlink): Document this.
37044
37045         symlink: use throughout gnulib
37046         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37047         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37048         symlink is not used.
37049         * modules/symlinkat (Depends-on): Add symlink.
37050         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37051         * modules/canonicalize-tests (Depends-on): Likewise.
37052         * modules/lstat-tests (Depends-on): Likewise.
37053         * modules/openat-tests (Depends-on): Likewise.
37054         * modules/remove-tests (Depends-on): Likewise.
37055         * modules/rmdir-tests (Depends-on): Likewise.
37056         * modules/unlink-tests (Depends-on): Likewise.
37057         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37058         * tests/test-canonicalize.c (symlink): Likewise.
37059         * tests/test-fstatat.c (symlink): Likewise.
37060         * tests/test-lstat.c (symlink): Likewise.
37061         * tests/test-remove.c (symlink): Likewise.
37062         * tests/test-rmdir.c (symlink): Likewise.
37063         * tests/test-unlink.c (symlink): Likewise.
37064         * tests/test-unlinkat.c (symlink): Likewise.
37065
37066         symlink: new module, for Solaris 9 bug
37067         * modules/symlink: New file.
37068         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37069         * lib/symlink.c: Likewise.
37070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37071         * modules/unistd (Makefile.am): Substitute them.
37072         * lib/unistd.in.h (symlink): Declare replacement.
37073         * MODULES.html.sh (File system functions): Mention it.
37074         * doc/posix-functions/symlink.texi (symlink): Likewise.
37075         * modules/symlink-tests: New test.
37076         * tests/test-symlink.c: Likewise.
37077
37078 2009-09-23  Bruno Haible  <bruno@clisp.org>
37079
37080         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37081         when needed.
37082         Test case: gnulib-tool --import --with-tests atexit inttypes.
37083         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37084
37085 2009-09-23  Bruno Haible  <bruno@clisp.org>
37086
37087         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37088         subcommand, not in a subshell.
37089
37090 2009-09-22  Eric Blake  <ebb9@byu.net>
37091
37092         unistd: sort replacement declarations
37093         * lib/unistd.in.h: Sort declarations.
37094
37095         open, openat: minor optimization
37096         * lib/open.c (open): If open succeeded, len is non-zero.
37097         * lib/openat.c (rpl_openat): Likewise.
37098
37099         link-follow: ensure correct result
37100         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37101         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37102         distinguish between possible failures.
37103
37104 2009-09-21  Eric Blake  <ebb9@byu.net>
37105
37106         fts: avoid compiler warning
37107         * lib/fts.c (dirent_inode_sort_may_be_useful)
37108         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37109
37110 2009-09-19  Bruno Haible  <bruno@clisp.org>
37111
37112         * lib/progreloc.c (canonicalize_file_name): New declaration.
37113
37114 2009-09-19  Eric Blake  <ebb9@byu.net>
37115
37116         link: fix quoting
37117         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37118
37119         openat: fix openat bugs on Solaris 9
37120         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37121         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37122         * modules/openat (Depends-on): Add open.
37123         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37124         * modules/fcntl-h (Makefile.am): Substitute it.
37125         * lib/fcntl.in.h (openat): Declare replacement.
37126         * doc/posix-functions/openat.texi (openat): Document this.
37127
37128         openat: move fstatat and unlinkat into correct files
37129         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37130         compiled.
37131         * lib/openat.c (fstatat, unlinkat): Move...
37132         * lib/fstatat.c (fstatat): ...into correct files.
37133         * lib/unlinkat.c (unlinkat): Likewise.
37134
37135         openat: fix unlinkat bugs on Solaris 9
37136         * lib/unlinkat.c (unlinkat): New file.
37137         * modules/openat (Depends-on): Add unlink.
37138         (Files): Distribute it.
37139         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37140         trailing slash behavior is broken.
37141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37142         * modules/unistd (Makefile.am): Substitute it.
37143         * lib/unistd.in.h (unlinkat): Declare replacement.
37144         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37145
37146         openat: fix fstatat bugs on Solaris 9
37147         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37148         stat.
37149         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37150
37151         test-unlinkat: enhance test, to expose Solaris 9 bug
37152         * tests/test-unlink.c (main): Factor guts...
37153         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37154         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37155         * tests/test-rmdir.c (main): Adjust caller.
37156         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37157         (unlinker): New helper function.
37158         (rmdirat): Enhance check.
37159         * modules/rmdir-tests (Depends-on): Add stdbool.
37160         * modules/unlink-tests (Depends-on): Likewise.
37161         (Files): Add test-unlink.h.
37162         * modules/openat-tests (Files): Likewise.
37163         (Depends-on): Add unlinkdir.
37164
37165         test-fstatat: new test, to expose Solaris 9 bugs
37166         * tests/test-stat.c (main): Factor guts...
37167         * tests/test-stat.h (test_stat_func): ...into new file.
37168         * tests/test-lstat.c (main): Factor guts...
37169         * tests/test-lstat.h (test_lstat_func): ...into new file.
37170         * tests/test-fstatat.c: New file.
37171         * modules/stat-tests (Files): Add test-stat.h.
37172         * modules/lstat-tests (Files): Add test-lstat.h.
37173         (Depends-on): Add stdbool.
37174         * modules/openat-tests (Depends-on): Add pathmax.
37175         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37176         (Makefile.am): Run new test.
37177
37178         remove: new module, for mingw and Solaris 9 bugs
37179         * modules/remove: New file.
37180         * lib/remove.c: Likewise.
37181         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37183         * modules/stdio (Makefile.am): Use them.
37184         * lib/stdio.in.h (remove): Declare replacement.
37185         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37186         * doc/posix-functions/remove.texi (remove): Likewise.
37187         * modules/remove-tests: New test.
37188         * tests/test-remove.c: Likewise.
37189
37190         unlink: new module, for Solaris 9 bug
37191         * modules/unlink: New file.
37192         * lib/unlink.c: Likewise.
37193         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37195         * modules/unistd (Makefile.am): Use them.
37196         * lib/unistd.in.h (stat): Declare replacement.
37197         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37198         * doc/posix-functions/unlink.texi (unlink): Likewise.
37199         * modules/unlink-tests: New test.
37200         * tests/test-unlink.c: Likewise.
37201
37202         lstat: fix Solaris 9 bug
37203         * lib/lstat.c (lstat): Also check for trailing slash on
37204         non-symlink, non-directories.  Use stat module to simplify logic.
37205         * doc/posix-functions/lstat.texi (lstat): Document it.
37206         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37207         (configure.ac): Check for symlink.
37208         * tests/test-lstat.c (main): Add more tests.
37209
37210         stat: add as dependency to other modules
37211         * modules/chown (Depends-on): Add stat.
37212         * modules/euidaccess (Depends-on): Likewise.
37213         * modules/fchdir (Depends-on): Likewise.
37214         * modules/isdir (Depends-on): Likewise.
37215         * modules/link (Depends-on): Likewise.
37216         * modules/lstat (Depends-on): Likewise.
37217         * modules/mkdir-p (Depends-on): Likewise.
37218         * modules/modechange (Depends-on): Likewise.
37219         * modules/open (Depends-on): Likewise.
37220         * modules/readlink (Depends-on): Likewise.
37221         * modules/same (Depends-on): Likewise.
37222
37223         stat: fix Solaris 9 bug
37224         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37225         slash.
37226         * lib/stat.c (rpl_stat): Work around it.
37227         * doc/posix-functions/stat.texi (stat): Update documentation.
37228
37229         stat: new module, for mingw bug
37230         * modules/stat: New file.
37231         * lib/stat.c: Likewise.
37232         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37234         * modules/sys_stat (Makefile.am): Use them.
37235         * lib/sys_stat.in.h (stat): Declare replacement.
37236         * lib/openat.c (fstatat): Deal with lstat and stat being function
37237         macros.
37238         * modules/openat (Depends-on): Add inline.
37239         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37240         * doc/posix-functions/stat.texi (stat): Likewise.
37241         * modules/stat-tests: New test.
37242         * tests/test-stat.c: Likewise.
37243
37244 2009-09-19  Jim Meyering  <meyering@redhat.com>
37245
37246         syntax-check: detect unnecessary inclusion of canonicalize.h
37247         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37248
37249 2009-09-19  Eric Blake  <ebb9@byu.net>
37250
37251         canonicalize-lgpl: adjust clients to use correct header
37252         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37253         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37254         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37255         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37256         * lib/progreloc.c (includes): Likewise.
37257
37258 2009-09-19  Jim Meyering  <meyering@redhat.com>
37259
37260         test-posixtm.c: correct a comment
37261         * tests/test-posixtm.c: Correct first-line comment.
37262         Spotted by Eric Blake.
37263
37264 2009-09-16  Jim Meyering  <meyering@redhat.com>
37265
37266         posixtm-tests: make T const-correct; add a test case
37267         * tests/test-posixtm.c (T): Declare const.
37268         Add a test for -(2^31+1).
37269         Remove useless can-succeed-only-in-2002 test.
37270
37271         posixtm-tests: adjust the sole failing test
37272         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37273         expected output matches what mktime now produces.  Cross-checked via
37274         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37275
37276         posixtm: move #ifdef'd tests into a new module
37277         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37278         * tests/test-posixtm.c: ... this new file.
37279         * modules/posixtm-tests: New module.
37280
37281 2009-09-19  Eric Blake  <ebb9@byu.net>
37282
37283         openat: simplify use of at-func.c
37284         * lib/at-func.c (includes): Include prerequisites here, to
37285         simplify requirements on client files.
37286         * lib/openat-priv.h: Add double-inclusion guard.
37287         * lib/faccessat.c (includes): Simplify.
37288         * lib/fchmodat.c (includes): Likewise.
37289         * lib/fchownat.c (includes): Likewise.
37290         * lib/mkdirat.c (includes): Likewise.
37291         * lib/mkfifoat.c (includes): Likewise.
37292         * lib/symlinkat.c (includes): Likewise.
37293
37294         openat: allow return of fd 0
37295         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37296         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37297         unistd-safer.
37298         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37299         <fcntl.h>; this module does not leak fds.
37300         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37301         must be allowed to return 0, leaving openat_safer to add the
37302         safety.
37303         (openat_permissive): Avoid writing to just-opened fd 2 if
37304         restoring the current directory fails.
37305         * lib/openat-die.c (openat_restore_fail): Add comment.
37306         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37307         (save_cwd): Guarantee safe fd, but without use of open_safer.
37308         * tests/test-openat.c: New test.
37309         * modules/openat-tests (Files, Makefile.am): Distribute and build
37310         new file.
37311
37312         relocatable-prog-wrapper: fix build
37313         * modules/relocatable-prog-wrapper (Files): Update name of
37314         canonicalize m4 file, broken on 2009-09-17.
37315         Reported by emad hajjar <aleppos@hotmail.com>.
37316
37317 2009-09-19  Bruno Haible  <bruno@clisp.org>
37318
37319         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37320         * lib/safe-alloc.c: Likewise.
37321         Reported by Ian Beckwith <ianb@erislabs.net>.
37322
37323 2009-09-18  Bruno Haible  <bruno@clisp.org>
37324
37325         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37326         Reported by <erobles@sensacd.com.mx>.
37327
37328 2009-09-17  Eric Blake  <ebb9@byu.net>
37329
37330         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37331         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37332         slashes when checking if last component is missing.
37333         * tests/test-canonicalize.c (main): Test this.
37334
37335         canonicalize, canonicalize-lgpl: honor // if distinct from /
37336         * modules/canonicalize (Files): Add double-slash-root.m4.
37337         * modules/canonicalize-lgpl (Files): Likewise.
37338         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37339         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37340         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37341         fallback definition.
37342         (canonicalize_filename_mode): Use it to protect //.
37343         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37344         (__realpath): Likewise.
37345         * tests/test-canonicalize.c (main): Test this.
37346         * tests/test-canonicalize-lgpl.c (main): Likewise.
37347         * modules/canonicalize-tests (Depends-on): Add same-inode.
37348         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37349
37350         canonicalize-lgpl: fix glibc bug with trailing slash
37351         * m4/canonicalize-lgpl.m4: Move contents...
37352         * m4/canonicalize.m4: ...here.
37353         (gl_CANONICALIZE_LGPL): Factor realpath check...
37354         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37355         glibc 2.3.5 bug, fixed 2005-04-27.
37356         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37357         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37358         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37359         * modules/canonicalize-lgpl (Files): Manage file rename.
37360         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37361         * modules/stdlib (Makefile.am): Substitute witness.
37362         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37363         is needed.
37364         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37365         replacement is required.
37366         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37367         * doc/glibc-functions/canonicalize_file_name.texi
37368         (canonicalize_file_name): Document this.
37369         * doc/posix-functions/realpath.texi (realpath): Likewise.
37370
37371         canonicalize-lgpl: reject non-directory with trailing slash
37372         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37373         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37374         catches failures in glibc 2.3.5.
37375         * tests/test-canonicalize.c (main): Likewise.
37376
37377         canonicalize-lgpl: use native realpath if it works
37378         * lib/canonicalize-lgpl.c (realpath): Guard with
37379         FUNC_REALPATH_WORKS.
37380         * lib/stdlib.in.h (realpath): Make declaration optional based on
37381         HAVE_REALPATH.
37382         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37383         native realpath works.
37384         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37385         * modules/stdlib (Makefile.am): Substitute witness.
37386
37387         canonicalize, canonicalize-lgpl: use <stdlib.h>
37388         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37389         (Include): Mention <stdlib.h>.
37390         (configure.ac): Mention functions we provide.
37391         * modules/canonicalize (configure.ac): Likewise.
37392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37393         realpath if canonicalize_file_name is missing.
37394         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37395         * modules/stdlib (Makefile.am): Substitute witnesses.
37396         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37397         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37398         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37399         * NEWS: Document this.
37400         * doc/glibc-functions/canonicalize_file_name.texi
37401         (canonicalize_file_name): Likewise.
37402         * doc/posix-functions/realpath.texi (realpath): Likewise.
37403         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37404
37405         test-canonicalize: consolidate into single C program
37406         * tests/test-canonicalize.sh: Delete; move setup into...
37407         * tests/test-canonicalize.c (main): ...the program, making it
37408         easier to run in debugger.  Add some tests.
37409         * modules/canonicalize-tests (Files): Remove unused file.
37410         (Depends-on): Add progname.
37411         (configure.ac, Makefile.am): Simplify.
37412
37413         test-canonicalize-lgpl: consolidate into single C program
37414         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37415         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37416         easier to run in debugger.  Add some tests.
37417         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37418         (configure.ac, Makefile.am): Simplify.
37419
37420         canonicalize: avoid resolvepath
37421         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37422         unnecessary checks.
37423         * lib/canonicalize.c (includes): Simplify.
37424         (canonicalize_file_name): Drop resolvepath implementation.
37425         * modules/canonicalize (Depends-on): Drop filenamecat.
37426
37427         canonicalize: don't lose errno
37428         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37429         over calls to free.
37430
37431         canonicalize: simplify errno handling
37432         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37433         assignment.
37434
37435         canonicalize, canonicalize-lgpl: update module dependencies
37436         * modules/canonicalize (Depends-on): Add extensions, lstat,
37437         pathmax, stdlib.
37438         (Files): Drop pathmax.h.
37439         (configure.ac): Adjust macro name.
37440         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37441         lstat, stdlib, sys_stat.
37442         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37443         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37444         extensions.
37445         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37446         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37447         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37448         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37449         declaration, if available.
37450         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37451         we can rely on the readlink module.
37452         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37453         (includes): Use <unistd.h> unconditionally.
37454
37455 2009-09-17  Eric Blake  <ebb9@byu.net>
37456
37457         maint: make Include sections of modules consistent
37458         * modules/alloca: Use only header name; no need to list #include.
37459         * modules/alloca-opt: Likewise.
37460         * modules/arpa_inet: Likewise.
37461         * modules/canon-host: Likewise.
37462         * modules/configmake: Likewise.
37463         * modules/dirent: Likewise.
37464         * modules/eealloc: Likewise.
37465         * modules/environ: Likewise.
37466         * modules/fchdir: Likewise.
37467         * modules/fcntl: Likewise.
37468         * modules/fcntl-h: Likewise.
37469         * modules/gethrxtime: Likewise.
37470         * modules/gettime: Likewise.
37471         * modules/ignore-value: Likewise.
37472         * modules/inet_ntop: Likewise.
37473         * modules/inet_pton: Likewise.
37474         * modules/inttypes: Likewise.
37475         * modules/isnand-nolibm: Likewise.
37476         * modules/isnanf-nolibm: Likewise.
37477         * modules/mbchar: Likewise.
37478         * modules/mbfile: Likewise.
37479         * modules/mbiter: Likewise.
37480         * modules/mbuiter: Likewise.
37481         * modules/netdb: Likewise.
37482         * modules/netinet_in: Likewise.
37483         * modules/nproc: Likewise.
37484         * modules/pagealign_alloc: Likewise.
37485         * modules/poll: Likewise.
37486         * modules/printf-frexp: Likewise.
37487         * modules/pthread: Likewise.
37488         * modules/putenv: Likewise.
37489         * modules/random_r: Likewise.
37490         * modules/relocatable-prog: Likewise.
37491         * modules/search: Likewise.
37492         * modules/select: Likewise.
37493         * modules/selinux-h: Likewise.
37494         * modules/settime: Likewise.
37495         * modules/signal: Likewise.
37496         * modules/size_max: Likewise.
37497         * modules/socklen: Likewise.
37498         * modules/ssize_t: Likewise.
37499         * modules/stdarg: Likewise.
37500         * modules/stdbool: Likewise.
37501         * modules/stddef: Likewise.
37502         * modules/stdint: Likewise.
37503         * modules/stdio: Likewise.
37504         * modules/stdlib: Likewise.
37505         * modules/string: Likewise.
37506         * modules/strings: Likewise.
37507         * modules/sys_file: Likewise.
37508         * modules/sys_ioctl: Likewise.
37509         * modules/sys_select: Likewise.
37510         * modules/sys_socket: Likewise.
37511         * modules/sys_stat: Likewise.
37512         * modules/sys_time: Likewise.
37513         * modules/sys_times: Likewise.
37514         * modules/sys_utsname: Likewise.
37515         * modules/sys_wait: Likewise.
37516         * modules/sysexits: Likewise.
37517         * modules/time: Likewise.
37518         * modules/times: Likewise.
37519         * modules/tmpfile: Likewise.
37520         * modules/trim: Likewise.
37521         * modules/unistd: Likewise.
37522         * modules/wchar: Likewise.
37523         * modules/wctype: Likewise.
37524
37525 2009-09-17  Bruno Haible  <bruno@clisp.org>
37526
37527         Make getdate.y compile on QNX and NetBSD 5 / i386.
37528         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37529         TIME_T_FITS_IN_LONG_INT.
37530         * lib/getdate.y (long_time_t): New type.
37531         (relative_time): Change type of 'seconds' field to long_time_t.
37532         (get_date): Update types of local variables. Check against overflow
37533         during conversion from long_time_t to time_t.
37534         Reported by Matt Kraai <kraai@ftbfs.org>
37535         and Hasso Tepper <hasso@netbsd.org>.
37536
37537 2009-09-17  Bruno Haible  <bruno@clisp.org>
37538
37539         * modules/COPYING: Update copyright years.
37540         * modules/README: Likeiwse.
37541         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37542         Reported by Ian Beckwith <ianb@erislabs.net>.
37543
37544 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37545
37546         * users.txt: Update references for gnuit package.
37547
37548 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37549
37550         * m4/getdelim.m4: Fix typo in copyright line.
37551
37552 2009-09-17  Bruno Haible  <bruno@clisp.org>
37553
37554         * lib/atoll.c: Use the standard header with GPL copyright.
37555         * lib/argz.in.h: Likewise.
37556         * lib/glob.c: Likewise.
37557         * lib/glob-libc.h: Likewise.
37558         * lib/random_r.c: Likewise.
37559         * lib/siglist.h: Likewise.
37560         * lib/strsignal.c: Likewise.
37561         Reported by Ian Beckwith <ianb@erislabs.net>.
37562
37563 2009-09-17  Eric Blake  <ebb9@byu.net>
37564
37565         rmdir: ensure correct dependency order
37566         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37567
37568 2009-09-17  Bruno Haible  <bruno@clisp.org>
37569
37570         Disable assertion that fails on NetBSD 5 / i386.
37571         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37572         Reported by Sam Steingold <sds@gnu.org>
37573         and Hasso Tepper <hasso@netbsd.org>.
37574
37575 2009-09-16  Eric Blake  <ebb9@byu.net>
37576
37577         unlinkdir: port to mingw
37578         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37579         on which no one can unlink a directory.
37580
37581         stdlib: sort witness names
37582         * modules/stdlib (Makefile.am): Sort replacements.
37583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37584         * lib/stdlib.in.h: Likewise.
37585
37586         parse-duration-tests: avoid link failure
37587         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37588         LIBINTL.
37589         Reported by Tom G. Christensen.
37590
37591         openat-tests: ensure unlinkat behaves like rmdir
37592         * tests/test-rmdir.c (main): Factor guts...
37593         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37594         * modules/rmdir-tests (Files): Ship new file.
37595         * modules/openat-tests: New test.
37596         * tests/test-unlinkat.c: Likewise.
37597
37598         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37599         * modules/rmdir-errno (Status, Notice): Now obsolete.
37600
37601         rmdir: work around cygwin 1.5.x and mingw bugs
37602         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37603         * lib/rmdir.c (rmdir): Work around it.
37604         * modules/rmdir (Status, Notice): No longer obsolete.
37605         (Files): Add dos.m4.
37606         (Depends-on): Add unistd.
37607         (configure.ac): Set witnesses.
37608         (License): Relax to LGPLv2+.
37609         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37610         * modules/unistd (Makefile.am): Substitute witnesses.
37611         * lib/unistd.in.h (rmdir): Declare replacement.
37612         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37613         * modules/rmdir-tests: New tests.
37614         * tests/test-rmdir.c: Likewise.
37615
37616 2009-09-15  Eric Blake  <ebb9@byu.net>
37617
37618         fchdir: improve use of replacement functions
37619         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37620         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37621         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37622         REPLACE_CLOSEDIR.
37623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37624         * modules/sys_stat (Makefile.am): Substitute correct witness.
37625         * modules/dirent (Makefile.am): Likewise.
37626         * modules/unistd (Makefile.am): Likewise.
37627         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37628         * lib/unistd.in.h (dup): Likewise.
37629         * lib/sys_stat.in.h (fstat): Likewise.
37630
37631         maint: ignore gnulib-tool temp files
37632         * .gitignore: Ignore files created during gnulib-tool --test.
37633
37634 2009-09-13  Jim Meyering  <meyering@redhat.com>
37635
37636         posixtm: don't reject a time that specify "60" as the number of seconds
37637         * lib/posixtm.c (posixtime): The code to reject invalid dates
37638         would also reject a time specified with the .60 suffix.
37639         But POSIX allows that, in order to accommodate leap seconds.
37640         So don't reject it.
37641         (main): Adjust tests accordingly.
37642         * modules/posixtm (Depends-on): Add stpcpy.
37643
37644 2009-09-11  Jim Meyering  <meyering@redhat.com>
37645
37646         announce-gen: include [$release_type] in emitted Subject:
37647         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37648         e.g., [stable] in the emitted Subject: line.
37649
37650 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37651
37652         Remove obsolete macros from several modules.
37653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37654         obsolete Autoconf macros with their modern counterparts.
37655         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37656         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37657         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37658         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37659         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37660         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37662         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37663         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37664         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37665         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37666         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37667         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37668         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37669         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37671         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37672         * m4/time_r.m4 (gl_TIME_R): Likewise.
37673         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37674         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37675         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37676
37677         Fix copyright header in build-aux scripts.
37678         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37679         recommendation.
37680         * build-aux/ncftpput-ftp: Likewise.
37681         * build-aux/update-copyright: Likewise.
37682
37683 2009-09-09  Eric Blake  <ebb9@byu.net>
37684
37685         test-link: allow Linux choice of errno
37686         * tests/test-link.c (main): Relax test for alternate error.
37687
37688         strndup: fix improper m4 caching
37689         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37690         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37691         (gl_PREREQ_STRNDUP): Delete.
37692         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37693         * modules/string (Makefile.am): Substitute it.
37694         * lib/string.in.h (strndup): Modernize prototype.
37695
37696         getcwd: port to mingw
37697         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37698         different from the POSIX assumptions made throughout the getcwd
37699         module; fortunately, the mingw getcwd does not need replacement.
37700         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37701         * modules/getcwd-tests: New test.
37702         * tests/test-getcwd.c: Likewise.
37703
37704         link: fix platform bugs
37705         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37706         * lib/link.c (link): Work around them.  Fix related mingw bug.
37707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37708         * modules/unistd (Makefile.am): Substitute it.
37709         * lib/unistd.in.h (link): Declare replacement.
37710         * doc/posix-functions/link.texi (link): Document this.
37711         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37712
37713         test-link: consolidate into single C program, test more cases
37714         * tests/test-link.sh: Delete.
37715         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37716         at least Cygwin and Solaris.
37717         * modules/link-tests (Files): Remove unused file.
37718         (Depends-on): Add errno, sys_stat.
37719         (Makefile.am): Simplify.
37720
37721 2009-09-08  Bruno Haible  <bruno@clisp.org>
37722
37723         Work around towlower, towupper bug on mingw.
37724         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37725         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37726         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37727         * doc/posix-functions/towupper.texi: Likewise.
37728         Reported by Eric Blake.
37729
37730 2009-09-08  Jim Meyering  <meyering@redhat.com>
37731
37732         build: don't try to run autoheader if we don't use it
37733         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37734         is not used in configure.ac.
37735
37736 2009-09-08  Eric Blake  <ebb9@byu.net>
37737
37738         euidaccess: fix compilation error
37739         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37740
37741         rawmemchr: relax license
37742         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37743         okay.
37744         Reported by Jim Meyering.
37745
37746         mkfifoat: new module
37747         * modules/mkfifoat: New file.
37748         * lib/mkfifoat.c: Likewise.
37749         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37750         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37751         * modules/sys_stat (Makefile.am): Use them.
37752         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37753         * MODULES.html.sh (File system functions): Mention module.
37754         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37755         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37756         * modules/mkfifoat-tests: New test.
37757         * tests/test-mkfifoat.c: Likewise.
37758
37759         strchrnul: relax license
37760         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37761         okay.
37762         Reported by Jim Meyering.
37763
37764 2009-09-08  Eric Blake  <ebb9@byu.net>
37765
37766         fstatat: fix compilation on Solaris
37767         * lib/fstatat.c (includes): Add fcntl.h.
37768         Reported by Pádraig Brady.
37769
37770 2009-09-07  Eric Blake  <ebb9@byu.net>
37771
37772         rename: modernize replacement
37773         * modules/rename (Depends-on): Add stdio.
37774         (configure.ac): Declare witness.
37775         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37776         stdio take care of replacement.
37777         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37778         * modules/stdio (Makefile.am): Substitute them.
37779         * lib/stdio.in.h (rename): Declare replacement.
37780         * lib/rename.c (includes): Allow cross-compilation to non-windows
37781         machines.
37782         * doc/posix-functions/rename.texi (rename): Improve
37783         documentation.
37784
37785         stdio: sort witness names
37786         * modules/stdio (Makefile.am): Sort replacements.
37787         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37788         * lib/stdio.in.h: Likewise.
37789
37790         getcwd: minor cleanups
37791         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37792         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37793
37794         openat: provide more convenience names
37795         * modules/faccessat (configure.ac): Add C witness.
37796         * lib/unistd.in.h (readlinkat): Fix typo.
37797         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37798         convenience wrappers.
37799         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37800         wrappers in syntax checks.
37801
37802 2009-09-06  Eric Blake  <ebb9@byu.net>
37803
37804         doc: fix comments in recent patches
37805         * lib/faccessat.c: Mention correct function.
37806         * lib/fchmodat.c: Likewise.
37807         * lib/fchownat.c: Likewise.
37808         * lib/symlinkat.c: Likewise.
37809         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37810         constants.
37811
37812         faccessat, symlinkat: continue cleanup of previous patch
37813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37814         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37815         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37817         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37818         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37819         set.
37820
37821 2009-09-06  Bruno Haible  <bruno@clisp.org>
37822
37823         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37824         (fstatat): Declare if GNULIB_FSTATAT is set.
37825         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37826         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37827         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37828         * modules/fcntl-h (Files): Remove m4/openat.m4.
37829         * modules/sys_stat (Files): Remove m4/openat.m4.
37830         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37831         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37832         * modules/unistd (Files): Remove m4/openat.m4.
37833         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37834         GNULIB_OPENAT.
37835         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37836         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37838         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37839         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37840         gl_OPENAT_DEFAULTS.
37841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37842         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37843         Don't require gl_OPENAT_DEFAULTS.
37844         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37845         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37846         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37847         (gl_OPENAT_DEFAULTS): Remove macro.
37848
37849 2009-09-06  Bruno Haible  <bruno@clisp.org>
37850
37851         * modules/openat (configure.ac): Remove unneeded witness.
37852
37853 2009-09-06  Bruno Haible  <bruno@clisp.org>
37854
37855         Set errno to ENOSYS when a function is entirely unsupported.
37856         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37857         EOPNOTSUPP.
37858         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37859         * modules/chown (Depends-on): Remove errno.
37860
37861 2009-09-06  Bruno Haible  <bruno@clisp.org>
37862
37863         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37864
37865 2009-09-06  Bruno Haible  <bruno@clisp.org>
37866
37867         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37868
37869 2009-09-06  Ben Pfaff  <blp@gnu.org>
37870             Bruno Haible  <bruno@clisp.org>
37871
37872         Work around a glibc bug in strtok_r.
37873         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37874         Undefine if UNDEFINE_STRTOK_R is set.
37875         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37876         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37877         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37878         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37879         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37880         UNDEFINE_STRTOK_R.
37881         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37882
37883 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37884
37885         exclude: minor fix
37886         * lib/exclude.c: Include wctype.h
37887
37888 2009-09-06  Akim Demaille  <demaille@gostai.com>
37889
37890         bootstrap: improve error message
37891         * build-aux/bootstrap (find_tool): Upon failure, report the list
37892         of candidates.
37893         Honor the initial value of the envvar.
37894
37895 2009-09-05  Eric Blake  <ebb9@byu.net>
37896
37897         symlinkat: new module
37898         * modules/symlinkat: New file.
37899         * lib/symlinkat.c: Likewise.
37900         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37901         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37902         * modules/unistd (Makefile.am): Use them.
37903         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37904         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37905         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37906         * MODULES.html.sh (File system functions): Mention module.
37907         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37908         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37909         * modules/symlinkat-tests: New test.
37910         * tests/test-symlinkat.c: Likewise.
37911
37912         test-openat-safer: add more checks
37913         * tests/test-openat-safer.c (main): Check more code paths.
37914
37915 2009-09-05  Jim Meyering  <meyering@redhat.com>
37916
37917         syntax-check: detect unnecessary inclusion of openat.h
37918         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37919
37920 2009-09-05  Bruno Haible  <bruno@clisp.org>
37921
37922         Support towlower, towupper.
37923         * doc/posix-functions/towlower.texi: Mention module wctype.
37924         * doc/posix-functions/towupper.texi: Likewise.
37925         * lib/wctype.in.h (towlower, towupper): New functions.
37926         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37927         (ASSERT): New macro.
37928         (e): New variable.
37929         (main): Test also towlower, towupper. Test WEOF argument.
37930         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37931
37932 2009-09-05  Bruno Haible  <bruno@clisp.org>
37933
37934         Fix conversion behaviour when the input is invalid.
37935         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37936         mark occurring in first pass of indirect conversion.
37937         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37938         input.
37939         Found by clang's static analyzer.
37940
37941 2009-09-05  Bruno Haible  <bruno@clisp.org>
37942
37943         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37944         where direct conversion is possible.
37945
37946 2009-09-04  Eric Blake  <ebb9@byu.net>
37947
37948         openat: fail with ENOENT on empty name
37949         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37950         buffer.
37951
37952         link-follow: fix logic bug in prior patch
37953         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37954         reversed sense of yes and no in prior patch.  Avoid confusing
37955         compilation failure with desired semantics.
37956
37957         link-follow: accomodate mingw and cross-compilation
37958         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37959         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37960         cross-compilation results to -1, to make linkat easier to
37961         implement when cross-compiling.  Trivially support mingw.
37962         * modules/link-follow (configure.ac): Call new name.
37963         * NEWS: Mention this.
37964
37965 2009-09-03  Eric Blake  <ebb9@byu.net>
37966
37967         faccessat: compile replacement
37968         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37969         needed.
37970
37971         fts: fix compilation error
37972         * lib/fts.c (includes): Re-add "openat.h", for
37973         openat_needs_fchdir.
37974
37975         faccessat: new module
37976         * modules/faccessat: New file.
37977         * lib/faccessat.c: Likewise.
37978         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37980         * modules/unistd (Makefile.am): Use it.
37981         * lib/unistd.in.h (faccessat): Declare it.
37982         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37983         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37984         * MODULES.html.sh (File system functions): Mention it.
37985         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37986         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37987
37988         euidaccess: prefer POSIX over non-standard implementation
37989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37990         * lib/euidaccess.c (euidaccess): Use it if available.
37991
37992         openat: make template easier to use
37993         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37994         AT_FUNC_F2 to be undefined.
37995         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37996         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37997         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37998         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37999         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38000         Likewise.
38001         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38002         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38003         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38004         Likewise.
38005
38006         openat: declare in POSIX headers
38007         * NEWS: Mention this.
38008         * modules/openat (configure.ac): Declare witnesses.
38009         (Depends-on): Add fcntl-h, sys_stat, unistd.
38010         (Include): Mention correct headers.
38011         * modules/fcntl-h (Depends-on): Add link-warning.
38012         (Files): Add openat.m4.
38013         (Makefile.am): Substitute witnesses.
38014         * modules/sys_stat (Files, Makefile.am): Likewise.
38015         * modules/unistd (Files, Makefile.am): Likewise.
38016         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38017         (gl_OPENAT_DEFAULTS): New macro.
38018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38020         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38021         (SYS_STAT_H): Remove unused variable.
38022         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38023         * lib/fcntl--.h (includes): Remove unneeded header.
38024         * lib/openat-safer.c (includes): Likewise.
38025         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38026         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38027         appropriate headers.
38028         (__OPENAT_PREFIX): Delete.
38029         * lib/fcntl.in.h (openat): Provide declaration.
38030         (AT_FDCWD): Fix Solaris bug.
38031         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38032         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38033         * lib/fchmodat.c (includes):  Adjust to find declaration.
38034         * lib/fchownat.c (includes): Likewise.
38035         * lib/mkdirat.c (includes): Likewise.
38036         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38037         still visible.
38038
38039 2009-09-02  Eric Blake  <ebb9@byu.net>
38040
38041         errno: use consistently
38042         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38043         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38044         * lib/canonicalize.c (ELOOP): Likewise.
38045         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38046         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38047         * lib/lchown.c (EOPNOTSUPP): Likewise.
38048         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38049         * lib/savewd.c (ESTALE): Likewise.
38050         * lib/settime.c (ENOSYS): Likewise.
38051         * lib/utimens.c (ENOSYS): Likewise.
38052         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38053         * lib/chdir-safer.c (ELOOP): Likewise.
38054         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38055         * modules/c-stack (Depends-on): Add errno.
38056         * modules/canonicalize (Depends-on): Likewise.
38057         * modules/chdir-safer (Depends-on): Likewise.
38058         * modules/fdopendir (Depends-on): Likewise.
38059         * modules/inet_ntop (Depends-on): Likewise.
38060         * modules/inet_pton (Depends-on): Likewise.
38061         * modules/lchown (Depends-on): Likewise.
38062         * modules/openat (Depends-on): Likewise.
38063         * modules/savewd (Depends-on): Likewise.
38064         * modules/settime (Depends-on): Likewise.
38065         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38066
38067         fts: avoid leaking fds
38068         * modules/fts (Depends-on): Add cloexec.
38069         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38070         flag.
38071
38072         fts: make directory fds more robust
38073         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38074         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38075
38076         backupfile, chdir-long, fts, savedir: make safer
38077         * lib/backupfile.c (includes): Use "dirent--.h", since
38078         numbered_backup can write to stderr during readdir.
38079         * lib/savedir.c (includes): Likewise.
38080         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38081         emulation can write to stderr on failure.
38082         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38083         * lib/getcwd.c: Document why opendir_safer is unused.
38084         * lib/glob.c: Likewise.
38085         * lib/scandir.c: Likewise.
38086         * lib/openat-proc.c: Likewise, for open_safer.
38087         * modules/backupfile (Depends-on): Add dirent-safer.
38088         * modules/savedir (Depends-on): Likewise.
38089         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38090         * modules/chdir-long (Depends-on): Add openat-safer.
38091
38092         openat-safer: new module
38093         * modules/openat-safer: New file.
38094         * lib/openat-safer.c: Likewise.
38095         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38096         * lib/fcntl-safer.h (openat_safer): Declare.
38097         * lib/fcntl--.h (openat): Override.
38098         * MODULES.html.sh (File descriptor based I/O): Mention it.
38099         * lib/openat.h: Add double-inclusion guards.
38100         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38101         "fcntl--.h", so we can implement openat.
38102         * modules/openat-safer-tests: New test.
38103         * tests/test-openat-safer.c: New file.
38104
38105         dirent-safer: new module
38106         * modules/dirent-safer: New file.
38107         * lib/dirent--.h: Likewise.
38108         * lib/dirent-safer.h: Likewise.
38109         * lib/opendir-safer.c: Likewise.
38110         * m4/dirent-safer.m4: Likewise.
38111         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38112         * modules/dirent-safer-tests: New test.
38113         * tests/test-dirent-safer.c: New file.
38114         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38115
38116         fdopendir: optimize on mingw
38117         * lib/unistd.in.h (_gl_directory_name): New prototype.
38118         * lib/fchdir.c (_gl_directory_name): Implement it.
38119         (fchdir): Use it to simplify implementation.
38120         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38121         fchdir, when available, to avoid calling [f]chdir().
38122
38123         fdopendir: split into its own module
38124         * lib/openat.c (fdopendir): Move...
38125         * lib/fdopendir.c: ...into new file.
38126         * modules/fdopendir: New module.
38127         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38128         * modules/openat (Depends-on): Add fdopendir.
38129         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38130         fdopendir here.
38131         * modules/savedir (Depends-on): Only need fdopendir, not full
38132         openat.
38133         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38134         * lib/openat.h (fdopendir): Drop prototype.
38135         * lib/dirent.in.h (fdopendir): Provide prototype.
38136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38137         * modules/dirent (Makefile.am): Substitute them.
38138         * MODULES.html.sh (File system functions): Mention it.
38139         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38140         * modules/fdopendir-tests: New file.
38141         * tests/test-fdopendir.c: Likewise.
38142
38143         fchdir: use more consistent macro convention
38144         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38145         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38146         REPLACE_FCHDIR, rather than relying on config.h macros.
38147         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38148         inside a single make-time REPLACE_FCHDIR block, rather than using
38149         the config.h FCHDIR_REPLACEMENT.
38150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38151         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38152         Manage fstat replacement.
38153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38154         REPLACE_FCHDIR.
38155         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38156         (Makefile.am): Substitute REPLACE_FCHDIR.
38157         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38158         FCHDIR_REPLACEMENT.
38159         * lib/dup-safer.c (dup_safer): Likewise.
38160         * lib/dup2.c (rpl_dup2): Likewise.
38161         * lib/dup3.c (rpl_dup3): Likewise.
38162         * lib/open.c (rpl_open): Likewise.
38163
38164         fchdir: simplify error handling, and support dup3
38165         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38166         stdbool, malloc-posix, realloc-posix.
38167         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38168         (ensure_dirs_slot): Return false on allocation failure.
38169         (rpl_dup2): Delete.
38170         (_gl_register_dup): New function.
38171         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38172         (_gl_register_fd): Close fd on allocation failure.
38173         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38174         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38175         prototype.
38176         (rpl_dup2_fchdir): Delete prototype.
38177         * lib/open.c (open): Update caller.
38178         * lib/dup2.c (dup2): Track fchdir metadata.
38179         * lib/dup3.c (dup3): Likewise.
38180         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38181         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38182
38183 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38184
38185         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38186         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38187         don't pass arguments to AC_OUTPUT.
38188
38189 2009-09-02  Bruno Haible  <bruno@clisp.org>
38190
38191         * modules/mkdtemp (License): Relicense under LGPLv2+.
38192         Reported by Paolo Bonzini.
38193
38194 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38195
38196         Replace uses of obsolete autoconf macros in Jim's modules.
38197         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38198         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38199         can evoke a warning from autoconf when run with -Wobsolete
38200         enabled.  They were declared obsolete for good reasons (see
38201         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38202         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38203         should not continue using the deprecated macros.
38204         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38205         obsolete Autoconf macros with modern counterparts.
38206         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38207         * m4/dos.m4 (gl_AC_DOS): Likewise.
38208         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38209         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38210         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38211         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38212         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38213         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38214         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38215         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38216         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38217         Likewise.
38218         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38219         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38220         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38221         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38222         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38223         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38224
38225 2009-09-01  Eric Blake  <ebb9@byu.net>
38226
38227         fchdir: fix off-by-one bug in previous patch
38228         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38229         (_gl_unregister_fd): Delete useless if.
38230
38231 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38232
38233         maint.mk: sort the list of syntax-check rules
38234         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38235         easier to get a sense of progress when the rules are run sequentially
38236         and take a long time.
38237
38238 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38239
38240         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38241         * modules/netinet_in: Likewise.
38242         * modules/sys_file: Likewise.
38243         * modules/sys_ioctl: Likewise.
38244         * modules/sys_select: Likewise.
38245         * modules/sys_socket: Likewise.
38246         * modules/sys_stat: Likewise.
38247         * modules/sys_time: Likewise.
38248         * modules/sys_times: Likewise.
38249         * modules/sys_utsname: Likewise.
38250         * modules/sys_wait: Likewise.
38251
38252 2009-09-01  Jim Meyering  <meyering@redhat.com>
38253
38254         fts: help ensure that return values are not ignored
38255         * lib/fts_.h (__GNUC_PREREQ): Define.
38256         (__attribute_warn_unused_result__): Define.
38257         (fts_children, fts_close, fts_open, fts_read): Declare with
38258         __attribute_warn_unused_result__.
38259
38260         fts: fts_close now fails also when closing a dir file descriptor fails
38261         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38262         and propagate to caller, along with errno.
38263
38264         announce-gen: correct formatting in --help output
38265         * build-aux/announce-gen (usage): Move the one-line description in
38266         --help output "up", to where it belongs, just after Usage:.
38267
38268 2009-08-31  Eric Blake  <ebb9@byu.net>
38269
38270         fchdir: port to mingw
38271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38272         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38273         opened, then use a substitute.
38274         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38275         replacement.
38276         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38277         (_gl_register_fd): No need to check stat if open already filters
38278         all directories.
38279         (fchdir): Fix error condition to match POSIX.
38280         * modules/fchdir (Depends-on): Add sys_stat.
38281         * doc/posix-functions/open.texi (open): Document the limitation.
38282         * modules/fchdir-tests: New file.
38283         * tests/test-fchdir.c: Likewise.
38284
38285         canonicalize: allow cross-testing from cygwin to mingw
38286         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38287         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38288         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38289         Likewise.
38290         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38291         target does not support symlinks.
38292         * tests/test-canonicalize-lgpl.sh: Likewise.
38293
38294         chown: avoid compilation warning on mingw
38295         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38296         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38297         mingw.
38298         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38299         * modules/chown (Depends-on): Add errno.
38300
38301 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38302
38303         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38304         command.
38305
38306 2009-08-31  Jim Meyering  <meyering@redhat.com>
38307
38308         canonicalize: remove useless initialization
38309         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38310         initialization of local, "end".
38311
38312 2009-08-30  Bruno Haible  <bruno@clisp.org>
38313
38314         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38315         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38316         ENOSYS.
38317
38318 2009-08-30  Bruno Haible  <bruno@clisp.org>
38319
38320         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38321         /usr/xpg4/bin/tr when it exists.
38322         * tests/test-pipe-filter-gi1.sh: Likewise.
38323
38324 2009-08-30  Bruno Haible  <bruno@clisp.org>
38325
38326         Work around deficient /usr/bin/id program on Solaris.
38327         * tests/test-file-has-acl.sh (ID): New variable.
38328         * tests/test-set-mode-acl.sh (ID): Likewise.
38329         * tests/test-copy-acl.sh (ID): Likewise.
38330         * tests/test-copy-file.sh (ID): Likewise.
38331
38332 2009-08-30  Bruno Haible  <bruno@clisp.org>
38333
38334         New module 'xstriconveh'.
38335         * lib/xstriconveh.h: New file.
38336         * lib/xstriconveh.c: New file.
38337         * modules/xstriconveh: New file.
38338
38339 2009-08-30  Bruno Haible  <bruno@clisp.org>
38340
38341         Make it easier to use mem_cd_iconveh.
38342         * lib/striconveh.h (iconveh_t): New type.
38343         (iconveh_open, iconveh_close): New declarations.
38344         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38345         with a single 'const iconveh_t *' argument.
38346         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38347         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38348         with a single 'const iconveh_t *' argument.
38349         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38350         * tests/test-striconveh.c (main): Update.
38351         * NEWS: Mention the change.
38352
38353 2009-08-30  Bruno Haible  <bruno@clisp.org>
38354
38355         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38356         problem.
38357
38358 2009-08-30  Bruno Haible  <bruno@clisp.org>
38359
38360         Work around iconv_open problem on Solaris.
38361         * lib/iconv_open-solaris.gperf: New file.
38362         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38363         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38364         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38365         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38366         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38367         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38368
38369 2009-08-29  Jim Meyering  <meyering@redhat.com>
38370
38371         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38372         * top/maint.mk (cvs-check): Remove target; it was just an alias
38373         to the better-named vc-diff-check.
38374         (maintainer-distcheck): Remove rule.  It was used only from
38375         the (alpha/beta/major) target, and all of its commands but one
38376         were coreutils-specific.
38377         (vc-dist): Remove rule.
38378         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38379         Run vc-diff-check, not vc-dist.
38380         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38381
38382 2009-08-27  Bruno Haible  <bruno@clisp.org>
38383
38384         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38385         of 0.
38386
38387 2009-08-27  Bruno Haible  <bruno@clisp.org>
38388
38389         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38390         compilers.
38391         * doc/func.texi: Document the SunPRO C bug.
38392
38393 2009-08-27  Bruno Haible  <bruno@clisp.org>
38394
38395         Fix link error on Solaris.
38396         * tests/test-parse-duration.c (xstrdup): Remove function.
38397
38398 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38399
38400         ignore-value: handle pointer types, too
38401         * lib/ignore-value.h (__attribute__): Remove definition.
38402         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38403         of a more concise and more-often effective "(void) i" statement.
38404         (ignore_ptr): New function to suppress warnings from functions that
38405         return pointers, and to make it explicit that one function doesn't
38406         handle all cases.
38407
38408 2009-08-25  Bruno Haible  <bruno@clisp.org>
38409
38410         dup2: work around a Linux bug.
38411         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38412         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38413         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38414         Reported by Simon Josefsson.
38415
38416 2009-08-25  Jim Meyering  <meyering@redhat.com>
38417
38418         libguestfs uses gnulib
38419         * users.txt: Add libguestfs.
38420
38421 2009-08-24  Eric Blake  <ebb9@byu.net>
38422
38423         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38424         * lib/pipe2.c (includes): Add binary-io.h.
38425         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38426
38427 2009-08-24  Bruno Haible  <bruno@clisp.org>
38428
38429         Tolerate declared but missing accept4 syscall.
38430         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38431         available.
38432         * lib/sys_socket.in.h (accept4): If the function is already present,
38433         override it.
38434         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38435         * modules/accept4 (Makefile.am): Compile accept4.c always.
38436         Reported by Paolo Bonzini and Eric Blake.
38437
38438 2009-08-23  Bruno Haible  <bruno@clisp.org>
38439
38440         New module 'accept4'.
38441         * lib/sys_socket.in.h (accept4): New declaration.
38442         * lib/accept4.c: New file.
38443         * m4/accept4.m4: New file.
38444         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38445         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38446         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38447         HAVE_ACCEPT4.
38448         * modules/accept4: New file.
38449         * doc/glibc-functions/accept4.texi: Mention the new module.
38450
38451 2009-08-24  Jim Meyering  <meyering@redhat.com>
38452
38453         progname: also set global program_invocation_name, when possible
38454         Before this change, a libtool-enabled program that calls glibc's
38455         error function would report the program name as
38456         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38457         * modules/progname (configure.ac): Check for a declaration of
38458         program_invocation_name.
38459         * lib/progname.c:  Include <errno.h>.
38460         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38461         Set program_invocation_name.
38462
38463 2009-08-23  Bruno Haible  <bruno@clisp.org>
38464
38465         * lib/dup3.c: Include <string.h>.
38466
38467 2009-08-23  Bruno Haible  <bruno@clisp.org>
38468
38469         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38470         * lib/pipe2.c (pipe2): Likewise.
38471         Suggested by Eric Blake.
38472
38473 2009-08-23  Bruno Haible  <bruno@clisp.org>
38474
38475         Tolerate declared but missing dup3 syscall.
38476         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38477         * lib/unistd.in.h (dup3): If the function is already present,
38478         override it.
38479         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38480         * modules/dup3 (Makefile.am): Compile dup3.c always.
38481         Reported by Paolo Bonzini.
38482
38483 2009-08-23  Bruno Haible  <bruno@clisp.org>
38484
38485         Tolerate declared but missing pipe2 syscall.
38486         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38487         available.
38488         * lib/unistd.in.h (pipe2): If the function is already present,
38489         override it.
38490         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38491         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38492         Reported by Paolo Bonzini.
38493
38494 2009-08-23  Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/pipe2.c (pipe2): Move #ifs inside function.
38497
38498 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38499
38500         quotearg: document limitations of quote_these_too
38501         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38502         those limitations are created.
38503         * lib/quotearg.h (set_char_quoting): Document that digits and
38504         letters that are special after backslash are not permitted.
38505         (quotearg_char): Cross-reference set_char_quoting documentation.
38506
38507 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38508
38509         quotearg: implement custom_quoting_style
38510         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38511         right_quote fields.
38512         (set_custom_quoting): New public function.
38513         (quotearg_buffer_restyled): Add left_quote and right_quote
38514         arguments, handle them very much like locale quoting, and update
38515         all uses.
38516         (quotearg_n_custom): New public function.
38517         (quotearg_n_custom_mem): New public function.
38518         (quotearg_custom): New public function.
38519         (quotearg_custom_mem): New public function.
38520         * lib/quotearg.h: Prototype and document new public functions.
38521         (enum quoting_style): For escape_quoting_style and
38522         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38523         ignored even though they're otherwise like c_quoting_style.
38524         Add custom_quoting_style member and document with comparison to
38525         clocale_quoting_style.
38526         * tests/test-quotearg.c (custom_quotes): New array.
38527         (custom_results): New array.
38528         (main): Extend to test custom quoting.
38529
38530 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38531
38532         quotearg: fix right quote escaping when it's in quote_these_too
38533         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38534         quote, be sure to prepend only one backslash.
38535         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38536         (main): Test it.
38537
38538 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38539
38540         quotearg-tests: test escaping of embedded locale quotes
38541         * tests/test-quotearg.c (struct result_strings): Add member for
38542         new input.
38543         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38544         (inputs): Add new input.
38545         (results_g): Add expected results.
38546         (flag_results): Likewise.
38547         (locale_results): Likewise.
38548         (compare_strings): Check those.
38549
38550 2009-08-23  Bruno Haible  <bruno@clisp.org>
38551
38552         Tests for module 'dup3'.
38553         * modules/dup3-tests: New file.
38554         * tests/test-dup3.c: New file.
38555
38556         New module 'dup3'.
38557         * lib/unistd.in.h (dup3): New declaration.
38558         * lib/dup3.c: New file.
38559         * m4/dup3.m4: New file.
38560         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38561         HAVE_DUP3.
38562         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38563         * modules/dup3: New file.
38564         * doc/glibc-functions/dup3.texi: Mention the new module.
38565
38566 2009-08-23  Bruno Haible  <bruno@clisp.org>
38567
38568         Tweak the dup2 test.
38569         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38570         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38571         the test file is still empty. Fix argument order of lseek.
38572
38573 2009-08-23  Bruno Haible  <bruno@clisp.org>
38574
38575         Avoid test link errors when the modules getopt-gnu, gettext are used.
38576         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38577         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38578
38579 2009-08-23  Bruno Haible  <bruno@clisp.org>
38580
38581         Fix getdtablesize() on mingw.
38582         * lib/getdtablesize.c (getdtablesize): Implement differently.
38583         * lib/unistd.in.h (getdtablesize): Improve comment.
38584
38585 2009-08-23  Bruno Haible  <bruno@clisp.org>
38586
38587         New module 'mkostemp'.
38588         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38589         * lib/stdlib.in.h (mksotemp): New declaration.
38590         * lib/mkostemp.c: New file, from glibc with modifications.
38591         * lib/tempname.h (GT_FILE): Remove outdated comment.
38592         (gen_tempname): Add flags argument.
38593         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38594         (__GT_FILE): Map to 1.
38595         (small_open, large_open): Remove macros.
38596         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38597         * lib/mkstemp.c (mkstemp): Update.
38598         * lib/mkdtemp.c (mkdtemp): Likewise.
38599         * m4/mkostemp.m4: New file.
38600         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38601         HAVE_MKOSTEMP.
38602         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38603         HAVE_MKOSTEMP.
38604         * modules/mkostemp: New file, based on modules/mkstemp.
38605         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38606         * NEWS: Mention the change.
38607
38608 2009-08-23  Bruno Haible  <bruno@clisp.org>
38609
38610         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38611         Reported by Eric Blake.
38612
38613 2009-08-23  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38616         Reported by Eric Blake.
38617
38618 2009-08-23  Bruno Haible  <bruno@clisp.org>
38619
38620         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38621         * modules/pipe2 (Depends-on): Likewise.
38622
38623 2009-08-23  Eric Blake  <ebb9@byu.net>
38624
38625         fcntl-h: add O_TTY_INIT support
38626         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38627         * tests/test-fcntl-h.c (o): Test it.
38628         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38629
38630         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38631         * modules/fcntl: Move <fcntl.h> header replacement...
38632         * modules/fcntl-h: ...to new name, so as not to collide with
38633         like-named function.
38634         * tests/test-fcntl.c: Rename...
38635         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38636         * modules/fcntl-tests: Rename...
38637         * modules/fcntl-h-tests: ...to this.  Update test file name.
38638         * modules/chdir-long (Depends-on): Update clients.
38639         * modules/chdir-safer (Depends-on): Likewise.
38640         * modules/fcntl-safer (Depends-on): Likewise.
38641         * modules/fts (Depends-on): Likewise.
38642         * modules/mkancesdirs (Depends-on): Likewise.
38643         * modules/mkdir-p (Depends-on): Likewise.
38644         * modules/open (Depends-on): Likewise.
38645         * modules/savewd (Depends-on): Likewise.
38646         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38647         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38648
38649 2009-08-22  Bruno Haible  <bruno@clisp.org>
38650
38651         * modules/binary-io (License): Relicense under LGPL.
38652         * modules/pipe2 (License): Likewise.
38653
38654 2009-08-22  Bruno Haible  <bruno@clisp.org>
38655
38656         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38657         return value.
38658         * lib/pipe-filter-gi.c (filter_init): Likewise.
38659         Reported by Eric Blake.
38660
38661 2009-08-22  Bruno Haible  <bruno@clisp.org>
38662
38663         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38664         * modules/pipe (Depends-on): Add pipe2.
38665
38666 2009-08-22  Bruno Haible  <bruno@clisp.org>
38667
38668         Tests for module 'pipe2'.
38669         * modules/pipe2-tests: New file.
38670         * tests/test-pipe2.c: New file.
38671
38672         New module 'pipe2'.
38673         * lib/unistd.in.h (pipe2): New declaration.
38674         * lib/pipe2.c: New file.
38675         * m4/pipe2.m4: New file.
38676         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38677         HAVE_PIPE2.
38678         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38679         * modules/pipe2: New file.
38680         * doc/glibc-functions/pipe2.texi: Mention the new module.
38681
38682 2009-08-22  Bruno Haible  <bruno@clisp.org>
38683
38684         Reference some new glibc functions.
38685         * doc/glibc-functions/accept4.texi: New file.
38686         * doc/glibc-functions/dup3.texi: New file.
38687         * doc/glibc-functions/mkostemp.texi: New file.
38688         * doc/glibc-functions/pipe2.texi: New file.
38689         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38690         (Glibc sys/socket.h): Refer to accept4.
38691         (Glibc unistd.h): Refer to dup3, pipe2.
38692         Reported by Eric Blake.
38693
38694 2009-08-22  Jim Meyering  <meyering@redhat.com>
38695             Bruno Haible  <bruno@clisp.org>
38696
38697         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38698         This makes it so packages using automake-1.11's silent-rules option
38699         can print e.g., a single "GEN    configmake.h" line, rather than
38700         the 30+ statements that perform the job.  If you want to see the
38701         actual commands, you can still run "make V=1".
38702         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38703         so that make output is abbreviated when those variables are defined
38704         appropriately.
38705         * modules/argz: Likewise.
38706         * modules/arpa_inet: Likewise.
38707         * modules/byteswap: Likewise.
38708         * modules/configmake: Likewise.
38709         * modules/dirent: Likewise.
38710         * modules/errno: Likewise.
38711         * modules/fcntl: Likewise.
38712         * modules/float: Likewise.
38713         * modules/fnmatch: Likewise.
38714         * modules/getopt-posix: Likewise.
38715         * modules/glob: Likewise.
38716         * modules/iconv_open: Likewise.
38717         * modules/inttypes: Likewise.
38718         * modules/localcharset: Likewise.
38719         * modules/locale: Likewise.
38720         * modules/math: Likewise.
38721         * modules/netdb: Likewise.
38722         * modules/netinet_in: Likewise.
38723         * modules/poll: Likewise.
38724         * modules/posix_spawnp-tests: Likewise.
38725         * modules/sched: Likewise.
38726         * modules/search: Likewise.
38727         * modules/selinux-h: Likewise.
38728         * modules/signal: Likewise.
38729         * modules/spawn: Likewise.
38730         * modules/stdarg: Likewise.
38731         * modules/stdbool: Likewise.
38732         * modules/stddef: Likewise.
38733         * modules/stdint: Likewise.
38734         * modules/stdio: Likewise.
38735         * modules/stdlib: Likewise.
38736         * modules/string: Likewise.
38737         * modules/strings: Likewise.
38738         * modules/sys_file: Likewise.
38739         * modules/sys_ioctl: Likewise.
38740         * modules/sys_select: Likewise.
38741         * modules/sys_socket: Likewise.
38742         * modules/sys_stat: Likewise.
38743         * modules/sys_time: Likewise.
38744         * modules/sys_times: Likewise.
38745         * modules/sys_utsname: Likewise.
38746         * modules/sys_wait: Likewise.
38747         * modules/sysexits: Likewise.
38748         * modules/time: Likewise.
38749         * modules/unistd: Likewise.
38750         * modules/wchar: Likewise.
38751         * modules/wctype: Likewise.
38752
38753 2009-08-22  Jim Meyering  <meyering@redhat.com>
38754
38755         announce-gen: detect write failure
38756         * build-aux/announce-gen: Add Coda at end.
38757         Remove equivalent-but-more-verbose block at top.
38758
38759 2009-08-19  Akim Demaille  <demaille@gostai.com>
38760
38761         bootstrap: --help to stdout.
38762         * bootstrap (usage): Don't send --help to stderr.
38763         Use a here doc instead of a long string.
38764
38765 2009-08-21  Eric Blake  <ebb9@byu.net>
38766
38767         test-popen-safer: split from test-popen
38768         * tests/test-popen.c (main): Move...
38769         * tests/test-popen.h: ...into new file.
38770         * tests/test-popen-safer2.c: New file.
38771         * modules/popen-tests (Files): Add test-popen.h.
38772         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38773         Suggested by Bruno Haible.
38774
38775         test-fcntl-safer: split from test-open
38776         * tests/test-open.c (main): Move...
38777         * tests/test-open.h: ...into new file.
38778         * tests/test-fcntl-safer.c: New file.
38779         * modules/open-tests (Files): Add test-open.h.
38780         * modules/fcntl-safer-tests: New file.
38781         Suggested by Bruno Haible.
38782
38783         test-fopen-safer: split from test-fopen
38784         * tests/test-fopen.c (main): Move...
38785         * tests/test-fopen.h: ...into new file.
38786         * tests/test-fopen-safer.c: New file.
38787         * modules/fopen-tests (Files): Add test-fopen.h.
38788         * modules/fopen-safer-tests: New file.
38789         Suggested by Bruno Haible.
38790
38791 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38792
38793         popen-safer: test O_CLOEXEC at run-time.
38794         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38795
38796 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38797
38798         fcntl: move more flags to the header
38799         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38800         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38801         * lib/fcntl.in.h: Do both things here.
38802
38803 2009-08-21  Jim Meyering  <meyering@redhat.com>
38804
38805         consistently remove $@-t before redirecting to it
38806         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38807         * modules/alloca-opt: Likewise.
38808         * modules/byteswap: Likewise.
38809         * modules/fnmatch: Likewise.
38810         * modules/getopt-posix: Likewise.
38811         * modules/glob: Likewise.
38812         * modules/poll: Likewise.
38813         * modules/posix_spawnp-tests: Likewise.
38814         * modules/sys_socket: Likewise.
38815         * modules/sysexits: Likewise.
38816
38817 2009-08-21  Eric Blake  <ebb9@byu.net>
38818
38819         popen: simplify access to original popen
38820         * lib/popen.c (rpl_popen): No need to worry about popen being a
38821         macro.
38822         Reported by Bruno Haible.
38823
38824 2009-08-20  Eric Blake  <ebb9@byu.net>
38825
38826         build: avoid some compiler warnings
38827         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38828         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38829         type.
38830         (new_exclude_segment, excluded_file_pattern_p)
38831         (excluded_file_name_p): Reduce scope.
38832         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38833         old-style declaration.
38834
38835 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38836
38837         * tests/test-exclude1.sh: Handle Windows EOL.
38838         * tests/test-exclude2.sh: Likewise.
38839         * tests/test-exclude3.sh: Likewise.
38840         * tests/test-exclude4.sh: Likewise.
38841         * tests/test-exclude5.sh: Likewise.
38842         * tests/test-exclude6.sh: Likewise.
38843         * tests/test-exclude7.sh: Likewise.
38844
38845 2009-08-19  Akim Demaille  <demaille@gostai.com>
38846
38847         bootstrap: find sha1sum when named gsha1sum.
38848         * bootstrap (find_tool): New.
38849         ($SHA1SUM): New.
38850         Use it.
38851
38852 2009-08-20  Jim Meyering  <meyering@redhat.com>
38853
38854         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38855         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38856         expression that converts "." in a file name to "\." in the resulting
38857         regexp.  Start with a dummy statement, so that prior shell variable
38858         definitions are expanded portably.  Reported by Simon Josefsson.
38859
38860 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38861
38862         Fix polling for writeability of a screen buffer.
38863         * lib/poll.c: Distinguish input and screen buffers for the
38864         Win32 implementation.
38865         * lib/select.c: Likewise.
38866
38867 2009-08-19  Eric Blake  <ebb9@byu.net>
38868
38869         popen-safer: prevent popen from clobbering std descriptors
38870         * modules/popen-safer: New file.
38871         * lib/popen-safer.c: Likewise.
38872         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38873         * lib/stdio--.h (popen): Provide override.
38874         * lib/stdio-safer.h (popen_safer): Provide declaration.
38875         * tests/test-popen.c (includes): Partially test this.
38876         * modules/popen-safer-tests: New file, for more tests.
38877         * tests/test-popen-safer.c: Likewise.
38878         * MODULES.html.sh (file stream based Input/Output): Mention it.
38879
38880         tests: test some of the *-safer modules
38881         * modules/fopen-safer (Depends-on): Add fopen.
38882         * modules/fcntl-safer (Depends-on): Add fcntl.
38883         * modules/stdlib-safer (Depends-on): Add stdlib.
38884         (configure.ac): Set indicator.
38885         * modules/unistd-safer (configure.ac): Likewise.
38886         * modules/tmpfile-safer (configure.ac): Likewise.
38887         (Depends-on): Add tmpfile.
38888         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38889         active.
38890         * tests/test-fopen.c (includes): Test safer versions when they are
38891         in use.
38892         * tests/test-open.c (includes): Likewise.
38893
38894         popen: fix cygwin 1.5 bug when stdin closed
38895         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38896         * modules/popen: New file.
38897         * modules/popen-tests: Likewise.
38898         * tests/test-popen.c: Likewise.
38899         * m4/popen.m4: Likewise.
38900         * lib/popen.c: Likewise.
38901         * lib/stdio.in.h (popen): New declaration.
38902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38903         * modules/stdio (Makefile.am): Likewise.
38904         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38905
38906 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38907
38908         maint.mk: give full control over update-copyright exclusions
38909         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38910         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38911         (update-copyright): Don't force inclusion of top-level
38912         ChangeLog.  Don't force exclusion of all COPYING files, but make
38913         them the default exclusion instead.
38914
38915 2009-08-16  Bruno Haible  <bruno@clisp.org>
38916
38917         Fix test failures on Solaris 10.
38918         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38919         tests when Solaris iconv() is used.
38920         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38921         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38922         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38923         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38924         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38925
38926 2009-08-16  Bruno Haible  <bruno@clisp.org>
38927
38928         Fix test failures on Solaris 10.
38929         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38930         'tr' program and pass it as first argument.
38931         * tests/test-pipe-filter-gi1.sh: Likewise.
38932         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38933         program as first argument.
38934         * tests/test-pipe-filter-gi1.c (main): Likewise.
38935
38936 2009-08-16  Eric Blake  <ebb9@byu.net>
38937
38938         fpurge: fix previous commits
38939         * modules/fpurge (Makefile.am): Make replacement conditional,
38940         partially reverting 2007-04-29 change; missed in previous
38941         attempt.
38942         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38943         is missing.
38944
38945 2009-08-16  Bruno Haible  <bruno@clisp.org>
38946
38947         Clarify fpurge's effect on the file position.
38948         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38949         * tests/test-fpurge.c (main): Make a second pass for checking the file
38950         position.
38951
38952 2009-08-16  Bruno Haible  <bruno@clisp.org>
38953
38954         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38955         declaration of fpurge is missing.
38956         * tests/test-fpurge.c (main): Check that the file has not more contents
38957         than expected. Close the file before removing it.
38958
38959 2009-08-15  Eric Blake  <ebb9@byu.net>
38960
38961         fpurge: don't wrap working cygwin implementation
38962         * lib/fpurge.c (fpurge): Fix comment typo.
38963         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38964         1.7 to avoid replacement.
38965         * tests/test-fpurge.c (main): Enhance test.
38966
38967 2009-08-15  Eric Blake  <ebb9@byu.net>
38968         and Jim Meyering  <meyering@redhat.com>
38969
38970         test-update-copyright: skip if perl is insufficient
38971         * tests/test-update-copyright.sh: Failure to run maintainer tool
38972         should not cause testsuite failure on cygwin 1.5.
38973
38974 2009-08-14  Eric Blake  <ebb9@byu.net>
38975
38976         doc: mention more functions added in cygwin 1.7.0
38977         * doc/posix-headers/limits.texi (limits.h): Update for recent
38978         cygwin additions.
38979         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38980         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38981         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38982         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38983         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38984
38985 2009-08-14  Eric Blake  <ebb9@byu.net>
38986
38987         maint.mk: simplify update-copyright rule
38988         * top/maint.mk (update-copyright-local): Delete, and document how
38989         to do it in cfg.mk instead.
38990         (update-copyright-exclude-regexp): Delete, and document how to do
38991         it in .x-update-copyright instead.
38992         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38993         exclude ChangeLog.
38994
38995 2009-08-14  Bruno Haible  <bruno@clisp.org>
38996
38997         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38998
38999 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39000
39001         maint.mk: support update-copyright-env
39002         * top/maint.mk (update-copyright-env): Define place-holder.
39003         (update-copyright): Expand $(update-copyright-env) before
39004         invoking update-copyright.
39005
39006 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39007
39008         update-copyright: implement forced reformatting
39009         * build-aux/update-copyright: Implement and document
39010         UPDATE_COPYRIGHT_FORCE.
39011         * tests/test-update-copyright.sh: Test it.
39012
39013 2009-08-14  Eric Blake  <ebb9@byu.net>
39014         and Bruno Haible  <bruno@clisp.org>
39015
39016         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39017         * tests/test-locale.c: Revert previous patch related to NULL.
39018         * tests/test-stdio.c: Likewise.
39019         * tests/test-stdlib.c: Likewise.
39020         * tests/test-string.c: Likewise.
39021         * tests/test-unistd.c: Likewise.
39022         * modules/time-tests (Depends-on): Add verify.
39023         * modules/wchar-tests (Depends-on): Likewise.
39024         * tests/test-time.c: Test for NULL compliance.
39025         * tests/test-wchar.c: Likewise.
39026         * modules/locale (Depends-on): Add stddef.
39027         * modules/stdio (Depends-on): Likewise.
39028         * modules/stdlib (Depends-on): Likewise.
39029         * modules/string (Depends-on): Likewise.
39030         * modules/time (Depends-on): Likewise.
39031         * modules/unistd (Depends-on): Likewise.
39032         * modules/wchar (Depends-on): Likewise.
39033         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39034         * lib/stdlib.in.h (includes): Likewise.
39035         * lib/string.in.h (includes): Likewise.
39036         * lib/time.in.h (includes): Likewise.
39037         * lib/unistd.in.h (includes): Likewise.
39038         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39039         replaced.
39040         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39041         * m4/stddef_h.m4: New file.
39042         * modules/stddef: Likewise.
39043         * lib/stddef.in.h: Likewise.
39044         * modules/stddef-tests: Likewise.
39045         * tests/test-stddef.c: Likewise.
39046         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39047         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39048         * doc/posix-headers/locale.texi (locale.h): Likewise.
39049         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39050         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39051         * doc/posix-headers/string.texi (string.h): Likewise.
39052         * doc/posix-headers/time.texi (time.h): Likewise.
39053         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39054         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39055
39056 2009-08-14  Eric Blake  <ebb9@byu.net>
39057
39058         doc: improve git diff of texinfo files
39059         * .gitattributes: Add rule for *.texi files, with hint on how to
39060         use it.
39061         Copied from m4, and based on a report by Bruno Haible.
39062
39063 2009-08-14  Bruno Haible  <bruno@clisp.org>
39064
39065         Disable multithread support by default on Cygwin 1.5.x for real.
39066         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39067
39068 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39069
39070         update-copyright: much ado about intervals
39071         * build-aux/update-copyright: Implement and document
39072         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39073         of copyright year intervals.
39074         Also, document UPDATE_COPYRIGHT_YEAR.
39075         * tests/test-update-copyright.sh: Test it.
39076
39077         update-copyright: convert 2-digit to 4-digit years
39078         * build-aux/update-copyright: Implement and document.
39079         * tests/test-update-copyright.sh: Update.
39080
39081 2009-08-14  Jim Meyering  <meyering@redhat.com>
39082
39083         test-exclude: avoid coreutils "make check" failure
39084         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39085         just as in test-argmatch.c.
39086
39087 2009-08-13  Eric Blake  <ebb9@byu.net>
39088
39089         test-dup2: fix bad assumption
39090         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39091         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39092
39093         test-version-etc: fix CRLF portability issue
39094         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39095         recognize \r.
39096         * tests/test-argp-version-etc-1.sh: Likewise.
39097
39098         getopt: update client modules
39099         * modules/argp (Depends-on): Use getopt-gnu.
39100         * modules/git-merge-changelog (Depends-on): Likewise.
39101         * modules/long-options (Depends-on): Likewise.
39102         * modules/xstrtol (Depends-on): Likewise.
39103
39104 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39105
39106         * tests/test-version-etc.sh: Don't fail on different
39107         project/version.  Don't fail on CRLF differences.  Rewrite to use
39108         multiple -e instead of multiple sed forks, suggested by Eric Blake
39109         <ebb9@byu.net>.
39110         * tests/test-argp-version-etc-1.sh: Likewise.
39111
39112 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39113
39114         * tests/test-version-etc.sh: Don't fail on different
39115         project/version.
39116
39117 2009-08-12  Bruno Haible  <bruno@clisp.org>
39118
39119         Tests for modules 'getopt-posix', 'getopt-gnu'.
39120         * modules/getopt-posix-tests: New file.
39121         * tests/test-getopt.c: New file.
39122         * tests/test-getopt.h: New file.
39123         * tests/test-getopt_long.h: New file.
39124
39125         New modules 'getopt-posix', 'getopt-gnu'.
39126         * modules/getopt-gnu: New file, renamed from modules/getopt.
39127         * modules/getopt-posix: New file.
39128         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39129         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39130         (gl_GETOPT): Remove macro.
39131         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39132         Disable the test against BSD systems that declare optreset. Test
39133         against mingw bug. Test against lack of support of optional arguments
39134         on many platforms.
39135         * doc/glibc-headers/getopt.texi: Update module name and list of
39136         relevant platforms.
39137         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39138         'getopt-gnu' and more portability problems.
39139         * NEWS: Mention the changes.
39140
39141 2009-08-12  Bruno Haible  <bruno@clisp.org>
39142
39143         Ensure that optarg etc. get declared by <unistd.h>.
39144         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39145         AC_USE_SYSTEM_EXTENSIONS.
39146         * modules/getopt (Depends-on): Add 'extensions'.
39147
39148 2009-08-12  Bruno Haible  <bruno@clisp.org>
39149
39150         Avoid test link errors.
39151         * modules/pipe-filter-ii-tests (Makefile.am): Define
39152         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39153         * modules/pipe-filter-gi-tests (Makefile.am): Define
39154         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39156
39157 2009-08-12  Bruno Haible  <bruno@clisp.org>
39158
39159         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39160         gl_GETOPT_SUBSTITUTE before.
39161         (gl_GETOPT): Use it.
39162         * m4/argp.m4 (gl_ARGP): Update.
39163         Reported by Sergey Poznyakoff.
39164
39165         * m4/getopt.m4: Reorder macros.
39166         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39167         (gl_GETOPT_SUBSTITUTE): Remove macro.
39168
39169 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39170
39171         Minor improvement in gitlog-to-changelog
39172
39173         * build-aux/gitlog-to-changelog: New option `--format' makes
39174         output format string configurable.
39175
39176 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39177
39178         Optimize exclude: use hash tables for non-wildcard patterns.
39179
39180         * lib/exclude.c: Include hash.h and mbuiter.h
39181         (struct exclude_pattern, exclude_segment): New data types.
39182         (struct exclude): Rewrite.
39183         (fnmatch_pattern_has_wildcards): New function.
39184         (new_exclude_segment, free_exclude_segment): New functions.
39185         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39186         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39187         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39188         * modules/exclude: Depend on hash and mbuiter.
39189
39190         * modules/exclude-tests: New file.
39191         * tests/test-exclude.c: New file.
39192         * tests/test-exclude1.sh: New file.
39193         * tests/test-exclude2.sh: New file.
39194         * tests/test-exclude3.sh: New file.
39195         * tests/test-exclude4.sh: New file.
39196         * tests/test-exclude5.sh: New file.
39197         * tests/test-exclude6.sh: New file.
39198         * tests/test-exclude7.sh: New file.
39199
39200 2009-08-12  Bruno Haible  <bruno@clisp.org>
39201
39202         Ensure that getopt() gets declared by <unistd.h>.
39203         * lib/unistd.in.h: Conditionally include getopt.h.
39204         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39205         Set GNULIB_UNISTD_H_GETOPT.
39206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39207         GNULIB_UNISTD_H_GETOPT.
39208         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39209
39210 2009-08-12  Bruno Haible  <bruno@clisp.org>
39211
39212         Clarify logic.
39213         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39214         gl_replace_getopt instead of GETOPT_H.
39215
39216 2009-08-12  Bruno Haible  <bruno@clisp.org>
39217
39218         * m4/getopt.m4: Add comments.
39219
39220 2009-08-12  Bruno Haible  <bruno@clisp.org>
39221
39222         Disable multithread support by default on Cygwin 1.5.x.
39223         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39224         set gl_use_threads=no if not specified otherwise.
39225
39226 2009-08-11  Bruno Haible  <bruno@clisp.org>
39227
39228         Avoid compilation error on NetBSD 5.0.
39229         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39230         * tests/test-stdio.c: Likewise.
39231         * tests/test-stdlib.c: Likewise.
39232         * tests/test-string.c: Likewise.
39233         * tests/test-unistd.c: Likewise.
39234         Reported by Greg Troxel <gdt@ir.bbn.com>
39235         at <https://savannah.gnu.org/support/?106973>.
39236
39237 2009-08-11  Bruno Haible  <bruno@clisp.org>
39238
39239         * modules/dup2-tests (Depends-on): Remove close.
39240
39241         Undo 2009-07-19 commit.
39242         * modules/acl-tests (Depends-on): Remove close.
39243         * modules/binary-io-tests (Depends-on): Likewise.
39244         * modules/closein-tests (Depends-on): Likewise.
39245         * modules/flock-tests (Depends-on): Likewise.
39246         * modules/fsync-tests (Depends-on): Likewise.
39247         * modules/lseek-tests (Depends-on): Likewise.
39248         * modules/pipe-tests (Depends-on): Likewise.
39249         * modules/posix_spawn-tests (Depends-on): Likewise.
39250         * modules/posix_spawnp-tests (Depends-on): Likewise.
39251         * modules/stat-time-tests (Depends-on): Likewise.
39252         * modules/yesno-tests (Depends-on): Likewise.
39253
39254 2009-08-10  Bruno Haible  <bruno@clisp.org>
39255
39256         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39257
39258 2009-08-10  Bruno Haible  <bruno@clisp.org>
39259
39260         Fix a gcc warning.
39261         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39262
39263 2009-08-10  Bruno Haible  <bruno@clisp.org>
39264
39265         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39266         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39267         not only the first time.
39268         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39269         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39270         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39271         is 1, not only the the first time.
39272
39273 2009-08-10  Bruno Haible  <bruno@clisp.org>
39274
39275         Make it possible to use module 'gethostname' without module 'close'.
39276         * lib/unistd.in.h (close): Evoke a link error only if
39277         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39279         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39280         * modules/unistd (Makefile.am): Substitute
39281         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39282         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39283         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39284         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39285         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39286         * modules/sys_ioctl (Makefile.am): Substitute
39287         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39288         * modules/socket (configure.ac): On native Windows, set
39289         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39290         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39291         Reported by Sam Steingold <sds@gnu.org>.
39292
39293 2009-08-10  Bruno Haible  <bruno@clisp.org>
39294
39295         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39296         * modules/ioctl (configure.ac): Likewise.
39297
39298 2009-08-10  Bruno Haible  <bruno@clisp.org>
39299
39300         Avoid collision between gnulib wrapper and libintl wrapper.
39301         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39302         already defined in intl/printf.c.
39303         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39304         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39305
39306 2009-08-09  Bruno Haible  <bruno@clisp.org>
39307
39308         Make <sys/select.h> really self-contained, also on Solaris 10.
39309         * lib/sys_select.in.h: Include <string.h>.
39310         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39311         Solaris 10 problem.
39312         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39313         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39314         Reported by Jim Meyering.
39315
39316 2009-08-09  Bruno Haible  <bruno@clisp.org>
39317
39318         Avoid warnings from 'aclocal' that are due to a use of macro name
39319         AM_XGETTEXT_OPTION that is not defined in automake.
39320         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39321         automake.
39322         * modules/error (configure.ac): Likewise.
39323         * modules/propername (configure.ac): Likewise.
39324         * modules/vasprintf (configure.ac): Likewise.
39325         * modules/verror (configure.ac): Likewise.
39326         * modules/xprintf (configure.ac): Likewise.
39327         * modules/xvasprintf (configure.ac): Likewise.
39328
39329 2009-08-08  Bruno Haible  <bruno@clisp.org>
39330
39331         Avoid compilation error in C++ mode.
39332         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39333         Reported by Sam Steingold <sds@gnu.org>.
39334
39335 2009-08-08  Bruno Haible  <bruno@clisp.org>
39336
39337         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39338         for the various Unix platforms.
39339         * doc/posix-headers/limits.texi: Update platforms list regarding
39340         HOST_NAME_MAX.
39341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39342
39343 2009-08-07  Jim Meyering  <meyering@redhat.com>
39344
39345         selinux-at: fix typo in a comment
39346         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39347         Spotted by Paolo Bonzini.
39348
39349         selinux-at: remove redundant m4 code, add documentation
39350         * modules/selinux-at (configure.ac): Remove redundant code.
39351         LIB_SELINUX is already set via the dependent module, selinux-h.
39352         (Include): Add quotes around selinux-at.h.
39353         * lib/selinux-at.h: Add documentation.
39354         Reported by Bruno Haible in
39355         http://marc.info/?l=gnulib-bug&m=124958988300749
39356
39357 2009-08-07  Bruno Haible  <bruno@clisp.org>
39358
39359         Avoid link error on MacOS X 10.3 and 10.4.
39360         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39361         on non-ELF systems.
39362         * lib/argp-pv.c (argp_program_version): Likewise.
39363         Reported by Simon Josefsson.
39364
39365 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39366
39367         * tests/test-version-etc.sh: Use $EXEEXT.
39368
39369 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39370
39371         update-copyright: update documentation to point to maint.mk
39372         * build-aux/update-copyright: Here.
39373
39374 2009-08-06  Jim Meyering  <meyering@redhat.com>
39375
39376         maint.mk: support update-copyright-local
39377         * top/maint.mk (update-copyright-local): Define place-holder.
39378         (update-copyright): Depend on $(update-copyright-local).
39379
39380 2009-08-06  Jim Meyering  <meyering@redhat.com>
39381
39382         selinux-at: new module
39383         Initially written for coreutils, this module will soon be
39384         used by findutils, too.
39385         * MODULES.html.sh [Misc]: Add selinux-at.
39386         * lib/selinux-at.h: New file, from coreutils.
39387         * lib/selinux-at.c: Likewise.
39388         * modules/selinux-at: Likewise.
39389         (License): Change from LGPL to GPL, since it depends
39390         on the GPL'd openat module.
39391
39392         doc: update README
39393         * README: Remove references to cogito.
39394         Remove cvs-repo-updating instructions from 2007.
39395         Don't imply that CVS is better if you have limited disk space.
39396
39397 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39398
39399         update-copyright: support C-style comments
39400         * build-aux/update-copyright: Implement and document.
39401         * tests/test-update-copyright.sh: Test.
39402
39403 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39404
39405         update-copyright: support omitted "(C)"
39406         * build-aux/update-copyright: Implement and document.  Also,
39407         allow variable whitespace before "(C)".
39408         * tests/test-update-copyright.sh: Test.
39409
39410 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39411
39412         update-copyright: don't trip on non-FSF copyright statements
39413         * build-aux/update-copyright: Fix so that the first correctly
39414         formatted FSF copyright statement is recognized no matter what
39415         appears before it.  Update documentation.
39416         * tests/test-update-copyright.sh: Test that.
39417
39418 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39419
39420         update-copyright: clean up code a little
39421         * build-aux/update-copyright: Append "_re" to the name of any
39422         variable holding a regular expression.
39423         Replace "old" and "new" with "stmt" in variable names.
39424         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39425         handled correctly.
39426         Format code more consistently.
39427
39428 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39429
39430         update-copyright-tests: improve portability
39431         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39432         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39433
39434 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39435
39436         update-copyright: support @copyright{} and &copy;
39437         * build-aux/update-copyright: Implement and document.
39438         * tests/test-update-copyright.sh: Test.
39439
39440 2009-08-04  Jim Meyering  <meyering@redhat.com>
39441
39442         update-copyright-tests: correctly test EOL=\r\n handling
39443         * tests/test-update-copyright.sh: Put \r at the end of some lines
39444         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39445
39446         maint.mk: make update-copyright exclusion list more configurable
39447         * top/maint.mk (update-copyright): Default to excluding COPYING,
39448         but allow an override, in case someone does want to update that file.
39449
39450         maint.mk: don't update copyright date in COPYING
39451         * top/maint.mk (update-copyright): Exclude COPYING.
39452
39453         maint.mk: add a copyright-updating rule
39454         * top/maint.mk (update-copyright): New rule.
39455         Derived from coreutils/Makefile.am.
39456
39457         update-copyright: rename some variables
39458         * build-aux/update-copyright: Rename a few variables for clarity.
39459         Tweak syntax.  List Joel E. Denny as coauthor.
39460
39461 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39462
39463         update-copyright: fix bug for 2-digit last year and add tests
39464         * build-aux/update-copyright: Fix bug.
39465         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39466         specified.
39467         * modules/update-copyright-tests: New
39468         * tests/test-update-copyright.sh: New.
39469
39470 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39471
39472         update-copyright: handle leading tabs in line prefix
39473         * build-aux/update-copyright: Count leading tabs as 8 spaces
39474         when computing margin.  This helps with the formatting of
39475         ChangeLogs, for example.
39476         Fix documentation a little.
39477
39478 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39479
39480         update-copyright: support EOL=\r\n
39481         * build-aux/update-copyright: Implement that.
39482
39483 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39484
39485         update-copyright: automatically format copyright statements
39486         * build-aux/update-copyright: Implement that.
39487         Also, be a little more predictable and safer by always failing
39488         when the full copyright format is not perfectly recognized as an
39489         unbroken whole.  Discussed at
39490         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39491         Rewrite documentation.
39492
39493 2009-08-03  Bruno Haible  <bruno@clisp.org>
39494
39495         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39496
39497 2009-08-02  Bruno Haible  <bruno@clisp.org>
39498
39499         Tests for module 'uname'.
39500         * modules/uname-tests: New file.
39501         * tests/test-uname.c: New file.
39502
39503         New module 'uname'.
39504         * lib/uname.c: New file.
39505         * m4/uname.m4: New file.
39506         * modules/uname: New file.
39507         * doc/posix-functions/uname.texi: Mention the new module.
39508
39509 2009-08-02  Bruno Haible  <bruno@clisp.org>
39510
39511         Tests for module 'sys_utsname'.
39512         * modules/sys_utsname-tests: New file.
39513         * tests/test-sys_utsname.c: New file.
39514
39515         New module 'sys_utsname'.
39516         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39517         * m4/sys_utsname_h.m4: New file.
39518         * modules/sys_utsname: New file.
39519         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39520
39521 2009-08-02  Bruno Haible  <bruno@clisp.org>
39522
39523         Implicitly initialize the sockets library.
39524         * lib/gethostname.c: Include sockets.h.
39525         (rpl_gethostname): Invoke gl_sockets_startup.
39526         * lib/socket.c: Include sockets.h.
39527         (rpl_socket): Invoke gl_sockets_startup.
39528         * modules/gethostname (Depends-on): Add sockets.
39529         * modules/socket (Depends-on): Likewise.
39530         * tests/test-poll.c: Don't include sockets.h.
39531         (main): Don't invoke gl_sockets_startup.
39532         * tests/test-select.c: Don't include sockets.h.
39533         (main): Don't invoke gl_sockets_startup.
39534
39535 2009-08-02  Bruno Haible  <bruno@clisp.org>
39536
39537         Allow multiple calls to gl_sockets_startup.
39538         * lib/sockets.c (initialized_sockets_version): New variable.
39539         (gl_sockets_startup): Do nothing if already called for this or a higher
39540         version.
39541         (gl_sockets_cleanup): Reset initialized_sockets_version.
39542
39543 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39544
39545         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39546         different project/version.
39547
39548 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39549             Bruno Haible  <bruno@clisp.org>
39550
39551         Tests for module 'pipe-filter-gi'.
39552         * modules/pipe-filter-gi-tests: New file.
39553         * tests/test-pipe-filter-gi1.sh: New file.
39554         * tests/test-pipe-filter-gi1.c: New file.
39555         * tests/test-pipe-filter-gi2.sh: New file.
39556         * tests/test-pipe-filter-gi2-main.c: New file.
39557         * tests/test-pipe-filter-gi2-child.c: New file.
39558
39559         New module 'pipe-filter-gi'.
39560         * lib/pipe-filter-gi.c: New file.
39561         * modules/pipe-filter-gi: New file.
39562
39563 2009-08-02  Bruno Haible  <bruno@clisp.org>
39564             Paolo Bonzini  <bonzini@gnu.org>
39565
39566         Tests for module 'pipe-filter-ii'.
39567         * modules/pipe-filter-ii-tests: New file.
39568         * tests/test-pipe-filter-ii1.sh: New file.
39569         * tests/test-pipe-filter-ii1.c: New file.
39570         * tests/test-pipe-filter-ii2.sh: New file.
39571         * tests/test-pipe-filter-ii2-main.c: New file.
39572         * tests/test-pipe-filter-ii2-child.c: New file.
39573
39574         New module 'pipe-filter-ii'.
39575         * lib/pipe-filter.h: New file.
39576         * lib/pipe-filter-ii.c: New file.
39577         * lib/pipe-filter-aux.h: New file.
39578         * modules/pipe-filter-ii: New file.
39579
39580 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39581
39582         * lib/gc-libgcrypt.c: Change copyright to FSF.
39583         * lib/gc-gnulib.c: Likewise.
39584
39585 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39586
39587         * lib/gethostname.c: Include limits.h.
39588
39589 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39590             Bruno Haible  <bruno@clisp.org>
39591
39592         Ensure HOST_NAME_MAX as part of the gethostname module.
39593         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39594         define also HOST_NAME_MAX.
39595         * tests/test-gethostname.c: Include <limits.h>.
39596         (main): Check also HOST_NAME_MAX.
39597         * doc/posix-headers/limits.texi: Document the mingw problem.
39598
39599 2009-08-02  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39602         Add comments.
39603
39604 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39605
39606         * lib/gethostname.c: Add Windows wrapper.
39607         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39608         * modules/gethostname: Depend on sys_socket & errno, for also
39609         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39610         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39611
39612 2009-07-31  Jim Meyering  <meyering@redhat.com>
39613
39614         getloadavg: fix symbol name in comment
39615         * lib/getloadavg.c: Correct a typo I introduced when adding
39616         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39617         Matt Kraai spotted the problem.
39618
39619 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39620
39621         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39622         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39623         code also if ! defined N_NAME_POINTER.
39624         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39625         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39626         but the n_name member is a 12-byte array.
39627
39628 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39629
39630         update-copyright: generalize comment handling
39631         * build-aux/update-copyright: Handle copyright statements
39632         within more comment styles.
39633         Document usage.
39634         Report any file with an external copyright holder or parse failure.
39635
39636 2009-07-29  Jim Meyering  <meyering@redhat.com>
39637
39638         mktime: correct setting of REPLACE_MKTIME
39639         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39640
39641         update-copyright: new module
39642         * modules/update-copyright: New file.
39643         * build-aux/update-copyright: New file.
39644         * MODULES.html.sh (maint+release support): Add update-copyright.
39645
39646 2009-07-27  Bruno Haible  <bruno@clisp.org>
39647
39648         Fix compilation error when <ctime> is used and mktime is replaced.
39649         * lib/time.in.h (mktime): New declaration.
39650         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39651         REPLACE_MKTIME instead of defining mktime in config.h.
39652         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39653         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39654         Reported by Ross McFarland <rwmcfa1@neces.com>.
39655
39656 2009-07-27  Bruno Haible  <bruno@clisp.org>
39657
39658         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39659         Reported by Matt Kraai <mkraai@beckman.com>.
39660
39661 2009-07-25  Jim Meyering  <meyering@redhat.com>
39662
39663         maint.mk: avoid warnings about missing files
39664         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39665         diagnostic when .prev-version does not exist.
39666         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39667         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39668         nonexistent cfg.mk.
39669         Suggestions from Simon Josefsson.
39670
39671 2009-07-25  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39674         defined as macros. Needed on QNX 6.4.1.
39675         Reported by Matt Kraai <mkraai@beckman.com>.
39676
39677 2009-07-23  Jim Meyering  <meyering@redhat.com>
39678
39679         maint.mk: invoke "make dist" with a working value of XZ_OPT
39680         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39681
39682 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39683
39684         Make fseeko.c compile on QNX.
39685         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39686
39687 2009-07-22  Peter Simons  <simons@cryp.to>
39688
39689         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39690         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39691         * lib/md4.h: Likewise.
39692         * lib/md5.h: Likewise.
39693         * lib/sha1.h: Likewise.
39694         * lib/sha256.h: Likewise.
39695         * lib/sha512.h: Likewise.
39696
39697         tests-sha1: don't assign literal string to 'char *' variable
39698         * tests/test-sha1.c (main): Declare locals with "const" to match
39699         attributes of the right hand side.
39700
39701 2009-07-21  Eric Blake  <ebb9@byu.net>
39702
39703         dup2: fix more mingw problems
39704         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39705         fd to itself.
39706         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39707         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39708         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39709         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39710         care of mingw bugs.
39711
39712 2009-07-21  Jim Meyering  <meyering@redhat.com>
39713
39714         vc-list-files: avoid failure when /bin/sh is dash
39715         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39716         On some Debian based systems, /bin/sh is a symlink to dash, and running
39717         this command would omit the "/" following each 'tests' prefix:
39718           dash -x build-aux/vc-list-files -C . tests
39719         That is because bash and dash work differently:
39720           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39721           bash ok
39722           dash odd
39723
39724 2009-07-21  Eric Blake  <ebb9@byu.net>
39725
39726         dup2-tests: test previous patch
39727         * modules/dup2-tests: New file.
39728         * tests/test-dup2.c: Likewise.
39729         * tests/test-open.c (main): Avoid unspecified behavior.
39730         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39731         test.
39732
39733         dup2: work around mingw and cygwin 1.5 bug
39734         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39736         * modules/unistd (Makefile.am): Substitute it.
39737         * lib/unistd.in.h (dup2): Declare the replacement.
39738         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39739         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39740         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39741         * modules/execute (Depends-on): Add dup2.
39742         * modules/fseterr (Depends-on): Likewise.
39743         * modules/pipe (Depends-on): Likewise.
39744         * modules/posix_spawn-internal (Depends-on): Likewise.
39745
39746 2009-07-21  Bruno Haible  <bruno@clisp.org>
39747
39748         * modules/.gitattributes: New file.
39749
39750 2009-07-20  Bruno Haible  <bruno@clisp.org>
39751
39752         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39753         (main): Use it.
39754
39755 2009-07-20  Eric Blake  <ebb9@byu.net>
39756
39757         test-pipe: make a bit more robust.
39758         * tests/test-pipe.c (myerr): Allow error messages regardless of
39759         what we do to stderr.
39760         (test_pipe): Rearrange to avoid deadlock.
39761         (child_main): Try a larger read, to ensure we avoided deadlock.
39762         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39763         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39764         if misused.
39765
39766 2009-07-19  Jim Meyering  <meyering@redhat.com>
39767
39768         fts: avoid false-positive cycle-detection
39769         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39770         for each new command line argument.
39771
39772 2009-07-19  Bruno Haible  <bruno@clisp.org>
39773
39774         Fix build error on mingw with the modules sys_select and unistd.
39775         * modules/acl-tests (Depends-on): Add close.
39776         * modules/binary-io-tests (Depends-on): Likewise.
39777         * modules/closein-tests (Depends-on): Likewise.
39778         * modules/flock-tests (Depends-on): Likewise.
39779         * modules/fsync-tests (Depends-on): Likewise.
39780         * modules/lseek-tests (Depends-on): Likewise.
39781         * modules/pipe-tests (Depends-on): Likewise.
39782         * modules/posix_spawn-tests (Depends-on): Likewise.
39783         * modules/posix_spawnp-tests (Depends-on): Likewise.
39784         * modules/stat-time-tests (Depends-on): Likewise.
39785         * modules/yesno-tests (Depends-on): Likewise.
39786
39787 2009-07-19  Bruno Haible  <bruno@clisp.org>
39788
39789         Unify conditionals.
39790         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39791         macros, not at the compiler macros.
39792         * lib/pipe.c: Likewise.
39793         * lib/execute.c: Likewise.
39794         * lib/spawni.c: Likewise.
39795
39796 2009-07-19  Bruno Haible  <bruno@clisp.org>
39797
39798         Fix handling of closed stdin/stdout/stderr on mingw.
39799         * lib/w32spawn.h: Include unistd.h.
39800         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39801         file descriptor with O_NOINHERIT flag.
39802         (fd_safer_noinherit): New function, based on fd-safer.c.
39803         (dup_safer_noinherit): New function, based on dup-safer.c.
39804         (undup_safer_noinherit): New function.
39805         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39806         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39807         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39808         instead of fd_safer.
39809         * tests/test-pipe.c: Include <windows.h>.
39810         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39811         result.
39812
39813         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39814         from main.
39815         (test_pipe): Pass an extra argument for disambiguation.
39816         (main): Invoke parent_main or child_main.
39817
39818         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39819         consistently.
39820
39821 2009-07-18  Eric Blake  <ebb9@byu.net>
39822
39823         test-pipe: fix mingw build
39824         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39825
39826 2009-07-18  Bruno Haible  <bruno@clisp.org>
39827
39828         * modules/pipe-tests (Makefile.am): Fix typo.
39829
39830 2009-07-18  Eric Blake  <ebb9@byu.net>
39831
39832         error: fix mingw build
39833         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39834         Reported by Bruno Haible.
39835
39836         error: avoid undefined use of stdout
39837         * lib/error.c (error, error_at_line): Check that fd 1 is open
39838         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39839         is handling faults and the close_stdout module wants to report the
39840         detection of closed stdout as an error.
39841
39842 2009-07-17  Eric Blake  <ebb9@byu.net>
39843
39844         pipe: be robust in face of closed fds
39845         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39846         should cause child to misbehave.
39847         * modules/pipe-tests: New module.
39848         * tests/test-pipe.c: New file.
39849         * tests/test-pipe.sh: New file.
39850         Reported by Akim Demaille.
39851
39852 2009-07-14  Bruno Haible  <bruno@clisp.org>
39853
39854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39855         Reported by anonymous kc.
39856
39857 2009-07-07  Jim Meyering  <meyering@redhat.com>
39858
39859         maint.mk: don't look for translatable strings in *.m4 or *.mk
39860         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39861         when searching for translatable strings.
39862
39863 2009-07-05  Jim Meyering  <meyering@redhat.com>
39864
39865         remove superfluous parentheses in STREQ definition
39866         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39867         * lib/getugroups.c (STREQ): Likewise.
39868         * lib/fnmatch.c (STREQ): Likewise.
39869         Spotted by Bruno Haible.
39870
39871 2009-07-04  Jim Meyering  <meyering@redhat.com>
39872
39873         argv-iter: new module
39874         * MODULES.html.sh: Add argv-iter.
39875         * lib/argv-iter.c, lib/argv-iter.h: New files.
39876         * modules/argv-iter: New file.
39877         * modules/argv-iter-tests: New file.
39878         * tests/test-argv-iter.c: Test it.
39879
39880 2009-07-04  Bruno Haible  <bruno@clisp.org>
39881
39882         Fix assertion.
39883         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39884         contains more exact copies of a given entry than file2, leave the extra
39885         copies unpaired rather than aborting.
39886         Reported by Eric Blake.
39887
39888 2009-07-02  Bruno Haible  <bruno@clisp.org>
39889
39890         Speedup git-merge-changelog for git cherry-pick.
39891         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39892         (entries_mapping_get): New function, extracted from compute_mapping.
39893         (entries_mapping_reverse_get): New function.
39894         (compute_mapping): Add a 'full' argument. Return the result in a
39895         'struct entries_mapping'.
39896         (main): Update. Access the mappings through entries_mapping_get.
39897         Reported by Eric Blake.
39898
39899 2009-07-02  Bruno Haible  <bruno@clisp.org>
39900
39901         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39902         best_i.
39903
39904 2009-07-02  Bruno Haible  <bruno@clisp.org>
39905
39906         Speed up approximate search for matching ChangeLog entries.
39907         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39908         argument. Call fstrcmp_bounded instead of fstrcmp.
39909         (compute_mapping, try_split_merged_entry, main): Update callers.
39910
39911 2009-07-02  Bruno Haible  <bruno@clisp.org>
39912
39913         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39914
39915 2009-06-30  Bruno Haible  <bruno@clisp.org>
39916
39917         Reduce the number of uc_is_cased calls.
39918         * lib/unicase.h (casing_suffix_context_t): Add
39919         'first_char_except_ignorable' field.
39920         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39921         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39922         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39923         Update initializer.
39924         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39925         case-ignorable characters.
39926         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39927         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39928         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39929         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39930         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39931
39932 2009-06-30  Bruno Haible  <bruno@clisp.org>
39933
39934         Tests for module 'unicase/ignorable'.
39935         * modules/unicase/ignorable-tests: New file.
39936         * tests/unicase/test-ignorable.c: New file, generated by
39937         gen-uni-tables.
39938
39939         Tests for module 'unicase/cased'.
39940         * modules/unicase/cased-tests: New file.
39941         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39942         * tests/unicase/test-predicate-part1.h: New file, derived from
39943         tests/unictype/test-predicate-part1.h.
39944         * tests/unicase/test-predicate-part2.h: New file, same as
39945         tests/unictype/test-predicate-part2.h.
39946
39947         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39948         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39949         (output_casing_properties): New function.
39950         (main): Call it.
39951         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39952         * lib/unicase/cased.c: Include unictype/bitmap.h.
39953         (uc_is_cased): Define through a bitmap lookup.
39954         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39955         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39956         (uc_is_case_ignorable): Define through a bitmap lookup.
39957         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39958         lib/unictype/bitmap.h.
39959         (Depends-on): Add inline. Clean up.
39960         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39961         lib/unictype/bitmap.h.
39962         (Depends-on): Add inline. Clean up.
39963         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39964         recognition.
39965         * tests/unicase/test-u16-tolower.c (main): Likewise.
39966         * tests/unicase/test-u32-tolower.c (main): Likewise.
39967
39968 2009-06-30  Bruno Haible  <bruno@clisp.org>
39969
39970         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39971         * lib/unicase/u16-casemap.c: Likewise.
39972         * lib/unicase/u32-casemap.c: Likewise.
39973
39974 2009-06-29  Bruno Haible  <bruno@clisp.org>
39975
39976         Define u32_casefold as a wrapper around u32_ct_casefold.
39977         * lib/unicase/u32-casefold.c: Update.
39978         * modules/unicase/u32-casefold (Depends-on): Add
39979         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39980         unicase/empty-suffix-context. Clean up.
39981
39982         Define u16_casefold as a wrapper around u16_ct_casefold.
39983         * lib/unicase/u16-casefold.c: Update.
39984         * modules/unicase/u16-casefold (Depends-on): Add
39985         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39986         unicase/empty-suffix-context. Clean up.
39987
39988         Define u8_casefold as a wrapper around u8_ct_casefold.
39989         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39990         * lib/unicase/u8-casefold.c: Update.
39991         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39992         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39993
39994         Define u32_totitle as a wrapper around u32_ct_totitle.
39995         * lib/unicase/u32-totitle.c: Update.
39996         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39997         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39998
39999         Define u16_totitle as a wrapper around u16_ct_totitle.
40000         * lib/unicase/u16-totitle.c: Update.
40001         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40002         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40003
40004         Define u8_totitle as a wrapper around u8_ct_totitle.
40005         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40006         functions.
40007         (FUNC): Delegate to U_CT_TOTITLE.
40008         * lib/unicase/u8-totitle.c: Update.
40009         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40010         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40011
40012         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40013         invocation.
40014         * modules/unicase/u32-tolower (Depends-on): Add
40015         unicase/empty-prefix-context, unicase/empty-suffix-context.
40016
40017         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40018         invocation.
40019         * modules/unicase/u16-tolower (Depends-on): Add
40020         unicase/empty-prefix-context, unicase/empty-suffix-context.
40021
40022         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40023         * modules/unicase/u8-tolower (Depends-on): Add
40024         unicase/empty-prefix-context, unicase/empty-suffix-context.
40025
40026         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40027         invocation.
40028         * modules/unicase/u32-toupper (Depends-on): Add
40029         unicase/empty-prefix-context, unicase/empty-suffix-context.
40030
40031         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40032         invocation.
40033         * modules/unicase/u16-toupper (Depends-on): Add
40034         unicase/empty-prefix-context, unicase/empty-suffix-context.
40035
40036         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40037         * modules/unicase/u8-toupper (Depends-on): Add
40038         unicase/empty-prefix-context, unicase/empty-suffix-context.
40039
40040         New module 'unicase/u32-ct-casefold'.
40041         * lib/unicase/u32-ct-casefold.c: New file.
40042         * modules/unicase/u32-ct-casefold: New file.
40043
40044         New module 'unicase/u16-ct-casefold'.
40045         * lib/unicase/u16-ct-casefold.c: New file.
40046         * modules/unicase/u16-ct-casefold: New file.
40047
40048         New module 'unicase/u8-ct-casefold'.
40049         * lib/unicase/u8-ct-casefold.c: New file.
40050         * lib/unicase/u-ct-casefold.h: New file, derived from
40051         lib/unicase/u-casefold.h.
40052         * modules/unicase/u8-ct-casefold: New file.
40053
40054         New module 'unicase/u32-ct-totitle'.
40055         * lib/unicase/u32-ct-totitle.c: New file.
40056         * modules/unicase/u32-ct-totitle: New file.
40057
40058         New module 'unicase/u16-ct-totitle'.
40059         * lib/unicase/u16-ct-totitle.c: New file.
40060         * modules/unicase/u16-ct-totitle: New file.
40061
40062         New module 'unicase/u8-ct-totitle'.
40063         * lib/unicase/u8-ct-totitle.c: New file.
40064         * lib/unicase/u-ct-totitle.h: New file, derived from
40065         lib/unicase/u-totitle.h.
40066         * modules/unicase/u8-ct-totitle: New file.
40067
40068         New module 'unicase/u32-ct-tolower'.
40069         * lib/unicase/u32-ct-tolower.c: New file.
40070         * modules/unicase/u32-ct-tolower: New file.
40071
40072         New module 'unicase/u16-ct-tolower'.
40073         * lib/unicase/u16-ct-tolower.c: New file.
40074         * modules/unicase/u16-ct-tolower: New file.
40075
40076         New module 'unicase/u8-ct-tolower'.
40077         * lib/unicase/u8-ct-tolower.c: New file.
40078         * modules/unicase/u8-ct-tolower: New file.
40079
40080         New module 'unicase/u32-ct-toupper'.
40081         * lib/unicase/u32-ct-toupper.c: New file.
40082         * modules/unicase/u32-ct-toupper: New file.
40083
40084         New module 'unicase/u16-ct-toupper'.
40085         * lib/unicase/u16-ct-toupper.c: New file.
40086         * modules/unicase/u16-ct-toupper: New file.
40087
40088         New module 'unicase/u8-ct-toupper'.
40089         * lib/unicase/u8-ct-toupper.c: New file.
40090         * modules/unicase/u8-ct-toupper: New file.
40091
40092         Add context arguments to u*_casemap functions.
40093         * lib/unicase/unicasemap.h: Include unicase.h.
40094         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40095         suffix_context arguments.
40096         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40097         functions.
40098         (FUNC): Add prefix_context and suffix_context arguments. Use
40099         uc_is_cased and uc_is_case_ignorable.
40100         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40101         * lib/unicase/u16-casemap.c: Likewise.
40102         * lib/unicase/u32-casemap.c: Likewise.
40103         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40104         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40105         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40106         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40107         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40108         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40109
40110         New module 'unicase/u32-suffix-context'.
40111         * lib/unicase/u32-suffix-context.c: New file.
40112         * modules/unicase/u32-suffix-context: New file.
40113
40114         New module 'unicase/u16-suffix-context'.
40115         * lib/unicase/u16-suffix-context.c: New file.
40116         * modules/unicase/u16-suffix-context: New file.
40117
40118         New module 'unicase/u8-suffix-context'.
40119         * lib/unicase/u8-suffix-context.c: New file.
40120         * lib/unicase/u-suffix-context.h: New file.
40121         * modules/unicase/u8-suffix-context: New file.
40122
40123         New module 'unicase/empty-suffix-context'.
40124         * lib/unicase/empty-suffix-context.c: New file.
40125         * modules/unicase/empty-suffix-context: New file.
40126
40127         New module 'unicase/u32-prefix-context'.
40128         * lib/unicase/u32-prefix-context.c: New file.
40129         * modules/unicase/u32-prefix-context: New file.
40130
40131         New module 'unicase/u16-prefix-context'.
40132         * lib/unicase/u16-prefix-context.c: New file.
40133         * modules/unicase/u16-prefix-context: New file.
40134
40135         New module 'unicase/u8-prefix-context'.
40136         * lib/unicase/u8-prefix-context.c: New file.
40137         * lib/unicase/u-prefix-context.h: New file.
40138         * lib/unicase/context.h: New file.
40139         * modules/unicase/u8-prefix-context: New file.
40140
40141         New module 'unicase/empty-prefix-context'.
40142         * lib/unicase/empty-prefix-context.c: New file.
40143         * modules/unicase/empty-prefix-context: New file.
40144
40145         New module 'unicase/ignorable'.
40146         * lib/unicase/ignorable.c: New file.
40147         * modules/unicase/ignorable: New file.
40148
40149         New module 'unicase/cased'.
40150         * lib/unicase/caseprop.h: New file.
40151         * lib/unicase/cased.c: New file.
40152         * modules/unicase/cased: New file.
40153
40154         New functions for case mapping of substrings.
40155         * lib/unicase.h (casing_prefix_context_t): New type.
40156         (unicase_empty_prefix_context): New variable.
40157         (u8_casing_prefix_context, u16_casing_prefix_context,
40158         u32_casing_prefix_context, u8_casing_prefixes_context,
40159         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40160         declarations.
40161         (casing_suffix_context_t): New type.
40162         (unicase_empty_suffix_context): New variable.
40163         (u8_casing_suffix_context, u16_casing_suffix_context,
40164         u32_casing_suffix_context, u8_casing_suffixes_context,
40165         u16_casing_suffixes_context, u32_casing_suffixes_context,
40166         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40167         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40168         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40169         declarations.
40170
40171 2009-06-28  Jim Meyering  <meyering@redhat.com>
40172
40173         boostrap: indent only with spaces
40174         * build-aux/bootstrap: Indent only with spaces, never TABs.
40175
40176         bootstrap: split long lines
40177         * build-aux/bootstrap: Keep line length < 80.
40178
40179         bootstrap: sync from coreutils
40180         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40181         just as autoreconf does.  Verify a list of prerequisite
40182         package-name,version-number pairs if defined in bootstrap.conf.
40183         Refer to README-prereq, if prerequisites are not satisfied.
40184
40185 2009-06-27  Eric Blake  <ebb9@byu.net>
40186
40187         tests: add test for bogus NULL definition
40188         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40189         * tests/test-stdlib.c: Likewise.
40190         * tests/test-string.c: Likewise.
40191         * tests/test-locale.c: Likewise.
40192         * tests/test-unistd.c: Likewise.
40193         * modules/stdio-tests (Depends-on): Add verify.
40194         * modules/stdlib-tests (Depends-on): Likewise.
40195         * modules/string-tests (Depends-on): Likewise.
40196         * modules/locale-tests (Depends-on): Likewise.
40197         * modules/unistd-tests (Depends-on): Likewise.
40198
40199 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40200
40201         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40202         self-explaining comment.
40203         * m4/selinux-selinux-h: Update serial.
40204         (gl_LIBSELINUX): New macro, adding a warning for missing development
40205         packages to code extracted from...
40206         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40207         Add warning for missing development packages here, too.
40208
40209 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40210
40211         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40212
40213 2009-06-25  Eric Blake  <ebb9@byu.net>
40214
40215         version-etc: fix regression
40216         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40217         gcc.
40218         (version_etc): Use it, to catch bugs with trailing NULL.
40219         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40220         (version_etc_va): Fix logic bug.
40221         * modules/version-etc-tests: Add test.
40222         * tests/test-version-etc.c: New file.
40223         * tests/test-version-etc.sh: Likewise.
40224
40225 2009-06-25  Sam Steingold  <sds@gnu.org>
40226
40227         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40228         mbtowc declaration.
40229
40230 2009-06-25  Eric Blake  <ebb9@byu.net>
40231
40232         fpurge: migrate into <stdio.h>
40233         * lib/fpurge.h: Delete...
40234         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40235         * lib/fpurge.c (fpurge): Change declaring header.
40236         * modules/fpurge (Files): Drop deleted file.
40237         (Depends-on): Add stdio.
40238         (configure.ac): Set witness.
40239         * modules/stdio (Makefile.am): Support fpurge macros.
40240         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40241         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40242         * lib/fflush.c: Update client.
40243         * tests/test-fpurge.c: Likewise.
40244         * NEWS: Mention the change.
40245
40246 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40247
40248         * lib/argp-version-etc.c (program_authors): Add const
40249         qualifier.
40250         * lib/version-etc.c: Fix typos in the comments.
40251         * modules/argp-version-etc: Depends on version-etc.
40252
40253 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40254
40255         argp-version-etc: new module.
40256
40257         * lib/argp-version-etc.c: New file.
40258         * lib/argp-version-etc.h: New file.
40259         * modules/argp-version-etc: New file.
40260         * modules/argp-version-etc-tests: New file.
40261         * tests/test-argp-version-etc.c: New test.
40262         * tests/test-argp-version-etc-1.sh: New test.
40263
40264 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40265
40266         Provide additional interfaces and documentation for version-etc
40267         module.
40268
40269         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40270         interfaces.
40271         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40272         prototypes.
40273
40274 2009-06-24  Bruno Haible  <bruno@clisp.org>
40275
40276         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40277         HAVE_LIB${NAME} macro.
40278         Reported by Sam Steingold <sds@gnu.org>.
40279
40280 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40281
40282         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40283         needed.
40284
40285 2009-06-21  Bruno Haible  <bruno@clisp.org>
40286
40287         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40288         work.
40289         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40290         together with LIB${NAME}, LTLIB${NAME}.
40291         Reported by Sam Steingold <sds@gnu.org>.
40292
40293 2009-06-20  Jim Meyering  <meyering@redhat.com>
40294
40295         tests: make sc_require_test_exit_idiom more generic
40296         * top/maint.mk (Exit_witness_file): New overridable variable.
40297         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40298         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40299
40300 2009-06-19  Jim Meyering  <meyering@redhat.com>
40301
40302         hash: reverse order of src/dst parameters in an internal interface
40303         * lib/hash.c (transfer_entries): Reverse order of parameters to
40304         put DST before SRC.  Adjust callers.
40305
40306         tests: test-hash: avoid wholesale duplication
40307         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40308         Instead, use a loop and add a single conditional.
40309
40310         tests: test-hash: allow seed selection via a command line argument
40311         * tests/test-hash.c (get_seed): New function.
40312         (main): Use it.
40313
40314 2009-06-19  Eric Blake  <ebb9@byu.net>
40315
40316         hash: avoid memory leak on allocation failure
40317         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40318         failure.  Factor repeated algorithm...
40319         (transfer_entries): ...into new helper routine.
40320         (hash_delete): React to hash_rehash return value.
40321
40322         hash: reduce memory pressure in hash_rehash no-op case
40323         * lib/hash.c (next_prime): Avoid overflow.
40324         (hash_initialize): Factor bucket size computation...
40325         (compute_bucket_size): ...into new helper function.
40326         (hash_rehash): Use new function and open coding to reduce memory
40327         pressure, and avoid a memory leak in USE_OBSTACK code.
40328         Reported by Jim Meyering.
40329
40330 2009-06-18  Eric Blake  <ebb9@byu.net>
40331
40332         hash: make rotation more obvious
40333         * modules/hash (Depends-on): Add bitrotate and stdint.
40334         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40335         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40336         (SIZE_MAX): Rely on headers for definition.
40337         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40338         (raw_hasher): Use rotr_sz.
40339         Suggested by Jim Meyering.
40340
40341         hash: fix memory leak in last patch
40342         * lib/hash.c (hash_rehash): Avoid memory leak.
40343
40344         hash: avoid no-op rehashing
40345         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40346
40347         hash: provide default callback functions
40348         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40349         (hash_initialize): Use them as defaults.
40350         * tests/test-hash.c (main): Test this.
40351
40352         hash: minor optimization
40353         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40354         when possible.
40355         (hash_initialize): Document this promise.
40356         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40357         * tests/test-hash.c (hash_compare_strings): Test this.
40358
40359 2009-06-18  Bruno Haible  <bruno@clisp.org>
40360
40361         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40362         going to be replaced anyway.
40363
40364 2009-06-18  Bruno Haible  <bruno@clisp.org>
40365
40366         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40367         in one place.
40368         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40369         be replaced anyway.
40370
40371 2009-06-18  Eric Blake  <ebb9@byu.net>
40372
40373         hash: check for resize before insertion
40374         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40375         threshold before insertion, so that a pathological hash_rehash
40376         that fills every bucket can still trigger another rehash.
40377
40378 2009-06-18  Jim Meyering  <meyering@redhat.com>
40379
40380         hash-tests: add a loop around the small tests
40381         * tests/test-hash.c (main): Repeat small tests with selected
40382         small initial table sizes.
40383
40384 2009-06-17  Eric Blake  <ebb9@byu.net>
40385
40386         hash: minor cleanups
40387         * lib/hash.h (hash_entry): Make opaque, by moving...
40388         * lib/hash.c (hash_entry): ...here.
40389         (hash_insert): Clarify restrictions on what can be inserted.
40390         (hash_get_next): Clarify when it is safe to remove an element
40391         during traversal.
40392         (check_tuning): Skip verification when tuning is known safe.
40393         (hash_initialize): Clarify restrictions on tuning.
40394
40395 2009-06-17  Jim Meyering  <jim@meyering.net>
40396         and Eric Blake  <ebb9@byu.net>
40397
40398         hash-tests: new module
40399         * modules/hash-tests: New file.
40400         * tests/test-hash.c: New file.
40401
40402 2009-06-17  Eric Blake  <ebb9@byu.net>
40403
40404         strstr-simple: document new module
40405         * MODULES.html.sh: Document new module.
40406
40407         strstr, strcasestr: replace on platforms with broken memchr
40408         * modules/strstr: Split into...
40409         * modules/strstr-simple: ...new module that does not care about
40410         performance, but does care about glibc bug.
40411         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40412         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40413         if platform memchr is broken, per Debian bug 521737.
40414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40415         memchr.
40416         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40417         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40418         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40419         * modules/mountlist (Depends-on): Add strstr-simple.
40420         * modules/gen-uni-tables (Depends-on): Likewise.
40421         * modules/argz (Depends-on): Add strstr.
40422
40423 2009-06-17  Bruno Haible  <bruno@clisp.org>
40424
40425         * modules/posix_spawn-internal (Depends-on): Add errno.
40426
40427 2009-06-17  Bruno Haible  <bruno@clisp.org>
40428
40429         Define missing ESTALE on Interix 3.5.
40430         * lib/errno.in.h (ESTALE): Assign a value if missing.
40431         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40433         missing.
40434         * doc/posix-headers/errno.texi: Mention the Interix bug.
40435         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40436
40437 2009-06-15  Eric Blake  <ebb9@byu.net>
40438
40439         memchr, memchr2: add valgrind exception
40440         * lib/memchr.valgrind: New file.
40441         * lib/memchr2.valgrind: New file.
40442         * modules/memchr (Files): Distribute valgrind file.
40443         * modules/memchr2 (Files): Likewise.
40444
40445         docs: memchr is no longer obsolete
40446         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40447         * lib/string.in.h (memchr): Simplify logic.
40448
40449 2009-06-14  Jim Meyering  <meyering@redhat.com>
40450
40451         link-follow: fix the "checking..." message to not mention trailing slash
40452         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40453         never considered trailing slashes.
40454
40455 2009-06-14  Bruno Haible  <bruno@clisp.org>
40456
40457         * m4/memchr.m4: Mention also the bug on IA-64.
40458         * doc/posix-functions/memchr.texi: Likewise.
40459
40460 2009-06-12  Eric Blake  <ebb9@byu.net>
40461
40462         memchr: detect broken x86_64 and alpha implementations
40463         * modules/memchr-tests (Depends-on): Move mmap detection...
40464         * modules/memchr (Depends-on): ...here.
40465         (configure.ac): Set indicator.
40466         * lib/string.in.h (memchr): Declare replacement.
40467         * modules/string (Makefile.am): Trigger replacement.
40468         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40469         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40470         bugs.
40471         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40472         * modules/getpagesize (License): Relax license.
40473
40474 2009-06-11  Bruno Haible  <bruno@clisp.org>
40475
40476         * lib/idpriv.h: Add more references.
40477
40478 2009-06-08  Bruno Haible  <bruno@clisp.org>
40479
40480         Tests for module 'idpriv-droptemp'.
40481         * modules/idpriv-droptemp-tests: New file.
40482         * tests/test-idpriv-droptemp.sh: New file.
40483         * tests/test-idpriv-droptemp.su.sh: New file.
40484         * tests/test-idpriv-droptemp.c: New file.
40485
40486         New module 'idpriv-droptemp'.
40487         * lib/idpriv-droptemp.c: New file.
40488         * modules/idpriv-droptemp: New file.
40489
40490 2009-06-08  Bruno Haible  <bruno@clisp.org>
40491
40492         Tests for module 'idpriv-drop'.
40493         * modules/idpriv-drop-tests: New file.
40494         * tests/test-idpriv-drop.sh: New file.
40495         * tests/test-idpriv-drop.su.sh: New file.
40496         * tests/test-idpriv-drop.c: New file.
40497
40498         New module 'idpriv-drop'.
40499         * lib/idpriv.h: New file.
40500         * lib-idpriv-drop.c: New file.
40501         * m4/idpriv.m4: New file.
40502         * modules/idpriv-drop: New file.
40503
40504 2009-06-08  Bruno Haible  <bruno@clisp.org>
40505
40506         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40507         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40508         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40509         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40510         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40511         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40512         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40513
40514 2009-06-08  Eric Blake  <ebb9@byu.net>
40515
40516         test-strstr: use memory fence, when possible
40517         * tests/test-strstr.c (main): Use memory fence, in order to be
40518         more likely to trigger Debian bug 521737.
40519         * modules/strstr-tests (Files): Pull in additional files.
40520
40521         memchr: no longer obsolete, for wider field testing
40522         * modules/memchr (Status, Notice): Delete, this module is no
40523         longer obsolete.
40524         * modules/vasnprintf (Depends-on): Add memchr.
40525
40526 2009-06-07  Jim Meyering  <meyering@redhat.com>
40527
40528         hash: declare some functions with the warn_unused_result attribute
40529         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40530
40531 2009-06-07  Bruno Haible  <bruno@clisp.org>
40532
40533         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40534         Reported by Eric Blake.
40535
40536 2009-06-06  Eric Blake  <ebb9@byu.net>
40537
40538         test-alignof: fix typo with long double
40539         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40540         compiler error.
40541
40542 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40543
40544         Escape non-texinfo { and }s.
40545         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40546         markup error.
40547
40548 2009-06-04  Jim Meyering  <meyering@redhat.com>
40549
40550         gitlog-to-changelog: don't infloop on an empty commit log
40551         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40552         Reported by Boris Petersen <transacid@centerim.org>.
40553
40554 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40555
40556         version-etc: extend for packagers
40557         Add three new configure options, intended for packagers:
40558           --with-packager="packager name"
40559           --with-packager-version="packager-specific version"
40560           --with-packager-bug-reports="packager bug reporting"
40561         An example with coreutils:
40562           $ ./configure \
40563             --with-packager=Gentoo \
40564             --with-packager-bug-report=http://bugs.gentoo.org/ \
40565             --with-packager-version="patchset 1.6"
40566           $ ./src/ls --version | head -n2
40567           ls (GNU coreutils) 7.1-dirty
40568           Packaged by Gentoo (patchset 1.6)
40569         Note that the bug reporting info via --help doesn't show up because
40570         coreutils uses its own custom emit_bug_reporting_address() implementation
40571         in src/system.h.  If it didn't, it'd look like:
40572           $ ./src/ls --help | tail -n4
40573           Report bugs to <bug-coreutils@gnu.org>.
40574           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40575           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40576           General help using GNU software: <http://www.gnu.org/gethelp/>.
40577         * lib/version-etc.c: Print new information, if provided.
40578         * m4/version-etc.m4: New file.
40579         * modules/version-etc (Files): Add m4/version-etc.m4.
40580         (configure.ac): Add gl_VERSION_ETC.
40581
40582 2009-05-31  Bruno Haible  <bruno@clisp.org>
40583
40584         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40585         and 'int64_t'.
40586         * modules/alignof-tests (Dependencies): Add stdint.
40587         Reported by Eric Blake.
40588
40589 2009-05-31  Bruno Haible  <bruno@clisp.org>
40590
40591         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40592         restriction due to compiler bugs.
40593         Reported by Eric Blake.
40594
40595 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40596             Bruno Haible  <bruno@clisp.org>
40597
40598         Fix test-alignof failure.
40599         * lib/alignof.h (alignof_slot): New macro.
40600         (alignof_type): New macro, with the same semantics as the previous
40601         'alignof'.
40602         (alignof): Alias to alignof_slot.
40603         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40604         check that the results are usable as constant expressions.
40605
40606 2009-05-31  Bruno Haible  <bruno@clisp.org>
40607
40608         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40609         * tests/test-memchr.c (main): Check that memchr does not read past the
40610         first occurrence of the byte.
40611         * tests/test-strstr.c (main): Update comment.
40612         Suggested by Eric Blake.
40613
40614 2009-05-30  Bruno Haible  <bruno@clisp.org>
40615
40616         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40617         detail how to use dumpbin.
40618         Reported by David Byron <dbyron@dbyron.com>.
40619
40620 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40621
40622         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40623
40624 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40625
40626         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40627
40628 2009-05-28  Bruno Haible  <bruno@clisp.org>
40629
40630         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40631         build-aux/ files.
40632
40633 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40634
40635         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40636
40637 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40638
40639         * gnulib-tool (sed_transform_main_lib_file)
40640         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40641         regexps.
40642
40643 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40644
40645         * tests/test-strstr.c: Add another self-test.
40646         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40647         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40648
40649 2009-05-23  Bruno Haible  <bruno@clisp.org>
40650
40651         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40652         change.
40653
40654 2009-05-21  Bruno Haible  <bruno@clisp.org>
40655
40656         Simplify use of mode_t varargs.
40657         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40658         uses 'mode_t' or 'int'.
40659         * lib/openat.c (openat): Likewise.
40660         * lib/open-safer.c (open_safer): Likewise.
40661         * m4/mode_t.m4: New file.
40662         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40663         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40665         * modules/open (Files): Add m4/mode_t.m4.
40666         * modules/openat (Files): Likewise.
40667         * modules/fcntl-safer (Files): Likewise.
40668         Suggested by Eric Blake.
40669
40670 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40671
40672         * doc/glibc-functions/fallocate.texi: New file.
40673         * doc/gnulib.texi: Include it.
40674
40675 2009-05-21  Eric Blake  <ebb9@byu.net>
40676             Bruno Haible  <bruno@clisp.org>
40677
40678         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40679         invocations.
40680         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40681
40682 2009-05-21  Eric Blake  <ebb9@byu.net>
40683             Bruno Haible  <bruno@clisp.org>
40684
40685         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40686         include_next. Fix of 2008-11-20 commit.
40687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40688         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40689         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40690         NEXT_MATH_H.
40691         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40692         instead of NEXT_MATH_H.
40693
40694 2009-05-21  Bruno Haible  <bruno@clisp.org>
40695
40696         Avoid redefinition warnings for SIZE_MAX.
40697         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40698         Reported by Simon Josefsson.
40699
40700 2009-05-21  Bruno Haible  <bruno@clisp.org>
40701
40702         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40703         AC_CACHE_VAL.
40704
40705 2009-05-20  Bruno Haible  <bruno@clisp.org>
40706
40707         Make zeroptr.h work on mingw.
40708         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40709         mprotect.
40710         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40711         * modules/memchr2-tests (configure.ac): Likewise.
40712         * modules/memcmp-tests (configure.ac): Likewise.
40713         * modules/memmem-tests (configure.ac): Likewise.
40714         * modules/memrchr-tests (configure.ac): Likewise.
40715         Reported by Simon Josefsson.
40716
40717 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40718
40719         * tests/test-glob.c: Include string.h for strcmp prototype.
40720
40721 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40722
40723         * modules/getdelim (Depends-on): Add explicit stdint, although it
40724         was implicitly already pulled in via realloc-posix.
40725         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40726
40727 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40728
40729         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40730         G. Christensen" <tgc@jupiterrise.com>.
40731         * m4/sys_socket_h.m4: Check for sa_family_t.
40732         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40733         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40734         * tests/test-sys_socket.c: Check that sa_family_t works.
40735
40736 2009-05-18  Eric Blake  <ebb9@byu.net>
40737
40738         maint.mk: allow gnulib_dir in VPATH build
40739         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40740
40741 2009-05-15  Jim Meyering  <meyering@redhat.com>
40742
40743         maint.mk: Give gnulib_dir a default definition.
40744         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40745         Thus, most packages no longer need to specify this variable in cfg.mk
40746
40747 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40748
40749         rename.m4: fix typos that would make non-mingw cross-configure fail
40750         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40751
40752 2009-05-13  Eric Blake  <ebb9@byu.net>
40753
40754         mmap-anon: avoid out-of-order autoconf expansion
40755         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40756         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40757         * modules/memchr-tests (Depends-on): Add extensions.
40758         * modules/memchr2-tests (Depends-on): Add extensions.
40759         * modules/memcmp-tests (Depends-on): Add extensions.
40760         * modules/memmem-tests (Depends-on): Add extensions.
40761         * modules/memrchr-tests (Depends-on): Add extensions.
40762
40763 2009-05-13  Bruno Haible  <bruno@clisp.org>
40764
40765         Make some tests ISO C 99 compliant.
40766         * tests/zerosize-ptr.h: New file.
40767         * tests/test-memchr.c: Include zerosize-ptr.h.
40768         (main): Use a zero-size object pointer instead of NULL.
40769         * tests/test-memchr2.c: Include zerosize-ptr.h.
40770         (main): Use a zero-size object pointer instead of NULL.
40771         * tests/test-memcmp.c: Include zerosize-ptr.h.
40772         (main): Use a zero-size object pointer instead of NULL.
40773         * tests/test-memmem.c: Include zerosize-ptr.h.
40774         (main): Use a zero-size object pointer instead of NULL.
40775         * tests/test-memrchr.c: Include zerosize-ptr.h.
40776         (main): Use a zero-size object pointer instead of NULL.
40777         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40778         m4/mmap-anon.m4.
40779         (Depends-on): Add getpagesize.
40780         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40781         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40782         m4/mmap-anon.m4.
40783         (Depends-on): Add getpagesize.
40784         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40785         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40786         m4/mmap-anon.m4.
40787         (Depends-on): Add getpagesize.
40788         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40789         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40790         m4/mmap-anon.m4.
40791         (Depends-on): Add getpagesize.
40792         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40793         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40794         m4/mmap-anon.m4.
40795         (Depends-on): Add getpagesize.
40796         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40797
40798 2009-05-12  Bruno Haible  <bruno@clisp.org>
40799
40800         Tests for module 'alignof'.
40801         * modules/alignof-tests: New file.
40802         * tests/test-alignof.c: New file.
40803
40804 2009-05-12  Bruno Haible  <bruno@clisp.org>
40805
40806         Fix alignof macro.
40807         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40808         vendor compilers that are always correct.
40809
40810 2009-05-12  Bruno Haible  <bruno@clisp.org>
40811
40812         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40813         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40814         not whether its fully works.
40815
40816 2009-05-12  Bruno Haible  <bruno@clisp.org>
40817
40818         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40819
40820 2009-05-12  Jim Meyering  <meyering@redhat.com>
40821
40822         * top/maint.mk: Adjust backslash alignment.
40823
40824 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40825
40826         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40827
40828 2009-05-11  Eric Blake  <ebb9@byu.net>
40829
40830         argp: avoid undefined behavior
40831         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40832         macros.
40833
40834 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40835
40836         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40837         user.name to prevent git commit from complaining.
40838
40839 2009-05-10  Bruno Haible  <bruno@clisp.org>
40840
40841         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40842         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40843         it rewrites every file name only once.
40844         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40845
40846 2009-05-08  Bruno Haible  <bruno@clisp.org>
40847
40848         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40849         instead of 'max'.
40850
40851 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40852
40853         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40854         sockaddr_storage test.
40855
40856 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40857
40858         * modules/sys_socket (Makefile.am): Substitute
40859         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40860         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40861         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40862         * tests/test-sys_socket.c: Check sockaddr_storage.
40863
40864 2009-05-08  Bruno Haible  <bruno@clisp.org>
40865
40866         New module 'alignof'.
40867         * lib/alignof.h: New file.
40868         * modules/alignof: New file.
40869
40870 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40871             Bruno Haible  <bruno@clisp.org>
40872
40873         Fix test-file-has-acl on FreeBSD.
40874         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40875         mask is implicitly added.
40876         * tests/test-file-has-acl.c: Include <signal.h>.
40877         (main): Terminate the test after 5 seconds.
40878         * modules/acl-tests (configure.ac): Check for alarm function.
40879
40880 2009-05-04  Bruno Haible  <bruno@clisp.org>
40881
40882         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40883         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40884         * modules/errno (configure.ac): Drop AC_REQUIRE.
40885         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40886         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40887
40888 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40889
40890         * modules/glob-tests: New module.
40891         * tests/test-glob.c: Add.
40892
40893 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40894
40895         * modules/fnmatch-tests: New module.
40896         * tests/test-fnmatch.c: Add.
40897
40898 2009-05-04  Eric Blake  <ebb9@byu.net>
40899
40900         maint: make the new no-submodule-changes rule VPATH-safe
40901         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40902
40903 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40904             Bruno Haible  <bruno@clisp.org>
40905
40906         acl: Fix infinite loop on FreeBSD.
40907         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40908         of return value from acl_get_entry.
40909         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40910         Likewise.
40911
40912 2009-05-03  Bruno Haible  <bruno@clisp.org>
40913
40914         * lib/acl-internal.h (acl_entries): Clarify return value.
40915         * lib/acl_entries.c (acl_entries): Likewise.
40916
40917 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40918
40919         Bug fix in acl module.
40920         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40921
40922 2009-05-03  Bruno Haible  <bruno@clisp.org>
40923
40924         Create gperf-generated file in the source dir, not in the build dir.
40925         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40926         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40927         * modules/unicase/locale-language (unicase/locale-languages.h):
40928         Likewise.
40929         * modules/unicase/special-casing (unicase/special-casing-table.h):
40930         Likewise.
40931         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40932         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40933         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40934         Reported by Ralf Wildenhues.
40935
40936 2009-05-03  Bruno Haible  <bruno@clisp.org>
40937
40938         * modules/fnmatch (Description, configure.ac): Taken from
40939         fnmatch-posix.
40940         * modules/fnmatch-posix: Turn into a symbolic reference to the
40941         'fnmatch' module, and deprecate.
40942         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40943
40944 2009-05-03  Bruno Haible  <bruno@clisp.org>
40945
40946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40947         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40948         Reported by Ralf Wildenhues.
40949
40950 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40951
40952         * m4/fnmatch.m4: Fix fnmatch re-define.
40953
40954 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40955
40956         priv-set: new module and tests; adapt write-any-file
40957         * lib/priv-set.c: New file.
40958         * lib/priv-set.h: New file.
40959         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40960         * lib/write-any-file.c: Simplify by using priv-set module.
40961         * m4/priv-set.m4: New file.
40962         * modules/priv-set: New file.
40963         * modules/unlinkdir: Add dependency on priv-set module.
40964         * modules/write-any-file: Likewise.
40965
40966         Tests for module 'priv-set'.
40967         * modules/priv-set-tests: New file.
40968         * tests/test-priv-set.c: New file.
40969
40970 2009-05-03  Jim Meyering  <meyering@redhat.com>
40971             Bruno Haible  <bruno@clisp.org>
40972
40973         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40974         use the converted UTF-8 variant of the name instead.
40975
40976 2009-05-03  Jim Meyering  <meyering@redhat.com>
40977
40978         tests: tighten some getdate tests
40979         * tests/test-getdate.c (main): Tighten tests: require equality,
40980         not just greater than.  Set TZ envvar to UTC0.
40981
40982 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40983
40984         getdate: correctly interpret "next monday" when run on a Monday
40985         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40986         that e.g., "next tues" (when run on a tuesday) results in a date
40987         that is one week in the future, and not today's date.
40988         I.e., add a week when the wday is the same as the current one.
40989         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40990         and earlier by Martin Bernreuther and Jan Minář.
40991         * tests/test-getdate.c (main): Check that "next DAY" is always in
40992         the future and that "last DAY" is always in the past.
40993
40994 2009-05-02  Jim Meyering  <meyering@redhat.com>
40995
40996         build: ensure that a release build fails when a submodule is unclean
40997         * top/maint.mk (no-submodule-changes): New rule.
40998         (alpha beta major): Depend on it.
40999
41000 2009-05-02  Bruno Haible  <bruno@clisp.org>
41001
41002         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41003         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41004         shell variable gl_fnmatch_required to detect which variant is
41005         requested.
41006         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41007         gl_FUNC_FNMATCH_POSIX.
41008         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41009         exclude fnmatch-posix.
41010
41011 2009-05-02  Bruno Haible  <bruno@clisp.org>
41012
41013         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41014         * modules/mbsrtowcs (License): Change to LGPLv2+.
41015         * modules/strnlen1 (License): Likewise.
41016         Reported by Simon Josefsson.
41017
41018 2009-05-02  Bruno Haible  <bruno@clisp.org>
41019
41020         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41021         "cross".
41022         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41023         gnulib-tool was called with option --source-base=lib.
41024
41025 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41026
41027         Use automake *-local hooks without commands, for extensibility.
41028         * modules/localcharset (Makefile.am): Rename install-exec-local
41029         rule to install-exec-localcharset, and make it a prerequisite of
41030         install-exec-local.  Likewise, rename the uninstall-local rule to
41031         uninstall-localcharset, and make it a prerequisite of the former.
41032
41033 2009-05-01  Bruno Haible  <bruno@clisp.org>
41034
41035         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41036         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41037         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41038         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41039         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41040         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41041         m4/locale-zh.m4, m4/codeset.m4.
41042
41043         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41044         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41045         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41046         m4/locale-zh.m4.
41047
41048         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41049         REPLACE_WCRTOMB if mbstate_t must be replaced.
41050         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41051         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41052
41053 2009-05-01  Bruno Haible  <bruno@clisp.org>
41054
41055         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41056         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41057         dngettext, dcngettext, textdomain, bindtextdomain,
41058         bind_textdomain_codeset): Undefine before redefining.
41059
41060 2009-04-30  Bruno Haible  <bruno@clisp.org>
41061
41062         Fix bug introduced on 2009-04-25.
41063         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41064         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41065         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41066         is defined.
41067         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41068         is defined.
41069         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41070         is defined.
41071         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41072
41073 2009-04-28  Bruno Haible  <bruno@clisp.org>
41074
41075         Comment tweaks.
41076         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41077         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41078         * lib/unicase.h (u*_casexfrm): Likewise.
41079         Reported by Paolo Bonzini.
41080
41081 2009-04-28  Bruno Haible  <bruno@clisp.org>
41082
41083         Fix a compilation error.
41084         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41085         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41086         Reported by Jim Meyering.
41087
41088 2009-04-27  Bruno Haible  <bruno@clisp.org>
41089
41090         New module 'libunistring'.
41091         * modules/libunistring: New file.
41092         * m4/libunistring.m4: New file.
41093         * MODULES.html.sh (Unicode string functions): Add it.
41094
41095 2009-04-27  Eric Blake  <ebb9@byu.net>
41096
41097         maint.mk: allow package-specific header to provide <config.h>
41098         * top/maint.mk (sc_require_config_h): New variable.
41099         (sc_require_config_h, sc_require_config_h_first): Use it.
41100
41101 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41102
41103         * top/maint.mk (sc_avoid_if_before_free): Except
41104         useless-if-before-free script.
41105
41106 2009-04-27  Eric Blake  <ebb9@byu.net>
41107
41108         maintainer-makefile: depend on all required helper scripts
41109         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41110         useless-if-before-free.
41111         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41112         version, rather than assuming gnulib checkout is available.
41113         Reported by Simen Josefsson.
41114
41115 2009-04-26  Bruno Haible  <bruno@clisp.org>
41116
41117         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41118         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41119         "../" or "..".
41120
41121 2009-04-26  Bruno Haible  <bruno@clisp.org>
41122
41123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41124         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41125         AC_LIB_HAVE_LINKFLAGS.
41126
41127 2009-04-26  Bruno Haible  <bruno@clisp.org>
41128
41129         Simplify calling convention of u*_conv_from_encoding.
41130         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41131         u32_conv_from_encoding): Expect a resultbuf argument and return the
41132         result directly as a pointer.
41133         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41134         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41135         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41136         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41137         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41138         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41139         Update.
41140         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41141         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41142         * lib/vasnprintf.c (VASNPRINTF): Update.
41143         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41144         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41145         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41146         * NEWS: Mention the change.
41147
41148 2009-04-26  Bruno Haible  <bruno@clisp.org>
41149
41150         Simplify calling convention of u*_conv_to_encoding.
41151         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41152         u32_conv_to_encoding): Expect a resultbuf argument and return the
41153         result directly as a pointer.
41154         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41155         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41156         freeing scaled_offsets if mem_iconveha failed.
41157         * lib/unicase/u-casexfrm.h (FUNC): Update.
41158         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41159         * lib/vasnprintf.c (VASNPRINTF): Update.
41160         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41161         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41162         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41163         * NEWS: Mention the change.
41164
41165 2009-04-26  Bruno Haible  <bruno@clisp.org>
41166
41167         Avoid test failures on AIX and OSF/1.
41168         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41169         malloc(0).
41170         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41171         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41172         Likewise.
41173         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41174         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41175         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41176         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41177         * doc/posix-functions/malloc.texi: Document the portability problem
41178         related to malloc(0).
41179
41180 2009-04-26  Bruno Haible  <bruno@clisp.org>
41181
41182         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41183         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41184         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41185
41186 2009-04-25  Bruno Haible  <bruno@clisp.org>
41187
41188         Avoid link error when creating a namespace clean library.
41189         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41190         as macro with arguments if already defined as an alias.
41191         * lib/signbitf.c (gl_signbitf): Don't undefine.
41192         * lib/signbitd.c (gl_signbitd): Don't undefine.
41193         * lib/signbitl.c (gl_signbitl): Don't undefine.
41194
41195 2009-04-25  Jim Meyering  <meyering@redhat.com>
41196
41197         vc-list-files: fix another quoting bug
41198         * build-aux/vc-list-files: Avoid sed backslash expansion
41199         of pathological directory names.
41200
41201 2009-04-25  Eric Blake  <ebb9@byu.net>
41202
41203         vc-list-files: fix shell quoting error
41204         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41205         timestamp.
41206
41207 2009-04-25  Jim Meyering  <meyering@redhat.com>
41208
41209         vc-list-files: restore lost functionality with subdir argument
41210         * build-aux/vc-list-files: When given a non-"." sub-directory
41211         argument, substitute the $dir/ prefix back onto each resulting name.
41212         Otherwise, coreutils' root_tests check would fail.
41213
41214 2009-04-24  Eric Blake  <ebb9@byu.net>
41215
41216         vc-list-files: ignore git symlinks
41217         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41218         than ls-files, to ignore git symlinks.
41219
41220         maint.mk: import improvements from m4
41221         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41222         (move_if_change): Delete unused macro.
41223         (news-date-check, vc-diff-check): Support VPATH builds.
41224         (announcement): Likewise.  Split --bootstrap-tools list...
41225         (boostrap-tools): ...into separate list, which can be overridden
41226         in cfg.mk.
41227         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41228         requiring dependency on useless-if-before-free module.
41229         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41230         Support VPATH builds.
41231
41232 2009-04-24  Jim Meyering  <meyering@redhat.com>
41233
41234         maint.mk: remove coreutils-specific rules and variables
41235         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41236         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41237         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41238
41239         maint.mk: remove obsolete rule
41240         * top/maint.mk (rel-check): Remove rule.
41241         (WGET, WGETFLAGS): Remove now-unused variables.
41242
41243 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41244
41245         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41246         consistency.
41247
41248         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41249         '$(PATH_SEPARATOR)' instead of ':'.
41250
41251 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41252
41253         * lib/getopt1.c (main): Use 'const' for static array.
41254
41255 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41256
41257         * top/maint.mk: Sync with coreutils.
41258         * NEWS: Explain incompatibilities.
41259
41260 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41261             Bruno Haible  <bruno@clisp.org>
41262
41263         Fix cross-compilation results.
41264         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41265         statement, as third argument of AC_TRY_RUN.
41266         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41267         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41268         Likewise.
41269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41270         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41271         Likewise.
41272         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41273         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41274         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41275
41276 2009-04-20  Bruno Haible  <bruno@clisp.org>
41277
41278         Avoid test failure on mingw.
41279         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41280
41281 2009-04-20  Bruno Haible  <bruno@clisp.org>
41282
41283         Avoid compilation error on mingw.
41284         * modules/localename-tests (Depends-on): Add locale.
41285
41286 2009-04-19  Bruno Haible  <bruno@clisp.org>
41287
41288         Support for building a shared library on Windows platforms.
41289         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41290         (main): Test the presence of UNINORM_NFC here.
41291         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41292         (main): Test the presence of UNINORM_NFD here.
41293         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41294         (main): Test the presence of UNINORM_NFKC here.
41295         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41296         (main): Test the presence of UNINORM_NFKD here.
41297
41298 2009-04-19  Bruno Haible  <bruno@clisp.org>
41299
41300         Avoid a compiler warning.
41301         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41302         Change type of variable 'sequence'.
41303
41304 2009-04-19  Bruno Haible  <bruno@clisp.org>
41305
41306         * modules/configmake (Makefile.am): When the contents of configmake.h
41307         does not change, arrange to preserve its modification time.
41308
41309 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41310
41311         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41312         gettext domain.
41313
41314 2009-04-16  Jim Meyering  <meyering@redhat.com>
41315
41316         useless-if-before-free: improve conversion code
41317         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41318         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41319
41320 2009-04-14  Bruno Haible  <bruno@clisp.org>
41321
41322         * modules/fcntl (Depends-on): Add extensions.
41323         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41324
41325 2009-04-12  Ben Pfaff  <blp@gnu.org>
41326
41327         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41328         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41329
41330 2009-03-20  Ben Pfaff  <blp@gnu.org>
41331
41332         Make rename replace existing destinations on Windows.
41333         * m4/rename.m4: Add test for Mingw.
41334         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41335         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41336         * doc/posix-functions/rename.texi: Document.
41337
41338 2009-04-10  Bruno Haible  <bruno@clisp.org>
41339
41340         New include file "iconveh.h".
41341         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41342         * lib/striconveh.h: Include it.
41343         (enum iconv_ilseq_handler): Remove definition.
41344         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41345         striconveh.h.
41346         * lib/striconveha.c: Include striconveh.h.
41347         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41348         * modules/striconveh (Files): Add lib/iconveh.h.
41349         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41350         lib/striconveh.h.
41351
41352 2009-04-10  Bruno Haible  <bruno@clisp.org>
41353
41354         * lib/uniconv.h: Update comment.
41355
41356 2009-04-10  Bruno Haible  <bruno@clisp.org>
41357
41358         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41359         always.
41360         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41361         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41362         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41363         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41364         "unistring-notinline.h", so that the function gets defined always.
41365         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41366         * lib/unistr/u8-uctomb.c: Likewise.
41367         * lib/unistr/u16-mbtouc.c: Likewise.
41368         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41369         * lib/unistr/u16-uctomb.c: Likewise.
41370         * lib/unistr/u32-mbtouc.c: Likewise.
41371         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41372         * lib/unistr/u32-uctomb.c: Likewise.
41373
41374 2009-04-10  Bruno Haible  <bruno@clisp.org>
41375
41376         Mark 'utime' obsolete.
41377         * modules/utime (Status, Notice): New sections.
41378         Suggested by Jim Meyering.
41379
41380         Fix cross-compile guess for utime test.
41381         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41382         autoconf.
41383         * doc/posix-functions/utime.texi: Give more precisions.
41384         Reported by Jan <ipif@ymail.com>.
41385
41386 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41387
41388         filevercmp: correct today's change
41389         * lib/filevercmp.c: Also handle coreutils' test inputs.
41390         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41391
41392         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41393         for reporting it.
41394         * lib/filevercmp.c: Special handle for "", "." and "..".
41395         * tests/test-filevercmp.c: Enlarge the set suite.
41396
41397 2009-04-07  Jim Meyering  <meyering@redhat.com>
41398
41399         useless-if-before-free: show how to remove braced useless free, too
41400         * build-aux/useless-if-before-free: still only in a comment, though.
41401
41402 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41403
41404         maint.mk: import changes to syntax-check macros from coreutils
41405         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41406         Use them in the relevant macros.
41407
41408 2009-04-06  Bruno Haible  <bruno@clisp.org>
41409
41410         Fix unportable use of bit-fields.
41411         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41412         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41413         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41414
41415 2009-04-06  Bruno Haible  <bruno@clisp.org>
41416
41417         Avoid test failures on AIX and OSF/1.
41418         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41419         that malloc(0) = NULL.
41420         * tests/unicase/test-u8-tolower.c (check): Likewise.
41421         * tests/unicase/test-u8-totitle.c (check): Likewise.
41422         * tests/unicase/test-u8-toupper.c (check): Likewise.
41423         * tests/unicase/test-u16-casefold.c (check): Likewise.
41424         * tests/unicase/test-u16-tolower.c (check): Likewise.
41425         * tests/unicase/test-u16-totitle.c (check): Likewise.
41426         * tests/unicase/test-u16-toupper.c (check): Likewise.
41427         * tests/unicase/test-u32-casefold.c (check): Likewise.
41428         * tests/unicase/test-u32-tolower.c (check): Likewise.
41429         * tests/unicase/test-u32-totitle.c (check): Likewise.
41430         * tests/unicase/test-u32-toupper.c (check): Likewise.
41431         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41432         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41433         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41434         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41435         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41436         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41437         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41438         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41439         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41440         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41441         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41442         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41443
41444 2009-04-05  Bruno Haible  <bruno@clisp.org>
41445
41446         Work around an autoconf limitation.
41447         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41448         comment line if it would be longer than 3 KB.
41449
41450 2009-04-05  Bruno Haible  <bruno@clisp.org>
41451
41452         Avoid test failure with libiconv-1.13.
41453         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41454         of the expected test results.
41455
41456 2009-04-05  Bruno Haible  <bruno@clisp.org>
41457
41458         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41459         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41460         that it should be installed.
41461
41462 2009-04-05  Bruno Haible  <bruno@clisp.org>
41463
41464         * gnulib-tool: New option --copy-file.
41465         (func_usage): Document it.
41466         (func_dest_tmpfilename): Moved out of func_import.
41467         (func_add_file, func_update_file): New functions, extracted from
41468         func_import.
41469         (func_import): Update.
41470
41471 2009-04-05  Karl Berry  <karl@gnu.org>
41472
41473         * README: prominently mention gnulib-tool.
41474         Rearrange sections so getting the code is near the top.
41475
41476 2009-04-05  Bruno Haible  <bruno@clisp.org>
41477
41478         * lib/unicase.h: Mention u*_cmp2.
41479         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41480         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41481         * lib/unicase/ulc-casecmp.c: Likewise.
41482         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41483         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41484         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41485         unistr/u8-cmp.
41486         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41487         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41488         unistr/u16-cmp.
41489         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41490         unistr/u32-cmp.
41491
41492         * lib/uninorm.h: Mention u*_cmp2.
41493         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41494         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41495         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41496         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41497         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41498         unistr/u8-cmp.
41499         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41500         unistr/u16-cmp.
41501         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41502         unistr/u32-cmp.
41503
41504         New module 'unistr/u32-cmp2'.
41505         * lib/unistr/u32-cmp2.c: New file.
41506         * modules/unistr/u32-cmp2: New file.
41507
41508         New module 'unistr/u16-cmp2'.
41509         * lib/unistr/u16-cmp2.c: New file.
41510         * modules/unistr/u16-cmp2: New file.
41511
41512         New module 'unistr/u8-cmp2'.
41513         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41514         * lib/unistr/u8-cmp2.c: New file.
41515         * lib/unistr/u-cmp2.h: New file.
41516         * modules/unistr/u8-cmp2: New file.
41517
41518 2009-04-05  Bruno Haible  <bruno@clisp.org>
41519
41520         * lib/unictype.h (uc_property_is_valid): New macro.
41521         * tests/unictype/test-pr_byname.c (main): Use it.
41522
41523         * lib/unistr.h: Doc fixes.
41524         * lib/uniconv.h: Doc fixes.
41525         * lib/unictype.h: Doc fixes.
41526
41527 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41528
41529         Port coreutils 7.2 to Solaris 8.
41530
41531         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41532         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41533         for Solaris 8.  This is a bit of a hack, as it means it's the
41534         caller's responsibility to add -lnsl if needed, but most likely it
41535         won't be needed since only getaddrinfo uses this and getaddrinfo
41536         isn't needed on Solaris 8.
41537
41538         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41539         problem to Solaris 8 encountered with coreutils 7.2, which
41540         resulted in a message "fnmatch.c:292: warning: passing argument 4
41541         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41542         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41543
41544 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41545
41546         * m4/ld-version-script.m4: Add FIXME comment.
41547
41548 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41549
41550         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41551         SOVERSION variable.
41552
41553 2009-04-02  Bruno Haible  <bruno@clisp.org>
41554
41555         * Makefile (info, html, dvi, pdf): Combine the rules.
41556         Suggested by Jim Meyering.
41557
41558 2009-04-01  Bruno Haible  <bruno@clisp.org>
41559
41560         * Makefile (info, html, dvi, pdf): New targets.
41561         Reported by Reuben Thomas <rrt@sc3d.org>.
41562
41563 2009-04-01  Bruno Haible  <bruno@clisp.org>
41564
41565         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41566         can be put into PATH.
41567         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41568
41569 2009-04-01  Bruno Haible  <bruno@clisp.org>
41570
41571         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41572
41573 2009-04-01  Bruno Haible  <bruno@clisp.org>
41574
41575         Rename module 'visibility'.
41576         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41577         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41578         * doc/gnulib.texi: Update.
41579         * MODULES.html.sh (Misc): Update.
41580         * NEWS: Mention the change.
41581
41582 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41583
41584         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41585         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41586         Eric Blake <ebb9@byu.net> for review.
41587         * MODULES.html.sh: Add lib-msvc-compat.
41588         * doc/gnulib.texi: Link to new section.
41589         * m4/ld-output-def.m4: New file.
41590         * doc/ld-output-def.texi: New file.
41591
41592 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41593
41594         Rename ld-version-script to lib-symbol-versions.  Suggested by
41595         Bruno Haible <bruno@clisp.org>.
41596         * modules/ld-version-script: Renamed to lib-symbol-versions.
41597         * doc/ld-version-script.texi: Fix module name.
41598         * MODULES.html.sh: Add lib-symbol-versions.
41599
41600 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41601
41602         * modules/u64-tests: New file.
41603         * tests/test-u64.c: New file.
41604
41605 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41606
41607         * MODULES.html.sh: Mention u64.
41608         * modules/u64: New module.
41609         * modules/crypto/sha512: Depend on u64 module instead of providing
41610         u64.h.
41611
41612 2009-03-27  Eric Blake  <ebb9@byu.net>
41613
41614         test-strerror: make debugging EAI_SYSTEM easier
41615         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41616         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41617         failure was EAI_SYSTEM.
41618
41619 2009-03-25  Bruno Haible  <bruno@clisp.org>
41620
41621         Fix a problem with --enable-relocatable on Solaris 7.
41622         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41623         since 2008-02-24.
41624
41625 2009-03-25  Eric Blake  <ebb9@byu.net>
41626
41627         test-sockets: avoid gcc warning
41628         * tests/test-sockets.c (main): Silence compiler warning.
41629
41630 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41631
41632         New modules nproc, pthread, contributed by Glen Lenker.
41633
41634         * MODULES.html.sh: Add pthread, nproc.
41635         * lib/nproc.c: New file.
41636         * lib/nproc.h: New file.
41637         * lib/pthread.in.h: New file.
41638         * m4/pthread.m4: New file.
41639         * modules/nproc: New file.
41640         * modules/pthread: New file.
41641
41642 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41643
41644         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41645         New variable.
41646
41647 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41648
41649         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41650         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41651         * tests/test-filevercmp.c: Add tests for backup suffixes.
41652
41653 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41654
41655         * modules/stdlib (Depends-on): Add stdint, needed when defining
41656         struct random_data on, for example, HP-UX 10.20.  Reported by
41657         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41658
41659 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41660
41661         * lib/readline.c (readline): Call fflush on stdout after printing
41662         prompt.
41663
41664 2009-03-20  Bruno Haible  <bruno@clisp.org>
41665
41666         Remove dependency from 'close' module to -lws2_32 on native Windows.
41667         * lib/close-hook.h: New file.
41668         * lib/close-hook.c: New file.
41669         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41670         w32sock.h.
41671         (_gl_close_fd_maybe_socket): Remove function.
41672         (rpl_close): Invoke execute_all_close_hooks instead of
41673         _gl_close_fd_maybe_socket.
41674         * lib/sockets.c: Include close-hook.h, w32sock.h.
41675         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41676         (close_sockets_hook): New variable.
41677         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41678         (gl_sockets_cleanup): Unregister it.
41679         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41680         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41681         * modules/close-hook: New file.
41682         * modules/close (Files): Remove lib/w32sock.h.
41683         (Depends-on): Add close-hook.
41684         (Link): Remove section.
41685         * modules/sockets (Files): Add lib/w32sock.h.
41686         (Depends-on): Add close-hook.
41687         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41688         invocation.
41689         * NEWS: Mention that LIB_CLOSE is gone.
41690
41691 2009-03-23  Eric Blake  <ebb9@byu.net>
41692
41693         signal-tests: test previous patch
41694         * tests/test-signal.c: New file.
41695         * modules/signal-tests: Likewise.
41696
41697         signal.h: always support 'volatile sig_atomic_t'
41698         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41699         (gl_SIGNAL_H_DEFAULTS): Add a default.
41700         * modules/signal (Makefile.am): Substitute if needed.
41701         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41702         users can blindly add volatile.
41703         * doc/posix-headers/signal.texi (signal.h): Document it.
41704         Reported by Matthew Woehlke.
41705
41706 2009-03-23  Jim Meyering  <meyering@redhat.com>
41707
41708         pathmax: PATH_MAX: use pathconf only when available
41709         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41710         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41711         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41712         This avoids a link failure in a PSP cross-compilation environment
41713         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41714
41715         * lib/vasnprintf.c (divide): Fix typo in comment.
41716
41717 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41718
41719         * gnulib-tool (func_filter_filelist): Fix comment.
41720
41721 2009-03-20  Bruno Haible  <bruno@clisp.org>
41722
41723         Make sockets.h self-contained.
41724         * lib/sockets.c: Include sockets.h first.
41725         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41726
41727 2009-03-19  Eric Blake  <ebb9@byu.net>
41728
41729         doc: mention more functions added in cygwin 1.7.0
41730         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41731         addition.
41732         * doc/posix-functions/log2f.texi: Likewise.
41733
41734 2009-03-19  Jim Meyering  <meyering@redhat.com>
41735
41736         fsusage: avoid syntax error due to statement-before-declaration
41737         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41738         after all declarations.  Reported by Matthew Woehlke in
41739         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41740
41741 2009-03-18  Eric Blake  <ebb9@byu.net>
41742
41743         build-aux/compile: sync from automake
41744         * build-aux/compile: New file, from automake.
41745         * config/srclist.txt: Mention build-aux/compile.
41746
41747 2009-03-17  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/git-merge-changelog.c: Fix typo in comment.
41750         Reported by Reuben Thomas <rrt@sc3d.org>.
41751
41752 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41753
41754         * m4/regex.m4: update and improve help for
41755         --without-included-regex.
41756
41757 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41758
41759         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41760         failure on missing include files.
41761
41762 2009-03-17  Eric Blake  <ebb9@byu.net>
41763
41764         doc: mention more functions added in cygwin 1.7.0
41765         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41766         addition.
41767         * doc/posix-functions/fwscanf.texi: Likewise.
41768         * doc/posix-functions/swprintf.texi: Likewise.
41769         * doc/posix-functions/swscanf.texi: Likewise.
41770         * doc/posix-functions/vfwprintf.texi: Likewise.
41771         * doc/posix-functions/vfwscanf.texi: Likewise.
41772         * doc/posix-functions/vswprintf.texi: Likewise.
41773         * doc/posix-functions/vswscanf.texi: Likewise.
41774         * doc/posix-functions/vwprintf.texi: Likewise.
41775         * doc/posix-functions/vwscanf.texi: Likewise.
41776         * doc/posix-functions/wcscasecmp.texi: Likewise.
41777         * doc/posix-functions/wcsdup.texi: Likewise.
41778         * doc/posix-functions/wcsftime.texi: Likewise.
41779         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41780         * doc/posix-functions/wprintf.texi: Likewise.
41781         * doc/posix-functions/wscanf.texi: Likewise.
41782         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41783
41784 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41785
41786         maint.mk: really add $(AM_MAKEFLAGS)
41787         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41788         was inadvertently omitted in the last commit.
41789         Spotted by Bruno Haible.
41790
41791         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41792         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41793         $(AM_MAKEFLAGS)' rather than plain `make'.
41794
41795         gnulib-tool: execute $MAKE not make
41796         * gnulib-tool: Default $MAKE to 'make'.
41797         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41798         than make.  Initialize $MAKE in the do-autobuild script.
41799
41800         gnulib-tool: use $MAKE not make in generated files
41801         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41802         make, in generated files.  Initialize $MAKE in the do-autobuild
41803         script.
41804
41805         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41806
41807         GNUmakefile: disable parallelism only for multiple, recursive targets
41808         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41809         additions in the Makefile.
41810         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41811         by Automake.
41812         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41813         are listed on the command line and at least one of them is
41814         listed in $(ALL_RECURSIVE_TARGETS).
41815
41816 2009-03-14  Bruno Haible  <bruno@clisp.org>
41817
41818         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41819         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41820         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41821         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41822         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41823         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41824         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41825         unistr/u8-uctomb.
41826         * modules/unistr/u8-strchr (Depends-on): Likewise.
41827         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41828         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41829         unistr/u16-uctomb.
41830         * modules/unistr/u16-strchr (Depends-on): Likewise.
41831         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41832
41833 2009-03-12  Bruno Haible  <bruno@clisp.org>
41834
41835         Work around select() bug on Interix 3.5.
41836         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41837         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41838         * m4/select.m4: New file.
41839         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41840         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41841         * modules/select (Files): Add m4/select.m4.
41842         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41843         * modules/nanosleep (Depends-on): Add select.
41844         * modules/poll (Depends-on): Likewise.
41845         * doc/posix-functions/select.texi: Mention the Interix bug.
41846         Reported by Markus Duft <mduft@gentoo.org>.
41847
41848         * lib/select.c: Renamed from lib/winsock-select.c.
41849         * modules/select (Files): Add lib/select.c, remove
41850         lib/winsock-select.c.
41851         (configure.ac): Update.
41852
41853 2009-03-12  Jim Meyering  <meyering@redhat.com>
41854
41855         avoid gcc warnings about unused macro definitions
41856         * lib/readtokens.c (STREQ): Remove unused definition.
41857         * lib/xmalloc.c (SIZE_MAX): Likewise.
41858         * lib/openat-die.c (N_): Likewise.
41859         * lib/mountlist.c (SIZE_MAX): Remove definition.
41860         Instead, include <stdint.h>.
41861         * lib/readutmp.c: Likewise.
41862         * modules/readutmp (Depends-on): Add stdint.
41863         * modules/mountlist (Depends-on): Add stdint.
41864         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41865
41866 2009-03-10  Bruno Haible  <bruno@clisp.org>
41867
41868         Tests for module 'mbmemcasecoll'.
41869         * modules/mbmemcasecoll-tests: New file.
41870         * tests/test-mbmemcasecoll1.sh: New file.
41871         * tests/test-mbmemcasecoll2.sh: New file.
41872         * tests/test-mbmemcasecoll3.sh: New file.
41873         * tests/test-mbmemcasecoll.c: New file.
41874
41875         New module 'mbmemcasecoll'.
41876         * lib/mbmemcasecoll.h: New file.
41877         * lib/mbmemcasecoll.c: New file.
41878         * modules/mbmemcasecoll: New file.
41879
41880         * tests/test-mbmemcasecmp.h: New file, extracted from
41881         tests/test-mbmemcasecmp.c.
41882         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41883         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41884         (main): Update.
41885         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41886
41887 2009-03-09  Bruno Haible  <bruno@clisp.org>
41888
41889         Tests for module 'mbmemcasecmp'.
41890         * modules/mbmemcasecmp-tests: New file.
41891         * tests/test-mbmemcasecmp1.sh: New file.
41892         * tests/test-mbmemcasecmp2.sh: New file.
41893         * tests/test-mbmemcasecmp3.sh: New file.
41894         * tests/test-mbmemcasecmp.c: New file.
41895
41896         New module 'mbmemcasecmp'.
41897         * lib/mbmemcasecmp.h: New file.
41898         * lib/mbmemcasecmp.c: New file.
41899         * modules/mbmemcasecmp: New file.
41900
41901 2009-03-09  Bruno Haible  <bruno@clisp.org>
41902
41903         Tests for module 'unicase/ulc-casecoll'.
41904         * modules/unicase/ulc-casecoll-tests: New file.
41905         * tests/unicase/test-ulc-casecoll1.sh: New file.
41906         * tests/unicase/test-ulc-casecoll2.sh: New file.
41907         * tests/unicase/test-ulc-casecoll.c: New file.
41908
41909         New module 'unicase/ulc-casecoll'.
41910         * lib/unicase.h (ulc_casecoll): New declaration.
41911         * lib/unicase/ulc-casecoll.c: New file.
41912         * modules/unicase/ulc-casecoll: New file.
41913
41914         New module 'unicase/ulc-casexfrm'.
41915         * lib/unicase.h (ulc_casexfrm): New declaration.
41916         * lib/unicase/ulc-casexfrm.c: New file.
41917         * modules/unicase/ulc-casexfrm: New file.
41918
41919 2009-03-09  Bruno Haible  <bruno@clisp.org>
41920
41921         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41922         invocations.
41923
41924         * m4/mbscasecmp.m4: Remove file.
41925         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41926         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41927
41928         * m4/mbscasestr.m4: Remove file.
41929         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41930         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41931
41932         * m4/mbschr.m4: Remove file.
41933         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41934         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41935
41936         * m4/mbscspn.m4: Remove file.
41937         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41938         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41939
41940         * m4/mbslen.m4: Remove file.
41941         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41942         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41943
41944         * m4/mbsncasecmp.m4: Remove file.
41945         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41946         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41947
41948         * m4/mbsnlen.m4: Remove file.
41949         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41950         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41951
41952         * m4/mbspbrk.m4: Remove file.
41953         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41954         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41955
41956         * m4/mbspcasecmp.m4: Remove file.
41957         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41958         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41959
41960         * m4/mbsrchr.m4: Remove file.
41961         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41962         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41963
41964         * m4/mbssep.m4: Remove file.
41965         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41966         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41967
41968         * m4/mbsspn.m4: Remove file.
41969         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41970         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41971
41972         * m4/mbsstr.m4: Remove file.
41973         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41974         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41975
41976         * m4/mbstok_r.m4: Remove file.
41977         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41978         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41979
41980         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41981
41982         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41983         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41984
41985         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41986
41987 2009-03-08  Bruno Haible  <bruno@clisp.org>
41988
41989         Tests for module 'unicase/ulc-casecmp'.
41990         * modules/unicase/ulc-casecmp-tests: New file.
41991         * tests/unicase/test-ulc-casecmp1.sh: New file.
41992         * tests/unicase/test-ulc-casecmp2.sh: New file.
41993         * tests/unicase/test-ulc-casecmp.c: New file.
41994
41995         New module 'unicase/ulc-casecmp'.
41996         * lib/unicase.h (ulc_casecmp): New declaration.
41997         * lib/unicase/ulc-casecmp.c: New file.
41998         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41999         'const SRC_UNIT *'.
42000         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42001         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42002         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42003         * modules/unicase/ulc-casecmp: New file.
42004
42005         Tests for module 'unicase/u32-is-cased'.
42006         * modules/unicase/u32-is-cased-tests: New file.
42007         * tests/unicase/test-u32-is-cased.c: New file.
42008
42009         Tests for module 'unicase/u16-is-cased'.
42010         * modules/unicase/u16-is-cased-tests: New file.
42011         * tests/unicase/test-u16-is-cased.c: New file.
42012
42013         Tests for module 'unicase/u8-is-cased'.
42014         * modules/unicase/u8-is-cased-tests: New file.
42015         * tests/unicase/test-u8-is-cased.c: New file.
42016         * tests/unicase/test-is-cased.h: New file.
42017
42018         New module 'unicase/u32-is-cased'.
42019         * lib/unicase/u32-is-cased.c: New file.
42020         * modules/unicase/u32-is-cased: New file.
42021
42022         New module 'unicase/u16-is-cased'.
42023         * lib/unicase/u16-is-cased.c: New file.
42024         * modules/unicase/u16-is-cased: New file.
42025
42026         New module 'unicase/u8-is-cased'.
42027         * lib/unicase/u8-is-cased.c: New file.
42028         * lib/unicase/u-is-cased.h: New file.
42029         * modules/unicase/u8-is-cased: New file.
42030
42031         Tests for module 'unicase/u32-is-casefolded'.
42032         * modules/unicase/u32-is-casefolded-tests: New file.
42033         * tests/unicase/test-u32-is-casefolded.c: New file.
42034
42035         Tests for module 'unicase/u16-is-casefolded'.
42036         * modules/unicase/u16-is-casefolded-tests: New file.
42037         * tests/unicase/test-u16-is-casefolded.c: New file.
42038
42039         Tests for module 'unicase/u8-is-casefolded'.
42040         * modules/unicase/u8-is-casefolded-tests: New file.
42041         * tests/unicase/test-u8-is-casefolded.c: New file.
42042         * tests/unicase/test-is-casefolded.h: New file.
42043
42044         New module 'unicase/u32-is-casefolded'.
42045         * lib/unicase/u32-is-casefolded.c: New file.
42046         * modules/unicase/u32-is-casefolded: New file.
42047
42048         New module 'unicase/u16-is-casefolded'.
42049         * lib/unicase/u16-is-casefolded.c: New file.
42050         * modules/unicase/u16-is-casefolded: New file.
42051
42052         New module 'unicase/u8-is-casefolded'.
42053         * lib/unicase/u8-is-casefolded.c: New file.
42054         * modules/unicase/u8-is-casefolded: New file.
42055
42056         Tests for module 'unicase/u32-is-titlecase'.
42057         * modules/unicase/u32-is-titlecase-tests: New file.
42058         * tests/unicase/test-u32-is-titlecase.c: New file.
42059
42060         Tests for module 'unicase/u16-is-titlecase'.
42061         * modules/unicase/u16-is-titlecase-tests: New file.
42062         * tests/unicase/test-u16-is-titlecase.c: New file.
42063
42064         Tests for module 'unicase/u8-is-titlecase'.
42065         * modules/unicase/u8-is-titlecase-tests: New file.
42066         * tests/unicase/test-u8-is-titlecase.c: New file.
42067         * tests/unicase/test-is-titlecase.h: New file.
42068
42069         New module 'unicase/u32-is-titlecase'.
42070         * lib/unicase/u32-is-titlecase.c: New file.
42071         * modules/unicase/u32-is-titlecase: New file.
42072
42073         New module 'unicase/u16-is-titlecase'.
42074         * lib/unicase/u16-is-titlecase.c: New file.
42075         * modules/unicase/u16-is-titlecase: New file.
42076
42077         New module 'unicase/u8-is-titlecase'.
42078         * lib/unicase/u8-is-titlecase.c: New file.
42079         * modules/unicase/u8-is-titlecase: New file.
42080
42081         Tests for module 'unicase/u32-is-lowercase'.
42082         * modules/unicase/u32-is-lowercase-tests: New file.
42083         * tests/unicase/test-u32-is-lowercase.c: New file.
42084
42085         Tests for module 'unicase/u16-is-lowercase'.
42086         * modules/unicase/u16-is-lowercase-tests: New file.
42087         * tests/unicase/test-u16-is-lowercase.c: New file.
42088
42089         Tests for module 'unicase/u8-is-lowercase'.
42090         * modules/unicase/u8-is-lowercase-tests: New file.
42091         * tests/unicase/test-u8-is-lowercase.c: New file.
42092         * tests/unicase/test-is-lowercase.h: New file.
42093
42094         New module 'unicase/u32-is-lowercase'.
42095         * lib/unicase/u32-is-lowercase.c: New file.
42096         * modules/unicase/u32-is-lowercase: New file.
42097
42098         New module 'unicase/u16-is-lowercase'.
42099         * lib/unicase/u16-is-lowercase.c: New file.
42100         * modules/unicase/u16-is-lowercase: New file.
42101
42102         New module 'unicase/u8-is-lowercase'.
42103         * lib/unicase/u8-is-lowercase.c: New file.
42104         * modules/unicase/u8-is-lowercase: New file.
42105
42106         Tests for module 'unicase/u32-is-uppercase'.
42107         * modules/unicase/u32-is-uppercase-tests: New file.
42108         * tests/unicase/test-u32-is-uppercase.c: New file.
42109
42110         Tests for module 'unicase/u16-is-uppercase'.
42111         * modules/unicase/u16-is-uppercase-tests: New file.
42112         * tests/unicase/test-u16-is-uppercase.c: New file.
42113
42114         Tests for module 'unicase/u8-is-uppercase'.
42115         * modules/unicase/u8-is-uppercase-tests: New file.
42116         * tests/unicase/test-u8-is-uppercase.c: New file.
42117         * tests/unicase/test-is-uppercase.h: New file.
42118
42119         New module 'unicase/u32-is-uppercase'.
42120         * lib/unicase/u32-is-uppercase.c: New file.
42121         * modules/unicase/u32-is-uppercase: New file.
42122
42123         New module 'unicase/u16-is-uppercase'.
42124         * lib/unicase/u16-is-uppercase.c: New file.
42125         * modules/unicase/u16-is-uppercase: New file.
42126
42127         New module 'unicase/u8-is-uppercase'.
42128         * lib/unicase/u8-is-uppercase.c: New file.
42129         * modules/unicase/u8-is-uppercase: New file.
42130
42131         New module 'unicase/u32-is-invariant'.
42132         * lib/unicase/u32-is-invariant.c: New file.
42133         * modules/unicase/u32-is-invariant: New file.
42134
42135         New module 'unicase/u16-is-invariant'.
42136         * lib/unicase/u16-is-invariant.c: New file.
42137         * modules/unicase/u16-is-invariant: New file.
42138
42139         New module 'unicase/u8-is-invariant'.
42140         * lib/unicase/u8-is-invariant.c: New file.
42141         * lib/unicase/invariant.h: New file.
42142         * lib/unicase/u-is-invariant.h: New file.
42143         * modules/unicase/u8-is-invariant: New file.
42144
42145         Tests for module 'unicase/u32-casecoll'.
42146         * modules/unicase/u32-casecoll-tests: New file.
42147         * tests/unicase/test-u32-casecoll.c: New file.
42148
42149         Tests for module 'unicase/u16-casecoll'.
42150         * modules/unicase/u16-casecoll-tests: New file.
42151         * tests/unicase/test-u16-casecoll.c: New file.
42152
42153         Tests for module 'unicase/u8-casecoll'.
42154         * modules/unicase/u8-casecoll-tests: New file.
42155         * tests/unicase/test-u8-casecoll.c: New file.
42156
42157         New module 'unicase/u32-casecoll'.
42158         * lib/unicase/u32-casecoll.c: New file.
42159         * modules/unicase/u32-casecoll: New file.
42160
42161         New module 'unicase/u16-casecoll'.
42162         * lib/unicase/u16-casecoll.c: New file.
42163         * modules/unicase/u16-casecoll: New file.
42164
42165         New module 'unicase/u8-casecoll'.
42166         * lib/unicase/u8-casecoll.c: New file.
42167         * lib/unicase/u-casecoll.h: New file.
42168         * modules/unicase/u8-casecoll: New file.
42169
42170         New module 'unicase/u32-casexfrm'.
42171         * lib/unicase/u32-casexfrm.c: New file.
42172         * modules/unicase/u32-casexfrm: New file.
42173
42174         New module 'unicase/u16-casexfrm'.
42175         * lib/unicase/u16-casexfrm.c: New file.
42176         * modules/unicase/u16-casexfrm: New file.
42177
42178         New module 'unicase/u8-casexfrm'.
42179         * lib/unicase/u8-casexfrm.c: New file.
42180         * lib/unicase/u-casexfrm.h: New file.
42181         * modules/unicase/u8-casexfrm: New file.
42182
42183         Tests for module 'unicase/u32-casecmp'.
42184         * modules/unicase/u32-casecmp-tests: New file.
42185         * tests/unicase/test-u32-casecmp.c: New file.
42186
42187         Tests for module 'unicase/u16-casecmp'.
42188         * modules/unicase/u16-casecmp-tests: New file.
42189         * tests/unicase/test-u16-casecmp.c: New file.
42190
42191         Tests for module 'unicase/u8-casecmp'.
42192         * modules/unicase/u8-casecmp-tests: New file.
42193         * tests/unicase/test-u8-casecmp.c: New file.
42194         * tests/unicase/test-casecmp.h: New file.
42195
42196         New module 'unicase/u32-casecmp'.
42197         * lib/unicase/u32-casecmp.c: New file.
42198         * modules/unicase/u32-casecmp: New file.
42199
42200         New module 'unicase/u16-casecmp'.
42201         * lib/unicase/u16-casecmp.c: New file.
42202         * modules/unicase/u16-casecmp: New file.
42203
42204         New module 'unicase/u8-casecmp'.
42205         * lib/unicase/u8-casecmp.c: New file.
42206         * lib/unicase/u-casecmp.h: New file.
42207         * modules/unicase/u8-casecmp: New file.
42208
42209         Tests for module 'unicase/u32-casefold'.
42210         * modules/unicase/u32-casefold-tests: New file.
42211         * tests/unicase/test-u32-casefold.c: New file.
42212
42213         Tests for module 'unicase/u16-casefold'.
42214         * modules/unicase/u16-casefold-tests: New file.
42215         * tests/unicase/test-u16-casefold.c: New file.
42216
42217         Tests for module 'unicase/u8-casefold'.
42218         * modules/unicase/u8-casefold-tests: New file.
42219         * tests/unicase/test-u8-casefold.c: New file.
42220
42221         New module 'unicase/u32-casefold'.
42222         * lib/unicase/u32-casefold.c: New file.
42223         * modules/unicase/u32-casefold: New file.
42224
42225         New module 'unicase/u16-casefold'.
42226         * lib/unicase/u16-casefold.c: New file.
42227         * modules/unicase/u16-casefold: New file.
42228
42229         New module 'unicase/u8-casefold'.
42230         * lib/unicase/u8-casefold.c: New file.
42231         * lib/unicase/u-casefold.h: New file.
42232         * modules/unicase/u8-casefold: New file.
42233
42234         New module 'unicase/tocasefold'.
42235         * lib/unicase/casefold.h: New file.
42236         * lib/unicase/tocasefold.c: New file.
42237         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42238         * modules/unicase/tocasefold: New file.
42239
42240         Tests for module 'unicase/u32-totitle'.
42241         * modules/unicase/u32-totitle-tests: New file.
42242         * tests/unicase/test-u32-totitle.c: New file.
42243
42244         Tests for module 'unicase/u16-totitle'.
42245         * modules/unicase/u16-totitle-tests: New file.
42246         * tests/unicase/test-u16-totitle.c: New file.
42247
42248         Tests for module 'unicase/u8-totitle'.
42249         * modules/unicase/u8-totitle-tests: New file.
42250         * tests/unicase/test-u8-totitle.c: New file.
42251
42252         New module 'unicase/u32-totitle'.
42253         * lib/unicase/u32-totitle.c: New file.
42254         * modules/unicase/u32-totitle: New file.
42255
42256         New module 'unicase/u16-totitle'.
42257         * lib/unicase/u16-totitle.c: New file.
42258         * modules/unicase/u16-totitle: New file.
42259
42260         New module 'unicase/u8-totitle'.
42261         * lib/unicase/u8-totitle.c: New file.
42262         * lib/unicase/u-totitle.h: New file.
42263         * modules/unicase/u8-totitle: New file.
42264
42265         Tests for module 'unicase/u32-tolower'.
42266         * modules/unicase/u32-tolower-tests: New file.
42267         * tests/unicase/test-u32-tolower.c: New file.
42268
42269         Tests for module 'unicase/u16-tolower'.
42270         * modules/unicase/u16-tolower-tests: New file.
42271         * tests/unicase/test-u16-tolower.c: New file.
42272
42273         Tests for module 'unicase/u8-tolower'.
42274         * modules/unicase/u8-tolower-tests: New file.
42275         * tests/unicase/test-u8-tolower.c: New file.
42276
42277         New module 'unicase/u32-tolower'.
42278         * lib/unicase/u32-tolower.c: New file.
42279         * modules/unicase/u32-tolower: New file.
42280
42281         New module 'unicase/u16-tolower'.
42282         * lib/unicase/u16-tolower.c: New file.
42283         * modules/unicase/u16-tolower: New file.
42284
42285         New module 'unicase/u8-tolower'.
42286         * lib/unicase/u8-tolower.c: New file.
42287         * modules/unicase/u8-tolower: New file.
42288
42289         Tests for module 'unicase/u32-toupper'.
42290         * modules/unicase/u32-toupper-tests: New file.
42291         * tests/unicase/test-u32-toupper.c: New file.
42292
42293         Tests for module 'unicase/u16-toupper'.
42294         * modules/unicase/u16-toupper-tests: New file.
42295         * tests/unicase/test-u16-toupper.c: New file.
42296
42297         Tests for module 'unicase/u8-toupper'.
42298         * modules/unicase/u8-toupper-tests: New file.
42299         * tests/unicase/test-u8-toupper.c: New file.
42300
42301         New module 'unicase/u32-toupper'.
42302         * lib/unicase/u32-toupper.c: New file.
42303         * modules/unicase/u32-toupper: New file.
42304
42305         New module 'unicase/u16-toupper'.
42306         * lib/unicase/u16-toupper.c: New file.
42307         * modules/unicase/u16-toupper: New file.
42308
42309         New module 'unicase/u8-toupper'.
42310         * lib/unicase/u8-toupper.c: New file.
42311         * modules/unicase/u8-toupper: New file.
42312
42313         New module 'unicase/u32-casemap'.
42314         * lib/unicase/u32-casemap.c: New file.
42315         * modules/unicase/u32-casemap: New file.
42316
42317         New module 'unicase/u16-casemap'.
42318         * lib/unicase/u16-casemap.c: New file.
42319         * modules/unicase/u16-casemap: New file.
42320
42321         New module 'unicase/u8-casemap'.
42322         * lib/unicase/unicasemap.h: New file.
42323         * lib/unicase/u8-casemap.c: New file.
42324         * lib/unicase/u-casemap.h: New file.
42325         * modules/unicase/u8-casemap: New file.
42326
42327         New module 'unicase/special-casing'.
42328         * lib/unicase/special-casing.h: New file.
42329         * lib/unicase/special-casing.c: New file.
42330         * lib/unicase/special-casing-table.gperf: New file, generated by
42331         gen-uni-tables.c.
42332         * modules/unicase/special-casing: New file.
42333
42334         Tests for module 'unicase/locale-language'.
42335         * modules/unicase/locale-language-tests: New file.
42336         * tests/unicase/test-locale-language.sh: New file.
42337         * tests/unicase/test-locale-language.c: New file.
42338
42339         New module 'unicase/locale-language'.
42340         * lib/unicase/locale-language.c: New file.
42341         * lib/unicase/locale-languages.gperf: New file.
42342         * modules/unicase/locale-language: New file.
42343
42344         Generate more tables for case conversion and case folding.
42345         * lib/gen-uni-tables.c (SCC_*): New enum items.
42346         (struct special_casing_rule): New type.
42347         (casing_rules, num_casing_rules, allocated_casing_rules): New
42348         variables.
42349         (add_casing_rule, fill_casing_rules): New functions.
42350         (struct casefold_rule): New type.
42351         (casefolding_rules, num_casefolding_rules,
42352         allocated_casefolding_rules): New variables.
42353         (fill_casefolding_rules): New function.
42354         (unicode_casefold): New variable.
42355         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42356         sort_casing_rules, output_casing_rules): New functions.
42357         (main): Accept to more arguments: SpecialCasing.txt and
42358         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42359         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42360         Output mapping for casefolding.
42361
42362         * lib/unicase.h: Include stdbool.h, uninorm.h.
42363         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42364         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42365         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42366         arguments.
42367         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42368         resultp arguments.
42369         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42370         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42371         resultp arguments.
42372         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42373         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42374         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42375         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42376         declarations.
42377         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42378
42379 2009-03-08  Bruno Haible  <bruno@clisp.org>
42380
42381         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42382         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42383         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42384         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42385
42386 2009-03-07  Bruno Haible  <bruno@clisp.org>
42387
42388         Adjust u*_normcmp, u*_normcoll API.
42389         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42390         u16_normcoll, u32_normcoll): Change failure conventions.
42391         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42392         errno and return -1.
42393         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42394
42395 2009-03-07  Bruno Haible  <bruno@clisp.org>
42396
42397         Tests for module 'uninorm/u32-normcoll'.
42398         * modules/uninorm/u32-normcoll-tests: New file.
42399         * tests/uninorm/test-u32-normcoll.c: New file.
42400
42401         Tests for module 'uninorm/u16-normcoll'.
42402         * modules/uninorm/u16-normcoll-tests: New file.
42403         * tests/uninorm/test-u16-normcoll.c: New file.
42404
42405         Tests for module 'uninorm/u8-normcoll'.
42406         * modules/uninorm/u8-normcoll-tests: New file.
42407         * tests/uninorm/test-u8-normcoll.c: New file.
42408
42409 2009-03-07  Bruno Haible  <bruno@clisp.org>
42410
42411         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42412         tests/uninorm/test-u32-normcmp.c.
42413         * tests/uninorm/test-u32-normcmp.c: Include it.
42414         (test_nonascii): New function, extracted from main. Add some more
42415         tests.
42416         (main): Invoke test_ascii and test_nonascii.
42417         * modules/uninorm/u32-normcmp-tests (Files): Add
42418         tests/uninorm/test-u32-normcmp.h.
42419         (Depends-on): Remove uninorm/u32-normcmp.
42420
42421         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42422         tests/uninorm/test-u16-normcmp.c.
42423         * tests/uninorm/test-u16-normcmp.c: Include it.
42424         (test_nonascii): New function, extracted from main. Add some more
42425         tests.
42426         (main): Invoke test_ascii and test_nonascii.
42427         * modules/uninorm/u16-normcmp-tests (Files): Add
42428         tests/uninorm/test-u16-normcmp.h.
42429         (Depends-on): Remove uninorm/u16-normcmp.
42430
42431         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42432         tests/uninorm/test-u8-normcmp.c.
42433         * tests/uninorm/test-u8-normcmp.c: Include it.
42434         (test_nonascii): New function, extracted from main. Add some more
42435         tests.
42436         (main): Invoke test_ascii and test_nonascii.
42437         * modules/uninorm/u8-normcmp-tests (Files): Add
42438         tests/uninorm/test-u8-normcmp.h.
42439         (Depends-on): Remove uninorm/u8-normcmp.
42440
42441 2009-03-07  Bruno Haible  <bruno@clisp.org>
42442
42443         New module 'uninorm/u32-normcoll'.
42444         * lib/uninorm/u32-normcoll.c: New file.
42445         * modules/uninorm/u32-normcoll: New file.
42446
42447         New module 'uninorm/u16-normcoll'.
42448         * lib/uninorm/u16-normcoll.c: New file.
42449         * modules/uninorm/u16-normcoll: New file.
42450
42451         New module 'uninorm/u8-normcoll'.
42452         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42453         declarations.
42454         * lib/uninorm/u8-normcoll.c: New file.
42455         * lib/uninorm/u-normcoll.h: New file.
42456         * modules/uninorm/u8-normcoll: New file.
42457
42458         New module 'uninorm/u32-normxfrm'.
42459         * lib/uninorm/u32-normxfrm.c: New file.
42460         * modules/uninorm/u32-normxfrm: New file.
42461
42462         New module 'uninorm/u16-normxfrm'.
42463         * lib/uninorm/u16-normxfrm.c: New file.
42464         * modules/uninorm/u16-normxfrm: New file.
42465
42466         New module 'uninorm/u8-normxfrm'.
42467         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42468         declarations.
42469         * lib/uninorm/u8-normxfrm.c: New file.
42470         * lib/uninorm/u-normxfrm.h: New file.
42471         * modules/uninorm/u8-normxfrm: New file.
42472
42473 2009-03-07  Bruno Haible  <bruno@clisp.org>
42474
42475         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42476         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42477         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42478
42479 2009-03-07  Bruno Haible  <bruno@clisp.org>
42480
42481         New module 'memxfrm'.
42482         * lib/memxfrm.h: New file.
42483         * lib/memxfrm.c: New file.
42484         * modules/memxfrm: New file.
42485
42486 2009-03-07  Bruno Haible  <bruno@clisp.org>
42487
42488         New module 'memcmp2'.
42489         * lib/memcmp2.h: New file.
42490         * lib/memcmp2.c: New file.
42491         * modules/memcmp2: New file.
42492
42493 2009-03-07  Bruno Haible  <bruno@clisp.org>
42494
42495         Tests for module 'uninorm/decomposing-form'.
42496         * modules/uninorm/decomposing-form-tests: New file.
42497         * tests/uninorm/test-decomposing-form.c: New file.
42498
42499         New module 'uninorm/decomposing-form'.
42500         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42501         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42502         Add 'decomposing_variant' field.
42503         * lib/uninorm/decomposing-form.c: New file.
42504         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42505         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42506         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42507         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42508         * modules/uninorm/decomposing-form: New file.
42509         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42510         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42511
42512 2009-03-07  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42515         strings.
42516
42517 2009-03-06  Bruno Haible  <bruno@clisp.org>
42518
42519         Tests for module 'uninorm/u32-normcmp'.
42520         * tests/uninorm/test-u32-normcmp.c: New file.
42521         * modules/uninorm/u32-normcmp-tests: New file.
42522
42523         Tests for module 'uninorm/u16-normcmp'.
42524         * tests/uninorm/test-u16-normcmp.c: New file.
42525         * modules/uninorm/u16-normcmp-tests: New file.
42526
42527         Tests for module 'uninorm/u8-normcmp'.
42528         * tests/uninorm/test-u8-normcmp.c: New file.
42529         * modules/uninorm/u8-normcmp-tests: New file.
42530
42531         New module 'uninorm/u32-normcmp'.
42532         * lib/uninorm/u32-normcmp.c: New file.
42533         * modules/uninorm/u32-normcmp: New file.
42534
42535         New module 'uninorm/u16-normcmp'.
42536         * lib/uninorm/u16-normcmp.c: New file.
42537         * modules/uninorm/u16-normcmp: New file.
42538
42539         New module 'uninorm/u8-normcmp'.
42540         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42541         declarations.
42542         * lib/uninorm/u8-normcmp.c: New file.
42543         * lib/uninorm/u-normcmp.h: New file.
42544         * modules/uninorm/u8-normcmp: New file.
42545
42546 2009-03-06  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42549         Reported by Eric Blake.
42550
42551 2009-03-06  Eric Blake  <ebb9@byu.net>
42552             Bruno Haible  <bruno@clisp.org>
42553
42554         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42555         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42556         condition.
42557         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42558         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42559         condition.
42560         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42561
42562 2009-03-06  Eric Blake  <ebb9@byu.net>
42563
42564         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42565         to avoid compiler warnings.
42566         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42567
42568 2009-03-05  Bruno Haible  <bruno@clisp.org>
42569
42570         * tests/test-ftell.c (main): Disable test beyond end of file on
42571         FreeMiNT.
42572         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42573
42574 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42575
42576         * lib/filevercmp.c: Move hidden files up in ordering.
42577         * tests/test-filevercmp.c: Add tests for hidden files.
42578
42579 2009-03-04  Bruno Haible  <bruno@clisp.org>
42580
42581         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42582         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42583         AM_CFLAGS.
42584         Reported by Simon Josefsson.
42585
42586 2009-03-03  Bruno Haible  <bruno@clisp.org>
42587
42588         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42589         Reported by Simon Josefsson.
42590
42591         * doc/ld-version-script.texi: Update node reference.
42592
42593 2009-03-03  Bruno Haible  <bruno@clisp.org>
42594
42595         * modules/visibility (License): Change to 'unlimited'.
42596         Suggested by Simon Josefsson.
42597
42598 2009-03-03  Jim Meyering  <meyering@redhat.com>
42599
42600         unlinkdir: cannot_unlink_dir may modify process state
42601         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42602         it's neither thread-safe nor appropriate for use in a library.
42603
42604 2009-03-03  Eric Blake  <ebb9@byu.net>
42605
42606         test-closein: silence test under Darwin
42607         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42608         care if it dies from EPIPE or EBADF.
42609
42610 2009-03-03  Bruno Haible  <bruno@clisp.org>
42611
42612         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42613         earlier.
42614         * doc/visibility.texi: Fix @node and @section.
42615
42616 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42617
42618         * doc/gnulib.texi: Link to sections for ld version script and
42619         visibility.
42620         * doc/visibility.texi: Add @node and @section.
42621         * modules/ld-version-script: New module.
42622         * m4/ld-version-script.m4: New file.
42623         * doc/ld-version-script.texi: New file.
42624
42625 2009-03-02  David Lutterkort  <lutter@redhat.com>
42626
42627         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42629
42630 2009-03-02  Bruno Haible  <bruno@clisp.org>
42631
42632         * doc/visibility.texi: Mention libtool's -export-symbols option.
42633
42634 2009-03-02  Jim Meyering  <meyering@redhat.com>
42635
42636         announce-gen: new option: --no-print-checksums
42637         * build-aux/announce-gen (usage): Describe it.
42638         (print_checksums): Print a newline here, not in the [*] footnote.
42639         (main): Honor it.
42640
42641 2009-03-01  Bruno Haible  <bruno@clisp.org>
42642
42643         Use socklen_t in the native Windows replacements prototypes.
42644         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42645         instead of 'int'.
42646         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42647         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42648         * modules/getsockopt (Depends-on): Add socklen.
42649         * modules/setsockopt (Depends-on): Add socklen.
42650
42651 2009-03-01  Bruno Haible  <bruno@clisp.org>
42652
42653         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42654         least 4.2.
42655
42656 2009-03-01  Eric Blake  <ebb9@byu.net>
42657             Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42660         error messages.
42661         * lib/wait-process.c (wait_subprocess): Omit error message about
42662         deadly signal sent to the child of termsigp != NULL.
42663
42664 2009-03-01  Eric Blake  <ebb9@byu.net>
42665
42666         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42667
42668 2009-03-01  Bruno Haible  <bruno@clisp.org>
42669
42670         Avoid a gcc warning.
42671         * tests/test-sched.c (b): Make global.
42672         Reported by Eric Blake.
42673
42674 2009-01-19  Martin Lambers  <marlam@marlam.de>
42675
42676         Provide POSIX semantics for socket timeout options on W32.
42677         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42678         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42679         * modules/setsockopt: Depend on sys_time module for struct timeval.
42680         * modules/getsockopt: Depend on sys_time module for struct timeval.
42681
42682 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42683
42684         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42685         __USE_GNU, for consistency with netdb.in.h.
42686         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42687
42688 2009-03-01  Bruno Haible  <bruno@clisp.org>
42689
42690         More support for FreeMiNT.
42691         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42692         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42693
42694 2009-03-01  Bruno Haible  <bruno@clisp.org>
42695
42696         More support for FreeMiNT.
42697         * lib/fpurge.c (fpurge): Correct last commit.
42698         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42699
42700 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42701
42702         Fix unportable awk script in vc-list-files.
42703         * build-aux/vc-list-files: In the replacement awk script, use
42704         substr with a second argument of 1, not zero.
42705         Report by Simon Josefsson.
42706
42707 2009-02-28  Bruno Haible  <bruno@clisp.org>
42708
42709         More support for FreeMiNT.
42710         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42711         to FreeMiNT today.
42712         * lib/fwriting.c (fwriting): Likewise.
42713         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42714
42715 2009-02-28  Bruno Haible  <bruno@clisp.org>
42716
42717         * tests/test-freadseek.c (main): Disable test beyond end of file on
42718         FreeMiNT.
42719         * tests/test-ftello.c (main): Likewise.
42720         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42721
42722 2009-02-28  Bruno Haible  <bruno@clisp.org>
42723
42724         Add tentative support for FreeMiNT.
42725         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42726         * lib/fpurge.c (fpurge): Likewise.
42727         * lib/freadable.c (freadable): Likewise.
42728         * lib/freading.c (freading): Likewise.
42729         * lib/freadptr.c (freadptr): Likewise.
42730         * lib/freadseek.c (freadptrinc): Likewise.
42731         * lib/fseeko.c (rpl_fseeko): Likewise.
42732         * lib/fseterr.c (fseterr): Likewise.
42733         * lib/fwritable.c (fwritable): Likewise.
42734         * lib/fwriting.c (fwriting): Likewise.
42735         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42736         Hourihane.
42737         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42738
42739 2009-02-28  Bruno Haible  <bruno@clisp.org>
42740
42741         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42742         SIGCHLD.
42743         Reported by Jim Meyering.
42744
42745 2009-02-28  Bruno Haible  <bruno@clisp.org>
42746
42747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42748         Mention the results of these tests on various platforms.
42749         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42750         order.
42751         * doc/posix-functions/printf.texi: Likewise.
42752         * doc/posix-functions/snprintf.texi: Likewise.
42753         * doc/posix-functions/sprintf.texi: Likewise.
42754         * doc/posix-functions/vfprintf.texi: Likewise.
42755         * doc/posix-functions/vprintf.texi: Likewise.
42756         * doc/posix-functions/vsnprintf.texi: Likewise.
42757         * doc/posix-functions/vsprintf.texi: Likewise.
42758         * doc/glibc-functions/obstack_printf.texi: Likewise.
42759         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42760
42761 2009-02-28  Bruno Haible  <bruno@clisp.org>
42762
42763         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42764         Reported by Loïc Minier <lool@dooz.org>.
42765
42766 2009-02-27  Bruno Haible  <bruno@clisp.org>
42767
42768         * gnulib-tool (func_import): Make the sed expression used to create the
42769         sed script for updating the .gitignore file POSIX compliant.
42770         Reported by Eric Blake.
42771
42772 2009-02-27  Bruno Haible  <bruno@clisp.org>
42773
42774         * gnulib-tool (sed): Don't alias as "sed --posix".
42775         Reported by Eric Blake.
42776
42777 2009-02-27  Bruno Haible  <bruno@clisp.org>
42778
42779         Avoid test link errors.
42780         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42781         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42782         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42783         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42784         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42785
42786 2009-02-27  Bruno Haible  <bruno@clisp.org>
42787
42788         Avoid spurious "(cached)" in configure output.
42789         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42790         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42791         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42792         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42793         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42794         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42795         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42796         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42797         Reported by Eric Blake.
42798
42799 2009-02-27  Eric Blake  <ebb9@byu.net>
42800
42801         printf: fix regression in previous patch
42802         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42803
42804 2009-02-27  Bruno Haible  <bruno@clisp.org>
42805
42806         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42807         value.
42808         * lib/stdint.in.h: Likewise.
42809         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42810
42811 2009-02-27  Eric Blake  <ebb9@byu.net>
42812
42813         doc: mention more functions added in cygwin 1.7.0
42814         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42815         addition.
42816         * doc/posix-functions/open_wmemstream.texi: Likewise.
42817         * doc/posix-functions/wcsnlen.texi: Likewise.
42818         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42819         * doc/posix-functions/wcstod.texi: Likewise.
42820         * doc/posix-functions/wcstof.texi: Likewise.
42821         * doc/posix-functions/wcstoimax.texi: Likewise.
42822         * doc/posix-functions/wcstok.texi: Likewise.
42823         * doc/posix-functions/wcstoumax.texi: Likewise.
42824
42825         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42826         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42827         * doc/posix-functions/fprintf.texi: Update.
42828         * doc/posix-functions/printf.texi: Update.
42829         * doc/posix-functions/snprintf.texi: Update.
42830         * doc/posix-functions/sprintf.texi: Update.
42831         * doc/posix-functions/vfprintf.texi: Update.
42832         * doc/posix-functions/vprintf.texi: Update.
42833         * doc/posix-functions/vsnprintf.texi: Update.
42834         * doc/posix-functions/vsprintf.texi: Update.
42835         * doc/glibc-functions/obstack_printf.texi: Update.
42836         * doc/glibc-functions/obstack_vprintf.texi: Update.
42837
42838 2009-02-26  Eric Blake  <ebb9@byu.net>
42839
42840         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42841         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42842         compilation bug by using runtime conversion.
42843         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42844         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42845         * modules/ceill-tests (Files): Use nan.h.
42846         * modules/floorl-tests (Files): Likewise.
42847         * modules/frexpl-tests (Files): Likewise.
42848         * modules/isnanl-tests (Files): Likewise.
42849         * modules/ldexpl-tests (Files): Likewise.
42850         * modules/roundl-tests (Files): Likewise.
42851         * modules/truncl-tests (Files): Likewise.
42852         * tests/test-ceill.c (main): Use a working NaN.
42853         * tests/test-floorl.c (main): Likewise.
42854         * tests/test-frexpl.c (main): Likewise.
42855         * tests/test-isnan.c (test_long_double): Likewise.
42856         * tests/test-isnanl.h (main): Likewise.
42857         * tests/test-ldexpl.h (main): Likewise.
42858         * tests/test-roundl.h (main): Likewise.
42859         * tests/test-truncl.h (main): Likewise.
42860         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42861
42862 2009-02-26  Eric Blake  <ebb9@byu.net>
42863             Bruno Haible  <bruno@clisp.org>
42864
42865         Work around a *printf bug with %ls on Solaris.
42866         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42867         precision is specified, sprintf stops converting the wide string
42868         argument when the number of bytes that have been produced by this
42869         conversion equals or exceeds the precision.
42870         * doc/posix-functions/fprintf.texi: Update.
42871         * doc/posix-functions/printf.texi: Update.
42872         * doc/posix-functions/snprintf.texi: Update.
42873         * doc/posix-functions/sprintf.texi: Update.
42874         * doc/posix-functions/vfprintf.texi: Update.
42875         * doc/posix-functions/vprintf.texi: Update.
42876         * doc/posix-functions/vsnprintf.texi: Update.
42877         * doc/posix-functions/vsprintf.texi: Update.
42878         * doc/glibc-functions/obstack_printf.texi: Update.
42879         * doc/glibc-functions/obstack_vprintf.texi: Update.
42880
42881 2009-02-26  Eric Blake  <ebb9@byu.net>
42882
42883         stdlib: favor compiler check of random.h
42884         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42885         to avoid an ObjC random.h installed by Swarm.
42886
42887 2009-02-26  Bruno Haible  <bruno@clisp.org>
42888
42889         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42890         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42891         Reported by Gary V. Vaughan <gary@gnu.org>.
42892
42893 2009-02-26  Bruno Haible  <bruno@clisp.org>
42894
42895         Fix *printf behaviour regarding the %ls directive.
42896         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42897         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42898         NEED_PRINTF_DIRECTIVE_LS.
42899         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42900         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42901         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42902         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42903         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42904         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42905         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42907         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42908         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42909         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42910         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42911         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42912         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42913         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42914         * doc/posix-functions/fprintf.texi: Update.
42915         * doc/posix-functions/printf.texi: Update.
42916         * doc/posix-functions/snprintf.texi: Update.
42917         * doc/posix-functions/sprintf.texi: Update.
42918         * doc/posix-functions/vfprintf.texi: Update.
42919         * doc/posix-functions/vprintf.texi: Update.
42920         * doc/posix-functions/vsnprintf.texi: Update.
42921         * doc/posix-functions/vsprintf.texi: Update.
42922         * doc/glibc-functions/obstack_printf.texi: Update.
42923         * doc/glibc-functions/obstack_vprintf.texi: Update.
42924         Reported by Eric Blake.
42925
42926 2009-02-25  Bruno Haible  <bruno@clisp.org>
42927
42928         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42929         with known value.
42930         Reported by Gary V. Vaughan <gary@gnu.org>.
42931
42932 2009-02-25  Bruno Haible  <bruno@clisp.org>
42933
42934         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42935         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42936         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42937         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42938         Reported by Gary V. Vaughan <gary@gnu.org>.
42939
42940 2009-02-25  Bruno Haible  <bruno@clisp.org>
42941
42942         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42943         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42944         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42945         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42946         Reported by Gary V. Vaughan <gary@gnu.org>.
42947
42948 2009-02-25  Eric Blake  <ebb9@byu.net>
42949
42950         tests: skip fseek/ftell tests if ungetc is broken
42951         * m4/ungetc.m4: New file.
42952         * modules/fseek-tests: Split test, so ungetc dependency is
42953         separate from rest of test.
42954         * modules/fseeko-tests: Likewise.
42955         * modules/ftell-tests: Likewise.
42956         * modules/ftello-tests: Likewise.
42957         * tests/test-fseek.c (main): Isolate ungetc dependency.
42958         * tests/test-fseeko.c (main): Likewise.
42959         * tests/test-ftell.c (main): Likewise.
42960         * tests/test-ftello.c (main): Likewise.
42961         * tests/test-fseek2.sh: New file.
42962         * tests/test-fseeko2.sh: Likewise.
42963         * tests/test-ftell2.sh: Likewise.
42964         * tests/test-ftello2.sh: Likewise.
42965
42966 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42967
42968         test-getaddrinfo: fix usage of skip return code 77
42969         * tests/test-gettaddrinfo.c: Return skip code 77 only
42970         for first occurance of skip (4x77 is not 77)
42971
42972 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42973
42974         strtod: avoid C99 decl-after-statement
42975         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42976
42977 2009-02-24  Eric Blake  <ebb9@byu.net>
42978
42979         strtod: detect HP-UX 11.31 bug
42980         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42981         Reported by Gary V. Vaughan.
42982
42983 2009-02-23  Bruno Haible  <bruno@clisp.org>
42984
42985         Fix invalid read past end of memory block.
42986         * lib/vasnprintf.c (DCHAR_SET): Define.
42987         (local_wcslen): Define only when needed.
42988         (local_strnlen, local_wcsnlen): New functions.
42989         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42990         directives that involve a conversion ourselves.
42991         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42992         wcsnlen, mbrtowc, wcrtomb.
42993         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42994         * tests/test-vasprintf-posix.c (test_function): Likewise.
42995         * tests/test-snprintf-posix.h (test_function): Likewise.
42996         * tests/test-sprintf-posix.h (test_function): Likewise.
42997         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42998
42999 2009-02-22  Bruno Haible  <bruno@clisp.org>
43000
43001         Implement new clarified decomposition of Hangul syllables.
43002         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43003         of type LTV, return only a pairwise decomposition.
43004         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43005         Likewise.
43006         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43007         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43008         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43009
43010 2009-02-22  Bruno Haible  <bruno@clisp.org>
43011
43012         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43013         zero-length results and shrink excess allocated memory.
43014         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43015         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43016         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43017         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43018         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43019         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43020         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43021         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43022         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43023         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43024         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43025         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43026
43027 2009-02-21  Bruno Haible  <bruno@clisp.org>
43028
43029         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43030         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43031         spaces after a period. Put a space between a macro name and its
43032         argument list. Trivial rewordings.
43033         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43034         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43035         (main): Return 0 explicitly.
43036
43037 2009-02-21  Bruno Haible  <bruno@clisp.org>
43038
43039         Tests for module 'uninorm/filter'.
43040         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43041         * modules/uninorm/filter-tests: New file.
43042
43043         New module 'uninorm/filter'.
43044         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43045         uninorm_filter_flush, uninorm_filter_free): New declarations.
43046         * lib/uninorm/uninorm-filter.c: New file.
43047         * modules/uninorm/filter: New file.
43048
43049 2009-02-21  Bruno Haible  <bruno@clisp.org>
43050
43051         Tests for module 'uninorm/nfkc'.
43052         * tests/uninorm/test-nfkc.c: New file.
43053         * tests/uninorm/test-u8-nfkc.c: New file.
43054         * tests/uninorm/test-u16-nfkc.c: New file.
43055         * tests/uninorm/test-u32-nfkc.c: New file.
43056         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43057         * tests/uninorm/test-u32-nfkc-big.c: New file.
43058         * modules/uninorm/nfkc-tests: New file.
43059
43060         New module 'uninorm/nfkc'.
43061         * lib/uninorm/nfkc.c: New file.
43062         * modules/uninorm/nfkc: New file.
43063
43064         Tests for module 'uninorm/nfkd'.
43065         * tests/uninorm/test-nfkd.c: New file.
43066         * tests/uninorm/test-u8-nfkd.c: New file.
43067         * tests/uninorm/test-u16-nfkd.c: New file.
43068         * tests/uninorm/test-u32-nfkd.c: New file.
43069         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43070         * tests/uninorm/test-u32-nfkd-big.c: New file.
43071         * modules/uninorm/nfkd-tests: New file.
43072
43073         New module 'uninorm/nfkd'.
43074         * lib/uninorm/nfkd.c: New file.
43075         * modules/uninorm/nfkd: New file.
43076
43077         Tests for module 'uninorm/nfc'.
43078         * tests/uninorm/test-nfc.c: New file.
43079         * tests/uninorm/test-u8-nfc.c: New file.
43080         * tests/uninorm/test-u16-nfc.c: New file.
43081         * tests/uninorm/test-u32-nfc.c: New file.
43082         * tests/uninorm/test-u32-nfc-big.sh: New file.
43083         * tests/uninorm/test-u32-nfc-big.c: New file.
43084         * modules/uninorm/nfc-tests: New file.
43085
43086         New module 'uninorm/nfc'.
43087         * lib/uninorm/nfc.c: New file.
43088         * modules/uninorm/nfc: New file.
43089
43090         Tests for module 'uninorm/nfd'.
43091         * tests/uninorm/test-nfd.c: New file.
43092         * tests/uninorm/test-u8-nfd.c: New file.
43093         * tests/uninorm/test-u16-nfd.c: New file.
43094         * tests/uninorm/test-u32-nfd.c: New file.
43095         * tests/uninorm/test-u32-nfd-big.sh: New file.
43096         * tests/uninorm/test-u32-nfd-big.c: New file.
43097         * tests/uninorm/test-u32-normalize-big.h: New file.
43098         * tests/uninorm/test-u32-normalize-big.c: New file.
43099         * tests/uninorm/NormalizationTest.txt: New file, created from
43100         Unicode 5.1.0 NormalizationTest.txt.
43101         * modules/uninorm/nfd-tests: New file.
43102
43103         New module 'uninorm/nfd'.
43104         * lib/uninorm/nfd.c: New file.
43105         * modules/uninorm/nfd: New file.
43106
43107         New module 'uninorm/u32-normalize'.
43108         * lib/uninorm/u32-normalize.c: New file.
43109         * modules/uninorm/u32-normalize: New file.
43110
43111         New module 'uninorm/u16-normalize'.
43112         * lib/uninorm/u16-normalize.c: New file.
43113         * modules/uninorm/u16-normalize: New file.
43114
43115         New module 'uninorm/u8-normalize'.
43116         * lib/uninorm/u8-normalize.c: New file.
43117         * lib/uninorm/normalize-internal.h: New file.
43118         * lib/uninorm/u-normalize-internal.h: New file.
43119         * modules/uninorm/u8-normalize: New file.
43120
43121         New module 'uninorm/decompose-internal'.
43122         * lib/uninorm/decompose-internal.c: New file.
43123         * modules/uninorm/decompose-internal: New file.
43124
43125         Tests for module 'uninorm/composition'.
43126         * tests/uninorm/test-composition.c: New file.
43127         * modules/uninorm/composition-tests: New file.
43128
43129         New module 'uninorm/composition'.
43130         * lib/uninorm/composition.c: New file.
43131         * lib/uninorm/composition-table.gperf: New file, generated by
43132         gen-uni-tables.
43133         * modules/uninorm/composition: New file.
43134
43135         Tests for module 'uninorm/compat-decomposition'.
43136         * tests/uninorm/test-compat-decomposition.c: New file.
43137         * modules/uninorm/compat-decomposition-tests: New file.
43138
43139         New module 'uninorm/compat-decomposition'.
43140         * lib/uninorm/decompose-internal.h: New file.
43141         * lib/uninorm/compat-decomposition.c: New file.
43142         * modules/uninorm/compat-decomposition: New file.
43143
43144         Tests for module 'uninorm/canonical-decomposition'.
43145         * tests/uninorm/test-canonical-decomposition.c: New file.
43146         * modules/uninorm/canonical-decomposition-tests: New file.
43147
43148         New module 'uninorm/canonical-decomposition'.
43149         * lib/uninorm/canonical-decomposition.c: New file.
43150         * modules/uninorm/canonical-decomposition: New file.
43151
43152         Tests for module 'uninorm/decomposition'.
43153         * tests/uninorm/test-decomposition.c: New file.
43154         * modules/uninorm/decomposition-tests: New file.
43155
43156         New module 'uninorm/decomposition'.
43157         * lib/uninorm/decomposition.c: New file.
43158         * modules/uninorm/decomposition: New file.
43159
43160         New module 'uninorm/decomposition-table'.
43161         * lib/uninorm/decomposition-table.h: New file.
43162         * lib/uninorm/decomposition-table.c: New file.
43163         * lib/uninorm/decomposition-table1.h: New file, generated by
43164         gen-uni-tables.
43165         * lib/uninorm/decomposition-table2.h: New file, generated by
43166         gen-uni-tables.
43167         * modules/uninorm/decomposition-table: New file.
43168
43169         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43170         (UC_DECOMP_*): New enumeration items.
43171         (get_decomposition): New function.
43172         (struct decomp_table): New type.
43173         (output_decomposition, output_decomposition_tables): New functions.
43174         (unicode_composition_exclusions): New variable.
43175         (fill_composition_exclusions, debug_output_composition_tables): New
43176         functions.
43177         (main): Accept one more argument. Invoke fill_composition_exclusions.
43178         Output decomposition and composition tables.
43179
43180         New module 'uninorm/base'.
43181         * lib/uninorm.h: New file.
43182         * lib/unictype.h: Update comment.
43183         * modules/uninorm/base: New file.
43184
43185 2009-02-21  David Lutterkort  <lutter@redhat.com>
43186
43187         Tests for module 'safe-alloc'.
43188         * tests/test-safe-alloc.c: New file.
43189         * modules/safe-alloc-tests: New file.
43190
43191         New module 'safe-alloc'.
43192         * lib/safe-alloc.h: New file.
43193         * lib/safe-alloc.c: New file.
43194         * m4/safe-alloc.m4: New file.
43195         * modules/safe-alloc: New file.
43196         * doc/safe-alloc.texi: New file.
43197         * doc/gnulib.texi: Include it.
43198         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43199         safe-alloc.
43200
43201 2009-02-18  Bruno Haible  <bruno@clisp.org>
43202
43203         Fix link error on non-glibc systems.
43204         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43205         variable.
43206         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43207
43208 2009-02-18  Jim Meyering  <meyering@redhat.com>
43209
43210         fts: avoid used-uninitialized error due to recent change
43211         * lib/fts.c (fts_read): Guard uses of the new member,
43212         parent->fts_n_dirs_remaining, since it's not relevant for
43213         the parent of a directory specified on the command-line.
43214
43215 2009-02-17  James Youngman  <jay@gnu.org>
43216             Bruno Haible  <bruno@clisp.org>
43217
43218         * m4/include_next.m4: Reformulate comment.
43219
43220 2009-02-16  Jim Meyering  <meyering@redhat.com>
43221
43222         fts: add #if guards so that the fts_lgpl module still builds
43223         * lib/fts.c: Guard just-added hash-table-using parts with
43224         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43225         Reported by Simon Josefsson.
43226
43227 2009-02-15  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/array-mergesort-tests: New file.
43230         * tests/test-array-mergesort.c: New file.
43231
43232         New module 'array-mergesort'.
43233         * modules/array-mergesort: New file.
43234         * lib/array-mergesort.h: New file.
43235
43236 2009-02-15  Bruno Haible  <bruno@clisp.org>
43237
43238         Fix 2009-02-07 commit.
43239         * lib/gen-uni-tables.c (output_predicate, output_category,
43240         output_combclass, output_bidi_category, output_decimal_digit,
43241         output_digit, output_numeric, output_mirror, output_scripts,
43242         output_ident_category, output_simple_mapping): Fix format directives.
43243         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43244
43245 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43246
43247         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43248         fixes are available from IBM.
43249
43250 2009-02-13  Jim Meyering  <meyering@redhat.com>
43251
43252         fts: arrange not to stat non-directories in more cases
43253         This makes GNU find (when it doesn't need to stat each file)
43254         *much* more efficient at traversing reiserfs file systems.
43255         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43256         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43257         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43258         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43259         (leaf_optimization_applies): New function.
43260         (LCO_hash, LCO_compare): New helper functions.
43261         (link_count_optimize_ok): New function.
43262         (fts_stat): Initialize new member (if dir).
43263         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43264         we've just stat'ed a directory.  Skip the stat call when possible.
43265         ---
43266         Note this AFS-related exchange:
43267         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43268         and note find's pioctl call in find/fstype.c.
43269         But that is necessary only if you want to enable the
43270         optimization for AFS, and for now, I don't.
43271
43272         fts: move a function definition "up" (no semantic change)
43273         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43274         "up" to precede upcoming use of a related function.
43275
43276 2009-02-11  Jim Meyering  <meyering@redhat.com>
43277
43278         fts: correct internal computation of nlinks (optimization-related)
43279         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43280         whether the current entry is a directory, so don't test it.
43281
43282 2009-02-10  Bruno Haible  <bruno@clisp.org>
43283
43284         Tests for module 'uniwbrk/ulc-wordbreaks'.
43285         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43286         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43287         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43288
43289         Tests for module 'uniwbrk/u32-wordbreaks'.
43290         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43291         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43292
43293         Tests for module 'uniwbrk/u16-wordbreaks'.
43294         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43295         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43296
43297         Tests for module 'uniwbrk/u8-wordbreaks'.
43298         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43299         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43300
43301 2009-02-10  Bruno Haible  <bruno@clisp.org>
43302
43303         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43304         property.
43305         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43306         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43307         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43308
43309 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43310
43311         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43312         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43313
43314 2009-02-10  Bruno Haible  <bruno@clisp.org>
43315
43316         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43317         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43318         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43319         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43320         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43321         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43322
43323 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43324
43325         * lib/sockets.h (gl_fd_to_handle): New function.
43326
43327         * tests/test-sockets.c: Call gl_fd_to_handle.
43328
43329 2009-02-09  Bruno Haible  <bruno@clisp.org>
43330
43331         * doc/havelib.texi: Document the conventions on bi-arch systems.
43332
43333 2009-02-08  Bruno Haible  <bruno@clisp.org>
43334
43335         Document the AC_LIB_LINKFLAGS macro.
43336         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43337         * doc/gnulib.texi: Include it.
43338
43339 2009-02-08  Bruno Haible  <bruno@clisp.org>
43340
43341         Fix wrong order of sections, compared to TOC.
43342         * doc/gnulib.texi: Include relocatable-maint.texi after the
43343         "Regular expressions" node, not before.
43344
43345 2009-02-08  Bruno Haible  <bruno@clisp.org>
43346
43347         Tests for module 'unicase/totitle'.
43348         * modules/unicase/totitle-tests: New file.
43349
43350         Tests for module 'unicase/tolower'.
43351         * modules/unicase/tolower-tests: New file.
43352
43353         Tests for module 'unicase/toupper'.
43354         * modules/unicase/toupper-tests: New file.
43355         * tests/unicase/test-mapping-part1.h: New file.
43356         * tests/unicase/test-mapping-part2.h: New file.
43357
43358         New module 'unicase/totitle'.
43359         * modules/unicase/totitle: New file.
43360         * lib/unicase/totitle.c: New file.
43361
43362         New module 'unicase/tolower'.
43363         * modules/unicase/tolower: New file.
43364         * lib/unicase/tolower.c: New file.
43365
43366         New module 'unicase/toupper'.
43367         * modules/unicase/toupper: New file.
43368         * lib/unicase/toupper.c: New file.
43369         * lib/unicase/simple-mapping.h: New file.
43370
43371         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43372         (mapping_table): New structure.
43373         (output_simple_mapping): New function.
43374         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43375         * modules/gen-uni-tables (Description): Update.
43376         * lib/unicase/toupper.h: New file, automatically generated by
43377         gen-uni-tables.
43378         * lib/unicase/tolower.h: New file, automatically generated by
43379         gen-uni-tables.
43380         * lib/unicase/totitle.h: New file, automatically generated by
43381         gen-uni-tables.
43382         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43383         gen-uni-tables.
43384         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43385         gen-uni-tables.
43386         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43387         gen-uni-tables.
43388
43389         New module 'unicase/base'.
43390         * modules/unicase/base: New file.
43391         * lib/unicase.h: New file.
43392
43393 2009-02-08  Bruno Haible  <bruno@clisp.org>
43394
43395         New module 'uniwbrk/ulc-wordbreaks'.
43396         * modules/uniwbrk/ulc-wordbreaks: New file.
43397         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43398
43399         New module 'uniwbrk/u32-wordbreaks'.
43400         * modules/uniwbrk/u32-wordbreaks: New file.
43401         * lib/uniwbrk/u32-wordbreaks.c: New file.
43402
43403         New module 'uniwbrk/u16-wordbreaks'.
43404         * modules/uniwbrk/u16-wordbreaks: New file.
43405         * lib/uniwbrk/u16-wordbreaks.c: New file.
43406
43407         New module 'uniwbrk/u8-wordbreaks'.
43408         * modules/uniwbrk/u8-wordbreaks: New file.
43409         * lib/uniwbrk/u8-wordbreaks.c: New file.
43410         * lib/uniwbrk/u-wordbreaks.h: New file.
43411
43412         New module 'uniwbrk/table'.
43413         * modules/uniwbrk/table: New file.
43414         * lib/uniwbrk/wbrktable.h: New file.
43415         * lib/uniwbrk/wbrktable.c: New file.
43416
43417         New module 'uniwbrk/wordbreak-property'.
43418         * modules/uniwbrk/wordbreak-property: New file.
43419         * lib/uniwbrk/wordbreak-property.c: New file.
43420
43421         * lib/gen-uni-tables.c (WBP_*): New enum items.
43422         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43423         (unicode_org_wbp): New variable.
43424         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43425         New functions.
43426         (wbp_table): New structure.
43427         (output_wbp, output_wbrk_tables): New functions.
43428         (main): Accept additional argument. Invoke fill_org_wbp,
43429         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43430         output_wbrk_tables.
43431         * modules/gen-uni-tables (Description): Update.
43432         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43433         gen-uni-tables.
43434
43435         New module 'uniwbrk/base'.
43436         * modules/uniwbrk/base: New file.
43437         * lib/uniwbrk.h: New file.
43438
43439 2009-02-08  Bruno Haible  <bruno@clisp.org>
43440
43441         Update to Unicode 5.1.0.
43442         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43443         U+2185..U+2188.
43444         (is_property_default_ignorable_code_point): Don't include characters
43445         of category Cc or Cs and not-a-characters.
43446         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43447         U+0D79, U+109E, U+109F, U+A60C.
43448         * lib/unictype/bidi_of.h: Regenerated.
43449         * lib/unictype/blocks.h: Regenerated.
43450         * lib/unictype/categ_C.h: Regenerated.
43451         * lib/unictype/categ_Cf.h: Regenerated.
43452         * lib/unictype/categ_Cn.h: Regenerated.
43453         * lib/unictype/categ_L.h: Regenerated.
43454         * lib/unictype/categ_Ll.h: Regenerated.
43455         * lib/unictype/categ_Lm.h: Regenerated.
43456         * lib/unictype/categ_Lo.h: Regenerated.
43457         * lib/unictype/categ_Lu.h: Regenerated.
43458         * lib/unictype/categ_M.h: Regenerated.
43459         * lib/unictype/categ_Mc.h: Regenerated.
43460         * lib/unictype/categ_Me.h: Regenerated.
43461         * lib/unictype/categ_Mn.h: Regenerated.
43462         * lib/unictype/categ_N.h: Regenerated.
43463         * lib/unictype/categ_Nd.h: Regenerated.
43464         * lib/unictype/categ_Nl.h: Regenerated.
43465         * lib/unictype/categ_No.h: Regenerated.
43466         * lib/unictype/categ_P.h: Regenerated.
43467         * lib/unictype/categ_Pd.h: Regenerated.
43468         * lib/unictype/categ_Pe.h: Regenerated.
43469         * lib/unictype/categ_Pf.h: Regenerated.
43470         * lib/unictype/categ_Pi.h: Regenerated.
43471         * lib/unictype/categ_Po.h: Regenerated.
43472         * lib/unictype/categ_Ps.h: Regenerated.
43473         * lib/unictype/categ_S.h: Regenerated.
43474         * lib/unictype/categ_Sk.h: Regenerated.
43475         * lib/unictype/categ_Sm.h: Regenerated.
43476         * lib/unictype/categ_So.h: Regenerated.
43477         * lib/unictype/categ_of.h: Regenerated.
43478         * lib/unictype/combining.h: Regenerated.
43479         * lib/unictype/ctype_alnum.h: Regenerated.
43480         * lib/unictype/ctype_alpha.h: Regenerated.
43481         * lib/unictype/ctype_graph.h: Regenerated.
43482         * lib/unictype/ctype_lower.h: Regenerated.
43483         * lib/unictype/ctype_print.h: Regenerated.
43484         * lib/unictype/ctype_punct.h: Regenerated.
43485         * lib/unictype/ctype_upper.h: Regenerated.
43486         * lib/unictype/decdigit.h: Regenerated.
43487         * lib/unictype/digit.h: Regenerated.
43488         * lib/unictype/mirror.h: Regenerated.
43489         * lib/unictype/numeric.h: Regenerated.
43490         * lib/unictype/pr_alphabetic.h: Regenerated.
43491         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43492         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43493         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43494         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43495         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43496         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43497         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43498         * lib/unictype/pr_combining.h: Regenerated.
43499         * lib/unictype/pr_dash.h: Regenerated.
43500         * lib/unictype/pr_decimal_digit.h: Regenerated.
43501         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43502         * lib/unictype/pr_deprecated.h: Regenerated.
43503         * lib/unictype/pr_diacritic.h: Regenerated.
43504         * lib/unictype/pr_extender.h: Regenerated.
43505         * lib/unictype/pr_format_control.h: Regenerated.
43506         * lib/unictype/pr_grapheme_base.h: Regenerated.
43507         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43508         * lib/unictype/pr_grapheme_link.h: Regenerated.
43509         * lib/unictype/pr_id_continue.h: Regenerated.
43510         * lib/unictype/pr_id_start.h: Regenerated.
43511         * lib/unictype/pr_ideographic.h: Regenerated.
43512         * lib/unictype/pr_ignorable_control.h: Regenerated.
43513         * lib/unictype/pr_lowercase.h: Regenerated.
43514         * lib/unictype/pr_math.h: Regenerated.
43515         * lib/unictype/pr_numeric.h: Regenerated.
43516         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43517         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43518         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43519         * lib/unictype/pr_other_id_continue.h: Regenerated.
43520         * lib/unictype/pr_other_lowercase.h: Regenerated.
43521         * lib/unictype/pr_other_math.h: Regenerated.
43522         * lib/unictype/pr_punctuation.h: Regenerated.
43523         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43524         * lib/unictype/pr_soft_dotted.h: Regenerated.
43525         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43526         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43527         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43528         * lib/unictype/pr_uppercase.h: Regenerated.
43529         * lib/unictype/pr_xid_continue.h: Regenerated.
43530         * lib/unictype/pr_xid_start.h: Regenerated.
43531         * lib/unictype/pr_zero_width.h: Regenerated.
43532         * lib/unictype/scripts.h: Regenerated.
43533         * lib/unictype/scripts_byname.gperf: Regenerated.
43534         * lib/unictype/sy_java_ident.h: Regenerated.
43535         * lib/unilbrk/lbrkprop1.h: Regenerated.
43536         * lib/unilbrk/lbrkprop2.h: Regenerated.
43537         * tests/unictype/test-categ_C.c: Regenerated.
43538         * tests/unictype/test-categ_Cf.c: Regenerated.
43539         * tests/unictype/test-categ_Cn.c: Regenerated.
43540         * tests/unictype/test-categ_L.c: Regenerated.
43541         * tests/unictype/test-categ_Ll.c: Regenerated.
43542         * tests/unictype/test-categ_Lm.c: Regenerated.
43543         * tests/unictype/test-categ_Lo.c: Regenerated.
43544         * tests/unictype/test-categ_Lu.c: Regenerated.
43545         * tests/unictype/test-categ_M.c: Regenerated.
43546         * tests/unictype/test-categ_Mc.c: Regenerated.
43547         * tests/unictype/test-categ_Me.c: Regenerated.
43548         * tests/unictype/test-categ_Mn.c: Regenerated.
43549         * tests/unictype/test-categ_N.c: Regenerated.
43550         * tests/unictype/test-categ_Nd.c: Regenerated.
43551         * tests/unictype/test-categ_Nl.c: Regenerated.
43552         * tests/unictype/test-categ_No.c: Regenerated.
43553         * tests/unictype/test-categ_P.c: Regenerated.
43554         * tests/unictype/test-categ_Pd.c: Regenerated.
43555         * tests/unictype/test-categ_Pe.c: Regenerated.
43556         * tests/unictype/test-categ_Pf.c: Regenerated.
43557         * tests/unictype/test-categ_Pi.c: Regenerated.
43558         * tests/unictype/test-categ_Po.c: Regenerated.
43559         * tests/unictype/test-categ_Ps.c: Regenerated.
43560         * tests/unictype/test-categ_S.c: Regenerated.
43561         * tests/unictype/test-categ_Sk.c: Regenerated.
43562         * tests/unictype/test-categ_Sm.c: Regenerated.
43563         * tests/unictype/test-categ_So.c: Regenerated.
43564         * tests/unictype/test-ctype_alnum.c: Regenerated.
43565         * tests/unictype/test-ctype_alpha.c: Regenerated.
43566         * tests/unictype/test-ctype_graph.c: Regenerated.
43567         * tests/unictype/test-ctype_lower.c: Regenerated.
43568         * tests/unictype/test-ctype_print.c: Regenerated.
43569         * tests/unictype/test-ctype_punct.c: Regenerated.
43570         * tests/unictype/test-ctype_upper.c: Regenerated.
43571         * tests/unictype/test-decdigit.h: Regenerated.
43572         * tests/unictype/test-digit.h: Regenerated.
43573         * tests/unictype/test-numeric.h: Regenerated.
43574         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43575         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43576         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43577         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43578         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43579         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43580         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43581         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43582         * tests/unictype/test-pr_combining.c: Regenerated.
43583         * tests/unictype/test-pr_dash.c: Regenerated.
43584         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43585         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43586         * tests/unictype/test-pr_deprecated.c: Regenerated.
43587         * tests/unictype/test-pr_diacritic.c: Regenerated.
43588         * tests/unictype/test-pr_extender.c: Regenerated.
43589         * tests/unictype/test-pr_format_control.c: Regenerated.
43590         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43591         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43592         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43593         * tests/unictype/test-pr_id_continue.c: Regenerated.
43594         * tests/unictype/test-pr_id_start.c: Regenerated.
43595         * tests/unictype/test-pr_ideographic.c: Regenerated.
43596         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43597         * tests/unictype/test-pr_lowercase.c: Regenerated.
43598         * tests/unictype/test-pr_math.c: Regenerated.
43599         * tests/unictype/test-pr_numeric.c: Regenerated.
43600         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43601         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43602         Regenerated.
43603         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43604         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43605         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43606         * tests/unictype/test-pr_other_math.c: Regenerated.
43607         * tests/unictype/test-pr_punctuation.c: Regenerated.
43608         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43609         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43610         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43611         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43612         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43613         * tests/unictype/test-pr_uppercase.c: Regenerated.
43614         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43615         * tests/unictype/test-pr_xid_start.c: Regenerated.
43616         * tests/unictype/test-pr_zero_width.c: Regenerated.
43617
43618         Update to Unicode 5.1.0.
43619         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43620         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43621         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43622         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43623         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43624         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43625         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43626         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43627         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43628         (nonspacing_table_ind): Update.
43629         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43630
43631         Update to Unicode 5.1.0.
43632         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43633         code transform.
43634         * lib/uniname/uniname.c (unicode_character_name,
43635         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43636         * lib/uniname/uninames.h: Regenerated.
43637         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43638
43639 2009-02-07  Bruno Haible  <bruno@clisp.org>
43640
43641         Merge gen-ctype and gen-lbrk into a single program.
43642         * lib/gen-uni-tables.c: New file, incorporating
43643         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43644         Add directory prefixes to the names of the generated files.
43645         * lib/unictype/gen-ctype.c: Remove file.
43646         * lib/unilbrk/gen-lbrk.c: Remove file.
43647         * modules/gen-uni-tables: New file.
43648         * modules/unictype/gen-ctype: Remove file.
43649         * modules/unilbrk/gen-lbrk: Remove file.
43650
43651 2009-02-07  Bruno Haible  <bruno@clisp.org>
43652
43653         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43654
43655         New module 'unistr/u32-strcoll'.
43656         * modules/unistr/u32-strcoll: New file.
43657         * lib/unistr/u32-strcoll.c: New file.
43658
43659         New module 'unistr/u16-strcoll'.
43660         * modules/unistr/u16-strcoll: New file.
43661         * lib/unistr/u16-strcoll.c: New file.
43662
43663         New module 'unistr/u8-strcoll'.
43664         * modules/unistr/u8-strcoll: New file.
43665         * lib/unistr/u8-strcoll.c: New file.
43666         * lib/unistr/u-strcoll.h: New file.
43667
43668 2009-02-07  Bruno Haible  <bruno@clisp.org>
43669
43670         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43671         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43672         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43673         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43674         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43675         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43676
43677 2009-02-07  Bruno Haible  <bruno@clisp.org>
43678
43679         Make 64-bit clean.
43680         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43681         output_combclass, output_bidi_category, output_decimal_digit,
43682         output_digit, output_numeric, output_mirror, output_scripts,
43683         output_ident_category): Use proper width specifier in format strings.
43684
43685 2009-02-07  Bruno Haible  <bruno@clisp.org>
43686
43687         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43688         failure behaviour.
43689
43690 2009-02-07  Jim Meyering  <meyering@redhat.com>
43691
43692         regex: avoid compilation failure with upcoming gcc-4.4
43693         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43694         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43695         "... error: integer overflow in preprocessor expression".
43696
43697 2009-02-05  Ben Pfaff  <blp@gnu.org>
43698
43699         Fix link errors on Windows when close module is used.
43700         * modules/close: Add $(LIB_CLOSE) to Link section.
43701         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43702         $(LIB_CLOSE) on Windows.
43703
43704 2009-02-05  Jim Meyering  <meyering@redhat.com>
43705
43706         still avoid unused-parameter warnings, but do it cleanly
43707         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43708         (get_fs_usage): Cast to void instead.
43709         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43710         (dev_from_mount_options, read_file_system_list): Cast to void.
43711         Prompted by Bruno Haible.
43712
43713 2009-02-04  Jim Meyering  <meyering@redhat.com>
43714
43715         fsusage.c: correct copyright year
43716         * lib/fsusage.c: Reflect year in which the change is pushed into
43717
43718         avoid misc. warnings
43719         * lib/fsusage.c (UNUSED_PARAM): Define.
43720         (get_fs_usage): Mark parameter "disk" as unused.
43721         * lib/getugroups.c (getgrent): Use "void" in prototype.
43722         * lib/mountlist.c: Mark unused parameters.
43723         (read_file_system_list): Declare a local with "const".
43724         * lib/nanosleep.c (getnow): Declare static.
43725         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43726
43727         dirfd: set errno upon failure
43728         * lib/dirfd.c: Include <errno.h>.
43729         Set errno to ENOTSUP when returning -1.
43730         * modules/dirfd (Depends-on): Add errno.
43731         Suggested by John Kodis <kodis@comcast.net>.
43732
43733 2009-02-01  Bruno Haible  <bruno@clisp.org>
43734
43735         Don't assume sizeof (long) >= sizeof (void *).
43736         * lib/memcmp.c: Include stdint.h.
43737         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43738         srcp2 to 'const byte *'.
43739         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43740         types to uintptr_t.
43741         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43742         * modules/memcmp (Depends-on): Add stdint.
43743         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43744
43745 2009-01-30  Eric Blake  <ebb9@byu.net>
43746
43747         fix more require-before-expand issues
43748         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43749         expand, AC_PROG_AWK.
43750         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43751
43752 2009-01-28  Eric Blake  <ebb9@byu.net>
43753
43754         version-etc: use consistent URL formatting
43755         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43756         Improve formatting.  Use fputs for string without %.
43757
43758 2009-01-28  Jim Meyering  <meyering@redhat.com>
43759
43760         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43761         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43762         "underquoted definition of NAME" from autoconf-2.59.
43763
43764 2009-01-28  Bruno Haible  <bruno@clisp.org>
43765
43766         * doc/gnulib.texi: Add "Obsolete modules" to index.
43767
43768 2009-01-28  Jim Meyering  <meyering@redhat.com>
43769
43770         useless-if-before-free: recognize more variants
43771         * build-aux/useless-if-before-free: Also recognize e.g.,
43772         if (NULL != p) free (p);
43773
43774 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43775
43776         test-getaddrinfo: skip (don't fail) this test when there's no network
43777         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43778         on the presumption that it means you lack network access.
43779
43780 2009-01-26  Jim Meyering  <meyering@redhat.com>
43781
43782         fflush: avoid warnings on modern systems
43783         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43784         pos and result, into scopes where they're used.
43785
43786 2009-01-26  Eric Blake  <ebb9@byu.net>
43787
43788         Silence warning reintroduced by recent extensions patch.
43789         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43790         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43791         autoconf.
43792
43793         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43794         * m4/00gnulib.m4: New file.
43795         * gnulib-tool (func_get_filelist): Always use it.
43796         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43797         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43798
43799 2009-01-25  Bruno Haible  <bruno@clisp.org>
43800
43801         Make test-quotearg work on MacOS X and AIX.
43802         * tests/test-quotearg.sh: New file.
43803         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43804         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43805         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43806         include <libintl.h>.
43807         (fake_locale): Remove variable.
43808         (gettext, dgettext, dcgettext): Remove functions.
43809         (main): Instead of setting a fake locale, set a real locale. Call
43810         textdomain and bindtextdomain.
43811         * modules/quotearg-tests (Files): Add the new files.
43812         (Depends-on): Add gettext, setenv, unsetenv.
43813         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43814         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43815         Augment TESTS_ENVIRONMENT.
43816
43817 2009-01-25  Bruno Haible  <bruno@clisp.org>
43818
43819         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43820         fr_FR.ISO8859-1 locale on MacOS X.
43821         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43822         ja_JP.eucJP locale on MacOS X.
43823         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43824         zh_CN.GB18030 locale on MacOS X.
43825
43826 2009-01-25  Bruno Haible  <bruno@clisp.org>
43827
43828         Avoid link errors on MacOS X 10.3.
43829         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43830         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43831
43832 2009-01-25  Bruno Haible  <bruno@clisp.org>
43833
43834         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43835         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43836         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43837         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43838         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43839         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43840         posix_spawnattr_init, posix_spawnattr_setsigmask,
43841         posix_spawnattr_setflags, posix_spawnattr_destroy.
43842
43843         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43844         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43845         * modules/execute (Files): Remove m4/posix_spawn.m4.
43846         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43847         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43848         posix_spawnattr_init, posix_spawnattr_setsigmask,
43849         posix_spawnattr_setflags, posix_spawnattr_destroy.
43850
43851 2009-01-25  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/glthread/threadlib.c: Include <stdlib.h>.
43854
43855 2009-01-25  Bruno Haible  <bruno@clisp.org>
43856
43857         * lib/glthread/threadlib.c (dummy): New declaration.
43858
43859 2009-01-25  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43862         multibyte characters also for the GB18030 encoding. Don't crash when
43863         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43864
43865 2009-01-25  Bruno Haible  <bruno@clisp.org>
43866
43867         Avoid redefining 'struct random_data' on OSF/1 5.1.
43868         * lib/stdlib.in.h: Include <random.h> if it exists.
43869         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43870         HAVE_RANDOM_H. Include <random.h> when testing whether
43871         'struct random_data' exists.
43872         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43873
43874 2009-01-25  Bruno Haible  <bruno@clisp.org>
43875
43876         Don't install charset.alias on MacOS X >= 10.3.
43877         * lib/localcharset.c (DARWIN7): New macro.
43878         (get_charset_aliases): Hardcode the result for Darwin7.
43879         * modules/localcharset (install-exec-local): Don't install
43880         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43881
43882 2009-01-25  Bruno Haible  <bruno@clisp.org>
43883
43884         Don't install charset.alias on mingw and Cygwin.
43885         * modules/localcharset (install-exec-local): Don't install
43886         charset.alias on mingw and Cygwin, if the file does not yet exist.
43887         The result for these platforms is hardcoded in localcharset.c.
43888
43889 2009-01-25  Bruno Haible  <bruno@clisp.org>
43890
43891         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43893         before requiring AC_USE_SYSTEM_EXTENSIONS.
43894
43895 2009-01-25  Jim Meyering  <meyering@redhat.com>
43896
43897         c-strtod: avoid warnings
43898         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43899         "assignment discards qualifiers from pointer target type" warnings.
43900
43901 2009-01-24  Bruno Haible  <bruno@clisp.org>
43902
43903         Add support for non-UTF-8 locales on MacOS X.
43904         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43905         canonical encodings. For Darwin 7 and newer, don't map traditional
43906         encodings to UTF-8.
43907         Reported by Vincent Lefevre <vincent@vinc17.org>
43908         at <http://savannah.gnu.org/bugs/?25235>.
43909
43910 2009-01-24  Bruno Haible  <bruno@clisp.org>
43911
43912         * doc/gnulib.texi (Obsolete modules): New section.
43913         Reported by Mike Frysinger <vapier@gentoo.org>.
43914
43915 2009-01-24  Bruno Haible  <bruno@clisp.org>
43916
43917         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43918         (%.dvi): New rule.
43919
43920 2009-01-24  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43923         Reported by Eric Blake.
43924
43925 2009-01-24  Bruno Haible  <bruno@clisp.org>
43926
43927         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43928         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43929         Reported by Gary V. Vaughan <gary@gnu.org>.
43930
43931 2009-01-24  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43934
43935 2009-01-23  Bruno Haible  <bruno@clisp.org>
43936
43937         Make c-strtod, c-strtold usable in libraries.
43938         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43939         (C_STRTOD): Call strdup instead of xstrdup.
43940         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43941         * modules/c-strtold (Depends-on): Likewise.
43942         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43943         * NEWS: Mention the change.
43944         Reported by Michael Gold <mgold@ncf.ca>.
43945
43946 2009-01-23  Jim Meyering  <meyering@redhat.com>
43947
43948         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43949         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43950         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43951
43952 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43953
43954         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43955         GNU CoreUtils.
43956         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43957         * modules/version-etc (Description): Update.
43958
43959 2009-01-22  Bruno Haible  <bruno@clisp.org>
43960
43961         Cache the C locale object.
43962         * lib/c-strtod.c (c_locale_cache): New variable.
43963         (c_locale): New function.
43964         (C_STRTOD): Use it, and don't call freelocale.
43965         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43966         Suggested by Paolo Bonzini.
43967
43968 2009-01-21  Bruno Haible  <bruno@clisp.org>
43969
43970         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43971         conditions other than overflow.
43972
43973 2009-01-21  Bruno Haible  <bruno@clisp.org>
43974
43975         * lib/c-strtod.c: Include errno.h.
43976         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43977         value from STRTOD_L and STRTOD.
43978
43979 2009-01-21  Bruno Haible  <bruno@clisp.org>
43980         and Jim Meyering  <meyering@redhat.com>
43981
43982         nanosleep: skip configure test (fail it) for apple universal builds
43983         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43984         universal builds, assume that nanosleep does not work.
43985         * modules/nanosleep (Depends-on): Add multiarch.
43986
43987         mktime: skip configure test (fail it) for apple universal builds
43988         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43989         universal builds, assume that mktime does not work.
43990         * modules/mktime (Depends-on): Add multiarch.
43991
43992 2009-01-21  Eric Blake  <ebb9@byu.net>
43993
43994         multiarch: avoid expand-before-require warning
43995         * modules/multiarch (configure.ac): Require, rather than expand,
43996         gl_MULTIARCH.
43997         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43998         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43999         enforce that all clients require it.  Partial reversion of
44000         2008-12-29 patch.
44001
44002         error: avoid expand-before-require warning
44003         * modules/errno (configure.ac): Require, rather than expand,
44004         gl_HEADER_ERRNO_H.
44005         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44006         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44007         enforce that all clients require it.
44008
44009         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44010         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44011         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44012         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44013
44014 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44015
44016         Revert:
44017         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44018
44019         regex: do not depend on obsolete modules.
44020         * modules/regex: Remove memcmp and memmove.
44021
44022 2009-01-20  Bruno Haible  <bruno@clisp.org>
44023
44024         Make the 'link' module link on Windows NT 4.
44025         * lib/link.c (_WIN32_WINNT): Don't define.
44026         (CreateHardLinkFuncType): New type.
44027         (CreateHardLinkFunc, initialized): New variables.
44028         (initialize): New function.
44029         (link): Invoke CreateHardLink indirectly through the function pointer.
44030
44031 2009-01-20  Bruno Haible  <bruno@clisp.org>
44032
44033         Fix compilation failure on mingw.
44034         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44035
44036 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44037
44038         * doc/c-strtod.texi: Mention a couple of restrictions.
44039
44040 2009-01-20  Jim Meyering  <meyering@redhat.com>
44041
44042         gettimeofday: move more declarations out of functions
44043         * lib/gettimeofday.c: Move extern declarations of tzset and
44044         gmtime out of containing functions.  Prompted by Bruno Haible.
44045
44046 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44047
44048         regex: do not depend on obsolete modules.
44049         * modules/regex: Remove memcmp and memmove.
44050
44051 2009-01-19  Bruno Haible  <bruno@clisp.org>
44052
44053         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44054         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44055         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44056         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44057         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44058
44059 2009-01-19  Bruno Haible  <bruno@clisp.org>
44060
44061         * tests/test-link.c: Include <errno.h>.
44062         (main): Exit with code 77 when a hard link cannot be created due to
44063         the file system.
44064         * tests/test-link.sh: Skip test when a hard link cannot be created due
44065         to the file system.
44066         Suggested by Eric Blake.
44067
44068 2009-01-19  Martin Lambers  <marlam@marlam.de>
44069
44070         * modules/link-tests: New file.
44071         * tests/test-link.sh: New file.
44072         * tests/test-link.c: New file.
44073
44074 2009-01-19  Eric Blake  <ebb9@byu.net>
44075
44076         doc: mention another function added in cygwin 1.7.0
44077         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44078         Another new function in cygwin 1.7.
44079
44080 2009-01-19  Bruno Haible  <bruno@clisp.org>
44081
44082         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44083         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44084         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44085         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44087         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44088         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44089         * m4/md4.m4 (gl_MD4): Likewise.
44090         * m4/md5.m4 (gl_MD5): Likewise.
44091         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44092         * m4/sha1.m4 (gl_SHA1): Likewise.
44093         * m4/sha256.m4 (gl_SHA256): Likewise.
44094         * m4/sha512.m4 (gl_SHA512): Likewise.
44095
44096 2009-01-19  Bruno Haible  <bruno@clisp.org>
44097
44098         * modules/uniname/uniname-tests (Depends-on): Add progname.
44099         * tests/uniname/test-uninames.c: Include progname.h.
44100         (main): Call set_program_name.
44101
44102         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44103         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44104         (main): Call set_program_name.
44105
44106         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44107         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44108         (main): Call set_program_name.
44109
44110         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44111         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44112         (main): Call set_program_name.
44113
44114         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44115         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44116         (main): Call set_program_name.
44117
44118         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44119         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44120         (main): Call set_program_name.
44121
44122         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44123         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44124         (main): Call set_program_name.
44125
44126         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44127         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44128         (main): Call set_program_name.
44129
44130         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44131         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44132         (main): Call set_program_name.
44133
44134 2009-01-19  Eric Blake  <ebb9@byu.net>
44135
44136         test-unistd: test previous patch
44137         * tests/test-unistd.c: Test *_FILENO macros.
44138
44139         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44140         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44141         Guarantee a definition.
44142         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44143         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44144         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44145         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44146         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44147         Likewise.
44148         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44149         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44150         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44151         Likewise.
44152         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44153         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44154         (STDERR_FILENO): Likewise.
44155         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44156         (STDERR_FILENO): Likewise.
44157         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44158         (STDERR_FILENO): Likewise.
44159         Reported by Elbert Pol.
44160
44161 2009-01-19  Eric Blake  <ebb9@byu.net>
44162
44163         doc: mention more functions added in cygwin 1.7.0
44164         * doc/posix-functions/abort.texi (abort): Update wording related
44165         to cygwin.
44166         * doc/posix-functions/daylight.texi (daylight): Likewise.
44167         * doc/posix-functions/optarg.texi (optarg): Likewise.
44168         * doc/posix-functions/optarg.texi (opterr): Likewise.
44169         * doc/posix-functions/optarg.texi (optind): Likewise.
44170         * doc/posix-functions/optarg.texi (optopt): Likewise.
44171         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44172         worked in 1.5.x, and was withdrawn in 1.7.
44173         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44174         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44175         cygwin versions.
44176         * doc/posix-functions/perror.texi (perror): Likewise.
44177         * doc/posix-functions/printf.texi (printf): Likewise.
44178         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44179         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44180         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44181         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44182         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44183         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44184         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44185         Likewise.
44186         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44187         Likewise.
44188         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44189         this function.
44190         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44191         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44192         Likewise.
44193         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44194         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44195         * doc/posix-functions/confstr.texi (confstr): Likewise.
44196         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44197         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44198         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44199         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44200         * doc/posix-functions/fputws.texi (fputws): Likewise.
44201         * doc/posix-functions/fwide.texi (fwide): Likewise.
44202         * doc/posix-functions/getwc.texi (getwc): Likewise.
44203         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44204         * doc/posix-functions/putwc.texi (putwc): Likewise.
44205         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44206         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44207         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44208         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44209         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44210         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44211         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44212         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44213         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44214         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44215         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44216
44217 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44218
44219         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44220         * lib/ioctl.c: Include <sys/ioctl.h>.
44221
44222 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44223
44224         * modules/getdate-tests (Depends-on): Add progname.
44225         * tests/test-getdate.c: Use progname module, to avoid link errors
44226         on non-glibc systems.
44227
44228 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44229
44230         * modules/filenamecat-tests (Depends-on): Add progname.
44231         * modules/fstrcmp-tests (Depends-on): Likewise.
44232
44233         * tests/test-filenamecat.c: Use progname module, to avoid link
44234         errors on non-glibc systems.
44235         * tests/test-fstrcmp.c: Likewise.
44236
44237 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44238
44239         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44240         * lib/gettimeofday.c: Move extern declaration out of function.
44241
44242 2009-01-18  Bruno Haible  <bruno@clisp.org>
44243
44244         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44245         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44246         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44247
44248 2009-01-18  Bruno Haible  <bruno@clisp.org>
44249
44250         * lib/strftime.c (MEMPCPY): Remove unused macro.
44251         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44252
44253 2009-01-18  Martin Lambers  <marlam@marlam.de>
44254
44255         New module 'link'.
44256         * lib/unistd.in.h (link): New declaration.
44257         * lib/link.c: New file.
44258         * m4/link.m4: New file.
44259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44260         HAVE_LINK.
44261         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44262         * modules/link: New file.
44263         * doc/posix-functions/link.texi: Mention the new module.
44264
44265 2009-01-18  Bruno Haible  <bruno@clisp.org>
44266
44267         * tests/test-avltree_list.c (main): Call set_program_name.
44268         * tests/test-avltree_oset.c (main): Likewise.
44269         * tests/test-obstack-printf.c: Include progname.h.
44270         (main): Call set_program_name.
44271         * tests/test-quotearg.c: Include progname.h.
44272         (main): Call set_program_name.
44273         * tests/test-xmemdup0.c: Include progname.h.
44274         (main): Call set_program_name.
44275
44276 2009-01-18  Bruno Haible  <bruno@clisp.org>
44277
44278         New module 'alphasort'.
44279         * lib/dirent.in.h (alphasort): New declaration.
44280         * lib/alphasort.c: New file, from glibc with modifications.
44281         * m4/alphasort.m4: New file.
44282         * modules/alphasort: New file.
44283         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44284         HAVE_ALPHASORT.
44285         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44286         HAVE_ALPHASORT.
44287         * doc/posix-functions/alphasort.texi: Mention the new module and the
44288         portability problems.
44289
44290 2009-01-18  Bruno Haible  <bruno@clisp.org>
44291
44292         New module 'scandir'.
44293         * lib/dirent.in.h (scandir): New declaration.
44294         * lib/scandir.c: New file, from glibc with modifications.
44295         * m4/scandir.m4: New file.
44296         * modules/scandir: New file.
44297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44298         HAVE_SCANDIR.
44299         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44300         HAVE_SCANDIR.
44301         * doc/posix-functions/scandir.texi: Mention the new module and the
44302         portability problems.
44303
44304 2009-01-17  Bruno Haible  <bruno@clisp.org>
44305
44306         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44307         Update documentation.
44308         (func_remove_suffix): Escape all dots in the suffix. Update
44309         documentation.
44310         (func_filter_filelist): Update documentation.
44311         Reported by Ralf Wildenhues.
44312
44313 2009-01-17  Bruno Haible  <bruno@clisp.org>
44314
44315         * modules/dprintf-posix-tests: New file.
44316         * tests/test-dprintf-posix.sh: New file.
44317         * tests/test-dprintf-posix.c: New file.
44318
44319         New modules 'dprintf', 'dprintf-posix'.
44320         * lib/stdio.in.h (dprintf): New declaration.
44321         * lib/dprintf.c: New file.
44322         * m4/dprintf.m4: New file.
44323         * m4/dprintf-posix.m4: New file.
44324         * modules/dprintf: New file.
44325         * modules/dprintf-posix: New file.
44326         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44327         HAVE_DPRINTF, REPLACE_DPRINTF.
44328         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44329         HAVE_DPRINTF, REPLACE_DPRINTF.
44330         * doc/posix-functions/dprintf.texi: Mention the new modules.
44331
44332 2009-01-17  Bruno Haible  <bruno@clisp.org>
44333
44334         * modules/vdprintf-posix-tests: New file.
44335         * tests/test-vdprintf-posix.sh: New file.
44336         * tests/test-vdprintf-posix.c: New file.
44337
44338         New modules 'vdprintf', 'vdprintf-posix'.
44339         * lib/stdio.in.h (vdprintf): New declaration.
44340         * lib/vdprintf.c: New file.
44341         * m4/vdprintf.m4: New file.
44342         * m4/vdprintf-posix.m4: New file.
44343         * modules/vdprintf: New file.
44344         * modules/vdprintf-posix: New file.
44345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44346         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44347         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44348         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44349         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44350
44351 2009-01-17  Bruno Haible  <bruno@clisp.org>
44352
44353         Fix replacement of fopen on mingw.
44354         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44355         mingw.
44356
44357 2009-01-17  Bruno Haible  <bruno@clisp.org>
44358
44359         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44360         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44361
44362 2009-01-17  Bruno Haible  <bruno@clisp.org>
44363
44364         Avoid test-fflush2.sh failure on mingw.
44365         * tests/test-fflush2.c: Include binary-io.h.
44366         (main): Put standard input into binary mode.
44367         * modules/fflush-tests (Depends-on): Add binary-io.
44368
44369 2009-01-17  Bruno Haible  <bruno@clisp.org>
44370
44371         * lib/wchar.in.h: In another particular situation, include only the
44372         system's <wchar.h> file.
44373         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44374         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44375         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44376
44377 2009-01-17  Bruno Haible  <bruno@clisp.org>
44378
44379         Support for stripping executables in --enable-relocatable.
44380         * build-aux/install-reloc: Expect one more argument, or an environment
44381         variable RELOC_STRIP_PROG. If set, strip the destination program and
44382         its wrapper.
44383         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44384         RELOC_STRIP_PROG.
44385         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44386         to set RELOCATABLE_STRIP.
44387         * NEWS: Mention the new Makefile requirement.
44388
44389 2009-01-17  Bruno Haible  <bruno@clisp.org>
44390
44391         * build-aux/install-reloc: Remove debugging information left over by
44392         C compiler on MacOS X.
44393
44394 2009-01-17  Bruno Haible  <bruno@clisp.org>
44395
44396         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44397         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44398         _NSGetExecutablePath.
44399
44400 2009-01-16  Jim Meyering  <meyering@redhat.com>
44401
44402         strerror: avoid warnings about discarding "const"
44403         * lib/strerror.c (rpl_strerror): Instead of returning a const
44404         string from each and every "case", use a variable, and add a single
44405         cast after the switch.
44406
44407 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44408
44409         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44410
44411 2009-01-16  Bruno Haible  <bruno@clisp.org>
44412
44413         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44414         array initializer syntax that also works in C++ mode.
44415         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44416
44417 2009-01-16  Jim Meyering  <meyering@redhat.com>
44418
44419         poll: suppress a warning
44420         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44421         to ignore "...unsigned expression < 0 is always false" warnings.
44422
44423 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44424
44425         poll: remove declarations of unused variables
44426         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44427         sockbuf and optlen.
44428
44429 2009-01-15  Bruno Haible  <bruno@clisp.org>
44430
44431         Make fflush-after-ungetc POSIX compliant on BSD systems.
44432         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44433         (clear_ungetc_buffer): Implement also for other systems.
44434         (rpl_fflush): On glibc systems, invoke
44435         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44436         clear_ungetc_buffer after fetching the stream's position, not before.
44437
44438 2009-01-15  Bruno Haible  <bruno@clisp.org>
44439
44440         Make fflush-after-ungetc POSIX compliant on glibc systems.
44441         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44442         after ungetc.
44443         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44444         (rpl_fflush): On glibc systems, simply call the system's fflush
44445         function after clearing the ungetc buffer.
44446         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44447         Instead, lseek only to the end of file, then use the system's fseeko
44448         for the rest. On glibc systems, reset the EOF indicator bit.
44449
44450 2009-01-15  Jim Meyering  <meyering@redhat.com>
44451
44452         openmp.m4: revert quote-adding change, for portability to older autoconf
44453         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44454         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44455         Simon Josefsson noticed the problem when using autoconf-2.61.
44456
44457 2009-01-15  Bruno Haible  <bruno@clisp.org>
44458
44459         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44460         * tests/test-fflush2.c (ASSERT): Always fail.
44461         (main): Add two tests for fflush() after ungetc(), taking into account
44462         the Austin Group's clarification.
44463         Suggested by Eric Blake.
44464
44465 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44466
44467         mktime.m4: remove K&R-style function prototypes
44468         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44469         for the Sun C++ compiler.
44470
44471 2009-01-14  Bruno Haible  <bruno@clisp.org>
44472
44473         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44474         while including <wchar.h>.
44475         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44476         the system's <wchar.h> file.
44477         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44478
44479 2009-01-14  Bruno Haible  <bruno@clisp.org>
44480
44481         * m4/csharp.m4: Don't mention gettext on the serial number line.
44482         * m4/csharpexec.m4: Likewise.
44483         * m4/eaccess.m4: Likewise.
44484         * m4/javaexec.m4: Likewise.
44485         * m4/sig_atomic_t.m4: Likewise.
44486         * m4/tmpdir.m4: Likewise.
44487         * m4/intldir.m4: Bump gettext version.
44488         * m4/lib-ld.m4: Likewise.
44489
44490 2009-01-14  Bruno Haible  <bruno@clisp.org>
44491
44492         * lib/progname.c (set_program_name): Add more comments.
44493         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44494
44495 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44496
44497         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44498         were sys/stat.h does not define it.
44499
44500 2009-01-14  Jim Meyering  <meyering@redhat.com>
44501
44502         many *.m4 files: improve m4 quoting
44503         99% of this change was performed by running the following commands:
44504         git ls-files | grep '\.m4$' | xargs perl -pi \
44505           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44506           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44507           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44508           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44509         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44510         The remainder were to add Copyright dates, increment serial numbers,
44511         undo some changes in comments, exclude m4/intl.m4, and add quotes
44512         around the "1" in ",1" where the unusual spacing prohibited the
44513         above regexps from doing the job.  For more details, see
44514         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44515         * m4/acl.m4: Modified.
44516         * m4/afs.m4: Likewise.
44517         * m4/alloca.m4: Likewise.
44518         * m4/argp.m4: Likewise.
44519         * m4/argz.m4: Likewise.
44520         * m4/atexit.m4: Likewise.
44521         * m4/bison-i18n.m4: Likewise.
44522         * m4/bison.m4: Likewise.
44523         * m4/byteswap.m4: Likewise.
44524         * m4/c-stack.m4: Likewise.
44525         * m4/c-strtod.m4: Likewise.
44526         * m4/calloc.m4: Likewise.
44527         * m4/canonicalize-lgpl.m4: Likewise.
44528         * m4/chown.m4: Likewise.
44529         * m4/clock_time.m4: Likewise.
44530         * m4/codeset.m4: Likewise.
44531         * m4/copy-file.m4: Likewise.
44532         * m4/csharp.m4: Likewise.
44533         * m4/csharpcomp.m4: Likewise.
44534         * m4/csharpexec.m4: Likewise.
44535         * m4/d-ino.m4: Likewise.
44536         * m4/d-type.m4: Likewise.
44537         * m4/dirfd.m4: Likewise.
44538         * m4/double-slash-root.m4: Likewise.
44539         * m4/eaccess.m4: Likewise.
44540         * m4/eealloc.m4: Likewise.
44541         * m4/environ.m4: Likewise.
44542         * m4/errno_h.m4: Likewise.
44543         * m4/euidaccess.m4: Likewise.
44544         * m4/execute.m4: Likewise.
44545         * m4/fatal-signal.m4: Likewise.
44546         * m4/fchdir.m4: Likewise.
44547         * m4/fcntl_h.m4: Likewise.
44548         * m4/fileblocks.m4: Likewise.
44549         * m4/filenamecat.m4: Likewise.
44550         * m4/findprog.m4: Likewise.
44551         * m4/flexmember.m4: Likewise.
44552         * m4/fnmatch.m4: Likewise.
44553         * m4/fopen.m4: Likewise.
44554         * m4/fpending.m4: Likewise.
44555         * m4/fprintf-posix.m4: Likewise.
44556         * m4/free.m4: Likewise.
44557         * m4/frexp.m4: Likewise.
44558         * m4/frexpl.m4: Likewise.
44559         * m4/fsusage.m4: Likewise.
44560         * m4/ftruncate.m4: Likewise.
44561         * m4/gc-camellia.m4: Likewise.
44562         * m4/gc-random.m4: Likewise.
44563         * m4/gc.m4: Likewise.
44564         * m4/getaddrinfo.m4: Likewise.
44565         * m4/getcwd-abort-bug.m4: Likewise.
44566         * m4/getcwd-path-max.m4: Likewise.
44567         * m4/getdate.m4: Likewise.
44568         * m4/getdomainname.m4: Likewise.
44569         * m4/getgroups.m4: Likewise.
44570         * m4/gethostname.m4: Likewise.
44571         * m4/gethrxtime.m4: Likewise.
44572         * m4/getline.m4: Likewise.
44573         * m4/getloadavg.m4: Likewise.
44574         * m4/getndelim2.m4: Likewise.
44575         * m4/getpass.m4: Likewise.
44576         * m4/gettext.m4: Likewise.
44577         * m4/gettime.m4: Likewise.
44578         * m4/gettimeofday.m4: Likewise.
44579         * m4/gnulib-common.m4: Likewise.
44580         * m4/group-member.m4: Likewise.
44581         * m4/host-os.m4: Likewise.
44582         * m4/iconv.m4: Likewise.
44583         * m4/iconv_open.m4: Likewise.
44584         * m4/inet_ntop.m4: Likewise.
44585         * m4/inet_pton.m4: Likewise.
44586         * m4/inline.m4: Likewise.
44587         * m4/intldir.m4: Likewise.
44588         * m4/intlmacosx.m4: Likewise.
44589         * m4/intmax.m4: Likewise.
44590         * m4/intmax_t.m4: Likewise.
44591         * m4/inttypes.m4: Likewise.
44592         * m4/inttypes_h.m4: Likewise.
44593         * m4/inttypes-pri.m4: Likewise.
44594         * m4/isapipe.m4: Likewise.
44595         * m4/isnand.m4: Likewise.
44596         * m4/isnanf.m4: Likewise.
44597         * m4/isnanl.m4: Likewise.
44598         * m4/javacomp.m4: Likewise.
44599         * m4/javaexec.m4: Likewise.
44600         * m4/jm-winsz1.m4: Likewise.
44601         * m4/jm-winsz2.m4: Likewise.
44602         * m4/lchown.m4: Likewise.
44603         * m4/lcmessage.m4: Likewise.
44604         * m4/ldexpl.m4: Likewise.
44605         * m4/lib-ld.m4: Likewise.
44606         * m4/lib-link.m4: Likewise.
44607         * m4/libsigsegv.m4: Likewise.
44608         * m4/link-follow.m4: Likewise.
44609         * m4/localcharset.m4: Likewise.
44610         * m4/locale-fr.m4: Likewise.
44611         * m4/locale-ja.m4: Likewise.
44612         * m4/locale-tr.m4: Likewise.
44613         * m4/locale-zh.m4: Likewise.
44614         * m4/lock.m4: Likewise.
44615         * m4/longlong.m4: Likewise.
44616         * m4/ls-mntd-fs.m4: Likewise.
44617         * m4/lstat.m4: Likewise.
44618         * m4/malloc.m4: Likewise.
44619         * m4/mathl.m4: Likewise.
44620         * m4/mbrtowc.m4: Likewise.
44621         * m4/mbstate_t.m4: Likewise.
44622         * m4/mbswidth.m4: Likewise.
44623         * m4/memchr.m4: Likewise.
44624         * m4/memcmp.m4: Likewise.
44625         * m4/memcpy.m4: Likewise.
44626         * m4/memmem.m4: Likewise.
44627         * m4/memmove.m4: Likewise.
44628         * m4/mempcpy.m4: Likewise.
44629         * m4/memrchr.m4: Likewise.
44630         * m4/memset.m4: Likewise.
44631         * m4/minmax.m4: Likewise.
44632         * m4/mkdir-slash.m4: Likewise.
44633         * m4/mkdtemp.m4: Likewise.
44634         * m4/mktime.m4: Likewise.
44635         * m4/mmap-anon.m4: Likewise.
44636         * m4/mountlist.m4: Likewise.
44637         * m4/nanosleep.m4: Likewise.
44638         * m4/nls.m4: Likewise.
44639         * m4/nocrash.m4: Likewise.
44640         * m4/open.m4: Likewise.
44641         * m4/openat.m4: Likewise.
44642         * m4/openmp.m4: Likewise.
44643         * m4/pathmax.m4: Likewise.
44644         * m4/perl.m4: Likewise.
44645         * m4/physmem.m4: Likewise.
44646         * m4/pipe.m4: Likewise.
44647         * m4/po.m4: Likewise.
44648         * m4/poll.m4: Likewise.
44649         * m4/posixtm.m4: Likewise.
44650         * m4/posixver.m4: Likewise.
44651         * m4/printf-frexp.m4: Likewise.
44652         * m4/printf-frexpl.m4: Likewise.
44653         * m4/printf-posix.m4: Likewise.
44654         * m4/printf-posix-rpl.m4: Likewise.
44655         * m4/printf.m4: Likewise.
44656         * m4/progtest.m4: Likewise.
44657         * m4/putenv.m4: Likewise.
44658         * m4/readline.m4: Likewise.
44659         * m4/readlink.m4: Likewise.
44660         * m4/readutmp.m4: Likewise.
44661         * m4/realloc.m4: Likewise.
44662         * m4/regex.m4: Likewise.
44663         * m4/relocatable.m4: Likewise.
44664         * m4/relocatable-lib.m4: Likewise.
44665         * m4/rename-dest-slash.m4: Likewise.
44666         * m4/rename.m4: Likewise.
44667         * m4/rmdir-errno.m4: Likewise.
44668         * m4/rmdir.m4: Likewise.
44669         * m4/roundf.m4: Likewise.
44670         * m4/roundl.m4: Likewise.
44671         * m4/rpmatch.m4: Likewise.
44672         * m4/save-cwd.m4: Likewise.
44673         * m4/selinux-selinux-h.m4: Likewise.
44674         * m4/setenv.m4: Likewise.
44675         * m4/settime.m4: Likewise.
44676         * m4/sig2str.m4: Likewise.
44677         * m4/sig_atomic_t.m4: Likewise.
44678         * m4/signalblocking.m4: Likewise.
44679         * m4/signbit.m4: Likewise.
44680         * m4/sigpipe.m4: Likewise.
44681         * m4/sockets.m4: Likewise.
44682         * m4/sockpfaf.m4: Likewise.
44683         * m4/st_dm_mode.m4: Likewise.
44684         * m4/stat-time.m4: Likewise.
44685         * m4/stdbool.m4: Likewise.
44686         * m4/stdint.m4: Likewise.
44687         * m4/stdint_h.m4: Likewise.
44688         * m4/stpcpy.m4: Likewise.
44689         * m4/stpncpy.m4: Likewise.
44690         * m4/strcase.m4: Likewise.
44691         * m4/strchrnul.m4: Likewise.
44692         * m4/strcspn.m4: Likewise.
44693         * m4/strdup.m4: Likewise.
44694         * m4/strftime.m4: Likewise.
44695         * m4/strndup.m4: Likewise.
44696         * m4/strnlen.m4: Likewise.
44697         * m4/strpbrk.m4: Likewise.
44698         * m4/strptime.m4: Likewise.
44699         * m4/strsep.m4: Likewise.
44700         * m4/strtod.m4: Likewise.
44701         * m4/strtoimax.m4: Likewise.
44702         * m4/strtok_r.m4: Likewise.
44703         * m4/strtol.m4: Likewise.
44704         * m4/strtoll.m4: Likewise.
44705         * m4/strtoul.m4: Likewise.
44706         * m4/strtoull.m4: Likewise.
44707         * m4/strtoumax.m4: Likewise.
44708         * m4/strverscmp.m4: Likewise.
44709         * m4/threadlib.m4: Likewise.
44710         * m4/timegm.m4: Likewise.
44711         * m4/tm_gmtoff.m4: Likewise.
44712         * m4/tmpdir.m4: Likewise.
44713         * m4/tmpfile.m4: Likewise.
44714         * m4/tzset.m4: Likewise.
44715         * m4/uintmax_t.m4: Likewise.
44716         * m4/unlinkdir.m4: Likewise.
44717         * m4/unlocked-io.m4: Likewise.
44718         * m4/uptime.m4: Likewise.
44719         * m4/userspec.m4: Likewise.
44720         * m4/utimbuf.m4: Likewise.
44721         * m4/utime.m4: Likewise.
44722         * m4/utimes-null.m4: Likewise.
44723         * m4/utimes.m4: Likewise.
44724         * m4/vararrays.m4: Likewise.
44725         * m4/vasnprintf.m4: Likewise.
44726         * m4/vfprintf-posix.m4: Likewise.
44727         * m4/vprintf-posix.m4: Likewise.
44728         * m4/wait-process.m4: Likewise.
44729         * m4/wchar_t.m4: Likewise.
44730         * m4/wint_t.m4: Likewise.
44731         * m4/write-any-file.m4: Likewise.
44732         * m4/yield.m4: Likewise.
44733
44734 2009-01-13  Bruno Haible  <bruno@clisp.org>
44735
44736         Avoid test-copy-file.sh failures when ACL support insufficient.
44737         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44738         TESTS_ENVIRONMENT.
44739         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44740         Reported by Jim Meyering.
44741
44742 2009-01-13  Bruno Haible  <bruno@clisp.org>
44743
44744         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44745         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44746         * modules/unistdio/u8-printf-parse (Files): Likewise.
44747         * modules/unistdio/u32-printf-parse (Files): Likewise.
44748         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44749
44750 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44751
44752         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44753         and m4/inttypes_h.m4 too.
44754
44755 2009-01-12  Eric Blake  <ebb9@byu.net>
44756
44757         tests: IRIX 6.2 cc can't compile -0.0 into .data
44758         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44759         rather than at compile-time.
44760         * tests/test-floorl.c (minus_zero): Likewise.
44761         * tests/test-frexpl.c (minus_zero): Likewise.
44762         * tests/test-isnan.c (minus_zerol): Likewise.
44763         * tests/test-isnanl.h (minus_zero): Likewise.
44764         * tests/test-ldexpl.c (minus_zero): Likewise.
44765         * tests/test-roundl.c (minus_zero): Likewise.
44766         * tests/test-signbit.c (minus_zerol): Likewise.
44767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44769         * tests/test-truncl.c (minus_zero): Likewise.
44770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44772         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44773
44774 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44775
44776         regex: fix glibc bug 9697
44777         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44778         handling.
44779
44780 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44781
44782         regex: fix glibc bug 697
44783         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44784         being NULL also if there are no backreferences.
44785
44786 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44787
44788         regex: merge glibc changes
44789         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44790         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44791         re_string_skip_chars, re_string_reconstruct): Likewise.
44792         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44793
44794 2009-01-07  Jim Meyering  <meyering@redhat.com>
44795
44796         poll: filter through cppi
44797         * lib/poll.c: Indent cpp directives to reflect nesting.
44798
44799 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44800
44801         poll: don't return uninitialized
44802         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44803
44804 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44805
44806         avoid compile failure on AIX 6.1
44807         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44808         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44809
44810 2009-01-04  Jim Meyering  <meyering@redhat.com>
44811
44812         remove duplicate inclusion of <stdio.h>
44813         * tests/test-fprintf-posix.c: Likewise.
44814         * tests/test-printf-posix.c: Likewise.
44815         * tests/test-snprintf-posix.c: Likewise.
44816         * tests/test-sprintf-posix.c: Likewise.
44817         * tests/test-vasprintf-posix.c: Likewise.
44818         * tests/test-vfprintf-posix.c: Likewise.
44819         * tests/test-vprintf-posix.c: Likewise.
44820         * tests/test-vsnprintf-posix.c: Likewise.
44821         * tests/test-vsprintf-posix.c: Likewise.
44822
44823 2009-01-03  Jim Meyering  <meyering@redhat.com>
44824
44825         gnulib-tool: fix sed-based filtering
44826         * gnulib-tool (func_filter_filelist): Remove extra backslash
44827         in sed_fff_filter definition.
44828
44829 2009-01-02  Jim Meyering  <meyering@redhat.com>
44830
44831         strftime: avoid compilation failure on Solaris 2.6
44832         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44833         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44834         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44835         be available.  Reported by Tom G. Christensen.  Details in
44836         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44837
44838 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44839             Bruno Haible  <bruno@clisp.org>
44840
44841         Speed up gnulib-tool by doing more string processing through shell
44842         built-ins.
44843         * gnulib-tool (fast_func_append): New variable.
44844         (func_remove_prefix, func_remove_suffix): New functions.
44845         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44846         (func_filter_filelist): New function.
44847         (func_get_dependencies): Use func_remove_suffix instead of sed.
44848         (func_get_automake_snippet): Use func_filter_filelist instead of a
44849         subshell and sed invocation.
44850
44851 2009-01-01  Bruno Haible  <bruno@clisp.org>
44852
44853         Fix a security bug.
44854         * gnulib-tool (func_import, import, update): Don't allow the characters
44855         '"', '$', '`', '\' in macro arguments that become part of commands that
44856         are evaluated.
44857
44858 2009-01-01  Bruno Haible  <bruno@clisp.org>
44859
44860         * gnulib-tool (func_reset_sigpipe): Add more comments.
44861
44862 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44863
44864         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44865         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44866         already know the answer.
44867
44868 2009-01-01  Jim Meyering  <meyering@redhat.com>
44869
44870         * lib/version-etc.c (version_etc_va): Update copyright year.
44871
44872 2008-12-30  Bruno Haible  <bruno@clisp.org>
44873
44874         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44875         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44876         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44877
44878 2008-12-29  Eric Blake  <ebb9@byu.net>
44879
44880         multiarch: avoid autoconf AC_REQUIRE bug
44881         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44882         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44883         2.63 and older.
44884         Reported by Bruno Haible, and analyzed in
44885         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44886
44887 2008-12-29  Bruno Haible  <bruno@clisp.org>
44888
44889         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44890         files in subdirectories correctly.
44891         Reported by Ralf Wildenhues.
44892
44893 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44894
44895         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44896         rather than 'join FILE -', for Solaris join.
44897
44898 2008-12-29  Bruno Haible  <bruno@clisp.org>
44899
44900         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44901         quoting.
44902         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44903         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44904         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44905         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44906         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44907         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44908         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44909         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44910         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44911         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44912         * m4/nls.m4 (AM_NLS): Likewise.
44913         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44914         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44915         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44916         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44917         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44918         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44919         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44920         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44921         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44922         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44923         * m4/xsize.m4 (gl_XSIZE): Likewise.
44924         Suggested by Jim Meyering.
44925
44926 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44927
44928         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44929         * lib/parse-duration.c: use a switch instead of cascading if's.
44930
44931 2008-12-29  Eric Blake  <ebb9@byu.net>
44932
44933         wchar.h: supply WEOF on Irix 5.3
44934         * lib/wchar.in.h (wint_t): Also supply WEOF.
44935         * lib/wctype.in.h (wint_t): Likewise.
44936         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44937         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44938         Reported by Tom G. Christensen.
44939
44940 2008-12-26  Bruno Haible  <bruno@clisp.org>
44941
44942         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44943         i486, i586, i686.
44944
44945 2008-12-26  Bruno Haible  <bruno@clisp.org>
44946
44947         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44948
44949 2008-12-26  Bruno Haible  <bruno@clisp.org>
44950
44951         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44952         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44953         not __STDC_CONSTANT_MACROS.
44954         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44955
44956 2008-12-25  Bruno Haible  <bruno@clisp.org>
44957
44958         Add support for universal builds to vasnprintf.
44959         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44960         universal builds, guess no.
44961         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44962         * modules/vasprintf-posix (Depends-on): Likewise.
44963         * modules/fprintf-posix (Depends-on): Likewise.
44964         * modules/vfprintf-posix (Depends-on): Likewise.
44965         * modules/snprintf-posix (Depends-on): Likewise.
44966         * modules/vsnprintf-posix (Depends-on): Likewise.
44967         * modules/sprintf-posix (Depends-on): Likewise.
44968         * modules/vsprintf-posix (Depends-on): Likewise.
44969         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44970         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44971         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44972         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44973         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44974         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44975         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44976
44977         Add support for universal builds to <inttypes.h>.
44978         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44979         _SCNu64_PREFIX): In Apple
44980         universal builds, define directly, using _LP64.
44981         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44982         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44983         * modules/inttypes (Depends-on): Add multiarch.
44984         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44985
44986         Add support for universal builds to <stdint.h>.
44987         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44988         universal builds, define directly, using _LP64.
44989         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44990         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44991         and size_t.
44992         * modules/stdint (Depends-on): Add multiarch.
44993         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44994
44995         New module 'multiarch'.
44996         * modules/multiarch: New file.
44997         * m4/multiarch.m4: New file.
44998
44999 2008-12-25  Bruno Haible  <bruno@clisp.org>
45000
45001         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45002
45003 2008-12-25  Bruno Haible  <bruno@clisp.org>
45004
45005         * modules/btowc (License): Relicense under LGPLv2+.
45006         * modules/mbsinit (License): Likewise.
45007         * modules/mbrtowc (License): Likewise.
45008         * modules/wcrtomb (License): Likewise.
45009         * modules/streq (License): Likewise.
45010         Reported by David Lutterkort <lutter@redhat.com>.
45011
45012 2008-12-23  Bruno Haible  <bruno@clisp.org>
45013
45014         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45015
45016 2008-12-23  Bruno Haible  <bruno@clisp.org>
45017
45018         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45019         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45020         GETADDRINFO_LIB, not in LIBS.
45021         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45022         * modules/canon-host (Link): Likewise.
45023         * NEWS: Mention the change.
45024         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45025         GETADDRINFO_LIB.
45026
45027 2008-12-22  Bruno Haible  <bruno@clisp.org>
45028
45029         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45030         * doc/posix-functions/iswalpha_l.texi: Likewise.
45031         * doc/posix-functions/iswblank_l.texi: Likewise.
45032         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45033         * doc/posix-functions/iswctype_l.texi: Likewise.
45034         * doc/posix-functions/iswdigit_l.texi: Likewise.
45035         * doc/posix-functions/iswgraph_l.texi: Likewise.
45036         * doc/posix-functions/iswlower_l.texi: Likewise.
45037         * doc/posix-functions/iswprint_l.texi: Likewise.
45038         * doc/posix-functions/iswpunct_l.texi: Likewise.
45039         * doc/posix-functions/iswspace_l.texi: Likewise.
45040         * doc/posix-functions/iswupper_l.texi: Likewise.
45041         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45042         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45043         * doc/posix-functions/open_wmemstream.texi: Likewise.
45044         * doc/posix-functions/swscanf.texi: Likewise.
45045         * doc/posix-functions/towctrans_l.texi: Likewise.
45046         * doc/posix-functions/towlower.texi: Likewise.
45047         * doc/posix-functions/towlower_l.texi: Likewise.
45048         * doc/posix-functions/towupper.texi: Likewise.
45049         * doc/posix-functions/towupper_l.texi: Likewise.
45050         * doc/posix-functions/vfwprintf.texi: Likewise.
45051         * doc/posix-functions/vfwscanf.texi: Likewise.
45052         * doc/posix-functions/vswscanf.texi: Likewise.
45053         * doc/posix-functions/vwprintf.texi: Likewise.
45054         * doc/posix-functions/vwscanf.texi: Likewise.
45055         * doc/posix-functions/wcpcpy.texi: Likewise.
45056         * doc/posix-functions/wcpncpy.texi: Likewise.
45057         * doc/posix-functions/wcscasecmp.texi: Likewise.
45058         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45059         * doc/posix-functions/wcscoll_l.texi: Likewise.
45060         * doc/posix-functions/wcsdup.texi: Likewise.
45061         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45062         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45063         * doc/posix-functions/wcsnlen.texi: Likewise.
45064         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45065         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45066         * doc/posix-functions/wctrans_l.texi: Likewise.
45067         * doc/posix-functions/wctype_l.texi: Likewise.
45068         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45069         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45070         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45071         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45072         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45073         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45074         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45075         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45076         * doc/glibc-functions/wcschrnul.texi: Likewise.
45077         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45078         * doc/glibc-functions/wcstod_l.texi: Likewise.
45079         * doc/glibc-functions/wcstof_l.texi: Likewise.
45080         * doc/glibc-functions/wcstol_l.texi: Likewise.
45081         * doc/glibc-functions/wcstold_l.texi: Likewise.
45082         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45083         * doc/glibc-functions/wcstoq.texi: Likewise.
45084         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45085         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45086         * doc/glibc-functions/wcstouq.texi: Likewise.
45087         * doc/glibc-functions/wmempcpy.texi: Likewise.
45088
45089 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45090             Eric Blake  <ebb9@byu.net>
45091             Paolo Bonzini  <bonzini@gnu.org>
45092             Bruno Haible  <bruno@clisp.org>
45093
45094         Make c-stack work on Haiku.
45095         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45096         (c_stack_action): Use SA_ONSTACK flag.
45097
45098 2008-12-22  Bruno Haible  <bruno@clisp.org>
45099
45100         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45101
45102 2008-12-22  Bruno Haible  <bruno@clisp.org>
45103
45104         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45105         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45106         being overridden.
45107         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45108         New macros.
45109         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45111         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45112         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45113
45114 2008-12-22  Bruno Haible  <bruno@clisp.org>
45115
45116         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45117         from test code.
45118
45119 2008-12-22  Eric Blake  <ebb9@byu.net>
45120
45121         Avoid gcc warnings on cygwin.
45122         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45123         Avoid unused variable.
45124         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45125         Likewise.
45126
45127 2008-12-22  Bruno Haible  <bruno@clisp.org>
45128
45129         Remove HAVE_MBRTOWC conditionals.
45130         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45131         (mbscasecmp): Assume mbrtowc function.
45132         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45133         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45134         * lib/mbschr.c: Include mbuiter.h unconditionally.
45135         (mbschr): Assume mbrtowc function.
45136         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45137         (mbscspn): Assume mbrtowc function.
45138         * lib/mbslen.c: Include mbuiter.h unconditionally.
45139         (mbslen): Assume mbrtowc function.
45140         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45141         (mbsncasecmp): Assume mbrtowc function.
45142         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45143         (mbsnlen): Assume mbrtowc function.
45144         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45145         (mbspbrk): Assume mbrtowc function.
45146         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45147         (mbspcasecmp): Assume mbrtowc function.
45148         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45149         (mbsrchr): Assume mbrtowc function.
45150         * lib/mbssep.c: Include mbuiter.h unconditionally.
45151         (mbssep): Assume mbrtowc function.
45152         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45153         (mbsspn): Assume mbrtowc function.
45154         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45155         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45156         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45157         (mbstok_r): Assume mbrtowc function.
45158         * lib/propername.c: Include mbuiter.h unconditionally.
45159         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45160         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45161         (trim2): Assume mbrtowc function.
45162         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45163         (mbsnwidth): Assume mbrtowc function.
45164         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45165         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45166         fallback definitions.
45167         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45168
45169 2008-12-22  Bruno Haible  <bruno@clisp.org>
45170
45171         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45172
45173 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45174
45175         * modules/regex: Request emulations for the mb*/wc* functions we need.
45176         * m4/regex.m4: Don't look for those functions here.
45177         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45178
45179 2008-12-22  Bruno Haible  <bruno@clisp.org>
45180
45181         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45182
45183 2008-12-21  Bruno Haible  <bruno@clisp.org>
45184
45185         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45186         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45187         (Include): Remove conditionalization.
45188         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45189         (Include): Remove conditionalization.
45190         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45191         (Include): Remove conditionalization.
45192         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45193         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45194         * NEWS: Mention the change.
45195         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45196         via Sergey Poznyakoff <gray@gnu.org.ua>.
45197
45198 2008-12-21  Bruno Haible  <bruno@clisp.org>
45199
45200         * MODULES.html.sh (Extended multibyte and wide character utilities
45201         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45202         wcrtomb, wcsrtombs.
45203         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45204         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45205         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45206         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45207
45208 2008-12-21  Bruno Haible  <bruno@clisp.org>
45209
45210         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45211
45212 2008-12-21  Bruno Haible  <bruno@clisp.org>
45213
45214         * modules/wcsnrtombs-tests: New file.
45215         * tests/test-wcsnrtombs1.sh: New file.
45216         * tests/test-wcsnrtombs2.sh: New file.
45217         * tests/test-wcsnrtombs3.sh: New file.
45218         * tests/test-wcsnrtombs4.sh: New file.
45219         * tests/test-wcsnrtombs.c: New file.
45220
45221         New module 'wcsnrtombs'.
45222         * lib/wchar.in.h (wcsnrtombs): New declaration.
45223         * lib/wcsnrtombs.c: New file.
45224         * lib/wcsrtombs-state.c: New file.
45225         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45226         (internal_state): Remove variable.
45227         * m4/wcsnrtombs.m4: New file.
45228         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45229         compilation units.
45230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45231         HAVE_WCSNRTOMBS.
45232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45233         HAVE_WCSNRTOMBS.
45234         * modules/wcsnrtombs: New file.
45235         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45236         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45237
45238 2008-12-21  Bruno Haible  <bruno@clisp.org>
45239
45240         * modules/wcsrtombs-tests: New file.
45241         * tests/test-wcsrtombs1.sh: New file.
45242         * tests/test-wcsrtombs2.sh: New file.
45243         * tests/test-wcsrtombs3.sh: New file.
45244         * tests/test-wcsrtombs4.sh: New file.
45245         * tests/test-wcsrtombs.c: New file.
45246
45247         New module 'wcsrtombs'.
45248         * lib/wchar.in.h (wcsrtombs): New declaration.
45249         * lib/wcsrtombs.c: New file.
45250         * m4/wcsrtombs.m4: New file.
45251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45252         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45253         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45254         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45255         * modules/wcsrtombs: New file.
45256         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45257         bugs.
45258
45259 2008-12-21  Bruno Haible  <bruno@clisp.org>
45260
45261         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45262         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45263         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45264         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45265         if not correct.
45266         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45267         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45268         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45269         m4/locale-zh.m4, m4/codeset.m4.
45270         * doc/posix-functions/wcrtomb.texi: Document the bug.
45271
45272 2008-12-21  Bruno Haible  <bruno@clisp.org>
45273
45274         Work around a btowc() bug on IRIX 6.5.
45275         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45276         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45277         REPLACE_WTOBC if not.
45278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45279         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45280         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45281
45282 2008-12-21  Bruno Haible  <bruno@clisp.org>
45283
45284         * modules/wcrtomb-tests: New file.
45285         * tests/test-wcrtomb.sh: New file.
45286         * tests/test-wcrtomb.c: New file.
45287
45288         New module 'wcrtomb'.
45289         * lib/wchar.in.h (wcrtomb): New declaration.
45290         * lib/wcrtomb.c: New file.
45291         * m4/wcrtomb.m4: New file.
45292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45293         HAVE_WCRTOMB.
45294         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45295         HAVE_WCRTOMB.
45296         * modules/wcrtomb: New file.
45297         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45298
45299 2008-12-21  Bruno Haible  <bruno@clisp.org>
45300
45301         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45302         * modules/mbsrtowcs (Files): Likewise.
45303         * modules/wctob (Files): Likewise.
45304         * modules/c-strcase-tests (Files): Likewise.
45305         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45306         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45307         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45308         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45309         * modules/vasnprintf-posix-tests (Files): Likewise.
45310
45311 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45312
45313         gitlog-to-changelog: pass all command-line arguments to git-log
45314         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45315         it is sometimes convenient to filter the commits in various ways.
45316         gitlog-to-changelog only allows --since to specify a start date,
45317         but git-log itself supports many other filtering mechanisms.
45318         At the moment, I want to filter by branch name.  Rather than
45319         adding a --branch option to gitlog-to-changelog, it seems more
45320         flexible to simply pass all options directly to git-log and let
45321         git do the work.  Notice that this effectively makes --since a
45322         redundant option for gitlog-to-changelog, but removing it would
45323         require current usage to change since calls would then require
45324         an additional '--'.
45325
45326 2008-12-21  Bruno Haible  <bruno@clisp.org>
45327
45328         * modules/mbsnrtowcs-tests: New file.
45329         * tests/test-mbsnrtowcs1.sh: New file.
45330         * tests/test-mbsnrtowcs2.sh: New file.
45331         * tests/test-mbsnrtowcs3.sh: New file.
45332         * tests/test-mbsnrtowcs4.sh: New file.
45333         * tests/test-mbsnrtowcs.c: New file.
45334
45335         New module 'mbsnrtowcs'.
45336         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45337         * lib/mbsnrtowcs.c: New file.
45338         * lib/mbsrtowcs-state.c: New file.
45339         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45340         (internal_state): Remove variable.
45341         * m4/mbsnrtowcs.m4: New file.
45342         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45343         compilation units.
45344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45345         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45346         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45347         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45348         * modules/mbsnrtowcs: New file.
45349         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45350         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45351         portability problem.
45352
45353 2008-12-21  Bruno Haible  <bruno@clisp.org>
45354
45355         Work around mbsrtowcs bug.
45356         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45357         (gl_FUNC_MBSRTOWCS): Invoke it.
45358         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45359         m4/locale-zh.m4.
45360         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45361
45362 2008-12-21  Bruno Haible  <bruno@clisp.org>
45363
45364         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45365
45366 2008-12-21  Bruno Haible  <bruno@clisp.org>
45367
45368         Update doc for AIX.
45369         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45370         16-bit wchar_t type.
45371         * doc/posix-functions/btowc.texi: Likewise.
45372         * doc/posix-functions/fgetwc.texi: Likewise.
45373         * doc/posix-functions/fgetws.texi: Likewise.
45374         * doc/posix-functions/fputwc.texi: Likewise.
45375         * doc/posix-functions/fputws.texi: Likewise.
45376         * doc/posix-functions/fwide.texi: Likewise.
45377         * doc/posix-functions/fwprintf.texi: Likewise.
45378         * doc/posix-functions/fwscanf.texi: Likewise.
45379         * doc/posix-functions/getwchar.texi: Likewise.
45380         * doc/posix-functions/getwc.texi: Likewise.
45381         * doc/posix-functions/iswalnum.texi: Likewise.
45382         * doc/posix-functions/iswalpha.texi: Likewise.
45383         * doc/posix-functions/iswblank.texi: Likewise.
45384         * doc/posix-functions/iswcntrl.texi: Likewise.
45385         * doc/posix-functions/iswctype.texi: Likewise.
45386         * doc/posix-functions/iswdigit.texi: Likewise.
45387         * doc/posix-functions/iswgraph.texi: Likewise.
45388         * doc/posix-functions/iswlower.texi: Likewise.
45389         * doc/posix-functions/iswprint.texi: Likewise.
45390         * doc/posix-functions/iswpunct.texi: Likewise.
45391         * doc/posix-functions/iswspace.texi: Likewise.
45392         * doc/posix-functions/iswupper.texi: Likewise.
45393         * doc/posix-functions/iswxdigit.texi: Likewise.
45394         * doc/posix-functions/mbrtowc.texi: Likewise.
45395         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45396         * doc/posix-functions/mbstowcs.texi: Likewise.
45397         * doc/posix-functions/mbtowc.texi: Likewise.
45398         * doc/posix-functions/putwchar.texi: Likewise.
45399         * doc/posix-functions/putwc.texi: Likewise.
45400         * doc/posix-functions/swprintf.texi: Likewise.
45401         * doc/posix-functions/tolower.texi: Likewise.
45402         * doc/posix-functions/toupper.texi: Likewise.
45403         * doc/posix-functions/towctrans.texi: Likewise.
45404         * doc/posix-functions/ungetwc.texi: Likewise.
45405         * doc/posix-functions/vswprintf.texi: Likewise.
45406         * doc/posix-functions/wcrtomb.texi: Likewise.
45407         * doc/posix-functions/wcscat.texi: Likewise.
45408         * doc/posix-functions/wcschr.texi: Likewise.
45409         * doc/posix-functions/wcscmp.texi: Likewise.
45410         * doc/posix-functions/wcscoll.texi: Likewise.
45411         * doc/posix-functions/wcscpy.texi: Likewise.
45412         * doc/posix-functions/wcscspn.texi: Likewise.
45413         * doc/posix-functions/wcsftime.texi: Likewise.
45414         * doc/posix-functions/wcslen.texi: Likewise.
45415         * doc/posix-functions/wcsncat.texi: Likewise.
45416         * doc/posix-functions/wcsncmp.texi: Likewise.
45417         * doc/posix-functions/wcsncpy.texi: Likewise.
45418         * doc/posix-functions/wcspbrk.texi: Likewise.
45419         * doc/posix-functions/wcsrchr.texi: Likewise.
45420         * doc/posix-functions/wcsrtombs.texi: Likewise.
45421         * doc/posix-functions/wcsspn.texi: Likewise.
45422         * doc/posix-functions/wcsstr.texi: Likewise.
45423         * doc/posix-functions/wcstod.texi: Likewise.
45424         * doc/posix-functions/wcstof.texi: Likewise.
45425         * doc/posix-functions/wcstoimax.texi: Likewise.
45426         * doc/posix-functions/wcstok.texi: Likewise.
45427         * doc/posix-functions/wcstold.texi: Likewise.
45428         * doc/posix-functions/wcstoll.texi: Likewise.
45429         * doc/posix-functions/wcstol.texi: Likewise.
45430         * doc/posix-functions/wcstombs.texi: Likewise.
45431         * doc/posix-functions/wcstoull.texi: Likewise.
45432         * doc/posix-functions/wcstoul.texi: Likewise.
45433         * doc/posix-functions/wcstoumax.texi: Likewise.
45434         * doc/posix-functions/wcswidth.texi: Likewise.
45435         * doc/posix-functions/wcsxfrm.texi: Likewise.
45436         * doc/posix-functions/wctob.texi: Likewise.
45437         * doc/posix-functions/wctomb.texi: Likewise.
45438         * doc/posix-functions/wctrans.texi: Likewise.
45439         * doc/posix-functions/wctype.texi: Likewise.
45440         * doc/posix-functions/wcwidth.texi: Likewise.
45441         * doc/posix-functions/wmemchr.texi: Likewise.
45442         * doc/posix-functions/wmemcmp.texi: Likewise.
45443         * doc/posix-functions/wmemcpy.texi: Likewise.
45444         * doc/posix-functions/wmemmove.texi: Likewise.
45445         * doc/posix-functions/wmemset.texi: Likewise.
45446         * doc/posix-functions/wprintf.texi: Likewise.
45447         * doc/posix-functions/wscanf.texi: Likewise.
45448
45449 2008-12-21  Bruno Haible  <bruno@clisp.org>
45450
45451         Update doc for HP-UX 11.11.
45452         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45453         in HP-UX version 11.00, not in all versions of HP-UX 11.
45454         * doc/posix-functions/fwide.texi: Likewise.
45455         * doc/posix-functions/fwprintf.texi: Likewise.
45456         * doc/posix-functions/fwscanf.texi: Likewise.
45457         * doc/posix-functions/inet_ntop.texi: Likewise.
45458         * doc/posix-functions/inet_pton.texi: Likewise.
45459         * doc/posix-functions/mbrlen.texi: Likewise.
45460         * doc/posix-functions/mbrtowc.texi: Likewise.
45461         * doc/posix-functions/mbsinit.texi: Likewise.
45462         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45463         * doc/posix-functions/swprintf.texi: Likewise.
45464         * doc/posix-functions/swscanf.texi: Likewise.
45465         * doc/posix-functions/towctrans.texi: Likewise.
45466         * doc/posix-functions/vfwprintf.texi: Likewise.
45467         * doc/posix-functions/vswprintf.texi: Likewise.
45468         * doc/posix-functions/vwprintf.texi: Likewise.
45469         * doc/posix-functions/wcrtomb.texi: Likewise.
45470         * doc/posix-functions/wcsrtombs.texi: Likewise.
45471         * doc/posix-functions/wcsstr.texi: Likewise.
45472         * doc/posix-functions/wctob.texi: Likewise.
45473         * doc/posix-functions/wctrans.texi: Likewise.
45474         * doc/posix-functions/wmemchr.texi: Likewise.
45475         * doc/posix-functions/wmemcmp.texi: Likewise.
45476         * doc/posix-functions/wmemcpy.texi: Likewise.
45477         * doc/posix-functions/wmemmove.texi: Likewise.
45478         * doc/posix-functions/wmemset.texi: Likewise.
45479         * doc/posix-functions/wprintf.texi: Likewise.
45480         * doc/posix-functions/wscanf.texi: Likewise.
45481
45482 2008-12-21  Bruno Haible  <bruno@clisp.org>
45483
45484         Work around a portability problem.
45485         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45486         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45487
45488 2008-12-20  Bruno Haible  <bruno@clisp.org>
45489
45490         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45491         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45492         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45494         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45495
45496         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45497         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45498         set.
45499         (GNULIB_defined_mbstate_t): New macro.
45500         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45501         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45502         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45503         reuses the system's mbrtowc function but works around the bugs.
45504         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45505         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45506         macros.
45507         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45508         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45509         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45510         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45511         REPLACE_MBSINIT if mbsinit needs to be overridden.
45512         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45513         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45514         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45515         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45516         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45517         m4/locale-zh.m4.
45518         (Depends): Add mbsinit.
45519         * modules/mbsinit (Depends): Add mbrtowc.
45520         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45521
45522 2008-12-20  Bruno Haible  <bruno@clisp.org>
45523
45524         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45525         so that there are no conversion errors on AIX.
45526         * tests/test-mbsrtowcs.c (main): LIkewise.
45527
45528 2008-12-20  Bruno Haible  <bruno@clisp.org>
45529
45530         Work around wctob bug on Solaris <= 9.
45531         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45532         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45533         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45534         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45535         * modules/wctob (Files): Add m4/locale-fr.m4.
45536         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45537
45538 2008-12-20  Bruno Haible  <bruno@clisp.org>
45539
45540         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45541         /dev/null.
45542         * tests/test-select-in.sh: Likewise.
45543         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45544
45545 2008-12-20  Bruno Haible  <bruno@clisp.org>
45546
45547         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45548         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45549         Cygwin 1.5.x.
45550
45551 2008-12-20  Bruno Haible  <bruno@clisp.org>
45552
45553         Ensure mbstate_t is defined on HP-UX 11.11.
45554         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45555         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45556         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45557         AC_USE_SYSTEM_EXTENSIONS.
45558         * modules/fnmatch (Depends-on): Add extensions.
45559         * modules/mbrlen (Depends-on): Likewise.
45560         * modules/mbrtowc (Depends-on): Likewise.
45561         * modules/mbsinit (Depends-on): Likewise.
45562         * modules/mbsrtowcs (Depends-on): Likewise.
45563         * modules/mbswidth (Depends-on): Likewise.
45564         * modules/quotearg (Depends-on): Likewise.
45565         * modules/strftime (Depends-on): Likewise.
45566
45567 2008-12-20  Bruno Haible  <bruno@clisp.org>
45568
45569         Ensure wctob is declared on IRIX 6.5.
45570         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45571         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45572         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45573         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45574         of HAVE_WCTOB.
45575         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45576         HAVE_WCTOB.
45577         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45578
45579 2008-12-19  Bruno Haible  <bruno@clisp.org>
45580
45581         * modules/mbsrtowcs-tests: New file.
45582         * tests/test-mbsrtowcs1.sh: New file.
45583         * tests/test-mbsrtowcs2.sh: New file.
45584         * tests/test-mbsrtowcs3.sh: New file.
45585         * tests/test-mbsrtowcs4.sh: New file.
45586         * tests/test-mbsrtowcs.c: New file.
45587
45588         New module 'mbsrtowcs'.
45589         * lib/wchar.in.h (mbsrtowcs): New declaration.
45590         * lib/mbsrtowcs.c: New file.
45591         * m4/mbsrtowcs.m4: New file.
45592         * modules/mbsrtowcs: New file.
45593         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45594         HAVE_MBSRTOWCS.
45595         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45596         HAVE_MBSRTOWCS.
45597         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45598
45599 2008-12-19  Bruno Haible  <bruno@clisp.org>
45600
45601         New module 'mbrlen'.
45602         * lib/wchar.in.h (mbrlen): New declaration.
45603         * lib/mbrlen.c: New file.
45604         * m4/mbrlen.m4: New file.
45605         * modules/mbrlen: New file.
45606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45607         HAVE_MBRLEN.
45608         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45609         HAVE_MBRLEN.
45610         * doc/posix-functions/mbrlen.texi: Document the new module.
45611
45612 2008-12-19  Bruno Haible  <bruno@clisp.org>
45613
45614         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45615         * modules/mbrtowc (Depends-on): Add verify.
45616         Suggested by Paul Eggert.
45617
45618 2008-12-18  Bruno Haible  <bruno@clisp.org>
45619
45620         * modules/mbsinit-tests: New file.
45621         * tests/test-mbsinit.sh: New file.
45622         * tests/test-mbsinit.c: New file.
45623
45624 2008-12-18  Bruno Haible  <bruno@clisp.org>
45625
45626         * modules/mbrtowc-tests: New file.
45627         * tests/test-mbrtowc1.sh: New file.
45628         * tests/test-mbrtowc2.sh: New file.
45629         * tests/test-mbrtowc3.sh: New file.
45630         * tests/test-mbrtowc4.sh: New file.
45631         * tests/test-mbrtowc.c: New file.
45632
45633         New module 'mbrtowc'.
45634         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45635         mbsinit and mbrtowc.
45636         (mbrtowc): New declaration.
45637         * lib/mbrtowc.c: New file.
45638         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45639         * modules/mbrtowc: New file.
45640         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45641         HAVE_MBRTOWC.
45642         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45643         HAVE_MBRTOWC.
45644         * doc/posix-functions/mbrtowc.texi: Document the new module.
45645
45646 2008-12-18  Bruno Haible  <bruno@clisp.org>
45647
45648         New module 'wctob'.
45649         * lib/wchar.in.h (wctob): New declaration.
45650         * lib/wctob.c: New file.
45651         * m4/wctob.m4: New file.
45652         * modules/wctob: New file.
45653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45654         HAVE_WCTOB.
45655         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45656         * doc/posix-functions/wctob.texi: Document the new module.
45657
45658 2008-12-18  Bruno Haible  <bruno@clisp.org>
45659
45660         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45661         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45662
45663 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45664
45665         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45666         G. Christensen" <tgc@jupiterrise.com>.
45667
45668         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45669         G. Christensen" <tgc@jupiterrise.com>.
45670
45671         * lib/flock.c: Need to include string.h.  Reported by "Tom
45672         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45673         <ebb9@byu.net>.
45674
45675 2008-12-18  Bruno Haible  <bruno@clisp.org>
45676
45677         * m4/locale-ja.m4: New file, from GNU gettext.
45678
45679 2008-12-17  Bruno Haible  <bruno@clisp.org>
45680
45681         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45682         Suggested by Eric Blake.
45683
45684 2008-12-17  Bruno Haible  <bruno@clisp.org>
45685
45686         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45687
45688 2008-12-17  Bruno Haible  <bruno@clisp.org>
45689
45690         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45691         * modules/mbsinit (Depends-on): Add verify.
45692         Suggested by Paul Eggert.
45693
45694 2008-12-17  Bruno Haible  <bruno@clisp.org>
45695
45696         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45697         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45698         gl_FUNC_MBRTOWC.
45699         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45700         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45701         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45702         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45703         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45704         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45705         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45706         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45707         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45708         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45709         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45710         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45711         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45712         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45713         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45714         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45715         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45716         * modules/trim (configure.ac): Likewise.
45717
45718 2008-12-17  Bruno Haible  <bruno@clisp.org>
45719
45720         * modules/btowc-tests: New file.
45721         * tests/test-btowc1.sh: New file.
45722         * tests/test-btowc2.sh: New file.
45723         * tests/test-btowc.c: New file.
45724
45725         New module 'btowc'.
45726         * lib/wchar.in.h (btowc): New declaration.
45727         * lib/btowc.c: New file.
45728         * m4/btowc.m4: New file.
45729         * modules/btowc: New file.
45730         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45731         HAVE_BTOWC.
45732         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45733         * doc/posix-functions/btowc.texi: Document the new module.
45734
45735 2008-12-17  Bruno Haible  <bruno@clisp.org>
45736
45737         New module 'mbsinit'.
45738         * lib/wchar.in.h (mbsinit): New declaration.
45739         * lib/mbsinit.c: New file.
45740         * m4/mbsinit.m4: New file.
45741         * modules/mbsinit: New file.
45742         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45743         HAVE_MBSINIT.
45744         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45745         HAVE_MBSINIT.
45746         * doc/posix-functions/mbsinit.texi: Document the new module.
45747
45748 2008-12-16  Bruno Haible  <bruno@clisp.org>
45749
45750         * lib/unistd.in.h: Add comment.
45751         * tests/test-environ.c: Don't include <stdlib.h>.
45752
45753 2008-12-16  Bruno Haible  <bruno@clisp.org>
45754
45755         * lib/parse-duration.h (parse_duration): Document return value
45756         convention.
45757         * lib/parse-duration.c: Include specification header first. Add
45758         comments.
45759         (_): Remove macro.
45760         (parse_year_month_day, parse_hour_minute_second): Move side effects
45761         outside of strchr call.
45762         (parse_non_iso8601): Move side effects outside of isspace call.
45763         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45764         call.
45765
45766 2008-12-16  Bruno Haible  <bruno@clisp.org>
45767
45768         * tests/test-parse-duration.sh: Produce no output when the test
45769         succeeds.
45770
45771 2008-12-16  Bruno Haible  <bruno@clisp.org>
45772
45773         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45774         expressions.
45775
45776 2008-12-15  Bruno Haible  <bruno@clisp.org>
45777
45778         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45779         * doc/glibc-functions/flistxattr.texi: Likewise.
45780         * doc/glibc-functions/fopencookie.texi: Likewise.
45781         * doc/glibc-functions/fremovexattr.texi: Likewise.
45782         * doc/glibc-functions/fsetxattr.texi: Likewise.
45783         * doc/glibc-functions/getxattr.texi: Likewise.
45784         * doc/glibc-functions/lgetxattr.texi: Likewise.
45785         * doc/glibc-functions/listxattr.texi: Likewise.
45786         * doc/glibc-functions/llistxattr.texi: Likewise.
45787         * doc/glibc-functions/lremovexattr.texi: Likewise.
45788         * doc/glibc-functions/lsetxattr.texi: Likewise.
45789         * doc/glibc-functions/removexattr.texi: Likewise.
45790         * doc/glibc-functions/setxattr.texi: Likewise.
45791         * doc/posix-functions/open_memstream.texi: Likewise.
45792
45793 2008-12-15  Eric Blake  <ebb9@byu.net>
45794
45795         Update doc for cygwin 1.7.
45796         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45797         functions.
45798         * doc/posix-functions/fchmodat.texi: Likewise.
45799         * doc/posix-functions/fchownat.texi: Likewise.
45800         * doc/posix-functions/fdopendir.texi: Likewise.
45801         * doc/posix-functions/fmemopen.texi: Likewise.
45802         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45803         * doc/posix-functions/fstatat.texi: Likewise.
45804         * doc/posix-functions/futimens.texi: Likewise.
45805         * doc/posix-functions/gai_strerror.texi: Likewise.
45806         * doc/posix-functions/getaddrinfo.texi: Likewise.
45807         * doc/posix-functions/getnameinfo.texi: Likewise.
45808         * doc/posix-functions/if_freenameindex.texi: Likewise.
45809         * doc/posix-functions/if_indextoname.texi: Likewise.
45810         * doc/posix-functions/if_nameindex.texi: Likewise.
45811         * doc/posix-functions/if_nametoindex.texi: Likewise.
45812         * doc/posix-functions/insque.texi: Likewise.
45813         * doc/posix-functions/linkat.texi: Likewise.
45814         * doc/posix-functions/llrint.texi: Likewise.
45815         * doc/posix-functions/llrintf.texi: Likewise.
45816         * doc/posix-functions/llrintl.texi: Likewise.
45817         * doc/posix-functions/lockf.texi: Likewise.
45818         * doc/posix-functions/lrintl.texi: Likewise.
45819         * doc/posix-functions/mkdirat.texi: Likewise.
45820         * doc/posix-functions/mkfifoat.texi: Likewise.
45821         * doc/posix-functions/mknodat.texi: Likewise.
45822         * doc/posix-functions/mq_close.texi: Likewise.
45823         * doc/posix-functions/mq_getattr.texi: Likewise.
45824         * doc/posix-functions/mq_notify.texi: Likewise.
45825         * doc/posix-functions/mq_open.texi: Likewise.
45826         * doc/posix-functions/mq_receive.texi: Likewise.
45827         * doc/posix-functions/mq_send.texi: Likewise.
45828         * doc/posix-functions/mq_setattr.texi: Likewise.
45829         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45830         * doc/posix-functions/mq_timedsend.texi: Likewise.
45831         * doc/posix-functions/mq_unlink.texi: Likewise.
45832         * doc/posix-functions/open_memstream.texi: Likewise.
45833         * doc/posix-functions/openat.texi: Likewise.
45834         * doc/posix-functions/posix_fadvise.texi: Likewise.
45835         * doc/posix-functions/posix_fallocate.texi: Likewise.
45836         * doc/posix-functions/posix_madvise.texi: Likewise.
45837         * doc/posix-functions/posix_memalign.texi: Likewise.
45838         * doc/posix-functions/posix_openpt.texi: Likewise.
45839         * doc/posix-functions/readlinkat.texi: Likewise.
45840         * doc/posix-functions/remque.texi: Likewise.
45841         * doc/posix-functions/renameat.texi: Likewise.
45842         * doc/posix-functions/rintl.texi: Likewise.
45843         * doc/posix-functions/sem_unlink.texi: Likewise.
45844         * doc/posix-functions/shm_open.texi: Likewise.
45845         * doc/posix-functions/shm_unlink.texi: Likewise.
45846         * doc/posix-functions/signgam.texi: Likewise.
45847         * doc/posix-functions/sigset.texi: Likewise.
45848         * doc/posix-functions/stpcpy.texi: Likewise.
45849         * doc/posix-functions/stpncpy.texi: Likewise.
45850         * doc/posix-functions/strerror.texi: Likewise.
45851         * doc/posix-functions/strtod.texi: Likewise.
45852         * doc/posix-functions/symlinkat.texi: Likewise.
45853         * doc/posix-functions/unlinkat.texi: Likewise.
45854         * doc/posix-functions/utimensat.texi: Likewise.
45855         * doc/glibc-functions/bindresvport.texi: Likewise.
45856         * doc/glibc-functions/dn_expand.texi: Likewise.
45857         * doc/glibc-functions/exp10.texi: Likewise.
45858         * doc/glibc-functions/exp10f.texi: Likewise.
45859         * doc/glibc-functions/fgetxattr.texi: Likewise.
45860         * doc/glibc-functions/flistxattr.texi: Likewise.
45861         * doc/glibc-functions/fopencookie.texi: Likewise.
45862         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45863         * doc/glibc-functions/fremovexattr.texi: Likewise.
45864         * doc/glibc-functions/fsetxattr.texi: Likewise.
45865         * doc/glibc-functions/getifaddrs.texi: Likewise.
45866         * doc/glibc-functions/getxattr.texi: Likewise.
45867         * doc/glibc-functions/lgetxattr.texi: Likewise.
45868         * doc/glibc-functions/listxattr.texi: Likewise.
45869         * doc/glibc-functions/llistxattr.texi: Likewise.
45870         * doc/glibc-functions/lremovexattr.texi: Likewise.
45871         * doc/glibc-functions/lsetxattr.texi: Likewise.
45872         * doc/glibc-functions/pow10.texi: Likewise.
45873         * doc/glibc-functions/pow10f.texi: Likewise.
45874         * doc/glibc-functions/rcmd_af.texi: Likewise.
45875         * doc/glibc-functions/removexattr.texi: Likewise.
45876         * doc/glibc-functions/res_init.texi: Likewise.
45877         * doc/glibc-functions/res_mkquery.texi: Likewise.
45878         * doc/glibc-functions/res_query.texi: Likewise.
45879         * doc/glibc-functions/res_querydomain.texi: Likewise.
45880         * doc/glibc-functions/res_send.texi: Likewise.
45881         * doc/glibc-functions/rresvport_af.texi: Likewise.
45882         * doc/glibc-functions/setxattr.texi: Likewise.
45883         * doc/glibc-functions/strcasestr.texi: Likewise.
45884
45885 2008-12-15  Bruno Haible  <bruno@clisp.org>
45886
45887         Fix compilation error on OSF/1 4.0.
45888         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45889         <sys/time.h>, simply delegate to the system header.
45890         Reported by Daniel Richard G. <oss@teragram.com>.
45891
45892 2008-12-15  Bruno Haible  <bruno@clisp.org>
45893
45894         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45895         * doc/posix-functions/fchmodat.texi: Likewise.
45896         * doc/posix-functions/fchownat.texi: Likewise.
45897         * doc/posix-functions/fdopendir.texi: Likewise.
45898         * doc/posix-functions/fstatat.texi: Likewise.
45899         * doc/posix-functions/mkdirat.texi: Likewise.
45900         * doc/posix-functions/unlinkat.texi: Likewise.
45901
45902 2008-12-14  Bruno Haible  <bruno@clisp.org>
45903
45904         Update doc for POSIX:2008.
45905         * doc/posix-functions/faccessat.texi: New file.
45906         * doc/posix-functions/fchmodat.texi: New file.
45907         * doc/posix-functions/fchownat.texi: New file.
45908         * doc/posix-functions/fdopendir.texi: New file.
45909         * doc/posix-functions/fstatat.texi: New file.
45910         * doc/posix-functions/futimens.texi: New file.
45911         * doc/posix-functions/linkat.texi: New file.
45912         * doc/posix-functions/mkdirat.texi: New file.
45913         * doc/posix-functions/mkfifoat.texi: New file.
45914         * doc/posix-functions/mknodat.texi: New file.
45915         * doc/posix-functions/open_wmemstream.texi: New file.
45916         * doc/posix-functions/openat.texi: New file.
45917         * doc/posix-functions/psiginfo.texi: New file.
45918         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45919         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45920         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45921         * doc/posix-functions/readlinkat.texi: New file.
45922         * doc/posix-functions/renameat.texi: New file.
45923         * doc/posix-functions/strerror_l.texi: New file.
45924         * doc/posix-functions/symlinkat.texi: New file.
45925         * doc/posix-functions/unlinkat.texi: New file.
45926         * doc/posix-functions/utimensat.texi: New file.
45927         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45928
45929 2008-12-14  Bruno Haible  <bruno@clisp.org>
45930
45931         Update doc for POSIX:2008.
45932         * doc/posix-functions/alphasort.texi: Renamed from
45933         doc/glibc-functions/alphasort.texi.
45934         * doc/posix-functions/dirfd.texi: Renamed from
45935         doc/glibc-functions/dirfd.texi.
45936         * doc/posix-functions/dprintf.texi: Renamed from
45937         doc/glibc-functions/dprintf.texi.
45938         * doc/posix-functions/duplocale.texi: Renamed from
45939         doc/glibc-functions/duplocale.texi.
45940         * doc/posix-functions/fexecve.texi: Renamed from
45941         doc/glibc-functions/fexecve.texi.
45942         * doc/posix-functions/fmemopen.texi: Renamed from
45943         doc/glibc-functions/fmemopen.texi.
45944         * doc/posix-functions/freelocale.texi: Renamed from
45945         doc/glibc-functions/freelocale.texi.
45946         * doc/posix-functions/getdate_err.texi: Renamed from
45947         doc/glibc-functions/getdate_err.texi.
45948         * doc/posix-functions/isalnum_l.texi: Renamed from
45949         doc/glibc-functions/isalnum_l.texi.
45950         * doc/posix-functions/isalpha_l.texi: Renamed from
45951         doc/glibc-functions/isalpha_l.texi.
45952         * doc/posix-functions/isblank_l.texi: Renamed from
45953         doc/glibc-functions/isblank_l.texi.
45954         * doc/posix-functions/iscntrl_l.texi: Renamed from
45955         doc/glibc-functions/iscntrl_l.texi.
45956         * doc/posix-functions/isdigit_l.texi: Renamed from
45957         doc/glibc-functions/isdigit_l.texi.
45958         * doc/posix-functions/isgraph_l.texi: Renamed from
45959         doc/glibc-functions/isgraph_l.texi.
45960         * doc/posix-functions/islower_l.texi: Renamed from
45961         doc/glibc-functions/islower_l.texi.
45962         * doc/posix-functions/isprint_l.texi: Renamed from
45963         doc/glibc-functions/isprint_l.texi.
45964         * doc/posix-functions/ispunct_l.texi: Renamed from
45965         doc/glibc-functions/ispunct_l.texi.
45966         * doc/posix-functions/isspace_l.texi: Renamed from
45967         doc/glibc-functions/isspace_l.texi.
45968         * doc/posix-functions/isupper_l.texi: Renamed from
45969         doc/glibc-functions/isupper_l.texi.
45970         * doc/posix-functions/iswalnum_l.texi: Renamed from
45971         doc/glibc-functions/iswalnum_l.texi.
45972         * doc/posix-functions/iswalpha_l.texi: Renamed from
45973         doc/glibc-functions/iswalpha_l.texi.
45974         * doc/posix-functions/iswblank_l.texi: Renamed from
45975         doc/glibc-functions/iswblank_l.texi.
45976         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45977         doc/glibc-functions/iswcntrl_l.texi.
45978         * doc/posix-functions/iswctype_l.texi: Renamed from
45979         doc/glibc-functions/iswctype_l.texi.
45980         * doc/posix-functions/iswdigit_l.texi: Renamed from
45981         doc/glibc-functions/iswdigit_l.texi.
45982         * doc/posix-functions/iswgraph_l.texi: Renamed from
45983         doc/glibc-functions/iswgraph_l.texi.
45984         * doc/posix-functions/iswlower_l.texi: Renamed from
45985         doc/glibc-functions/iswlower_l.texi.
45986         * doc/posix-functions/iswprint_l.texi: Renamed from
45987         doc/glibc-functions/iswprint_l.texi.
45988         * doc/posix-functions/iswpunct_l.texi: Renamed from
45989         doc/glibc-functions/iswpunct_l.texi.
45990         * doc/posix-functions/iswspace_l.texi: Renamed from
45991         doc/glibc-functions/iswspace_l.texi.
45992         * doc/posix-functions/iswupper_l.texi: Renamed from
45993         doc/glibc-functions/iswupper_l.texi.
45994         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45995         doc/glibc-functions/iswxdigit_l.texi.
45996         * doc/posix-functions/isxdigit_l.texi: Renamed from
45997         doc/glibc-functions/isxdigit_l.texi.
45998         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45999         doc/glibc-functions/mbsnrtowcs.texi.
46000         * doc/posix-functions/mkdtemp.texi: Renamed from
46001         doc/glibc-functions/mkdtemp.texi.
46002         * doc/posix-functions/newlocale.texi: Renamed from
46003         doc/glibc-functions/newlocale.texi.
46004         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46005         doc/glibc-functions/nl_langinfo_l.texi.
46006         * doc/posix-functions/open_memstream.texi: Renamed from
46007         doc/glibc-functions/open_memstream.texi.
46008         * doc/posix-functions/opterr.texi: Renamed from
46009         doc/glibc-functions/opterr.texi.
46010         * doc/posix-functions/optind.texi: Renamed from
46011         doc/glibc-functions/optind.texi.
46012         * doc/posix-functions/optopt.texi: Renamed from
46013         doc/glibc-functions/optopt.texi.
46014         * doc/posix-functions/psignal.texi: Renamed from
46015         doc/glibc-functions/psignal.texi.
46016         * doc/posix-functions/scandir.texi: Renamed from
46017         doc/glibc-functions/scandir.texi.
46018         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46019         doc/glibc-functions/sched_get_priority_min.texi.
46020         * doc/posix-functions/signgam.texi: Renamed from
46021         doc/glibc-functions/signgam.texi.
46022         * doc/posix-functions/stpcpy.texi: Renamed from
46023         doc/glibc-functions/stpcpy.texi.
46024         * doc/posix-functions/stpncpy.texi: Renamed from
46025         doc/glibc-functions/stpncpy.texi.
46026         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46027         doc/glibc-functions/strcasecmp_l.texi.
46028         * doc/posix-functions/strcoll_l.texi: Renamed from
46029         doc/glibc-functions/strcoll_l.texi.
46030         * doc/posix-functions/strfmon_l.texi: Renamed from
46031         doc/glibc-functions/strfmon_l.texi.
46032         * doc/posix-functions/strftime_l.texi: Renamed from
46033         doc/glibc-functions/strftime_l.texi.
46034         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46035         doc/glibc-functions/strncasecmp_l.texi.
46036         * doc/posix-functions/strndup.texi: Renamed from
46037         doc/glibc-functions/strndup.texi.
46038         * doc/posix-functions/strnlen.texi: Renamed from
46039         doc/glibc-functions/strnlen.texi.
46040         * doc/posix-functions/strsignal.texi: Renamed from
46041         doc/glibc-functions/strsignal.texi.
46042         * doc/posix-functions/strxfrm_l.texi: Renamed from
46043         doc/glibc-functions/strxfrm_l.texi.
46044         * doc/posix-functions/timer_gettime.texi: Renamed from
46045         doc/glibc-functions/timer_gettime.texi.
46046         * doc/posix-functions/tolower_l.texi: Renamed from
46047         doc/glibc-functions/tolower_l.texi.
46048         * doc/posix-functions/toupper_l.texi: Renamed from
46049         doc/glibc-functions/toupper_l.texi.
46050         * doc/posix-functions/towctrans_l.texi: Renamed from
46051         doc/glibc-functions/towctrans_l.texi.
46052         * doc/posix-functions/towlower_l.texi: Renamed from
46053         doc/glibc-functions/towlower_l.texi.
46054         * doc/posix-functions/towupper_l.texi: Renamed from
46055         doc/glibc-functions/towupper_l.texi.
46056         * doc/posix-functions/uselocale.texi: Renamed from
46057         doc/glibc-functions/uselocale.texi.
46058         * doc/posix-functions/vdprintf.texi: Renamed from
46059         doc/glibc-functions/vdprintf.texi.
46060         * doc/posix-functions/wcpcpy.texi:
46061         Renamed from doc/glibc-functions/wcpcpy.texi.
46062         * doc/posix-functions/wcpncpy.texi: Renamed from
46063         doc/glibc-functions/wcpncpy.texi.
46064         * doc/posix-functions/wcscasecmp.texi: Renamed from
46065         doc/glibc-functions/wcscasecmp.texi.
46066         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46067         doc/glibc-functions/wcscasecmp_l.texi.
46068         * doc/posix-functions/wcscoll_l.texi: Renamed from
46069         doc/glibc-functions/wcscoll_l.texi.
46070         * doc/posix-functions/wcsdup.texi: Renamed from
46071         doc/glibc-functions/wcsdup.texi.
46072         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46073         doc/glibc-functions/wcsncasecmp.texi.
46074         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46075         doc/glibc-functions/wcsncasecmp_l.texi.
46076         * doc/posix-functions/wcsnlen.texi: Renamed from
46077         doc/glibc-functions/wcsnlen.texi.
46078         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46079         doc/glibc-functions/wcsnrtombs.texi.
46080         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46081         doc/glibc-functions/wcsxfrm_l.texi.
46082         * doc/posix-functions/wctrans_l.texi: Renamed from
46083         doc/glibc-functions/wctrans_l.texi.
46084         * doc/posix-functions/wctype_l.texi: Renamed from
46085         doc/glibc-functions/wctype_l.texi.
46086         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46087         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46088         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46089         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46090         these subsections.
46091         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46092         Remove sections.
46093
46094 2008-12-14  Bruno Haible  <bruno@clisp.org>
46095
46096         Update doc for POSIX:2008.
46097         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46098
46099 2008-12-14  Bruno Haible  <bruno@clisp.org>
46100
46101         Update doc for POSIX:2008.
46102         * doc/pastposix-functions/bcmp.texi: Renamed from
46103         doc/posix-functions/bcmp.texi.
46104         * doc/pastposix-functions/bcopy.texi: Renamed from
46105         doc/posix-functions/bcopy.texi.
46106         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46107         doc/posix-functions/bsd_signal.texi.
46108         * doc/pastposix-functions/bzero.texi: Renamed from
46109         doc/posix-functions/bzero.texi.
46110         * doc/pastposix-functions/ecvt.texi: Renamed from
46111         doc/posix-functions/ecvt.texi.
46112         * doc/pastposix-functions/fcvt.texi: Renamed from
46113         doc/posix-functions/fcvt.texi.
46114         * doc/pastposix-functions/ftime.texi: Renamed from
46115         doc/posix-functions/ftime.texi.
46116         * doc/pastposix-functions/gcvt.texi: Renamed from
46117         doc/posix-functions/gcvt.texi.
46118         * doc/pastposix-functions/getcontext.texi: Renamed from
46119         doc/posix-functions/getcontext.texi.
46120         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46121         doc/posix-functions/gethostbyaddr.texi.
46122         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46123         doc/posix-functions/gethostbyname.texi.
46124         * doc/pastposix-functions/getwd.texi: Renamed from
46125         doc/posix-functions/getwd.texi.
46126         * doc/pastposix-functions/h_errno.texi: Renamed from
46127         doc/posix-functions/h_errno.texi.
46128         * doc/pastposix-functions/index.texi: Renamed from
46129         doc/posix-functions/index.texi.
46130         * doc/pastposix-functions/makecontext.texi: Renamed from
46131         doc/posix-functions/makecontext.texi.
46132         * doc/pastposix-functions/mktemp.texi: Renamed from
46133         doc/posix-functions/mktemp.texi.
46134         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46135         doc/posix-functions/pthread_attr_getstackaddr.texi.
46136         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46137         doc/posix-functions/pthread_attr_setstackaddr.texi.
46138         * doc/pastposix-functions/rindex.texi: Renamed from
46139         doc/posix-functions/rindex.texi.
46140         * doc/pastposix-functions/scalb.texi: Renamed from
46141         doc/posix-functions/scalb.texi.
46142         * doc/pastposix-functions/setcontext.texi: Renamed from
46143         doc/posix-functions/setcontext.texi.
46144         * doc/pastposix-functions/swapcontext.texi: Renamed from
46145         doc/posix-functions/swapcontext.texi.
46146         * doc/pastposix-functions/ualarm.texi: Renamed from
46147         doc/posix-functions/ualarm.texi.
46148         * doc/pastposix-functions/usleep.texi: Renamed from
46149         doc/posix-functions/usleep.texi.
46150         * doc/pastposix-functions/vfork.texi: Renamed from
46151         doc/posix-functions/vfork.texi.
46152         * doc/pastposix-functions/wcswcs.texi: Renamed from
46153         doc/posix-functions/wcswcs.texi.
46154         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46155         (Function Substitutes): Update.
46156
46157 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46158
46159         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46160         m4/strerror.m4.
46161
46162 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46163             Bruno Haible  <bruno@clisp.org>
46164
46165         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46166
46167 2008-12-13  Bruno Haible  <bruno@clisp.org>
46168
46169         * modules/strtoull (Depends-on): Remove unistd.
46170
46171 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46172
46173         * modules/strtoull (Depends-on): Add stdlib.
46174
46175 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46176
46177         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46178
46179 2008-12-10  Jim Meyering  <meyering@redhat.com>
46180
46181         gl_ASSERT: don't say assertions are disabled when they're not
46182         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46183         "checking whether to enable assertions... no", when they are in
46184         fact enabled.  This is solely a bug in the output of configure.
46185         In spite of saying "no", NDEBUG was not defined in that case.
46186         Also, as noted by Eric Blake, leave assertions enabled upon
46187         --enable-assert=INVALID.
46188
46189 2008-12-10  Bruno Haible  <bruno@clisp.org>
46190
46191         Change MODULES.html to refer to POSIX:2008 where possible.
46192         * MODULES.html.sh (POSIX2008_URL): New variable.
46193         (posix_headers): Remove sys/timeb, ucontext.
46194         (posix2001_headers): New variable.
46195         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46196         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46197         index, makecontext, mktemp, pthread_attr_getstackaddr,
46198         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46199         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46200         (posix2001_functions): New variable.
46201         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46202         otherwise.
46203
46204 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46205
46206         add missing include to parse-duration.c
46207         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46208         * modules/parse-duration (Depends-on): Add xalloc.
46209
46210         fix sed script reading maint.mk
46211         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46212         (syntax-check-rules): Use it.
46213
46214 2008-12-09  Bruno Haible  <bruno@clisp.org>
46215
46216         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46217         MacOS X 10.4/PowerPC.
46218         Reported by Simon Josefsson.
46219
46220 2008-12-08  Jim Meyering  <meyering@redhat.com>
46221
46222         work around mingw's lack of some S_IF definitions
46223         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46224         Reported by Simon Josefsson.
46225
46226 2008-12-08  Bruno Haible  <bruno@clisp.org>
46227
46228         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46229         applied to variables. Needed on MacOS X 10.4/PowerPC.
46230         Reported by Simon Josefsson.
46231
46232 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46233         and Eric Blake  <ebb9@byu.net>
46234
46235         assert: honor --enable-assert
46236         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46237         order to honor --enable-assert, rather than treating it as a
46238         synonym for --disable-assert.
46239
46240 2008-12-08  Jim Meyering  <meyering@redhat.com>
46241
46242         * lib/posixtm.c: Remove now-useless declaration of mktime.
46243
46244         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46245
46246 2008-12-07  Bruno Haible  <bruno@clisp.org>
46247
46248         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46249         test_once): Mark functions as static.
46250         * tests/test-tls.c (test_tls): Likewise.
46251
46252 2008-12-07  Bruno Haible  <bruno@clisp.org>
46253
46254         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46255         iconv_register_autodetect.
46256
46257 2008-12-07  Jim Meyering  <meyering@redhat.com>
46258
46259         posixtm.c: avoid a warning
46260         * lib/posixtm.c (posixtime): Don't initialize tm0.
46261         It's no longer needed to placate gcc4's -Wuninitialized,
46262         and the attempt to placate would elicit a new warning.
46263
46264         unicodeio.c: mark unused parameters
46265         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46266         (fallback_failure_callback): Likewise.
46267
46268 2008-12-07  Bruno Haible  <bruno@clisp.org>
46269
46270         * gnulib-tool (func_create_testdir): When building the tests
46271         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46272         Reported by Simon Josefsson.
46273
46274 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46275
46276         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46277
46278 2008-12-06  Bruno Haible  <bruno@clisp.org>
46279
46280         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46281         Suggested by Eric Blake.
46282
46283 2008-12-06  Bruno Haible  <bruno@clisp.org>
46284
46285         Fix a c-stack test failure on MacOS X.
46286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46287         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46288         handler for SIGBUS as well.
46289         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46290         install a signal handler for SIGBUS as well.
46291         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46292
46293 2008-12-06  Bruno Haible  <bruno@clisp.org>
46294
46295         Advocacy documentation.
46296         * doc/gnulib-intro.texi (Benefits): New section.
46297         * doc/gnulib.texi: Update.
46298
46299 2008-12-06  Bruno Haible  <bruno@clisp.org>
46300
46301         Document the 'manywarnings' module.
46302         * doc/manywarnings.texi: New file.
46303         * doc/gnulib.texi: Include it.
46304
46305 2008-12-05  Eric Blake  <ebb9@byu.net>
46306
46307         tests: silence some gcc warnings
46308         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46309         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46310         type mismatches.
46311
46312 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46313             Bruno Haible  <bruno@clisp.org>
46314
46315         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46316
46317 2008-11-29  Jim Meyering  <meyering@redhat.com>
46318
46319         unicodeio.c: mark unused parameters
46320         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46321         (fallback_failure_callback): Likewise.
46322
46323         fts: fix a thinko
46324         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46325         (set_stat_type): Return S_IF*-valued "type" directly.
46326         Prompted by James Youngman's spotting a related bug.
46327         Confirmed by further testing through find.
46328
46329         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46330         * lib/fts.c (D_TYPE): Define.
46331         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46332         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46333         (s_ifmt_shift_bits): New function.
46334         (set_stat_type): New function.
46335         (fts_build): When not calling fts_stat, call set_stat_type
46336         to propagate dirent.d_type info to fts_read caller.
46337         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46338         fts_statp->st_mode type information may be valid.
46339
46340 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46341
46342         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46343         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46344         <sds@gnu.org>.
46345
46346 2008-11-20  Bruno Haible  <bruno@clisp.org>
46347
46348         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46349         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46350         INCLUDE_NEXT.
46351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46352         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46353         * modules/math (Makefile.am): Substitute
46354         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46355         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46356
46357 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46358             Bruno Haible  <bruno@clisp.org>
46359
46360         * lib/stdint.in.h: Define all type macros so that their expansion is
46361         a single typedef'ed token. Fixes a compilation failure in Boost which
46362         does "using ::int8_t;".
46363
46364 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46365
46366         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46367         gl_MANYWARN_ALL_GCC.
46368         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46369         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46370         * modules/manywarnings: New file.
46371         * MODULES.html.sh: Mention manywarnings module.
46372
46373 2008-11-18  Bruno Haible  <bruno@clisp.org>
46374
46375         * doc/gnulib-tool.texi (Unit tests): New section.
46376
46377 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46378
46379         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46380         paths like 'lib/po/foo.po'.
46381
46382 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46383
46384         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46385         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46386
46387 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46388
46389         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46390         parameter works.
46391
46392 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46393
46394         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46395
46396 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46397
46398         * modules/parse-duration-tests: New file.
46399         * tests/test-parse-duration.sh: New file.
46400         * tests/test-parse-duration.c: New file.
46401
46402         New module 'parse-duration'.
46403         * lib/parse-duration.h: New file.
46404         * lib/parse-duration.c: New file.
46405         * modules/parse-duration: New file.
46406
46407 2008-11-17  Bruno Haible  <bruno@clisp.org>
46408
46409         * tests/test-select-out.sh: Comment out the first pipe test.
46410         Reported by Simon Josefsson.
46411
46412 2008-11-17  Bruno Haible  <bruno@clisp.org>
46413
46414         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46416         gl_HOSTENT.
46417
46418 2008-11-17  Bruno Haible  <bruno@clisp.org>
46419
46420         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46421         -lnetwork and -lnet. Needed for Haiku and BeOS.
46422
46423 2008-11-16  Bruno Haible  <bruno@clisp.org>
46424
46425         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46426
46427 2008-11-16  Bruno Haible  <bruno@clisp.org>
46428
46429         Avoid test failure on Haiku.
46430         * tests/test-fsync.c: Include <errno.h>.
46431         (main): Don't require that fsync (0) fails.
46432
46433 2008-11-15  Bruno Haible  <bruno@clisp.org>
46434
46435         New module 'hostent'.
46436         * modules/hostent: New file.
46437         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46438
46439 2008-11-15  Bruno Haible  <bruno@clisp.org>
46440
46441         New module 'servent'.
46442         * modules/servent: New file.
46443         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46444
46445 2008-11-15  Bruno Haible  <bruno@clisp.org>
46446
46447         Avoid generating same test program with two different rules.
46448         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46449         test-frexp to test-frexp-nolibm.
46450         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46451         test-frexpl to test-frexpl-nolibm.
46452
46453 2008-11-15  Bruno Haible  <bruno@clisp.org>
46454
46455         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46456         $(FREXPL_LIBM).
46457
46458 2008-11-15  Bruno Haible  <bruno@clisp.org>
46459
46460         * lib/netdb.in.h: Activate the definitions also when the system's
46461         <netdb.h> has 'struct addrinfo'.
46462         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46463         EAI_OVERFLOW or AI_NUMERICSERV.
46464         * doc/posix-headers/netdb.texi: Document the problem.
46465
46466 2008-11-15  Bruno Haible  <bruno@clisp.org>
46467
46468         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46469
46470         Make the 'sched' module work on platforms where <sched.h> exists but
46471         is incomplete (such as Haiku).
46472         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46473         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46474         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46475         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46476         HAVE_STRUCT_SCHED_PARAM.
46477         * modules/sched (Depends-on): Add include_next.
46478         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46479         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46480         * doc/posix-headers/sched.texi: Document the issue.
46481
46482 2008-11-13  Jim Meyering  <meyering@redhat.com>
46483
46484         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46485         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46486         test would fail due to the difference in the Report bugs to ...
46487         line.  The expected address is empty, "<>", while the actual
46488         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46489
46490 2008-11-12  Bruno Haible  <bruno@clisp.org>
46491
46492         lstat: don't compile lstat.c on systems lacking lstat
46493         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46494         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46495         Reported by Daniel P. Berrange via Jim Meyering.
46496
46497 2008-11-12  Jim Meyering  <meyering@redhat.com>
46498
46499         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46500
46501 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46502
46503         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46504         instead.
46505
46506 2008-11-12  Bruno Haible  <bruno@clisp.org>
46507
46508         * lib/unicodeio.c: Include unistr.h.
46509         (utf8_wctomb): Remove function.
46510         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46511
46512 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46513
46514         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46515         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46516         <bruno@clisp.org>.
46517         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46518
46519 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46520
46521         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46522         * doc/gnulib.texi: Add section for warnings.
46523
46524 2008-11-11  Bruno Haible  <bruno@clisp.org>
46525
46526         * lib/sockets.h: Add a comment.
46527
46528 2008-11-11  Karl Berry  <karl@gnu.org>
46529
46530         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46531
46532 2008-11-11  Eric Blake  <ebb9@byu.net>
46533
46534         fdl.texi: avoid git symlinks
46535         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46536
46537 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46538
46539         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46540
46541 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46542
46543         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46544         (gl_WARN_ADD): Substitute $2 if literal.
46545
46546 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46547
46548         * m4/warning.m4: Remove.
46549
46550 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46551
46552         * m4/warnings.m4: Almost complete rewrite. :-)
46553
46554 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46555
46556         * modules/warnings: New module.
46557         * m4/warnings.m4: New file.
46558         * MODULES.html.sh: Mention warnings module.
46559         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46560         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46561
46562 2008-11-10  Eric Blake  <ebb9@byu.net>
46563
46564         fdl.texi: make a symlink to the latest version
46565         * doc/standards.texi: Revert today's earlier change.
46566         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46567         * doc/fdl.texi: ...and replace this with a symlink to the newer
46568         fdl-1.3.texi.
46569
46570 2008-11-10  Bruno Haible  <bruno@clisp.org>
46571
46572         * tests/test-select-fd.c (main): Accept the result file name as fourth
46573         argument.
46574         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46575         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46576
46577 2008-11-10  Bruno Haible  <bruno@clisp.org>
46578
46579         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46580         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46581         as autoconf-substituted macros.
46582         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46583         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46584         gl_NETDB_H_DEFAULTS. Set these variables.
46585         * modules/netdb (Makefile.am): Substitute these variables.
46586
46587 2008-11-10  Eric Blake  <ebb9@byu.net>
46588
46589         standards.texi: include correct file for FDL 1.3
46590         * doc/standards.texi (GNU Free Documentation License): Change
46591         include file to pull in FDL 1.3, not 1.2.
46592
46593         fdl.texi: revert accidental change to license
46594         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46595
46596 2008-11-10  Bruno Haible  <bruno@clisp.org>
46597
46598         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46599         cross-compiling guesses also when the native compile gives no result.
46600
46601 2008-11-10  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/spawni.c (__spawni): Force variable into the stack.
46604
46605 2008-11-10  Bruno Haible  <bruno@clisp.org>
46606
46607         Add support for Haiku.
46608         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46609         glibc and BeOS, but also on Haiku.
46610         * lib/fpurge.c (fpurge): Likewise.
46611         * lib/freadable.c (freadable): Likewise.
46612         * lib/freadahead.c (freadahead): Likewise.
46613         * lib/freading.c (freading): Likewise.
46614         * lib/freadptr.c (freadptr): Likewise.
46615         * lib/freadseek.c (freadptrinc): Likewise.
46616         * lib/fseeko.c (rpl_fseeko): Likewise.
46617         * lib/fseterr.c (fseterr): Likewise.
46618         * lib/fwritable.c (fwritable): Likewise.
46619         * lib/fwriting.c (fwriting): Likewise.
46620         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46621
46622 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46623
46624         * lib/config.charset: Treat Haiku like BeOS.
46625
46626 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46627
46628         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46629         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46630
46631 2008-11-08  Bruno Haible  <bruno@clisp.org>
46632
46633         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46634         AC_CACHE_CHECK.
46635
46636 2008-11-08  Bruno Haible  <bruno@clisp.org>
46637
46638         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46639
46640 2008-11-08  Bruno Haible  <bruno@clisp.org>
46641
46642         * tests/test-select-fd.c: New file.
46643         * tests/test-select-in.sh: New file.
46644         * tests/test-select-out.sh: New file.
46645         * tests/test-select-stdin.c: New file.
46646         * modules/select-tests (Files): Add the new files.
46647         (Depends-on): Add gettimeofday.
46648         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46649         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46650         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46651
46652 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46653             Bruno Haible  <bruno@clisp.org>
46654
46655         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46656
46657 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46658
46659         * build-aux/pmccabe2html: Added support for C++ source files.
46660
46661 2008-11-05  Ben Pfaff  <blp@gnu.org>
46662
46663         Fix lib/close.c build on Windows.
46664         * modules/close (Files): Add lib/w32sock.h.
46665
46666 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46667
46668         Accept Bison's NEWS format.
46669         * build-aux/announce-gen (print_news_deltas): Tweak
46670         $re_prefix.
46671
46672 2008-11-04  Bruno Haible  <bruno@clisp.org>
46673
46674         * modules/random_r (Maintainer): Add glibc.
46675
46676 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46677
46678         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46679         by karl@freefriends.org (Karl Berry).
46680         * doc/alloca.texi: Likewise.
46681         * doc/c-ctype.texi: Likewise.
46682         * doc/c-strcase.texi: Likewise.
46683         * doc/c-strcaseeq.texi: Likewise.
46684         * doc/c-strcasestr.texi: Likewise.
46685         * doc/c-strstr.texi: Likewise.
46686         * doc/c-strtod.texi: Likewise.
46687         * doc/c-strtold.texi: Likewise.
46688         * doc/ctime.texi: Likewise.
46689         * doc/error.texi: Likewise.
46690         * doc/fdl.texi: Likewise.
46691         * doc/gcd.texi: Likewise.
46692         * doc/getdate.texi: Likewise.
46693         * doc/gnulib-intro.texi: Likewise.
46694         * doc/gnulib-tool.texi: Likewise.
46695         * doc/gnulib.texi: Likewise.
46696         * doc/inet_ntoa.texi: Likewise.
46697         * doc/maintain.texi: Likewise.
46698         * doc/make-stds.texi: Likewise.
46699         * doc/quote.texi: Likewise.
46700         * doc/regexprops-generic.texi: Likewise.
46701         * doc/standards.texi: Likewise.
46702         * doc/verify.texi: Likewise.
46703         * doc/visibility.texi: Likewise.
46704         * doc/gnulib.texi (GNU Free Documentation License): Include
46705         fdl-1.3.texi instead of fdl.texi.
46706
46707 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46708
46709         * doc/fdl-1.3.texi: New file, from
46710         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46711         * modules/fdl-1.3: Add.
46712         * MODULES.html.sh: Add fdl-1.3.
46713
46714 2008-11-03  Bruno Haible  <bruno@clisp.org>
46715
46716         Make determination of absolute name of header file work with AIX xlc.
46717         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46718         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46719         preprocessing.
46720         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46721         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46722
46723 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46724
46725         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46726         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46727         <ludo@gnu.org>.
46728
46729 2008-11-02  Bruno Haible  <bruno@clisp.org>
46730
46731         Mark 'strpbrk' obsolete.
46732         * modules/strpbrk (Status, Notice): New sections.
46733         * modules/strtok_r (Depends-on): Add strpbrk.
46734
46735 2008-11-02  Bruno Haible  <bruno@clisp.org>
46736
46737         Mark 'strdup' obsolete.
46738         * modules/strdup (Status, Notice): New sections.
46739         * modules/findprog (Depends-on): Add strdup.
46740         * modules/getaddrinfo (Depends-on): Likewise.
46741         * modules/localename (Depends-on): Likewise.
46742         * modules/relocatable-lib (Depends-on): Likewise.
46743         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46744         * modules/relocatable-prog (Depends-on): Likewise.
46745         * modules/trim (Depends-on): Likewise.
46746         * modules/unictype/gen-ctype (Depends-on): Likewise.
46747         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46748
46749 2008-11-02  Bruno Haible  <bruno@clisp.org>
46750
46751         Mark 'strcspn' obsolete.
46752         * modules/strcspn (Status, Notice): New sections.
46753
46754 2008-11-02  Bruno Haible  <bruno@clisp.org>
46755
46756         Mark 'rmdir' obsolete.
46757         * modules/rmdir (Status, Notice): New sections.
46758         * modules/clean-temp (Depends-on): Add rmdir.
46759         * modules/openat (Depends-on): Likewise.
46760
46761 2008-11-02  Bruno Haible  <bruno@clisp.org>
46762
46763         Mark 'raise' obsolete.
46764         * modules/raise (Status, Notice): New sections.
46765         (Include): Specify <signal.h>.
46766         * modules/stdio (Depends-on): Add raise.
46767         * modules/write (Depends-on): Likewise.
46768
46769 2008-11-02  Bruno Haible  <bruno@clisp.org>
46770
46771         Mark 'memset' obsolete.
46772         * modules/memset (Status, Notice): New sections.
46773
46774 2008-11-02  Bruno Haible  <bruno@clisp.org>
46775
46776         Mark 'memmove' obsolete.
46777         * modules/memmove (Status, Notice): New sections.
46778         * modules/argp (Depends-on): Add memmove.
46779         * modules/argz (Depends-on): Likewise.
46780         * modules/canonicalize (Depends-on): Likewise.
46781         * modules/canonicalize-lgpl (Depends-on): Likewise.
46782         * modules/fts (Depends-on): Likewise.
46783         * modules/getcwd (Depends-on): Likewise.
46784         * modules/human (Depends-on): Likewise.
46785         * modules/regex (Depends-on): Likewise.
46786         * modules/striconveh (Depends-on): Likewise.
46787         * modules/trim (Depends-on): Likewise.
46788         * modules/unistr/u8-move (Depends-on): Likewise.
46789         * modules/unistr/u16-move (Depends-on): Likewise.
46790         * modules/unistr/u32-move (Depends-on): Likewise.
46791
46792 2008-11-02  Bruno Haible  <bruno@clisp.org>
46793
46794         Mark 'memcpy' obsolete.
46795         * modules/memcpy (Status, Notice): New sections.
46796
46797 2008-11-02  Bruno Haible  <bruno@clisp.org>
46798
46799         Mark 'memcmp' obsolete.
46800         * modules/memcmp (Status, Notice): New sections.
46801         * modules/argmatch (Depends-on): Add memchr.
46802         * modules/backupfile (Depends-on): Likewise.
46803         * modules/c-strcasestr (Depends-on): Likewise.
46804         * modules/crypto/des (Depends-on): Likewise.
46805         * modules/csharpcomp (Depends-on): Likewise.
46806         * modules/fnmatch (Depends-on): Likewise.
46807         * modules/git-merge-changelog (Depends-on): Likewise.
46808         * modules/isnand (Depends-on): Likewise.
46809         * modules/isnand-nolibm (Depends-on): Likewise.
46810         * modules/isnanf (Depends-on): Likewise.
46811         * modules/isnanf-nolibm (Depends-on): Likewise.
46812         * modules/isnanl (Depends-on): Likewise.
46813         * modules/isnanl-nolibm (Depends-on): Likewise.
46814         * modules/mbchar (Depends-on): Likewise.
46815         * modules/memcoll (Depends-on): Likewise.
46816         * modules/quotearg (Depends-on): Likewise.
46817         * modules/regex (Depends-on): Likewise.
46818         * modules/relocatable-prog (Depends-on): Likewise.
46819         * modules/same (Depends-on): Likewise.
46820         * modules/signbit (Depends-on): Likewise.
46821         * modules/strcasestr-simple (Depends-on): Likewise.
46822         * modules/unictype/gen-ctype (Depends-on): Likewise.
46823         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46824         * modules/uniname/uniname (Depends-on): Likewise.
46825         * modules/unistr/u8-cmp (Depends-on): Likewise.
46826
46827 2008-11-02  Bruno Haible  <bruno@clisp.org>
46828
46829         Mark 'memchr' obsolete.
46830         * modules/memchr (Status, Notice): New sections.
46831         * modules/argp (Depends-on): Add memchr.
46832         * modules/base64 (Depends-on): Likewise.
46833         * modules/c-strcasestr (Depends-on): Likewise.
46834         * modules/chdir-long (Depends-on): Likewise.
46835         * modules/fnmatch (Depends-on): Likewise.
46836         * modules/getsubopt (Depends-on): Likewise.
46837         * modules/git-merge-changelog (Depends-on): Likewise.
46838         * modules/glob (Depends-on): Likewise.
46839         * modules/strcasestr-simple (Depends-on): Likewise.
46840         * modules/strnlen (Depends-on): Likewise.
46841
46842 2008-11-02  Bruno Haible  <bruno@clisp.org>
46843
46844         Mark 'atexit' obsolete.
46845         * modules/atexit (Status, Notice): New sections.
46846         * modules/chdir-long (Depends-on): Add atexit.
46847         * modules/wait-process (Depends-on): Likewise.
46848
46849 2008-11-02  Bruno Haible  <bruno@clisp.org>
46850
46851         * gnulib-tool: New option --with-obsolete.
46852         (func_usage): Document it.
46853         (func_modules_transitive_closure): Drop obsolete dependencies if
46854         incobsolete is not true.
46855         (func_import): Read and save the incobsolete variable to the cache.
46856
46857 2008-11-02  Bruno Haible  <bruno@clisp.org>
46858
46859         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46860         * gnulib-tool: New option --extract-status.
46861         (func_usage): Document it.
46862         (sed_extract_prog): Recognize it.
46863         (func_get_status): New function.
46864
46865 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46866
46867         * modules/sockets (License): Change from LGPL to LGPLv2+.
46868
46869 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46870
46871         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46872
46873 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46874
46875         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46876         Mention times and sys_times.
46877         * modules/sys_times, modules/sys_times-tests: New modules.
46878         * modules/times, modules/times-tests: Likewise
46879         * m4/sys_times_h.m4: New file.
46880         * lib/sys_times.in.h: Likewise
46881         * lib/times.c: Likewise.
46882         * tests/test-sys_times.c: Likewise.
46883         * tests/test-times.c: Likewise.
46884         * doc/posix-headers/sys_times.texi: Update.
46885         * doc/posix-functions/times.texi: Update.
46886
46887 2008-10-28  Jim Meyering  <meyering@redhat.com>
46888
46889         * modules/tempname (Depends-on): Add lstat.
46890
46891         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46892
46893 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46894
46895         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46896         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46897         using idiom used elsewhere in gnulib.
46898
46899 2008-10-27  Jim Meyering  <meyering@redhat.com>
46900
46901         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46902
46903 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46904
46905         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46906         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46907         programs.
46908         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46909
46910 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46911
46912         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46913
46914 2008-10-27  Bruno Haible  <bruno@clisp.org>
46915
46916         * tests/test-lstat.c: Include <stdio.h>.
46917
46918 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46919
46920         * modules/lstat-tests: New module.
46921         * tests/test-lstat.c: New file.
46922
46923 2008-10-26  Jim Meyering  <meyering@redhat.com>
46924
46925         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46926
46927 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46928             Bruno Haible  <bruno@clisp.org>
46929
46930         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46931         * modules/configmake (Include): Add a note that the include must come
46932         after all system headers.
46933         * lib/javaversion.c: Include configmake.h after all other includes.
46934
46935 2008-10-26  Bruno Haible  <bruno@clisp.org>
46936
46937         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46938         HAVE_STRUCT_RANDOM_DATA to 1.
46939         (gl_STDLIB_H): Simplify.
46940
46941 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46942
46943         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46944         substitute HAVE_STRUCT_RANDOM_DATA.
46945         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46946         random_data.
46947         * modules/stdlib (Makefile.am): Substitute
46948         HAVE_STRUCT_RANDOM_DATA.
46949
46950 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46951
46952         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46953         * doc/gnulib-intro.texi (Copyright): Likewise.
46954
46955 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46956
46957         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46958         findings.
46959
46960 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46961             Bruno Haible  <bruno@clisp.org>
46962
46963         * lib/unistd.in.h: Include <winsock2.h>.
46964         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46965         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46966         Provide dummy declarations.
46967         (gethostname): Override.
46968         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46969         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46970         gl_PREREQ_SYS_H_WINSOCK2.
46971         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46972         * doc/posix-functions/gethostname.texi: More details.
46973
46974 2008-10-25  Bruno Haible  <bruno@clisp.org>
46975
46976         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46977         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46978         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46979
46980         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46981         here ...
46982         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46983         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46984         gl_UNISTD_H_DEFAULTS.
46985
46986 2008-10-25  Eric Blake  <ebb9@byu.net>
46987
46988         signbit: avoid spurious compiler failure
46989         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46990         declarations inside function.
46991
46992 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46993             Bruno Haible  <bruno@clisp.org>
46994
46995         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46996         * modules/random_r (Depends-on): Add stdint.
46997
46998 2008-10-24  Bruno Haible  <bruno@clisp.org>
46999
47000         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47001         Eggert.
47002         * modules/strerror (License): Likewise.
47003
47004 2008-10-24  Jim Meyering  <meyering@redhat.com>
47005
47006         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47007         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47008
47009 2008-10-24  Eric Blake  <ebb9@byu.net>
47010
47011         getgroups: fix compilation when getgroups is available
47012         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47013         but with <config.h> override of getgroups disabled.
47014
47015 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47016
47017         * doc/gnulib.texi (Header files): Add note about C++ problems.
47018         Explained by Bruno Haible <bruno@clisp.org>.
47019
47020 2008-10-23  Bruno Haible  <bruno@clisp.org>
47021
47022         Define a dummy SA_NODEFER macro on Interix.
47023         * lib/signal.in.h (SA_NODEFER): Define fallback.
47024         Reported by Aleksey Cheusov <cheusov@tut.by> via
47025         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47026
47027 2008-10-23  Bruno Haible  <bruno@clisp.org>
47028
47029         * modules/freadahead (License): Change to LGPLv2+.
47030         Suggested by Simon Josefsson.
47031
47032 2008-10-23  Jim Meyering  <meyering@redhat.com>
47033
47034         random_r: new module
47035         * modules/random_r: New file.
47036         * m4/random_r.m4: New file.
47037         * lib/random_r.c: New file, from glibc.
47038         * modules/random_r-tests: New file.
47039         * tests/test-random_r.c: New file.
47040         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47041          Declare.
47042         (RAND_MAX): Define.
47043         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47044         * modules/stdlib: Substitute them, too.
47045         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47046         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47047         * doc/glibc-functions/random_r.texi: Likewise.
47048         * doc/glibc-functions/setstate_r.texi: Likewise.
47049         * doc/glibc-functions/srandom_r.texi: Likewise.
47050         * config/srclist.txt: Mention it.
47051
47052 2008-10-23  David Lutterkort  <lutter@redhat.com>
47053
47054         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47055         link requirement
47056
47057 2008-10-23  Jim Meyering  <meyering@redhat.com>
47058
47059         selinux-h: mark parameters of stub functions as intentionally unused
47060         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47061         * lib/se-context.in.h: Likewise.
47062
47063 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47064
47065         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47066
47067 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47068
47069         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47070
47071 2008-10-22  Eric Blake  <ebb9@byu.net>
47072
47073         glthread/thread: avoid compiler warning
47074         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47075         Add unreachable abort to silence compiler.
47076
47077 2008-10-22  Eric Blake  <ebb9@byu.net>
47078
47079         netdb: also supply struct addrinfo for cygwin 1.5.x
47080         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47081         older cygwin.
47082         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47083         cygwin.
47084         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47085
47086 2008-10-22  Bruno Haible  <bruno@clisp.org>
47087
47088         * users.txt: Update entry about pspp.
47089
47090 2008-10-21  Bruno Haible  <bruno@clisp.org>
47091
47092         Simplification.
47093         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47094         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47095
47096         Simplification.
47097         * lib/ioctl.c (ioctl): Don't undefine.
47098         * lib/socket.c (socket): Don't undefine.
47099
47100         Remove unused module indicator macros.
47101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47102         GNULIB_$1 as a C macro.
47103
47104         * doc/posix-functions/close.texi: Undo last change.
47105         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47106         Windows platforms.
47107
47108 2008-10-21  Bruno Haible  <bruno@clisp.org>
47109
47110         Add gethostname() declaration to <unistd.h>.
47111         * lib/unistd.in.h (gethostname): New declaration.
47112         * lib/gethostname.c: Include <unistd.h>.
47113         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47114         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47116         and HAVE_GETHOSTNAME.
47117         * modules/gethostname (Depends-on): Add unistd.
47118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47119         (Include): Specify <unistd.h>.
47120         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47121         HAVE_GETHOSTNAME.
47122         * tests/test-gethostname.c: Include <unistd.h> first.
47123
47124 2008-10-21  Bruno Haible  <bruno@clisp.org>
47125
47126         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47127         * modules/select-tests (Depends-on): Likewise.
47128         Reported by Simon Josefsson.
47129
47130 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47131
47132         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47133         * lib/accept.c: New file, based on winsock.c.
47134         * lib/bind.c: New file, based on winsock.c.
47135         * lib/connect.c: New file, based on winsock.c.
47136         * lib/getpeername.c: New file, based on winsock.c.
47137         * lib/getsockname.c: New file, based on winsock.c.
47138         * lib/getsockopt.c: New file, based on winsock.c.
47139         * lib/ioctl.c: New file, based on winsock.c.
47140         * lib/listen.c: New file, based on winsock.c.
47141         * lib/recv.c: New file, based on winsock.c.
47142         * lib/recvfrom.c: New file, based on winsock.c.
47143         * lib/send.c: New file, based on winsock.c.
47144         * lib/sendto.c: New file, based on winsock.c.
47145         * lib/setsockopt.c: New file, based on winsock.c.
47146         * lib/shutdown.c: New file, based on winsock.c.
47147         * lib/socket.c: New file, based on winsock.c.
47148         * lib/w32sock.h: New file, based on winsock.c.
47149         * lib/winsock.c: Remove file.
47150         * modules/accept: Likewise.
47151         * modules/bind: Likewise.
47152         * modules/connect: Likewise.
47153         * modules/getpeername: Likewise.
47154         * modules/getsockname: Likewise.
47155         * modules/getsockopt: Likewise.
47156         * modules/ioctl: Likewise.
47157         * modules/listen: Likewise.
47158         * modules/recv: Likewise.
47159         * modules/recvfrom: Likewise.
47160         * modules/send: Likewise.
47161         * modules/sendto: Likewise.
47162         * modules/setsockopt: Likewise.
47163         * modules/shutdown: Likewise.
47164         * modules/socket: Use socket.c instead of winsock.c.
47165         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47166         * doc/posix-functions/accept.texi: Doc fix.
47167         * doc/posix-functions/bind.texi: Doc fix.
47168         * doc/posix-functions/close.texi: Doc fix.
47169         * doc/posix-functions/connect.texi: Doc fix.
47170         * doc/posix-functions/getpeername.texi: Doc fix.
47171         * doc/posix-functions/getsockname.texi: Doc fix.
47172         * doc/posix-functions/getsockopt.texi: Doc fix.
47173         * doc/posix-functions/ioctl.texi: Doc fix.
47174         * doc/posix-functions/listen.texi: Doc fix.
47175         * doc/posix-functions/recv.texi: Doc fix.
47176         * doc/posix-functions/recvfrom.texi: Doc fix.
47177         * doc/posix-functions/send.texi: Doc fix.
47178         * doc/posix-functions/sendto.texi: Doc fix.
47179         * doc/posix-functions/setsockopt.texi: Doc fix.
47180         * doc/posix-functions/shutdown.texi: Doc fix.
47181         * doc/posix-functions/socket.texi: Doc fix.
47182
47183 2008-10-20  Bruno Haible  <bruno@clisp.org>
47184
47185         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47186         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47187         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47188         as an alias for SIGABRT.
47189         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47190         (sigaction): Map it to SIGABRT.
47191         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47192
47193 2008-10-20  Bruno Haible  <bruno@clisp.org>
47194
47195         * lib/fts.c: Don't include lstat.h.
47196         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47197
47198         Move the lstat() declaration to <sys/stat.h>.
47199         * lib/lstat.h: Remove file.
47200         * lib/sys_stat.in.h: Add special invocation convention.
47201         (lstat): New declaration.
47202         * lib/lstat.c (orig_lstat): New function.
47203         (rpl_lstat): Use orig_lstat instead of lstat.
47204         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47205         AC_C_INLINE. Set REPLACE_LSTAT.
47206         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47207         and REPLACE_LSTAT.
47208         * modules/lstat (Files): Remove lib/lstat.h.
47209         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47210         (Include): Specify <sys/stat.h> instead of lstat.h.
47211         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47212         REPLACE_LSTAT.
47213         * NEWS: Mention the change.
47214
47215 2008-10-20  Bruno Haible  <bruno@clisp.org>
47216
47217         * modules/posix_spawn-tests: New file.
47218         * tests/test-posix_spawn3.c: New file.
47219
47220 2008-10-20  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47223         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47224         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47225         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47226         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47227
47228 2008-10-20  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47231         of posix_spawn on AIX 5.3.
47232
47233 2008-10-20  Bruno Haible  <bruno@clisp.org>
47234
47235         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47236
47237 2008-10-20  Bruno Haible  <bruno@clisp.org>
47238
47239         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47240         of AC_LANG_PROGRAM.
47241
47242 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47243
47244         * lib/netdb.in.h: Don't define GNU specific constants until they
47245         are supported or needed.  Reported by Bruno Haible
47246         <bruno@clisp.org>.
47247
47248 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47249
47250         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47251
47252 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47253
47254         * lib/getaddrinfo.h: Remove file.
47255         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47256         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47257         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47258         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47259         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47260         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47261         * tests/test-getaddrinfo.c: Likewise.
47262         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47263         * NEWS: Mention change.
47264
47265 2008-10-19  Bruno Haible  <bruno@clisp.org>
47266
47267         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47268
47269 2008-10-19  Bruno Haible  <bruno@clisp.org>
47270
47271         * lib/wait-process.c: Include simply <sys/wait.h>.
47272         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47273         WIFSTOPPED): Remove fallback definitions.
47274         * modules/wait-process (Depends-on): Add sys_wait.
47275
47276         New module 'sys_wait'.
47277         * modules/sys_wait: New file.
47278         * lib/sys_wait.in.h: New file, partially copied from
47279         lib/wait-process.c.
47280         * m4/sys_wait_h.m4: New file.
47281         * doc/posix-headers/sys_wait.texi: Mention the new module.
47282
47283 2008-10-19  Bruno Haible  <bruno@clisp.org>
47284
47285         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47286
47287 2008-10-19  Bruno Haible  <bruno@clisp.org>
47288
47289         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47290         * lib/wait-process.c (WAIT_T): Remove type.
47291         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47292         (wait_subprocess): Update.
47293
47294 2008-10-19  Bruno Haible  <bruno@clisp.org>
47295
47296         New module 'atoll'.
47297         * modules/atoll: New file.
47298         * lib/stdlib.in.h (atoll): New declaration.
47299         * lib/atoll.c: New file, from glibc with modifications.
47300         * m4/atoll.m4: New file.
47301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47302         HAVE_ATOLL.
47303         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47304         * doc/posix-functions/atoll.texi: Mention the new module.
47305
47306 2008-10-19  Bruno Haible  <bruno@clisp.org>
47307
47308         Add strtoull() declaration to <stdlib.h>.
47309         * lib/stdlib.in.h (strtoull): New declaration.
47310         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47311         Set HAVE_STRTOULL.
47312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47313         HAVE_STRTOULL.
47314         * modules/strtoull (Depends-on): Add stdlib.
47315         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47316         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47317         HAVE_STRTOULL.
47318
47319 2008-10-19  Bruno Haible  <bruno@clisp.org>
47320
47321         Add strtoll() declaration to <stdlib.h>.
47322         * lib/stdlib.in.h (strtoll): New declaration.
47323         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47324         Set HAVE_STRTOLL.
47325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47326         HAVE_STRTOLL.
47327         * modules/strtoll (Depends-on): Add stdlib.
47328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47329         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47330
47331 2008-10-19  Bruno Haible  <bruno@clisp.org>
47332
47333         * modules/bcopy (Depends-on): Add strings.
47334         (Include): Specify <strings.h>.
47335
47336 2008-10-19  Bruno Haible  <bruno@clisp.org>
47337
47338         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47339
47340 2008-10-19  Bruno Haible  <bruno@clisp.org>
47341
47342         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47343         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47344         mingw.
47345
47346 2008-10-19  Bruno Haible  <bruno@clisp.org>
47347
47348         * lib/atanl.c: Don't include isnanl.h.
47349         * lib/cosl.c: Likewise.
47350         * lib/ldexpl.c: Likewise.
47351         * lib/logl.c: Likewise.
47352         * lib/sinl.c: Likewise.
47353         * lib/sqrtl.c: Likewise.
47354         * lib/tanl.c: Likewise.
47355
47356         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47357         * lib/isnanf.h: Remove file.
47358         * lib/isnand.h: Remove file.
47359         * lib/isnanl.h: Remove file.
47360         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47361         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47362         macros.
47363         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47364         HAVE_ISNANF, don't define it as a C macro.
47365         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47366         HAVE_ISNAND, don't define it as a C macro.
47367         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47368         HAVE_ISNANL, don't define it as a C macro.
47369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47370         HAVE_ISNAN[FDL].
47371         * modules/isnanf (Files): Remove lib/isnanf.h.
47372         (Depends-on): Add math.
47373         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47374         (Include): Specify <math.h> instead of isnanf.h.
47375         * modules/isnand (Files): Remove lib/isnand.h.
47376         (Depends-on): Add math.
47377         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47378         (Include): Specify <math.h> instead of isnand.h.
47379         * modules/isnanl (Files): Remove lib/isnanl.h.
47380         (Depends-on): Add math.
47381         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47382         (Include): Specify <math.h> instead of isnanl.h.
47383         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47384         HAVE_ISNAN[FDL].
47385         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47386         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47387         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47388         * NEWS: Mention the change.
47389
47390 2008-10-18  Bruno Haible  <bruno@clisp.org>
47391
47392         Add getusershell(), setusershell(), endusershell() declarations to
47393         <unistd.h>.
47394         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47395         declarations.
47396         * lib/getusershell.c: Include unistd.h.
47397         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47398         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47399         HAVE_GETUSERSHELL.
47400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47401         and HAVE_GETUSERSHELL.
47402         * modules/getusershell (Depends-on): Add unistd, extensions.
47403         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47404         (Include): Specify <unistd.h>.
47405         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47406         HAVE_GETUSERSHELL.
47407
47408 2008-10-18  Bruno Haible  <bruno@clisp.org>
47409
47410         Add a getloadavg() declaration to <stdlib.h>.
47411         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47412         getloadavg declaration.
47413         (getloadavg): New declaration.
47414         * lib/getloadavg.c: Include <stdlib.h> first.
47415         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47416         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47417         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47419         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47420         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47421         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47422         (Include): Specify <stdlib.h>.
47423         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47424         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47425
47426 2008-10-18  Bruno Haible  <bruno@clisp.org>
47427
47428         * lib/dirchownmod.c: Don't include lchmod.h.
47429
47430         Move the lchmod() declaration to <sys/stat.h>.
47431         * lib/lchmod.h: Remove file.
47432         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47433         (lchmod): New declaration, moved here from lib/lchown.h.
47434         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47435         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47436         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47437         and HAVE_LCHMOD.
47438         * modules/lchmod (Files): Remove lib/lchmod.h.
47439         (Depends-on): Add sys_stat, extensions.
47440         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47441         (Include): Specify <sys/stat.h> instead of lchmod.h.
47442         * modules/sys_stat (Depends-on): Add link-warning.
47443         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47444         definition of GL_LINK_WARNING.
47445         * NEWS: Mention the change.
47446
47447 2008-10-18  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/fchdir.c: Don't include dirfd.h.
47450         * lib/fts.c: Likewise.
47451         * lib/getcwd.c: Likewise.
47452         * lib/glob.c: Likewise.
47453
47454         Move the dirfd() declaration to <dirent.h>.
47455         * lib/dirfd.h: Remove file.
47456         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47457         (dirfd): New declaration.
47458         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47459         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47460         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47461         HAVE_DECL_DIRFD.
47462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47463         HAVE_DECL_DIRFD.
47464         * modules/dirfd (Files): Remove lib/dirfd.h.
47465         (Depends-on): Add dirent, extensions.
47466         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47467         (Include): Specify <dirent.h> instead of dirfd.h.
47468         * modules/dirent (Depends-on): Add link-warning.
47469         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47470         definition of GL_LINK_WARNING.
47471         * NEWS: Mention the change.
47472
47473 2008-10-18  Bruno Haible  <bruno@clisp.org>
47474
47475         Move the euidaccess() declaration to <unistd.h>.
47476         * lib/euidaccess.h: Remove file.
47477         * lib/unistd.in.h (euidaccess): New declaration.
47478         * lib/euidaccess.c: Don't include euidaccess.h.
47479         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47480         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47482         and HAVE_EUIDACCESS.
47483         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47484         (Depends-on): Add unistd.
47485         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47486         (Include): Specify <unistd.h> instead of euidaccess.h.
47487         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47488         HAVE_EUIDACCESS.
47489         * NEWS: Mention the change.
47490
47491 2008-10-18  Bruno Haible  <bruno@clisp.org>
47492
47493         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47494
47495         Move the getdomainname() declaration to <unistd.h>.
47496         * lib/getdomainname.h: Remove file.
47497         * lib/unistd.in.h (getdomainname): New declaration.
47498         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47499         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47500         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47501         HAVE_GETDOMAINNAME.
47502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47503         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47504         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47505         (Depends-on): Add unistd, extensions.
47506         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47507         (Includes): Specify <unistd.h> instead of getdomainname.h.
47508         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47509         HAVE_GETDOMAINNAME.
47510         * NEWS: Mention the change.
47511
47512 2008-10-18  Bruno Haible  <bruno@clisp.org>
47513
47514         * modules/dirent: New file.
47515         * m4/dirent_h.m4: New file.
47516         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47517         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47518         * modules/fchdir (Files): Remove lib/dirent.in.h.
47519         (Depends-on): Add dirent.
47520         (Makefile.am): Move rules to modules/dirent.
47521         * doc/posix-headers/dirent.texi: Mention the new module.
47522
47523 2008-10-18  Bruno Haible  <bruno@clisp.org>
47524
47525         Avoid -Wunused-parameter warnings in public gnulib header files.
47526         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47527         macro.
47528         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47529
47530 2008-10-18  Bruno Haible  <bruno@clisp.org>
47531
47532         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47533         * doc/glibc-functions/error.texi: Mention the module 'error'.
47534         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47535         * doc/glibc-functions/getdomainname.texi: Mention the module
47536         'getdomainname'.
47537         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47538         * doc/glibc-functions/getpagesize.texi: Mention the module
47539         'getpagesize'.
47540         * doc/glibc-functions/getusershell.texi: Mention the module
47541         'getusershell'.
47542         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47543         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47544         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47545         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47546         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47547         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47548         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47549         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47550         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47551         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47552         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47553         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47554         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47555         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47556
47557 2008-10-17  Bruno Haible  <bruno@clisp.org>
47558
47559         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47560         HP-UX and IRIX, use -0.0L.
47561         * tests/test-ceill.c (minus_zero): Likewise.
47562         * tests/test-floorl.c (minus_zero): Likewise.
47563         * tests/test-frexpl.c (minus_zero): Likewise.
47564         * tests/test-isnan.c (minus_zerol): Likewise.
47565         * tests/test-isnanl.h (minus_zero): Likewise.
47566         * tests/test-ldexpl.c (minus_zero): Likewise.
47567         * tests/test-roundl.c (minus_zero): Likewise.
47568         * tests/test-signbit.c (minus_zerol): Likewise.
47569         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47570         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47571         * tests/test-truncl.c (minus_zero): Likewise.
47572         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47573         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47574         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47575         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47576
47577 2008-10-17  Bruno Haible  <bruno@clisp.org>
47578
47579         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47580         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47581         that it gets activated only for gcc >= 3.0.
47582         * lib/dirent.in.h: Likewise.
47583         * lib/errno.in.h: Likewise.
47584         * lib/fcntl.in.h: Likewise.
47585         * lib/float.in.h: Likewise.
47586         * lib/iconv.in.h: Likewise.
47587         * lib/inttypes.in.h: Likewise.
47588         * lib/locale.in.h: Likewise.
47589         * lib/math.in.h: Likewise.
47590         * lib/netdb.in.h: Likewise.
47591         * lib/netinet_in.in.h: Likewise.
47592         * lib/search.in.h: Likewise.
47593         * lib/signal.in.h: Likewise.
47594         * lib/spawn.in.h: Likewise.
47595         * lib/stdarg.in.h: Likewise.
47596         * lib/stdint.in.h: Likewise.
47597         * lib/stdio.in.h: Likewise.
47598         * lib/stdlib.in.h: Likewise.
47599         * lib/string.in.h: Likewise.
47600         * lib/strings.in.h: Likewise.
47601         * lib/sys_file.in.h: Likewise.
47602         * lib/sys_ioctl.in.h: Likewise.
47603         * lib/sys_select.in.h: Likewise.
47604         * lib/sys_socket.in.h: Likewise.
47605         * lib/sys_stat.in.h: Likewise.
47606         * lib/sys_time.in.h: Likewise.
47607         * lib/sysexits.in.h: Likewise.
47608         * lib/time.in.h: Likewise.
47609         * lib/unistd.in.h: Likewise.
47610         * lib/wchar.in.h: Likewise.
47611         * lib/wctype.in.h: Likewise.
47612         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47613
47614 2008-10-17  Jim Meyering  <meyering@redhat.com>
47615
47616         ignore-value: don't depend on inline module
47617         * modules/ignore-value (Depends-on): Remove 'inline'.
47618         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47619         Suggestion from Bruno Haible.
47620
47621 2008-10-17  Bruno Haible  <bruno@clisp.org>
47622
47623         New implementation of condition variables for Win32.
47624         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47625         (gl_linked_waitqueue_t): New type.
47626         (gl_cond_t): Use it.
47627         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47628         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47629         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47630         (glthread_cond_init_func, glthread_cond_wait_func,
47631         glthread_cond_timedwait_func, glthread_cond_signal_func,
47632         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47633         Reimplemented on the basis of gl_linked_waitqueue_t.
47634         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47635         gl_waitqueue_t.
47636         (gl_rwlock_t): Update.
47637         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47638
47639 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47640
47641         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47642         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47643
47644 2008-10-17  Jim Meyering  <meyering@redhat.com>
47645
47646         ignore-value: new module
47647         * modules/ignore-value: New file.
47648         * lib/ignore-value.h: New file.
47649         * MODULES.html.sh (Compiler warning management): New section,
47650         just for this module.  More to come.
47651
47652 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47653
47654         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47655         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47656         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47657
47658 2008-10-16  Jim Meyering  <meyering@redhat.com>
47659
47660         openat-die.c: avoid 'no previous prototype' warning
47661         * lib/openat-die.c: Include "openat.h".
47662         Reported by Reuben Thomas <rrt@sc3d.org>.
47663
47664 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47665
47666         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47667         * lib/netdb.in.h: Fix typo.
47668         Reported by Bruno Haible  <bruno@clisp.org>
47669
47670         * lib/netdb.in.h: Include sys/socket.h for platforms without
47671         netdb.h, to get structures like hostent on MinGW.
47672         * modules/netdb (Depends-on): Add sys_socket.
47673
47674 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47675
47676         * modules/netdb, modules/netdb-tests: New file.
47677         * m4/netdb_h.m4: New file.
47678         * lib/netdb.in.h: Add, currently just an empty file pending
47679         definitions.
47680         * tests/test-netdb.c: New file.
47681         * doc/posix-headers/netdb.texi: Mention that we replace it if
47682         needed.
47683         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47684         netdb.
47685
47686 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47687
47688         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47689         with code.
47690
47691 2008-10-13  Bruno Haible  <bruno@clisp.org>
47692
47693         * lib/glthread/cond.c (glthread_cond_wait_func,
47694         glthread_cond_timedwait_func): Add a comment.
47695
47696 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47697
47698         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47699         * tests/test-select.c: Likewise,
47700
47701 2008-10-13  Bruno Haible  <bruno@clisp.org>
47702
47703         * lib/glthread/cond.c (glthread_cond_wait_func,
47704         glthread_cond_timedwait_func): Fix variable name.
47705         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47706
47707 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47708
47709         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47711         struct sockaddr.sa_len.
47712         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47713
47714 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47715
47716         * build-aux/pmccabe2html: Add css and css_url parameters.
47717
47718 2008-10-12  Bruno Haible  <bruno@clisp.org>
47719
47720         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47721         calling aclx_get.
47722         Reported by Rainer Tammer <tammer@tammer.net>.
47723
47724 2008-10-12  Bruno Haible  <bruno@clisp.org>
47725
47726         Use msvcrt aware primitives for creation/termination of Win32 threads.
47727         * lib/glthread/thread.c: Include <process.h>.
47728         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47729         (wrapper_func): Update signature.
47730         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47731
47732 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47733             Bruno Haible  <bruno@clisp.org>
47734
47735         Provide a Win32 implementation of the 'cond' module.
47736         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47737         * lib/glthread/cond.c (glthread_cond_init_func,
47738         glthread_cond_wait_func, glthread_cond_timedwait_func,
47739         glthread_cond_signal_func, glthread_cond_broadcast_func,
47740         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47741         * modules/cond (Dependencies): Add gettimeofday.
47742
47743 2008-10-11  Bruno Haible  <bruno@clisp.org>
47744
47745         Make sleep work on older versions of mingw.
47746         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47747         only whether it exists.
47748         * doc/posix-functions/sleep.texi: Mention the problem with older
47749         versions of mingw.
47750
47751 2008-10-11  Bruno Haible  <bruno@clisp.org>
47752
47753         New module 'shutdown'.
47754         * modules/shutdown: New file.
47755         * lib/sys_socket.in.h (shutdown): New declaration.
47756         * lib/winsock.c (shutdown): New function.
47757         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47758         GNULIB_SHUTDOWN.
47759         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47760         * doc/posix-functions/shutdown.texi: Document the new module.
47761
47762 2008-10-11  Jim Meyering  <meyering@redhat.com>
47763
47764         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47765
47766 2008-10-11  Bruno Haible  <bruno@clisp.org>
47767
47768         New module 'fclose'.
47769         * modules/fclose: New file.
47770         * lib/stdio.in.h (fclose): New declaration.
47771         * lib/fclose.c: New file.
47772         * m4/fclose.m4: New file.
47773         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47774         REPLACE_FCLOSE.
47775         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47776         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47777         REPLACE_FCLOSE.
47778         * modules/close (Depends-on): fclose.
47779         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47780
47781 2008-10-11  Bruno Haible  <bruno@clisp.org>
47782
47783         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47784         set errno and don't call _close.
47785
47786 2008-10-10  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47789         ACL, not afterwards. Fixes test failure on Cygwin.
47790
47791 2008-10-09  Ben Pfaff  <blp@gnu.org>
47792
47793         * build-aux/announce-gen: Fix gnulib version related part of usage
47794         message.  Die with a useful error message if no tarballs are
47795         found.
47796
47797 2008-10-10  Jim Meyering  <meyering@redhat.com>
47798
47799         bootstrap: use git's --depth=N option only if it's supported
47800         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47801         recognize the --depth option.  Reported by Pádraig Brady.
47802
47803 2008-10-09  Bruno Haible  <bruno@clisp.org>
47804
47805         New module 'ioctl'.
47806         * modules/ioctl: New file.
47807         * lib/sys_socket.in.h (ioctl): Remove declaration.
47808         * lib/winsock.c: Include <sys/ioctl.h>.
47809         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47810         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47811         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47812         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47813         * doc/posix-functions/ioctl.texi: Mention the new module.
47814
47815 2008-10-09  Bruno Haible  <bruno@clisp.org>
47816
47817         New module 'sys_ioctl'.
47818         * lib/sys_ioctl.in.h: New file.
47819         * m4/sys_ioctl_h.m4: New file.
47820         * modules/sys_ioctl: New file.
47821         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47822
47823 2008-10-09  Bruno Haible  <bruno@clisp.org>
47824
47825         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47826         * lib/winsock.c: Include <stdarg.h>.
47827         (rpl_ioctl): Change to second argument 'int' and then varargs.
47828
47829 2008-10-09  Bruno Haible  <bruno@clisp.org>
47830
47831         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47832         when the sys_socket module is present and the system has <winsock2.h>.
47833
47834 2008-10-09  Bruno Haible  <bruno@clisp.org>
47835
47836         * doc/posix-functions/close.texi: Mention module 'close' instead of
47837         module 'sys_socket'.
47838
47839 2008-10-09  Bruno Haible  <bruno@clisp.org>
47840
47841         * doc/glibc-headers/sys_ioctl.texi: New file.
47842         * doc/gnulib.texi: Include it.
47843
47844 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47845             Bruno Haible  <bruno@clisp.org>
47846
47847         Combine the two replacements of 'close'.
47848         * lib/sys_socket.in.h (close): Define to a reminder to include
47849         <unistd.h>.
47850         (_gl_close_fd_maybe_socket): New declaration.
47851         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47852         * lib/winsock.c (close): Remove undefinition.
47853         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47854         needed for the gnulib module 'close'.
47855         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47856         define to an error symbol or to a warning, if suitable.
47857         * lib/close.c: Include <sys/socket.h>.
47858         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47859         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47860         UNISTD_H_HAVE_WINSOCK2_H.
47861         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47863         UNISTD_H_HAVE_WINSOCK2_H.
47864         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47865         (configure.ac): Set a module indicator.
47866         (Makefile.am): Substitute GNULIB_CLOSE.
47867         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47868         * modules/poll-tests (Depends-on): Add close.
47869         * modules/select-tests (Depends-on): Likewise.
47870
47871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47872             Bruno Haible  <bruno@clisp.org>
47873
47874         New module 'close'.
47875         * modules/close: New file.
47876         * lib/unistd.in.h (close): Move declaration out of the
47877         FCHDIR_REPLACEMENT scope.
47878         (_gl_unregister_fd): New declaration.
47879         * lib/close.c: New file.
47880         * lib/fchdir.c (rpl_close): Remove function.
47881         * m4/close.m4: New file.
47882         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47883         close.
47884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47885         REPLACE_CLOSE.
47886         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47887         REPLACE_CLOSE.
47888         * modules/fchdir (Depends-on): Add close.
47889
47890 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47891             Bruno Haible  <bruno@clisp.org>
47892
47893         * lib/fcntl.in.h (open): Simplify conditionals.
47894         (_gl_register_fd): New declaration.
47895         * lib/fchdir.c (rpl_open): Remove function.
47896         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47897         also.
47898         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47900         open.
47901
47902 2008-10-09  Jim Meyering  <meyering@redhat.com>
47903
47904         GNUmakefile: use the more name-space-friendly "_version"
47905         * top/GNUmakefile (_dummy): Update.
47906         (_version): Rename from "version".
47907
47908 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47909             Bruno Haible  <bruno@clisp.org>
47910
47911         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47912         rpl_close.
47913         (_gl_register_fd): New function, extracted from rpl_open.
47914         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47915         (rpl_open, rpl_opendir): Use _gl_register_fd.
47916
47917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47918
47919         Fix organization of 'open' replacement.
47920         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47921         (gl_FUNC_OPEN): Use it.
47922         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47923
47924 2008-10-08  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47927
47928 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47929
47930         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47931         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47932         listen).
47933
47934 2008-10-08  Eric Blake  <ebb9@byu.net>
47935
47936         GNUmakefile: add 'make version' target
47937         * top/GNUmakefile (_curr-ver): Split version update rules...
47938         (version): ...into a target.
47939
47940 2008-10-07  Bruno Haible  <bruno@clisp.org>
47941
47942         Use a more portable replacement expression for -0.0L.
47943         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47944         instead of -0.0L. Fix m4 quotation.
47945
47946         * tests/test-signbit.c: Include <float.h>.
47947         (minus_zero): New variable.
47948         (test_signbitl): Use minus_zero instead of -zero.
47949         * modules/signbit-tests (Depends-on): Add float.
47950
47951         * tests/test-ceill.c: Include <float.h>.
47952         (zero): Remove variable.
47953         (minus_zero): New variable.
47954         (main): Use minus_zero instead of -zero.
47955         * modules/ceill-tests (Depends-on): Add float.
47956
47957         * tests/test-floorl.c: Include <float.h>.
47958         (zero): Remove variable.
47959         (minus_zero): New variable.
47960         (main): Use minus_zero instead of -zero.
47961         * modules/floorl-tests (Depends-on): Add float.
47962
47963         * tests/test-roundl.c: Include <float.h>.
47964         (zero): Remove variable.
47965         (minus_zero): New variable.
47966         (main): Use minus_zero instead of -zero.
47967         * modules/roundl-tests (Depends-on): Add float.
47968
47969         * tests/test-truncl.c: Include <float.h>.
47970         (zero): Remove variable.
47971         (minus_zero): New variable.
47972         (main): Use minus_zero instead of -zero.
47973         * modules/truncl-tests (Depends-on): Add float.
47974
47975         * tests/test-frexpl.c (zero): Remove variable.
47976         (minus_zero): New variable.
47977         (main): Use minus_zero instead of -zero.
47978         * modules/frexpl-tests (Depends-on): Add float.
47979
47980         * tests/test-isnan.c (zerol): Remove variable.
47981         (minus_zerol): New variable.
47982         (test_long_double): Use minus_zerol instead of -zerol.
47983         * modules/isnan-tests (Depends-on): Add float.
47984
47985         * tests/test-isnanl.h (zero): Remove variable.
47986         (minus_zero): New variable.
47987         (main): Use minus_zero instead of -zero.
47988         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47989         * modules/isnanl-tests (Depends-on): Add float.
47990
47991         * tests/test-ldexpl.c (zero): Remove variable.
47992         (minus_zero): New variable.
47993         (main): Use minus_zero instead of -zero.
47994         * modules/ldexpl-tests (Depends-on): Add float.
47995
47996         * tests/test-snprintf-posix.h (zerol): Remove variable.
47997         (minus_zerol): New variable.
47998         (test_function): Use minus_zerol instead of -zerol.
47999         * modules/snprintf-posix-tests (Depends-on): Add float.
48000         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48001
48002         * tests/test-sprintf-posix.h (zerol): Remove variable.
48003         (minus_zerol): New variable.
48004         (test_function): Use minus_zerol instead of -zerol.
48005         * modules/sprintf-posix-tests (Depends-on): Add float.
48006         * modules/vsprintf-posix-tests (Depends-on): Add float.
48007
48008         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48009         (minus_zerol): New variable.
48010         (test_function): Use minus_zerol instead of -zerol.
48011         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48012
48013         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48014         (minus_zerol): New variable.
48015         (test_function): Use minus_zerol instead of -zerol.
48016         * modules/vasprintf-posix-tests (Depends-on): Add float.
48017
48018 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48019
48020         * MODULES.html.sh (Support for building documentation): Mention
48021         pmccabe2html.  Sort entries.
48022
48023         Add pmccabe2html module, from gnupdf.
48024         * build-aux/pmccabe.css: New file.
48025         * build-aux/pmccabe2html: New file.
48026         * m4/pmccabe2html.m4: New file.
48027         * modules/pmccabe2html: New file.
48028
48029 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48030
48031         flock: new module
48032         * MODULES.html.sh: Add to list of modules.
48033         * lib/flock.c: flock implementation for Windows and Unix systems
48034         which have fcntl.
48035         * doc/glibc-functions/flock.texi: Update documentation.
48036         * lib/sys_file.in.h: <sys/file.h> header file.
48037         * m4/flock.m4: M4 macros.
48038         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48039         * modules/flock: flock module.
48040         * modules/flock-tests: flock tests module.
48041         * modules/sys_file: sys/file.h module.
48042         * tests/test-flock.c: test suite for flock.
48043
48044 2008-10-06  Jim Meyering  <meyering@redhat.com>
48045
48046         bootstrap: check for LT_INIT more portably still ;-)
48047         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48048         Spotted by Bruno Haible.
48049
48050 2008-10-06  Eric Blake  <ebb9@byu.net>
48051
48052         test-signbit: avoid tripping Irix cc bug on -0.0L
48053         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48054         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48055         entire testsuite consistent and avoids an Irix 6.2 bug.
48056
48057 2008-10-05  Bruno Haible  <bruno@clisp.org>
48058             Jim Meyering  <jim@meyering.net>
48059
48060         Add an option for ignoring EPIPE during close_stdout.
48061         * lib/closeout.h: Include <stdbool.h>.
48062         (close_stdout_set_ignore_EPIPE): New declaration.
48063         * lib/closeout.c: Include <stdbool.h>.
48064         (ignore_EPIPE): New variable.
48065         (close_stdout_set_ignore_EPIPE): New function.
48066         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48067         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48068         failure.
48069         * modules/closeout (Depends-on): Add stdbool.
48070
48071 2008-10-05  Bruno Haible  <bruno@clisp.org>
48072
48073         * modules/accept: New file.
48074         * modules/bind: New file.
48075         * modules/connect: New file.
48076         * modules/getpeername: New file.
48077         * modules/getsockname: New file.
48078         * modules/getsockopt: New file.
48079         * modules/listen: New file.
48080         * modules/recv: New file.
48081         * modules/recvfrom: New file.
48082         * modules/send: New file.
48083         * modules/sendto: New file.
48084         * modules/setsockopt: New file.
48085         * modules/socket: New file.
48086         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48087         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48088         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48089         the particular module is requested. Add a link warning when the
48090         particular module is not requested.
48091         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48092         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48093         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48094         the particular module is requested.
48095         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48096         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48097         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48098         * modules/sys_socket (Depends-on): Add link-warning.
48099         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48100         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48101         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48102         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48103         GL_LINK_WARNING.
48104         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48105         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48106         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48107         * doc/posix-functions/getpeername.texi: Mention the new module
48108         'getpeername'.
48109         * doc/posix-functions/getsockname.texi: Mention the new module
48110         'getsockname'.
48111         * doc/posix-functions/getsockopt.texi: Mention the new module
48112         'getsockopt'.
48113         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48114         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48115         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48116         * doc/posix-functions/send.texi: Mention the new module 'send'.
48117         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48118         * doc/posix-functions/setsockopt.texi: Mention the new module
48119         'setsockopt'.
48120         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48121         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48122         listen, connect, accept.
48123         * modules/select-tests (Depends-on): Likewise.
48124
48125 2008-10-05  Bruno Haible  <bruno@clisp.org>
48126
48127         * lib/winsock.c (strerror): Remove unused #undef.
48128         (rpl_close): Remove unused local variable.
48129
48130         * modules/sys_socket (Depends-on); Add errno.
48131
48132 2008-10-05  Bruno Haible  <bruno@clisp.org>
48133
48134         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48135         (select): Add a link warning when the 'select' module is not used.
48136         * modules/sys_select (Depends-on): Add link-warning.
48137         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48138         Suggested by Paolo Bonzini.
48139
48140 2008-10-05  Jim Meyering  <meyering@redhat.com>
48141
48142         bootstrap: check for LT_INIT more portably
48143         * build-aux/bootstrap: Avoid using grep -E, since it's not
48144         portable enough.  Suggestion from Bruno Haible.
48145
48146 2008-10-05  Bruno Haible  <bruno@clisp.org>
48147
48148         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48149         as being fixed by gnulib.
48150
48151 2008-10-05  Bruno Haible  <bruno@clisp.org>
48152
48153         * modules/select-tests: New file, mostly copied from
48154         modules/sys_select-tests.
48155         * tests/test-select.c: New file, mostly copied from
48156         tests/test-sys_select.c.
48157         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48158         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48159         (Makefile.am): Remove test_sys_select_LDADD.
48160
48161         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48162         to an undefined symbol, for an error message.
48163         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48164         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48165         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48166         winsock-select.c here.
48167         * modules/sys_select (Files): Remove lib/winsock-select.c.
48168         (Depends-on): Remove alloca.
48169         (Makefile.am): Substitute GNULIB_SELECT.
48170         * modules/select: New file.
48171         * doc/posix-functions/select.texi: Update.
48172
48173 2008-10-05  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48176         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48177         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48178         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48179         getdtablesize.
48180         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48181         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48182
48183 2008-10-05  Bruno Haible  <bruno@clisp.org>
48184
48185         * modules/getdtablesize-tests: New file.
48186         * tests/test-getdtablesize.c: New file.
48187
48188         New module 'getdtablesize'.
48189         * lib/unistd.in.h (getdtablesize): New declaration.
48190         * lib/getdtablesize.c: New file.
48191         * m4/getdtablesize.m4: New file.
48192         * modules/getdtablesize: New file.
48193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48194         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48195         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48196         HAVE_GETDTABLESIZE.
48197         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48198
48199 2008-10-05  Bruno Haible  <bruno@clisp.org>
48200
48201         * modules/sched (Makefile.am): Fix typo.
48202         Reported by Simon Josefsson.
48203
48204 2008-10-05  Jim Meyering  <meyering@redhat.com>
48205
48206         bootstrap: check for LT_INIT, too
48207         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48208         are deprecated.  Suggestion from Ralf Wildenhues.
48209
48210 2008-10-05  Bruno Haible  <bruno@clisp.org>
48211
48212         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48213         overriding them by ours.
48214         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48215
48216 2008-10-05  Jim Meyering  <meyering@redhat.com>
48217
48218         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48219         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48220         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48221
48222 2008-10-04  Bruno Haible  <bruno@clisp.org>
48223
48224         * modules/dup2 (License): Change to LGPLv2+.
48225         * modules/sleep (License): Likewise.
48226         * modules/perror (License): Likewise.
48227         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48228         Blake.
48229         * modules/signal (License): Likewise.
48230         * modules/sigprocmask (License): Likewise.
48231         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48232         Meyering.
48233
48234 2008-10-04  Bruno Haible  <bruno@clisp.org>
48235
48236         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48237         Reported by Rainer Tammer <tammer@tammer.net>.
48238
48239 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48240             Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48243         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48244         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48245
48246 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48247
48248         filevercmp: new module
48249         * lib/filevercmp.h: New function filevercmp comparing version strings.
48250         * lib/filevercmp.c: Implementation of filevercmp function.
48251         * modules/filevercmp: Module metadata.
48252         * tests/test-filevercmp.c: Unit test for new module.
48253         * modules/filevercmp-tests: Unit test metadata.
48254         * MODULES.html.sh: Add filevercmp module.
48255
48256 2008-10-03  Bruno Haible  <bruno@clisp.org>
48257
48258         * lib/c-ctype.h: Add comment.
48259         Reported by Jim Meyering.
48260
48261 2008-10-02  Bruno Haible  <bruno@clisp.org>
48262
48263         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48264
48265 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48266
48267         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48268         name of bootstrap.conf accordingly.
48269
48270 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48271
48272         * build-aux/bootstrap: Install git-merge-changelog configuration
48273         items into .gitconfig if needed.
48274
48275 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48276
48277         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48278         git repository, and initialize/update it accordingly.
48279
48280 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48281
48282         * modules/fsync-tests: New file.
48283         * tests/test-fsync.c: New file.
48284
48285         New module 'fsync'.
48286         * lib/fsync.c: New file.
48287         * m4/fsync.m4: New file.
48288         * modules/fsync: New file.
48289         * lib/unistd.in.h (fsync): New declaration.
48290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48291         GNULIB_FSYNC and HAVE_FSYNC.
48292         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48293         * MODULES.html.sh (posix_functions): Add fsync.
48294         * doc/posix-functions/fsync.texi: Mention the new module.
48295
48296 2008-10-02  Jim Meyering  <meyering@redhat.com>
48297
48298         fts.c: sync with similar code from coreutils' remove.c
48299         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48300         Guard also with "#if defined __linux__", since for now at least,
48301         this code is Linux-kernel-specific.
48302
48303 2008-10-02  Jim Meyering  <meyering@redhat.com>
48304
48305         fts: bug fixes
48306         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48307         Include <sys/vfs.h>, not <sys/statfs.h>.
48308
48309         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48310         Include <sys/vfs.h>, not <sys/statfs.h>.
48311
48312 2008-10-01  Bruno Haible  <bruno@clisp.org>
48313
48314         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48315         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48316         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48317         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48318         * doc/posix-functions/posix_spawnp.texi: Likewise.
48319         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48320         whether posix_spawn actually works.
48321         * m4/pipe.m4 (gl_PIPE): Likewise.
48322         * modules/execute (Files): Add m4/posix_spawn.m4.
48323         * modules/pipe (Files): Add m4/posix_spawn.m4.
48324         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48325
48326 2008-10-01  Jim Meyering  <meyering@redhat.com>
48327
48328         remove trailing spaces
48329         * NEWS: Likewise.
48330         * lib/poll.c (poll): Likewise.
48331         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48332         * lib/winsock.c (rpl_close): Likewise.
48333         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48334         * modules/yield: Likewise.
48335         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48336         * tests/test-sys_select.c (connect_to_socket): Likewise.
48337
48338         fts.c: adjust a new interface to be more generally useful
48339         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48340         (fts_build): Adjust caller.
48341
48342 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48343
48344         * modules/cond-tests: New file.
48345         * tests/test-cond.c: New file.
48346
48347 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48348             Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/cond (Dependencies): Add errno, time.
48351         * lib/glthread/cond.h: Include <time.h>.
48352         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48353         across platforms.
48354
48355 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48356             Bruno Haible  <bruno@clisp.org>
48357
48358         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48359
48360 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48361             Bruno Haible  <bruno@clisp.org>
48362
48363         * modules/tls-tests (Depends-on): Add thread, yield.
48364         (configure.ac): Remove all checks.
48365         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48366         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48367         gl_thread_self): Remove definitions. Include glthread/thread.h and
48368         glthread/yield.h instead.
48369         (test_tls): Pass an additional NULL argument to gl_thread_join.
48370
48371 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48372             Bruno Haible  <bruno@clisp.org>
48373
48374         * modules/lock-tests (Depends-on): Add thread, yield.
48375         (configure.ac): Remove all checks.
48376         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48377         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48378         gl_thread_self): Remove definitions. Include glthread/thread.h and
48379         glthread/yield.h instead.
48380         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48381         additional NULL argument to gl_thread_join.
48382
48383 2008-09-30  Bruno Haible  <bruno@clisp.org>
48384
48385         Fix the Win32 implementation of the 'thread' module.
48386         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48387         pointer type.
48388         (gl_thread_self): Invoke gl_thread_self_func.
48389         (gl_thread_self_func): New declaration.
48390         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48391         (do_init_self_key, init_self_key): New functions.
48392         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48393         Remove some fields.
48394         (running_threads, running_lock): Remove variables.
48395         (get_current_thread_handle): New function.
48396         (gl_thread_self_func, wrapper_func, glthread_create_func,
48397         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48398         simplified.
48399
48400 2008-09-30  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48403         files.
48404
48405 2008-09-30  Jim Meyering  <meyering@redhat.com>
48406
48407         fts.m4: correct the test for statfs.f_type
48408         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48409         when checking for statfs.f_type.
48410
48411 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48412
48413         tests: avoid some compiler warnings
48414         * tests/test-memchr.c (main): Pass NULL indirectly.
48415         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48416
48417 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48418
48419         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48420         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48421         exactly specified dayshifts.
48422         (dayshift): New rule.
48423         (rel): Add dayshift.
48424         (relative_time_table) [tomorrow, yesterday, today, now]:
48425         Use tDAY_SHIFT in place of tDAY_UNIT.
48426         * tests/test-getdate.c: Add tests for now-disallowed countable
48427         dayshifts, e.g., "4 yesterday ago".
48428
48429 2008-09-29  Bruno Haible  <bruno@clisp.org>
48430
48431         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48432         * tests/test-posix_spawn1.in.sh: Renamed from
48433         tests/test-posix_spawn.in.sh.
48434         * tests/test-posix_spawn2.c: New file.
48435         * tests/test-posix_spawn2.in.sh: New file.
48436         * modules/posix_spawnp-tests (Files): Update.
48437         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48438
48439 2008-09-29  Bruno Haible  <bruno@clisp.org>
48440
48441         Propagate effects of putenv/setenv/unsetenv to child processes.
48442         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48443         * lib/pipe.c (create_pipe): Likewise.
48444
48445 2008-09-29  Bruno Haible  <bruno@clisp.org>
48446
48447         Enable use of shell scripts as executables in mingw.
48448         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48449         run the program as a shell script.
48450         * lib/pipe.c (create_pipe): Likewise.
48451         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48452         resulting array.
48453
48454 2008-09-29  Eric Blake  <ebb9@byu.net>
48455
48456         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48457
48458 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48459
48460         * doc/posix-functions/accept.texi: Update mingw problems.
48461         * doc/posix-functions/bind.texi: Update mingw problems.
48462         * doc/posix-functions/close.texi: Update mingw problems.
48463         * doc/posix-functions/connect.texi: Update mingw problems.
48464         * doc/posix-functions/getpeername.texi: Update mingw problems.
48465         * doc/posix-functions/getsockname.texi: Update mingw problems.
48466         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48467         * doc/posix-functions/ioctl.texi: Update mingw problems.
48468         * doc/posix-functions/listen.texi: Update mingw problems.
48469         * doc/posix-functions/recv.texi: Update mingw problems.
48470         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48471         * doc/posix-functions/select.texi: Update mingw problems.
48472         * doc/posix-functions/send.texi: Update mingw problems.
48473         * doc/posix-functions/sendto.texi: Update mingw problems.
48474         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48475         * doc/posix-functions/socket.texi: Update mingw problems.
48476
48477 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48478             Bruno Haible  <bruno@clisp.org>
48479
48480         * lib/sys_select.in.h: Include sys/time.h.
48481         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48482         * modules/sys_select: Depend on sys_time.
48483         * tests/test-sys_select.c: Test that sys/select.h defines struct
48484         timeval fully.
48485
48486 2008-09-29  Bruno Haible  <bruno@clisp.org>
48487
48488         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48489         * lib/sys_select.in.h: Likewise.
48490
48491 2008-09-29  Bruno Haible  <bruno@clisp.org>
48492
48493         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48494
48495 2008-09-29  Bruno Haible  <bruno@clisp.org>
48496
48497         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48498         Set LIBSOCKET instead of augmenting LIBS.
48499         * modules/sockets (Link): New section.
48500         * modules/sockets-tests (test_sockets_LDADD): New variable.
48501         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48502         * modules/poll-tests (test_poll_LDADD): New variable.
48503         * NEWS: Document the change.
48504
48505 2008-09-29  Bruno Haible  <bruno@clisp.org>
48506
48507         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48508         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48509         ARPA_INET_H directly.
48510         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48511
48512 2008-09-28  Bruno Haible  <bruno@clisp.org>
48513
48514         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48515         from gl_HEADER_SYS_SOCKET.
48516         (gl_HEADER_SYS_SOCKET): Invoke it.
48517         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48518
48519 2008-09-28  Bruno Haible  <bruno@clisp.org>
48520
48521         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48522         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48523         Needed on OSF/1 4.0.
48524
48525 2008-09-28  Bruno Haible  <bruno@clisp.org>
48526
48527         Override open more carefully.
48528         * lib/open.c (orig_open): New function.
48529         (rpl_open): Use orig_open instead of open.
48530         * lib/fcntl.in.h: Add special invocation convention.
48531         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48532         (gl_FUNC_OPEN): Invoke it.
48533
48534         Override freopen more carefully.
48535         * lib/freopen.c (orig_freopen): New function.
48536         (rpl_freopen): Use orig_freopen instead of freopen.
48537         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48538         (gl_FUNC_FREOPEN): Invoke it.
48539
48540         Override fopen more carefully.
48541         * lib/fopen.c (orig_fopen): New function.
48542         (rpl_fopen): Use orig_fopen instead of fopen.
48543         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48544         (gl_FUNC_FOPEN): Invoke it.
48545         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48546
48547 2008-09-28  Bruno Haible  <bruno@clisp.org>
48548
48549         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48550         SIGPIPE.
48551
48552 2008-09-28  Bruno Haible  <bruno@clisp.org>
48553
48554         * tests/test-sigaction.c (handler, main): Disable the check whether
48555         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48556         glibc systems with LinuxThreads.
48557
48558 2008-09-28  Bruno Haible  <bruno@clisp.org>
48559
48560         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48561
48562         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48563         with AIX xlc.
48564         * lib/fcntl.in.h (open): Likewise.
48565         Reported by Rainer Tammer <tammer@tammer.net>.
48566
48567 2008-09-28  Bruno Haible  <bruno@clisp.org>
48568
48569         * modules/posix_spawnp-tests: New file.
48570         * tests/test-posix_spawn.c: New file.
48571         * tests/test-posix_spawn.in.sh: New file.
48572
48573         New module 'posix_spawnp'.
48574         * modules/posix_spawnp: New file.
48575         * lib/spawnp.c: New file, from GNU libc with modifications.
48576         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48577
48578         New module 'posix_spawn'.
48579         * modules/posix_spawn: New file.
48580         * lib/spawn.c: New file, from GNU libc with modifications.
48581         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48582
48583         New module 'posix_spawnattr_destroy'.
48584         * modules/posix_spawnattr_destroy: New file.
48585         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48586         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48587         module.
48588
48589         New module 'posix_spawnattr_setsigmask'.
48590         * modules/posix_spawnattr_setsigmask: New file.
48591         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48592         modifications.
48593         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48594         new module.
48595
48596         New module 'posix_spawnattr_getsigmask'.
48597         * modules/posix_spawnattr_getsigmask: New file.
48598         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48599         modifications.
48600         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48601         new module.
48602
48603         New module 'posix_spawnattr_setsigdefault'.
48604         * modules/posix_spawnattr_setsigdefault: New file.
48605         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48606         modifications.
48607         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48608         new module.
48609
48610         New module 'posix_spawnattr_getsigdefault'.
48611         * modules/posix_spawnattr_getsigdefault: New file.
48612         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48613         modifications.
48614         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48615         new module.
48616
48617         New module 'posix_spawnattr_setschedpolicy'.
48618         * modules/posix_spawnattr_setschedpolicy: New file.
48619         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48620         modifications.
48621         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48622         new module.
48623
48624         New module 'posix_spawnattr_getschedpolicy'.
48625         * modules/posix_spawnattr_getschedpolicy: New file.
48626         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48627         modifications.
48628         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48629         new module.
48630
48631         New module 'posix_spawnattr_setschedparam'.
48632         * modules/posix_spawnattr_setschedparam: New file.
48633         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48634         modifications.
48635         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48636         new module.
48637
48638         New module 'posix_spawnattr_getschedparam'.
48639         * modules/posix_spawnattr_getschedparam: New file.
48640         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48641         modifications.
48642         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48643         new module.
48644
48645         New module 'posix_spawnattr_setpgroup'.
48646         * modules/posix_spawnattr_setpgroup: New file.
48647         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48648         modifications.
48649         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48650         module.
48651
48652         New module 'posix_spawnattr_getpgroup'.
48653         * modules/posix_spawnattr_getpgroup: New file.
48654         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48655         modifications.
48656         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48657         module.
48658
48659         New module 'posix_spawnattr_setflags'.
48660         * modules/posix_spawnattr_setflags: New file.
48661         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48662         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48663         module.
48664
48665         New module 'posix_spawnattr_getflags'.
48666         * modules/posix_spawnattr_getflags: New file.
48667         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48668         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48669         module.
48670
48671         New module 'posix_spawnattr_init'.
48672         * modules/posix_spawnattr_init: New file.
48673         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48674         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48675         module.
48676
48677         New module 'posix_spawn_file_actions_destroy'.
48678         * modules/posix_spawn_file_actions_destroy: New file.
48679         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48680         modifications.
48681         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48682         the new module.
48683
48684         New module 'posix_spawn_file_actions_addopen'.
48685         * modules/posix_spawn_file_actions_addopen: New file.
48686         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48687         modifications.
48688         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48689         the new module.
48690
48691         New module 'posix_spawn_file_actions_adddup2'.
48692         * modules/posix_spawn_file_actions_adddup2: New file.
48693         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48694         modifications.
48695         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48696         the new module.
48697
48698         New module 'posix_spawn_file_actions_addclose'.
48699         * modules/posix_spawn_file_actions_addclose: New file.
48700         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48701         modifications.
48702         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48703         the new module.
48704
48705         New module 'posix_spawn_file_actions_init'.
48706         * modules/posix_spawn_file_actions_init: New file.
48707         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48708         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48709         new module.
48710
48711         New module 'posix_spawn-internal'.
48712         * modules/posix_spawn-internal: New file.
48713         * lib/spawn_int.h: New file, from GNU libc with modifications.
48714         * lib/spawni.c: New file, from GNU libc with modifications.
48715         * m4/posix_spawn.m4: New file.
48716
48717         New module 'spawn'.
48718         * modules/spawn: New file.
48719         * lib/spawn.in.h: New file, from GNU libc with modifications.
48720         * m4/spawn_h.m4: New file.
48721         * doc/posix-headers/spawn.texi: Mention the new module.
48722
48723 2008-09-28  Bruno Haible  <bruno@clisp.org>
48724
48725         * modules/sched-tests: New file.
48726         * tests/test-sched.c: New file.
48727
48728         New module 'sched'.
48729         * modules/sched: New file.
48730         * lib/sched.in.h: New file.
48731         * m4/sched_h.m4: New file.
48732         * doc/posix-headers/sched.texi: Mention the new module.
48733
48734 2008-09-27  Eric Blake  <ebb9@byu.net>
48735
48736         Fix previous patch, and tweak references to $0.
48737         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48738         (func_version, func_gnulib_dir): Don't call this program
48739         gnulib-tool.
48740         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48741         with using $0 in function.
48742         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48743         (func_fatal_error): Reuse the name the user invoked us with.
48744
48745 2008-09-27  Bruno Haible  <bruno@clisp.org>
48746
48747         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48748         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48749         (gl_ICONV_H): Not here.
48750         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48751         instead of assigning ICONV_H directly.
48752
48753         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48754         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48755         WCHAR_H directly.
48756
48757 2008-09-27  Bruno Haible  <bruno@clisp.org>
48758
48759         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48760         * modules/arpa_inet (Depends-on): Add link-warning.
48761         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48762         * modules/unistd (Makefile.am): Likewise.
48763
48764 2008-09-26  Bruno Haible  <bruno@clisp.org>
48765
48766         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48767         variables.
48768         (func_version): Essentially copied from gnulib-tool.
48769         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48770         func_readlink): Copied from gnulib-tool.
48771
48772 2008-09-26  Bruno Haible  <bruno@clisp.org>
48773
48774         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48775         invoking git-version-gen.
48776
48777 2008-09-26  Bruno Haible  <bruno@clisp.org>
48778
48779         * posix-modules: Update to directory names changed on 2008-01-19.
48780         Remove commas in output before splitting into words. No more need to
48781         avoid 'ftruncate' since 2007-02-19.
48782
48783 2008-09-26  Bruno Haible  <bruno@clisp.org>
48784
48785         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48786
48787 2008-09-26  Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48790         * modules/fwriteerror (Depends-on): Add errno.
48791
48792 2008-09-26  Bruno Haible  <bruno@clisp.org>
48793
48794         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48795         * tests/test-vc-list-files-cvs.sh: Likewise.
48796
48797 2008-09-26  Bruno Haible  <bruno@clisp.org>
48798
48799         * doc/posix-headers/sys_resource.texi: Reorder items.
48800
48801 2008-09-26  Jim Meyering  <meyering@redhat.com>
48802
48803         fts: tweak inode comparison function
48804         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48805         inode numbers, as documented.
48806
48807         fts: sort dirent entries on inode number before traversing
48808         This avoids a quadratic, seek-related performance penalty when
48809         operating on a directory containing many entries (measurable at 10k;
48810         3.5 hours at 2 million entries with a cold cache) on certain types
48811         of file systems, including ext3 and ext4, but not tmpfs.
48812         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48813         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48814         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48815         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48816         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48817         (fts_build): Set the stat.st_ino member from D_INO.
48818         If it is likely to be useful, sort dirent entries on inode number.
48819
48820         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48821         and the struct statfs.f_type member.
48822         * modules/fts (Depends-on): Add d-ino.
48823
48824 2008-09-26  Bruno Haible  <bruno@clisp.org>
48825
48826         * modules/sigpipe-die (Depends-on): Add sigpipe.
48827
48828         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48829         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48830         and GNULIB_STDIO_H_SIGPIPE are set.
48831         * lib/stdio-write.c: New file.
48832         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48833         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48834         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48835         REPLACE_STDIO_WRITE_FUNCS.
48836         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48837         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48838         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48839         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48840         * modules/stdio (Files): Add lib/stdio-write.c.
48841         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48842         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48843         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48844         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48845         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48846         REPLACE_FPRINTF_POSIX.
48847         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48848         REPLACE_PRINTF_POSIX.
48849         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48850         REPLACE_VFPRINTF_POSIX.
48851         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48852         REPLACE_VPRINTF_POSIX.
48853         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48854         SIGPIPE issue.
48855         * doc/posix-functions/fputc.texi: Likewise.
48856         * doc/posix-functions/fputs.texi: Likewise.
48857         * doc/posix-functions/fwrite.texi: Likewise.
48858         * doc/posix-functions/printf.texi: Likewise.
48859         * doc/posix-functions/putc.texi: Likewise.
48860         * doc/posix-functions/putchar.texi: Likewise.
48861         * doc/posix-functions/puts.texi: Likewise.
48862         * doc/posix-functions/vfprintf.texi: Likewise.
48863         * doc/posix-functions/vprintf.texi: Likewise.
48864
48865         * modules/safe-write (Depends-on): Add write.
48866
48867         * modules/sigpipe-tests: New file.
48868         * tests/test-sigpipe.c: New file.
48869         * tests/test-sigpipe.sh: New file.
48870
48871         * modules/write: New file.
48872         * lib/unistd.in.h: Include <sys/types.h>.
48873         (write): New declaration.
48874         * lib/write.c: New file.
48875         * m4/write.m4: New file.
48876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48877         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48878         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48879         GNULIB_WRITE, REPLACE_WRITE.
48880         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48881         and the SIGPIPE issue.
48882
48883         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48884         (raise): New declaration.
48885         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48886         (ext_signal): New function.
48887         (rpl_raise): New function.
48888         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48889         GNULIB_SIGNAL_H_SIGPIPE.
48890         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48891         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48892
48893         * modules/sigpipe: New file.
48894         * m4/sigpipe.m4: New file.
48895
48896 2008-09-25  Derek Price  <derek@ximbiot.com>
48897             Bruno Haible  <bruno@clisp.org>
48898
48899         * gnulib-tool (func_import): Report all license incompatibilities, not
48900         just the first one.
48901
48902 2008-09-25  Bruno Haible  <bruno@clisp.org>
48903
48904         * gnulib-tool (func_import): When computing the edits, consider not
48905         only the Makefile.ams that exist but also those that will be generated.
48906
48907 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48908
48909         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48910         fixes gnulib-tool --test warning about duplicate dependency.
48911
48912 2008-09-25  Bruno Haible  <bruno@clisp.org>
48913
48914         * gnulib-tool: Don't ask the user to perform edits in the generated
48915         Makefile.ams.
48916         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48917         apply to the Makefile.am being generated.
48918         (func_emit_tests_Makefile_am): Execute edits that apply to the
48919         Makefile.am being generated.
48920         (func_import): Setup list of Makefile.am edits before emitting the
48921         Makefile.ams, not at the end.
48922         (func_create_testdir): Update.
48923         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48924
48925 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48926
48927         * gnulib-tool (func_import): Store the --tests-base option in the
48928         comment in gnulib-cache.m4.
48929
48930 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48931
48932         * NEWS: Document increased portability that sys_select now provides.
48933
48934         * lib/sys_select.in.h: Install select wrapper.
48935         * lib/sys_socket.in.h: Use more descriptive name when there is no
48936         select wrapper.
48937         * lib/winsock-select.c: New.
48938         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48939         Require gl_HEADER_SYS_SOCKET.
48940         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48941         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48942         * tests/test-sys_select.c: Add functional tests.
48943
48944 2008-09-24  Eric Blake  <ebb9@byu.net>
48945
48946         open, fopen: close fd leak in last patch
48947         * lib/open.c (rpl_open): Close fd before returning error.
48948         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48949         * doc/posix-functions/open.texi (open): Document that Irix also
48950         has the bug.
48951         * doc/posix-functions/fopen.texi (fopen): Likewise.
48952         Reported by Paolo Bonzini.
48953
48954 2008-09-24  Bruno Haible  <bruno@clisp.org>
48955
48956         Ensure that a filename ending in a slash cannot be used to access a
48957         non-directory.
48958         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48959         to check whether it's really a directory.
48960         * lib/fopen.c: Include fcntl.h, unistd.h.
48961         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48962         and fdopen().
48963         * modules/fopen (Depends-on): Add unistd.
48964         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48965         * tests/test-fopen.c (main): Likewise.
48966         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48967         * doc/posix-functions/fopen.texi: Likewise.
48968         Reported by Eric Blake.
48969
48970 2008-09-23  Eric Blake  <ebb9@byu.net>
48971
48972         c-stack: avoid compiler optimizations when provoking overflow
48973         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48974         recursion harder to optimize, to ensure a stack overflow occurs.
48975         * tests/test-c-stack.c (recurse): Likewise.
48976         Borrowed from libsigsegv.
48977
48978         c-stack: work around Irix sigaltstack bug
48979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48980         whether sigaltstack uses wrong end of stack_t (copied in part from
48981         libsigsegv).
48982         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48983         Irix bug, without requiring an over-allocation.
48984         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48985         bug.
48986
48987         fopen: document mingw bug on directories
48988         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48989         not allowing a stream visiting a directory, even though reading
48990         from such a stream is not portable.
48991
48992 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48993
48994         * lib/poll.c: Rewrite.
48995         * modules/poll: Depend on alloca.
48996
48997 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48998
48999         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49000         instead define prototypes for a full set of wrappers.  Ensure
49001         that Cygwin does not use the compatibility code, which is only
49002         for MinGW.
49003         * lib/winsock.c: New.
49004         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49005         * modules/sys_socket: Add lib/winsock.c.
49006
49007         * modules/poll-tests: Add errno and perror.
49008         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49009
49010 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49011
49012         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49013
49014 2008-09-23  Bruno Haible  <bruno@clisp.org>
49015
49016         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49017         * doc/glibc-functions/*: Likewise.
49018
49019 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49020
49021         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49022         success.
49023
49024 2008-09-22  Eric Blake  <ebb9@byu.net>
49025             Bruno Haible  <bruno@clisp.org>
49026
49027         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49028         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49029         supply %A but mishandle pseudo-NaN.
49030         Reported by Simon Josefsson.
49031
49032 2008-09-21  Bruno Haible  <bruno@clisp.org>
49033
49034         * tests/test-lock.c (main): Tweak skip message.
49035         * tests/test-tls.c (main): Likewise.
49036
49037 2008-09-21  Bruno Haible  <bruno@clisp.org>
49038
49039         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49040         whether 'struct sigaction' has sa_sigaction here...
49041         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49042         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49043
49044 2008-09-21  Bruno Haible  <bruno@clisp.org>
49045
49046         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49047         section.
49048         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49049         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49050         the new section.
49051         (Support for obsolete systems lacking POSIX:2001): New section.
49052         (String handling <string.h>): Move strdup to the new section.
49053         Suggested by Simon Josefsson and Paolo Bonzini.
49054
49055 2008-09-21  Bruno Haible  <bruno@clisp.org>
49056
49057         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49058         exponents in %e and %g results on 'long double'. Needed for mingw's
49059         improved *printf functions.
49060         * tests/test-vasprintf-posix.c (test_function): Likewise.
49061         * tests/test-snprintf-posix.h (test_function): Likewise.
49062         * tests/test-sprintf-posix.h (test_function): Likewise.
49063         Reported by Eric Blake.
49064
49065 2008-09-21  Bruno Haible  <bruno@clisp.org>
49066
49067         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49068         * tests/test-sprintf-posix.h (test_function): Likewise.
49069
49070 2008-09-21  Bruno Haible  <bruno@clisp.org>
49071
49072         * modules/getpass (Depends-on): Add strdup-posix.
49073
49074         New module 'strdup-posix'.
49075         * modules/strdup-posix: New file.
49076         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49077         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49078         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49079         REPLACE_STRDUP.
49080         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49081         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49083         strdup-posix.
49084
49085         * modules/strdup (Depends-on): Remove malloc-posix.
49086
49087 2008-09-20  Bruno Haible  <bruno@clisp.org>
49088
49089         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49090         Wildenhues.
49091
49092 2008-09-20  Bruno Haible  <bruno@clisp.org>
49093
49094         Ensure that wint_t gets defined on IRIX 5.3.
49095         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49096         * lib/wctype.in.h (wint_t): Likewise.
49097         (__wctype_wint_t): Remove type.
49098         (isw*): Use wint_t instead of __wctype_wint_t.
49099         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49100         * modules/wchar (Files): Add m4/wint_t.m4.
49101         (Makefile.am): Substitute HAVE_WINT_T.
49102         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49103         * tests/test-wctype.c: Check that wint_t is defined.
49104         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49105         * doc/posix-headers/wctype.texi: Likewise.
49106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49107
49108 2008-09-18  Bruno Haible  <bruno@clisp.org>
49109
49110         * gnulib-tool (func_exit): Update comment.
49111
49112 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49113
49114         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49115         assumes strdup exists and does not depend on strdup to return
49116         ENOMEM on out of memory conditions.
49117
49118 2008-09-18  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49121         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49122         digits for the exponent.
49123
49124 2008-09-18  Jim Meyering  <meyering@redhat.com>
49125             Bruno Haible  <bruno@clisp.org>
49126
49127         * lib/vasnprintf.c (decimal_point_char): Define also if
49128         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49129
49130 2008-09-16  Bruno Haible  <bruno@clisp.org>
49131         and Eric Blake  <ebb9@byu.net>
49132
49133         vasnprintf: support Irix 5.3
49134         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49135         that mishandle long double infinity.
49136         Reported by Tom G. Christensen.
49137
49138 2008-09-16  Bruno Haible  <bruno@clisp.org>
49139
49140         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49141         Solaris 9.
49142         * doc/glibc-functions/alphasort.texi: Likewise.
49143         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49144
49145 2008-09-16  Jim Meyering  <meyering@redhat.com>
49146
49147         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49148         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49149         a umask modification leak out of a subshell.  Otherwise, the
49150         opensolaris /bin/sh would be accepted and thus cause unwarranted
49151         failures in the coreutils test suite.
49152
49153 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49154
49155         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49156         to succeed.
49157
49158 2008-09-16  Jim Meyering  <meyering@redhat.com>
49159
49160         avoid spurious test failure when library is built without ACL support
49161         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49162         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49163         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49164         * tests/test-copy-acl.sh: Likewise.
49165
49166 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49167
49168         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49169         based on character occurrence counts.
49170
49171 2008-09-15  Eric Blake  <ebb9@byu.net>
49172
49173         tests: avoid some compiler warnings
49174         * tests/test-memchr.c (main): Pass NULL indirectly.
49175         * tests/test-closein.c (main): Avoid unused variable.
49176
49177 2008-09-15  Bruno Haible  <bruno@clisp.org>
49178
49179         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49180         are missing on OpenBSD 4.0 individually.
49181         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49182
49183 2008-09-15  Bruno Haible  <bruno@clisp.org>
49184
49185         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49186         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49187         * doc/posix-functions/perror.texi: Likewise.
49188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49189         is missing.
49190         Reported by Eric Blake.
49191
49192         * lib/errno.in.h: Use replacement values >= 2000.
49193         Reported by Eric Blake.
49194
49195 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49196
49197         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49198         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49199         limit.
49200         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49201         compareseq was aborted.
49202
49203 2008-09-14  Bruno Haible  <bruno@clisp.org>
49204
49205         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49206         yvec_edit_count.
49207         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49208         (fstrcmp_bounded): Simplify result computation accordingly.
49209
49210 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49211
49212         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49213         (fstrcmp): Define in terms of fstrcmp_bounded.
49214         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49215         lower_bound argument.
49216         Return quickly if the result is certainly < lower_bound.
49217         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49218
49219 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49220
49221         * lib/diffseq.h (EARLY_ABORT): New macro.
49222         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49223         evaluates to true.
49224
49225 2008-09-14  Bruno Haible  <bruno@clisp.org>
49226
49227         * modules/perror-tests: New file.
49228         * tests/test-perror.sh: New file.
49229         * tests/test-perror.c: New file.
49230
49231         New module 'perror'.
49232         * lib/stdio.in.h (perror): New declaration.
49233         * lib/perror.c: New file.
49234         * m4/perror.m4: New file.
49235         * modules/perror: New file.
49236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49237         * doc/posix-functions/perror.texi: Mention the perror module.
49238         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49239         REPLACE_PERROR.
49240         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49241         REPLACE_PERROR.
49242
49243 2008-09-14  Bruno Haible  <bruno@clisp.org>
49244
49245         * modules/stdio (Makefile.am): Reorder to match the order in
49246         lib/stdio.in.h.
49247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49248
49249 2008-09-13  Bruno Haible  <bruno@clisp.org>
49250
49251         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49252
49253 2008-09-13  Bruno Haible  <bruno@clisp.org>
49254
49255         Extend strerror to cover the added errno values.
49256         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49257         (rpl_strerror): Provide error messages for the added errno values and
49258         for the WSA* values.
49259         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49260         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49261         strerror.
49262         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49263         * modules/strerror (Depends-on): Add errno.
49264         * doc/posix-functions/strerror.texi: Document the change.
49265         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49266         and EOVERFLOW.
49267
49268 2008-09-13  Bruno Haible  <bruno@clisp.org>
49269
49270         * modules/EOVERFLOW: Remove file.
49271         * m4/eoverflow.m4: Remove file.
49272         * modules/EOVERFLOW-tests: Remove file.
49273         * tests/test-EOVERFLOW.c: Remove file.
49274         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49275         * modules/ftell (Depends-on): Likewise.
49276         * modules/getdelim (Depends-on): Likewise.
49277         * modules/getugroups (Depends-on): Likewise.
49278         * modules/poll (Depends-on): Likewise.
49279         * modules/snprintf (Depends-on): Likewise.
49280         * modules/sprintf-posix (Depends-on): Likewise.
49281         * modules/vasnprintf (Depends-on): Likewise.
49282         * modules/vasprintf (Depends-on): Likewise.
49283         * modules/vfprintf-posix (Depends-on): Likewise.
49284         * modules/vsnprintf (Depends-on): Likewise.
49285         * modules/vsprintf-posix (Depends-on): Likewise.
49286         * modules/xvasprintf (Depends-on): Likewise.
49287         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49288         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49289         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49290         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49291         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49292         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49293         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49294         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49295         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49296         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49297         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49298         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49299         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49300         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49301         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49302         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49303         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49304         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49305         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49306         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49307         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49308         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49309         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49310         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49311         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49312         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49313         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49314         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49315         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49316         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49317         * MODULES.html.sh: Remove EOVERFLOW.
49318         * NEWS: Mention the change.
49319
49320 2008-09-13  Bruno Haible  <bruno@clisp.org>
49321
49322         * modules/errno-tests: New file.
49323         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49324
49325         * lib/errno.in.h: New file.
49326         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49327         * modules/errno: New file.
49328         * doc/posix-headers/errno.texi: Update documentation.
49329         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49330
49331 2008-09-13  Bruno Haible  <bruno@clisp.org>
49332
49333         * tests/test-poll.c: Use #if for native Windows, rather than testing
49334         __MSVCRT__.
49335
49336 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49337             Bruno Haible  <bruno@clisp.org>
49338
49339         * lib/glob.c: Don't include <pwd.h> on native Windows.
49340         (WINDOWS32): New macro.
49341         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49342
49343 2008-09-13  Bruno Haible  <bruno@clisp.org>
49344
49345         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49346         (ETIMEDOUT): Remove macro.
49347         (glthread_cond_timedwait_multithreaded): New declaration.
49348         (glthread_cond_timedwait): Use it.
49349         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49350         (glthread_cond_timedwait_multithreaded): New function.
49351
49352 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49353
49354         * modules/poll-tests: Do not check for io.h.
49355         * tests/test-poll.c: Check for __MSVCRT__ instead.
49356
49357 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49358
49359         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49360         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49361         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49362
49363 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49364
49365         * modules/poll-tests: New.
49366         * tests/test-poll.c: New.
49367
49368 2008-09-12  Eric Blake  <ebb9@byu.net>
49369
49370         frexp: test for NetBSD failure on -0.0
49371         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49372         not all, bugs from NetBSD 3.0 have been fixed.
49373         * doc/posix-functions/frexp.texi (frexp): Document bug.
49374         Reported by Thomas Klausner.
49375
49376         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49377         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49378         literal -0.0.
49379         Reported by Jonathan C. Patschke <jp@centtech.com>.
49380
49381 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49382
49383         * lib/glthread/cond.h: Use dummy implementation also if
49384         USE_WIN32_THREADS.
49385
49386 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49387
49388         * modules/fnmatch-posix (License): Change to LGPLv2+.
49389         * modules/fnmatch-gnu (License): Likewise.
49390
49391 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49392
49393         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49394
49395 2008-09-11  Jim Meyering  <meyering@redhat.com>
49396
49397         * users.txt: Add gtk-vnc.
49398
49399 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49400
49401         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49402         rotate amounts.
49403
49404         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49405         required for 16-bit and 8-bit rotates.
49406         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49407         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49408         UINT8_MAX instead of hard-coded constants.
49409         Suggested by Paul Eggert.
49410
49411 2008-09-07  Bruno Haible  <bruno@clisp.org>
49412
49413         * tests/test-striconveh.c (main): Check behaviour when converting from
49414         UTF-7.
49415
49416         Make striconveh work better with stateful encodings.
49417         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49418         that iconv does not increment the inptr when returning -1/EINVAL.
49419
49420 2008-09-07  Bruno Haible  <bruno@clisp.org>
49421
49422         * build-aux/config.rpath: Update according to libtool-2.2.6.
49423         * build-aux/config.libpath: Likewise.
49424
49425 2008-09-06  Bruno Haible  <bruno@clisp.org>
49426
49427         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49428         * lib/freadptr.c (freadptr): Likewise.
49429         * lib/freadseek.c (freadptrinc): Likewise.
49430         Reported by Simon Josefsson.
49431
49432 2008-09-06  Bruno Haible  <bruno@clisp.org>
49433
49434         * modules/freadptr (License): Change to LGPLv2+.
49435         * modules/freadseek (License): Likewise.
49436         Suggested by Eric Blake.
49437
49438         * modules/memchr2 (License): Change to LGPLv2+.
49439         Approved by Eric Blake.
49440
49441 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49442             Bruno Haible  <bruno@clisp.org>
49443
49444         Make gnulib-tool work with native 'sed' on AIX.
49445         * gnulib-tool (sed_noop): New variable.
49446         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49447         func_add_or_update, func_create_testdir): Use it to initialize sed
49448         script variables.
49449         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49450
49451 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49452             Bruno Haible  <bruno@clisp.org>
49453
49454         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49455         also works after #include directives.
49456
49457 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49458
49459         getdate.y: reject an out-of-range timezone value
49460         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49461         the range [-24...+24].  When specified with only one or two digits,
49462         * tests/test-getdate.c: Tests for the fix.
49463         * doc/getdate.texi: Document this change.
49464
49465 2008-09-03  Bruno Haible  <bruno@clisp.org>
49466
49467         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49468
49469 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49470
49471         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49472         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49473         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49474         Blake <ebb9@byu.net>.
49475
49476         * tests/test-bitrotate.c: Add more test vectors.
49477
49478 2008-09-02  Eric Blake  <ebb9@byu.net>
49479
49480         vasnprintf-posix: handle large precision via %.*d
49481         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49482         when handling it ourselves.
49483         * tests/test-vasnprintf-posix.c (test_function): Add test.
49484         * tests/test-snprintf-posix.h (test_function): Likewise.
49485         * tests/test-sprintf-posix.h (test_function): Likewise.
49486         * tests/test-vasprintf-posix.c (test_function): Likewise.
49487         Reported by Alain Guibert.
49488
49489 2008-09-01  Eric Blake  <ebb9@byu.net>
49490
49491         c-stack: make configure-time check more robust
49492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49493         successful sigaction call.
49494         Reported by Tom G. Christensen.
49495
49496 2008-09-01  Bruno Haible  <bruno@clisp.org>
49497
49498         New module 'findprog-lgpl'.
49499         * modules/findprog-lgpl: New file.
49500         * lib/findprog-lgpl.c: New file.
49501         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49502         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49503         to decide whether to use strdup or xstrdup, concatenated_filename or
49504         xconcatenated_filename.
49505
49506 2008-09-01  Bruno Haible  <bruno@clisp.org>
49507
49508         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49509         'xconcat-filename' (GPL).
49510         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49511         (License): Change to LGPLv2+.
49512         * modules/xconcat-filename: New file.
49513         * lib/concat-filename.h (concatenated_filename): Change specification.
49514         (xconcatenated_filename): New declaration.
49515         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49516         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49517         memory situations.
49518         * lib/xconcat-filename.c: New file.
49519         * NEWS: Mention the change.
49520         * lib/findprog.c: Include concat-filename.h, not filename.h.
49521         (find_in_path): Use xconcatenated_filename instead of
49522         concatenated_filename.
49523         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49524         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49525         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49526         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49527         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49528         instead of concatenated_filename.
49529         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49530         (execute_java_class): Use xconcatenated_filename instead of
49531         concatenated_filename.
49532         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49533         * modules/javacomp (Depends-on): Likewise.
49534         * modules/javaexec (Depends-on): Likewise.
49535
49536 2008-09-01  Bruno Haible  <bruno@clisp.org>
49537
49538         Split module 'filename' into 'filename' and 'concat-filename'.
49539         * modules/filename: Keep only lib/filename.h.
49540         (License): Change to LGPLv2+.
49541         * modules/concat-filename: New file, extracted from modules/filename.
49542         * lib/filename.h (concatenated_filename): Remove declaration.
49543         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49544         * lib/concat-filename.c: Include concat-filename.h.
49545         * NEWS: Mention the change.
49546
49547 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49548
49549         * lib/bitrotate.h (rotl8, rotr8): Add.
49550
49551         * modules/bitrotate (configure.ac): Need
49552         AC_REQUIRE([AC_C_INLINE]).
49553         (Description): Mention stdint.h.  Reported by Bruno Haible
49554         <bruno@clisp.org>.
49555
49556         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49557         Paolo Bonzini <bonzini@gnu.org>.
49558
49559 2008-08-31  Bruno Haible  <bruno@clisp.org>
49560
49561         Assume Solaris specific bi-arch conventions on Solaris systems.
49562         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49563         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49565         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49566         like acl_libdirstem.
49567         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49568         acl_libdirstem.
49569         * NEWS: Mention the change.
49570         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49571
49572 2008-08-31  Jim Meyering  <meyering@redhat.com>
49573
49574         * lib/strftime.h: Add comments describing the two added arguments.
49575
49576         remove duplicate #include directives
49577         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49578         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49579
49580 2008-08-31  Bruno Haible  <bruno@clisp.org>
49581
49582         New module 'sigpipe-die'.
49583         * modules/sigpipe-die: New file.
49584         * lib/sigpipe-die.h: New file.
49585         * lib/sigpipe-die.c: New file.
49586         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49587
49588 2008-08-31  Bruno Haible  <bruno@clisp.org>
49589
49590         Don't override previously installed signal handlers.
49591         * lib/fatal-signal.c (saved_sigactions): New variable.
49592         (uninstall_handlers): Reset the signal to the saved handler, not
49593         to SIG_DFL (except when ignored).
49594         (install_handlers): Save the previous handlers.
49595
49596 2008-08-30  Bruno Haible  <bruno@clisp.org>
49597
49598         * gnulib-tool (func_reset_sigpipe): New function.
49599         (func_get_automake_snippet, func_modules_transitive_closure,
49600         func_import): Invoke it before a join command that reads from stdin,
49601         to avoid "echo: write error: Broken pipe" error messages on stderr.
49602         Reported by Sam Steingold <sds@gnu.org>.
49603
49604 2008-08-30  Bruno Haible  <bruno@clisp.org>
49605
49606         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49607         Code copied from m4/open.m4.
49608         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49609         access and the filename ends in a slash. Code copied from lib/open.c.
49610         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49611         * tests/test-fopen.c (main): Check against bug with trailing slash.
49612
49613 2008-08-29  Bruno Haible  <bruno@clisp.org>
49614
49615         Avoid some "gcc -pedantic" warnings.
49616         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49617         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49618         * lib/dirent.in.h: Likewise.
49619         * lib/fcntl.in.h: Likewise.
49620         * lib/float.in.h: Likewise.
49621         * lib/iconv.in.h: Likewise.
49622         * lib/inttypes.in.h: Likewise.
49623         * lib/locale.in.h: Likewise.
49624         * lib/math.in.h: Likewise.
49625         * lib/netinet_in.in.h: Likewise.
49626         * lib/search.in.h: Likewise.
49627         * lib/signal.in.h: Likewise.
49628         * lib/stdarg.in.h: Likewise.
49629         * lib/stdint.in.h: Likewise.
49630         * lib/stdio.in.h: Likewise.
49631         * lib/stdlib.in.h: Likewise.
49632         * lib/string.in.h: Likewise.
49633         * lib/strings.in.h: Likewise.
49634         * lib/sys_select.in.h: Likewise.
49635         * lib/sys_socket.in.h: Likewise.
49636         * lib/sys_stat.in.h: Likewise.
49637         * lib/sys_time.in.h: Likewise.
49638         * lib/sysexits.in.h: Likewise.
49639         * lib/time.in.h: Likewise.
49640         * lib/unistd.in.h: Likewise.
49641         * lib/wchar.in.h: Likewise.
49642         * lib/wctype.in.h: Likewise.
49643         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49644         * modules/fchdir (Makefile.am): Likewise.
49645         * modules/fcntl (Makefile.am): Likewise.
49646         * modules/float (Makefile.am): Likewise.
49647         * modules/iconv_open (Makefile.am): Likewise.
49648         * modules/inttypes (Makefile.am): Likewise.
49649         * modules/locale (Makefile.am): Likewise.
49650         * modules/math (Makefile.am): Likewise.
49651         * modules/netinet_in (Makefile.am): Likewise.
49652         * modules/search (Makefile.am): Likewise.
49653         * modules/signal (Makefile.am): Likewise.
49654         * modules/stdarg (Makefile.am): Likewise.
49655         * modules/stdint (Makefile.am): Likewise.
49656         * modules/stdio (Makefile.am): Likewise.
49657         * modules/stdlib (Makefile.am): Likewise.
49658         * modules/string (Makefile.am): Likewise.
49659         * modules/strings (Makefile.am): Likewise.
49660         * modules/sys_select (Makefile.am): Likewise.
49661         * modules/sys_socket (Makefile.am): Likewise.
49662         * modules/sys_stat (Makefile.am): Likewise.
49663         * modules/sys_time (Makefile.am): Likewise.
49664         * modules/sysexits (Makefile.am): Likewise.
49665         * modules/time (Makefile.am): Likewise.
49666         * modules/unistd (Makefile.am): Likewise.
49667         * modules/wchar (Makefile.am): Likewise.
49668         * modules/wctype (Makefile.am): Likewise.
49669         Reported by Reuben Thomas <rrt@sc3d.org>.
49670
49671 2008-08-29  Bruno Haible  <bruno@clisp.org>
49672
49673         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49674         any more.
49675
49676 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49677
49678         * MODULES.html.sh (Misc): Add bitrotate.
49679
49680         * modules/bitrotate: New file.
49681
49682         * lib/bitrotate.h: New file.
49683
49684         * modules/bitrotate-tests: New file.
49685
49686         * tests/test-bitrotate.c: New file.
49687
49688         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49689         on the bitrotate module.
49690
49691         * lib/arctwo.c: Use new bitrotate module.
49692
49693 2008-08-29  Jim Meyering  <meyering@redhat.com>
49694
49695         bootstrap: merge changes from coreutils
49696         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49697         of copied files.  Remove a kludge, now that this is fixed.
49698         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49699         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49700         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49701
49702 2008-08-29  Bruno Haible  <bruno@clisp.org>
49703
49704         * MODULES.html.sh: Remove --cvs-urls option.
49705
49706 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49707
49708         maint.mk: adjust to file name change
49709         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49710
49711 2008-08-28  Jim Meyering  <meyering@redhat.com>
49712
49713         * modules/getndelim2 (License): Relicense to LGPLv2+.
49714         Approved by Richard Stallman for the version of 1995, and by
49715         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49716
49717 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49718
49719         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49720         dummy if one is not available.  Do not touch them if
49721         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49722         (getc_maybe_unlocked): New.
49723         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49724
49725 2008-08-26  Eric Blake  <ebb9@byu.net>
49726
49727         doc/INSTALL: resync from autoconf
49728         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49729         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49730         moving...
49731         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49732         * INSTALL: Regenerate.
49733         * INSTALL.ISO: New file.
49734         * INSTALL.UTF-8: Likewise.
49735
49736 2008-08-26  Jim Meyering  <meyering@redhat.com>
49737
49738         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49739         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49740         these definitions conditional, so that they may be overridden, too.
49741
49742 2008-08-26  Bruno Haible  <bruno@clisp.org>
49743
49744         Generate INSTALL file variants with prettier quotes.
49745         * doc/Makefile (INSTALL_PRELUDE): New macro.
49746         (INSTALL): Use it.
49747         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49748
49749 2008-08-26  Bruno Haible  <bruno@clisp.org>
49750
49751         Run makeinfo in an English locale.
49752         * doc/Makefile (MAKEINFO): New variable.
49753
49754 2008-08-26  Bruno Haible  <bruno@clisp.org>
49755
49756         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49757         Suggested by Eric Blake.
49758
49759 2008-08-25  Bruno Haible  <bruno@clisp.org>
49760
49761         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49762
49763 2008-08-25  Eric Blake  <ebb9@byu.net>
49764
49765         c-stack: test that stack overflow can be caught
49766         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49767         that platform allows handling stack overflow; at least OS/2 EMX
49768         has sigaltstack, but crashes before transferring control to
49769         handler on stack overflow.
49770         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49771         check for HAVE_STACK_OVERFLOW_HANDLING.
49772         Reported by Elbert Pol.
49773
49774 2008-08-25  Bruno Haible  <bruno@clisp.org>
49775
49776         * doc/posix-functions/strftime.texi: Fix description of strftime
49777         module.
49778
49779 2008-08-24  Bruno Haible  <bruno@clisp.org>
49780
49781         * tests/uniwidth/test-uc_width2.c: New file.
49782         * tests/uniwidth/test-uc_width2.sh: New file.
49783         * modules/uniwidth/width-tests (Files): Add the new files.
49784         (TESTS): Add uniwidth/test-uc_width2.sh.
49785         (TESTS_ENVIRONMENT): New variable.
49786         (check_PROGRAMS): Add test-uc_width2.
49787         (test_uc_width2_SOURCES): New variable.
49788
49789         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49790         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49791         not 0x00AB.
49792         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49793
49794 2008-08-22  Eric Blake  <ebb9@byu.net>
49795
49796         test-lock, test-tls: mention why a test is skipped
49797         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49798         skipped.
49799         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49800
49801         count-one-bits: relax license
49802         * modules/count-one-bits (License): Relicense to LGPLv2+.
49803         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49804
49805 2008-08-22  Andreas Schwab  <schwab@suse.de>
49806
49807         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49808         Remove spurious space in assignment.
49809
49810 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49811
49812         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49813         Paul Eggert <eggert@CS.UCLA.EDU>.
49814
49815 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49816
49817         * modules/gettext: Add m4/threadlib.m4.
49818
49819 2008-08-19  Eric Blake  <ebb9@byu.net>
49820
49821         test-c-stack: fix compilation failure on FreeBSD 5.0
49822         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49823         headers before <sys/resource.h>.
49824         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49825         the bug.
49826         Reported by Nelson H. F. Beebe.
49827
49828         strverscmp: migrate from "strverscmp.h" to <string.h>
49829         * modules/string (Makefile.am): Add new hooks.
49830         * modules/strverscmp (Files): Remove strverscmp.h.
49831         (Depends-on): Add string.
49832         (configure.ac): Add indicator.
49833         (Include): Mention new header.
49834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49835         defaults.
49836         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49837         results.
49838         * lib/strverscmp.h: Delete.
49839         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49840         * tests/test-strverscmp.c (includes): Adjust client.
49841         * lib/check-version.c (includes): Likewise.
49842         * NEWS: Document the change.
49843
49844         strverscmp: add unit test
49845         * modules/strverscmp-tests: New file.
49846         * tests/test-strverscmp.c: Likewise.
49847
49848 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49849
49850         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49851         regarding Windows crypto stuff, from Mono.
49852
49853 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49854
49855         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49856         if present, for intel RND.  Return error on failures.
49857
49858 2008-08-18  Ben Pfaff  <blp@gnu.org>
49859
49860         gitlog-to-changelog: give better diagnostic for failed pipe-open
49861         * build-aux/gitlog-to-changelog: Improve error message: suggest
49862         that the version of Git may be too old.
49863
49864 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49865
49866         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49867         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49868
49869 2008-08-18  Bruno Haible  <bruno@clisp.org>
49870
49871         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49872         pthread_in_use().
49873
49874 2008-08-18  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/glthread/threadlib.c: Include <pthread.h>.
49877
49878 2008-08-18  Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49881         glthread_recursive_lock_* macros.
49882         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49883         Fix syntax error.
49884
49885 2008-08-18  Bruno Haible  <bruno@clisp.org>
49886
49887         * lib/glthread/thread.c: Avoid forcing a context switch right after
49888         thread creation.
49889
49890 2008-08-17  Bruno Haible  <bruno@clisp.org>
49891
49892         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49893         * lib/glthread/thread.h: Provide Win32 specific implementation.
49894         * modules/thread (Files): Add lib/glthread/thread.c.
49895         (Depends-on): Add lock.
49896         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49897
49898 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49899
49900         New module 'yield'.
49901         * modules/yield: New file.
49902         * lib/glthread/yield.h: New file.
49903         * m4/yield.m4: New file.
49904         * MODULES.html.sh (Multithreading): Add yield.
49905
49906 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49907
49908         New module 'thread'.
49909         * modules/thread: New file.
49910         * lib/glthread/thread.h: New file.
49911         * m4/thread.m4: New file.
49912         * MODULES.html.sh (Multithreading): Add thread.
49913
49914 2008-08-17  Bruno Haible  <bruno@clisp.org>
49915
49916         * lib/glthread/lock.h: Include <stdlib.h> always.
49917         * lib/glthread/tls.h: Likewise.
49918         * lib/glthread/cond.h: Likewise.
49919
49920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49921
49922         New module 'cond'.
49923         * modules/cond: New file.
49924         * lib/glthread/cond.h: New file.
49925         * lib/glthread/cond.c: New file.
49926         * m4/cond.m4: New file.
49927         * MODULES.html.sh (Multithreading): Add cond.
49928
49929 2008-08-16  Eric Blake  <ebb9@byu.net>
49930
49931         c-stack: fix regression on Irix 5.3 from 2008-06-21
49932         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49933         sa_sigaction...
49934         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49935         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49936         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49937         * modules/signal (Makefile.am): Use the value.
49938         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49939         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49940         * doc/posix-headers/signal.texi (signal.h): Document this
49941         portability issue.
49942         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49943         Reported by Tom G. Christensen.
49944
49945 2008-08-17  Bruno Haible  <bruno@clisp.org>
49946
49947         New module 'threadlib'.
49948         * modules/threadlib: New file.
49949         * lib/glthread/threadlib.c: New file, extracted from
49950         lib/glthread/lock.c.
49951         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49952         functions.
49953         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49954         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49955         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49956         macros.
49957         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49958         (gl_DISABLE_THREADS): Remove macro.
49959         * modules/lock (Files): Remove build-aux/config.rpath.
49960         (Depends-on): Remove havelib. Add threadlib.
49961         (configure.ac-early): Remove section.
49962         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49963         * modules/tls (Depends-on): Remove lock. Add threadlib.
49964         (Link): New section, copied from threadlib.
49965         * MODULES.html.sh (Multithreading): Add threadlib.
49966
49967 2008-08-14  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49970         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49971         glthread_rwlock_unlock, glthread_rwlock_destroy,
49972         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49973         glthread_recursive_lock_destroy): Define as macros always.
49974         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49975         glthread_lock_lock.
49976         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49977         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49978         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49979         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49980         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49981         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49982         (glthread_recursive_lock_lock_func): Renamed from
49983         glthread_recursive_lock_lock.
49984         (glthread_recursive_lock_unlock_func): Renamed from
49985         glthread_recursive_lock_unlock.
49986         (glthread_recursive_lock_destroy_func): Renamed from
49987         glthread_recursive_lock_destroy.
49988
49989 2008-08-14  Bruno Haible  <bruno@clisp.org>
49990
49991         * lib/glthread/lock.h: Renamed from lib/lock.h.
49992         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49993         * lib/glthread/tls.h: Renamed from lib/tls.h.
49994         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49995         * lib/fstrcmp.c: Update includes.
49996         * lib/strsignal.c: Update includes.
49997         * modules/lock (Files, Makefile.am): Update.
49998         (Include): Change to "glthread/lock.h".
49999         * modules/tls (Files, Makefile.am): Update.
50000         (Include): Change to "glthread/tls.h".
50001         * tests/test-lock.c: Update includes.
50002         * tests/test-tls.c: Update includes.
50003         * NEWS: Mention the renamed header files.
50004
50005 2008-08-11  Jim Meyering  <meyering@redhat.com>
50006
50007         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50008
50009 2008-08-11  Eric Blake  <ebb9@byu.net>
50010
50011         test-c-stack: avoid C99-ism
50012         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50013         before statement.
50014         Reported by Alain Guibert.
50015
50016 2008-08-10  Jim Meyering  <meyering@redhat.com>
50017
50018         ensure that return value of uinttostr et al are not ignored
50019         * lib/inttostr.h (__GNUC_PREREQ): Define.
50020         (__attribute_warn_unused_result__): Define.
50021         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50022
50023 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50024
50025         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50026         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50027
50028 2008-08-07  Jim Meyering  <meyering@redhat.com>
50029
50030         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50031
50032         * modules/mkstemp (License): Relicense under LGPLv2+.
50033         * modules/tempname (License): Likewise.
50034
50035 2008-08-06  Bruno Haible  <bruno@clisp.org>
50036
50037         * lib/poll.c (poll): Further micro-optimization.
50038
50039 2008-08-06  Jim Meyering  <meyering@redhat.com>
50040
50041         inet_pton.c: use locale-independent tolower
50042         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50043         (inet_pton6): Use c_tolower rather than tolower.
50044         * modules/inet_pton (Depends-on): Add c-ctype.
50045
50046 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50047
50048         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50049         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50050
50051 2008-08-06  Jim Meyering  <meyering@redhat.com>
50052
50053         * modules/inet_pton (License): Relicense under LGPLv2+.
50054
50055 2008-08-03  Bruno Haible  <bruno@clisp.org>
50056
50057         Additional non-aborting API for lock and tls.
50058         * lib/lock.h: Include <errno.h>.
50059         (glthread_lock_init): New macro/function.
50060         (gl_lock_init): Define as wrapper around glthread_lock_init.
50061         (glthread_lock_lock): New macro/function.
50062         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50063         (glthread_lock_unlock): New macro/function.
50064         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50065         (glthread_lock_destroy): New macro/function.
50066         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50067         (glthread_rwlock_init): New macro/function.
50068         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50069         (glthread_rwlock_rdlock): New macro/function.
50070         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50071         (glthread_rwlock_wrlock): New macro/function.
50072         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50073         (glthread_rwlock_unlock): New macro/function.
50074         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50075         (glthread_rwlock_destroy): New macro/function.
50076         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50077         (glthread_recursive_lock_init): New macro/function.
50078         (gl_recursive_lock_init): Define as wrapper around
50079         glthread_recursive_lock_init.
50080         (glthread_recursive_lock_lock): New macro/function.
50081         (gl_recursive_lock_lock): Define as wrapper around
50082         glthread_recursive_lock_lock.
50083         (glthread_recursive_lock_unlock): New macro/function.
50084         (gl_recursive_lock_unlock): Define as wrapper around
50085         glthread_recursive_lock_unlock.
50086         (glthread_recursive_lock_destroy): New macro/function.
50087         (gl_recursive_lock_destroy): Define as wrapper around
50088         glthread_recursive_lock_destroy.
50089         (glthread_once): New macro/function.
50090         (gl_once): Define as wrapper around glthread_once.
50091         Update function declarations.
50092         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50093         glthread_rwlock_init. Return error code.
50094         (glthread_rwlock_rdlock_multithreaded): Renamed from
50095         glthread_rwlock_rdlock. Return error code.
50096         (glthread_rwlock_wrlock_multithreaded): Renamed from
50097         glthread_rwlock_wrlock. Return error code.
50098         (glthread_rwlock_unlock_multithreaded): Renamed from
50099         glthread_rwlock_unlock. Return error code.
50100         (glthread_rwlock_destroy_multithreaded): Renamed from
50101         glthread_rwlock_destroy. Return error code.
50102         (glthread_recursive_lock_init_multithreaded): Renamed from
50103         glthread_recursive_lock_init. Return error code.
50104         (glthread_recursive_lock_lock_multithreaded): Renamed from
50105         glthread_recursive_lock_lock. Return error code.
50106         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50107         glthread_recursive_lock_unlock. Return error code.
50108         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50109         glthread_recursive_lock_destroy. Return error code.
50110         (glthread_once_call): Make static.
50111         (glthread_once_multithreaded): Renamed from glthread_once.
50112         * lib/tls.h: Include <errno.h>.
50113         (glthread_tls_key_init): New macro/function.
50114         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50115         (glthread_tls_set): New macro/function.
50116         (gl_tls_set): Define as wrapper around glthread_tls_set.
50117         (glthread_tls_key_destroy): New macro/function.
50118         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50119         Update function declarations.
50120         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50121         glthread_tls_get.
50122         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50123
50124 2008-08-04  Eric Blake  <ebb9@byu.net>
50125
50126         gnumakefile: use space, not TAB, outside of targets
50127         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50128
50129 2008-08-02  Jim Meyering  <meyering@redhat.com>
50130
50131         getdate.y: avoid locale-dependent date parsing failure
50132         In Turkish locales, getdate would fail to recognize keywords
50133         containing a lowercase "i".  The solution is not to rely on
50134         locale-sensitive case-conversion.
50135         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50136         (lookup_word): Use c_toupper in place of toupper.
50137         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50138         Reported by Vefa Bicakci <bicave@superonline.com> in
50139         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50140         * modules/getdate (Depends-on): Add c-ctype.
50141
50142 2008-08-02  Bruno Haible  <bruno@clisp.org>
50143
50144         * gnulib-tool (func_import): When updating or creating a .gitignore
50145         file, prepend each added line with a slash, and ignore leading slashes
50146         from the existing lines.
50147         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50148
50149 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50150
50151         Portability fix for GNU make 3.79.1.
50152         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50153         versions do not understand.
50154
50155 2008-08-01  Bruno Haible  <bruno@clisp.org>
50156
50157         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50158         * tests/test-isnanf.h (zero): New variable.
50159         (main): Avoid literal -0.0f.
50160         * tests/test-isnand.h (zero): New variable.
50161         (main): Avoid literal -0.0.
50162         * tests/test-isnanl.h (zero): New variable.
50163         (main): Avoid literal -0.0L.
50164         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50165         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50166         -0.0, -0.0L.
50167         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50168         (test_signbitd): Avoid literal -0.0.
50169         (test_signbitl): Avoid literal -0.0L.
50170         * tests/test-ceilf1.c (zero): New variable.
50171         (main): Avoid literal -0.0f.
50172         * tests/test-ceill.c (zero): New variable.
50173         (main): Avoid literal -0.0L.
50174         * tests/test-floorf1.c (zero): New variable.
50175         (main): Avoid literal -0.0f.
50176         * tests/test-floorl.c (zero): New variable.
50177         (main): Avoid literal -0.0L.
50178         * tests/test-roundf1.c (zero): New variable.
50179         (main): Avoid literal -0.0f.
50180         * tests/test-round1.c (zero): New variable.
50181         (main): Avoid literal -0.0.
50182         * tests/test-roundl.c (zero): New variable.
50183         (main): Avoid literal -0.0L.
50184         * tests/test-truncf1.c (zero): New variable.
50185         (main): Avoid literal -0.0f.
50186         * tests/test-trunc1.c (zero): New variable.
50187         (main): Avoid literal -0.0.
50188         * tests/test-truncl.c (zero): New variable.
50189         (main): Avoid literal -0.0L.
50190         * tests/test-frexp.c (zero): New variable.
50191         (main): Avoid literal -0.0.
50192         * tests/test-frexpl.c (zero): New variable.
50193         (main): Avoid literal -0.0L.
50194         * tests/test-ldexpl.c (zero): New variable.
50195         (main): Avoid literal -0.0L.
50196         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50197         (zerod, zerol): New variables.
50198         (test_function): Avoid literals -0.0, -0.0L.
50199         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50200         (zerod, zerol): New variables.
50201         (test_function): Avoid literals -0.0, -0.0L.
50202         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50203         (zerod, zerol): New variables.
50204         (test_function): Avoid literals -0.0, -0.0L.
50205         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50206         (zerod, zerol): New variables.
50207         (test_function): Avoid literals -0.0, -0.0L.
50208         * tests/test-strtod.c (zero): New variable.
50209         (main): Avoid literal -0.0.
50210         Reported by Jonathan C. Patschke <jp@centtech.com>.
50211
50212 2008-07-31  Jim Meyering  <meyering@redhat.com>
50213
50214         sha256.h: correct definition of SHA224_DIGEST_SIZE
50215         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50216         Reported by Paulie Pena IV <paulie4@gmail.com>.
50217         Define as 224 / 8, rather than as a literal.
50218         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50219         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50220         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50221
50222 2008-07-31  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50225         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50226         Reported by Jonathan Patschke <jp@centtech.com>.
50227
50228 2008-07-31  Bruno Haible  <bruno@clisp.org>
50229
50230         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50231         Reported by Paolo Bonzini <bonzini@gnu.org>.
50232
50233 2008-07-30  Eric Blake  <ebb9@byu.net>
50234
50235         test-strtod: allow compilation without -lm
50236         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50237         Reported by Dennis Clarke <blastwave@gmail.com>.
50238
50239 2008-07-28  Jim Meyering  <meyering@redhat.com>
50240
50241         bootstrap: work also when there are no .po files in po/
50242         * build-aux/bootstrap (update_po_files): Complete the change
50243         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50244
50245 2008-07-27  Jim Meyering  <meyering@redhat.com>
50246
50247         * users.txt: Add zile.
50248
50249 2008-07-26  Ben Pfaff  <blp@gnu.org>
50250
50251         Add missing dependencies on new m4/exponent[fdl].m4 files.
50252         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50253         * modules/isnand-nolibm: Add m4/exponentd.m4.
50254         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50255         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50256         m4/isnan[fdl].m4, because the macros actually used moved.
50257         Reported by Jim Meyering.
50258
50259 2008-07-14  Ben Pfaff  <blp@gnu.org>
50260
50261         Add isinf module.
50262         * lib/isinf.c: New file.
50263         * lib/math.in.h: Define isinf macro if we have decided to replace
50264         it.
50265         * m4/isinf.m4: New file.
50266         * m4/math_h.m4: Initialize and substitute variables for isinf
50267         module.
50268         * modules/isinf: New file.
50269         * modules/isinf-tests: New file.
50270         * modules/math: Add substitutions for new module.
50271         * tests/test-isinf.c: New file.
50272         * doc/posix-functions/isinf.texi: Mention new module.
50273         * MODULES.html.sh: Mention new module.
50274
50275 2008-07-14  Ben Pfaff  <blp@gnu.org>
50276
50277         Factor out some macros for use by additional modules.
50278         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50279         exponentf.m4.
50280         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50281         exponentd.m4.
50282         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50283         file exponentl.m4.
50284         * m4/exponentf.m4: New file.
50285         * m4/exponentd.m4: New file.
50286         * m4/exponentl.m4: New file.
50287         * modules/isnanf: Use new file m4/exponentf.m4.
50288         * modules/isnand: Use new file m4/exponentd.m4.
50289         * modules/isnanl: Use new file m4/exponentl.m4.
50290
50291 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50292
50293         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50294         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50295         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50296         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50297
50298         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50299         readlink on platforms without PATH_MAX.
50300
50301 2008-07-21  Eric Blake  <ebb9@byu.net>
50302
50303         Warn, not fail, on stale version.
50304         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50305
50306         Don't allow installation with stale devel version number.
50307         * top/GNUmakefile (_is-install-target): New macro.
50308         (_curr-ver): Forbid installation with stale version number.
50309
50310 2008-07-20  Bruno Haible  <bruno@clisp.org>
50311
50312         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50313         TESTS_ENVIRONMENT.
50314         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50315
50316 2008-07-20  Bruno Haible  <bruno@clisp.org>
50317
50318         * lib/c-stack.h (c_stack_action): Add documentation.
50319         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50320
50321 2008-07-20  Bruno Haible  <bruno@clisp.org>
50322
50323         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50324         * modules/readlink (License): Likewise.
50325
50326 2008-07-17  Eric Blake  <ebb9@byu.net>
50327
50328         * modules/c-stack (Link): Fix typo.
50329
50330         Make c-stack use libsigsegv, when available.
50331         * modules/c-stack (Depends-on): Add libsigsegv.
50332         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50333         needed.
50334         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50335         (segv_handler, overflow_handler, c_stack_action)
50336         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50337         implementation when libsigsegv is available, but only when using
50338         the library is necessary.
50339         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50340         comment, explaining why XSI check fails on Linux.
50341         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50342         * tests/test-c-stack2.sh: Tweak skip message.
50343         * NEWS: Document new link-time requirements.
50344
50345 2008-07-16  Eric Blake  <ebb9@byu.net>
50346
50347         c-stack: Expose false positives when not using libsigsegv.
50348         * modules/c-stack-tests (Files): Expand test.
50349         * tests/test-c-stack.c (main): Add means to conditionally trigger
50350         non-overflow SIGSEGV.
50351         * tests/test-c-stack2.sh: New file.
50352
50353 2008-07-14  Bruno Haible  <bruno@clisp.org>
50354
50355         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50356         Reported by Eric Blake.
50357
50358 2008-07-14  Sam Steingold  <sds@gnu.org>
50359             Bruno Haible  <bruno@clisp.org>
50360
50361         New module libsigsegv.
50362         * modules/libsigsegv: New file.
50363         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50364         modifications.
50365         * MODULES.html.sh (Signal handling): New section.
50366
50367 2008-07-14  Bruno Haible  <bruno@clisp.org>
50368
50369         * modules/unictype/ctype-* (Description): Add the word "function".
50370         Improves the resulting doc in MODULES.html.
50371
50372 2008-07-12  Ben Pfaff  <blp@gnu.org>
50373
50374         Add longlong module.
50375         * modules/longlong: New file.
50376
50377 2008-07-12  Bruno Haible  <bruno@clisp.org>
50378
50379         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50380         to empty.
50381
50382 2008-07-10  Ben Pfaff  <blp@gnu.org>
50383
50384         Add isnan module.
50385         * doc/posix-functions/isnan.texi: Mention new module.
50386         * lib/math.in.h: Define isnan macro if we have decided to replace
50387         it.
50388         * m4/isnan.m4: New file.
50389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50390         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50391         also.
50392         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50393         redundancy.
50394         * m4/math_h.m4: Initialize and substitute variables for isnan
50395         module.
50396         * modules/isnan: New file.
50397         * modules/isnan-tests: New file.
50398         * modules/math: Add substitutions for new module.
50399         * tests/test-isnan.c: New file.
50400         * MODULES.html.sh: Mention new module.
50401
50402 2008-07-10  Ben Pfaff  <blp@gnu.org>
50403
50404         Add isnanf module.
50405         * lib/isnanf.m4: New file.
50406         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50407         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50408         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50409         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50410         * modules/isnanf: New file.
50411         * modules/isnanf-tests: New file.
50412         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50413         files.
50414         * tests/test-isnanf-nolibm.c: factored most of its contents into
50415         new file tests/test-isnanf.h.
50416         * tests/test-isnanf.h: New file.
50417         * tests/test-isnanf.c: New file.
50418         * MODULES.html.sh: Mention new module.
50419         * doc/glibc-functions/isnanf.texi: Mention new module.
50420
50421 2008-07-10  Ben Pfaff  <blp@gnu.org>
50422
50423         Add isnand module.
50424         * lib/isnand.h: New file.
50425         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50426         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50427         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50428         functionality also.
50429         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50430         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50431         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50432         * modules/isnand: New file.
50433         * modules/isnand-tests: New file.
50434         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50435         files.
50436         * tests/test-isnand-nolibm.c: factored most of its contents into
50437         new file tests/test-isnand.h.
50438         * tests/test-isnand.h: New file.
50439         * tests/test-isnand.c: New file.
50440         * MODULES.html.sh: Mention new module.
50441
50442 2008-07-10  Ben Pfaff  <blp@gnu.org>
50443
50444         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50445         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50446         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50447         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50448         * modules/isnanf-nolibm: Update references to renamed files.
50449         * modules/isnand-nolibm: Likewise.
50450         * modules/isnanf-nolibm-tests: Likewise.
50451         * modules/isnand-nolibm-tests: Likewise.
50452         * lib/frexp.c: Likewise.
50453         * lib/isfinite.c: Likewise.
50454         * lib/signbitd.c: Likewise.
50455         * lib/signbitf.c: Likewise.
50456         * lib/vasnprintf.c: Likewise.
50457         * tests/test-ceilf1.c: Likewise.
50458         * tests/test-ceilf2.c: Likewise.
50459         * tests/test-floorf1.c: Likewise.
50460         * tests/test-floorf2.c: Likewise.
50461         * tests/test-frexp.c: Likewise.
50462         * tests/test-round1.c: Likewise.
50463         * tests/test-round2.c: Likewise.
50464         * tests/test-roundf1.c: Likewise.
50465         * tests/test-strtod.c: Likewise.
50466         * tests/test-trunc1.c: Likewise.
50467         * tests/test-trunc2.c: Likewise.
50468         * tests/test-truncf1.c: Likewise.
50469         * tests/test-truncf2.c: Likewise.
50470         * NEWS: Mention the renamed header files.
50471
50472 2008-07-11  Jim Meyering  <meyering@redhat.com>
50473
50474         vc-list-files: make the last-resort awk code more portable
50475         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50476         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50477         does not support it.
50478
50479 2008-07-10  Eric Blake  <ebb9@byu.net>
50480
50481         Work with tar's bootstrap.
50482         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50483         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50484         an m4 comment.
50485
50486 2008-07-09  Jim Meyering  <meyering@redhat.com>
50487
50488         posix-shell.m4: fix typo that made this test malfunction
50489         * m4/posix-shell.m4: Remove capitalization in variable name.
50490
50491 2008-07-08  Bruno Haible  <bruno@clisp.org>
50492
50493         * m4/onceonly.m4: Update comments.
50494         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50495
50496 2008-07-04  Jim Meyering  <meyering@redhat.com>
50497
50498         * users.txt: Add vc-dwim.
50499         (bison, coreutils): Use the gitweb URL.
50500
50501 2008-07-03  Jim Meyering  <meyering@redhat.com>
50502
50503         * users.txt: Add libffcall.  From Sam Steingold.
50504
50505 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50506
50507         getdate.y: do not ignore TZ with relative day, month or year offset
50508         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50509         relative-date-handling, since otherwise, the latter would clobber the
50510         sole output (an updated Start value) of the tz-handling block.
50511         * tests/test-getdate.c: Tests for the fix
50512
50513 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50514
50515         Recognize 'foo_LIBRARIES += libgnu.a'.
50516         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50517         makefile snippet has already specified an installation location,
50518         also using '+='.
50519
50520 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50521
50522         getdate.y: factor out common actions
50523         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50524         Use them in place of open-coded actions.
50525
50526 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50527
50528         Add self-test for getdate module.
50529         * modules/getdate-tests: New file.
50530         * tests/test-getdate.c: New file.
50531
50532 2008-06-29  Bruno Haible  <bruno@clisp.org>
50533
50534         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50535         .gitignore.
50536         Reported by Sylvain Beucler <beuc@beuc.net>.
50537
50538 2008-06-29  Bruno Haible  <bruno@clisp.org>
50539
50540         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50541         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50542
50543 2008-06-29  Bruno Haible  <bruno@clisp.org>
50544
50545         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50546         EXTRA_DIST.
50547         Reported by Sylvain Beucler <beuc@beuc.net>.
50548
50549 2008-06-26  Jim Meyering  <meyering@redhat.com>
50550
50551         make several modules depend on the "open" module
50552         This provides slightly increased consistency when opening-for-write
50553         the name of a non-directory spelled with a trailing slash.
50554         * modules/chdir-safer: Likewise.
50555         * modules/chown: Likewise.
50556         * modules/clean-temp: Likewise.
50557         * modules/copy-file: Likewise.
50558         * modules/fchdir: Likewise.
50559         * modules/fcntl-safer: Likewise.
50560         * modules/pipe: Likewise.
50561         * modules/utime: Likewise.
50562         Prompted by Eric Blake and Bruno Haible.
50563
50564 2008-06-24  Andreas Schwab  <schwab@suse.de>
50565
50566         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50567         literals can be used as initializers for global variables.
50568
50569 2008-06-23  Eric Blake  <ebb9@byu.net>
50570
50571         Make gnulib-cache.m4 easier to diff.
50572         * gnulib-tool (func_import): Allow newlines when reading cached
50573         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50574
50575 2008-06-23  Bruno Haible  <bruno@clisp.org>
50576
50577         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50578         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50579         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50580         m4/signalblocking.m4.
50581         (gl_PREREQ_SIGACTION): Don't invoke it.
50582         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50583         gl_PREREQ_SIG_HANDLER_H.
50584         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50585         Don't check for sigaction here.
50586
50587 2008-06-23  Bruno Haible  <bruno@clisp.org>
50588
50589         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50590         (install_handlers): Don't set the SA_RESETHAND flag.
50591
50592 2008-06-23  Bruno Haible  <bruno@clisp.org>
50593
50594         * m4/sigaction.m4: Comment fixes.
50595         * lib/signal.in.h: Likewise.
50596
50597 2008-06-23  Eric Blake  <ebb9@byu.net>
50598
50599         Fix typo.
50600         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50601
50602         Avoid SA_ namespace.
50603         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50604         Reported by Ralf Wildenhues.
50605
50606         Avoid test failure due to SA_RESTORER.
50607         * tests/test-sigaction.c (SA_MASK): New macro.
50608         (main): Avoid failing due to extension flags being set.
50609         Reported by Jim Meyering.
50610
50611         Revert use of sig-handler.h in sigprocmask.c.
50612         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50613         it requires the existence of struct sigaction.
50614         * lib/sigprocmask.c (handler_t): Restore typedef.
50615         (rpl_signal, old_handlers): Use local type.
50616
50617 2008-06-22  Bruno Haible  <bruno@clisp.org>
50618
50619         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50620         conditionally.
50621         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50622
50623 2008-06-22  Bruno Haible  <bruno@clisp.org>
50624
50625         * doc/posix-functions/siginterrupt.texi: Move note.
50626
50627         * lib/signal.in.h (SA_RESTART): New macro.
50628         * lib/sigaction.c: Update comment.
50629
50630         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50631
50632         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50633         (gl_PREREQ_SIGPROCMASK): Invoke it.
50634         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50635
50636         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50637
50638         * lib/sigprocmask.c: Update a comment.
50639
50640 2008-06-21  Eric Blake  <ebb9@byu.net>
50641
50642         Use sigaction module rather than signal().
50643         * modules/c-stack (Depends-on): Add sigaction.
50644         * modules/fatal-signal (Depends-on): Likewise.
50645         * modules/nanosleep (Depends-on): Likewise.
50646         * modules/sigprocmask (Files): Add sig-handler.h.
50647         * modules/sigaction (Files): Likewise.
50648         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50649         Eggert.
50650         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50651         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50652         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50653         (init_fatal_signals): Likewise.
50654         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50655         (siginterrupt): Delete fallback.
50656         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50657         instead.
50658         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50659         siginterrupt.
50660
50661         New module sigaction, for mingw.
50662         * modules/sigaction: New module...
50663         * modules/sigaction-tests: ...and its test.
50664         * m4/sigaction.m4: New file.
50665         * lib/sigaction.c: Likewise.
50666         * tests/test-sigaction.c: Likewise.
50667         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50668         * modules/signal (Makefile.am): Likewise.
50669         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50670         needed.
50671         * doc/posix-headers/signal.texi (signal.h): Mention provided
50672         types.
50673         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50674         that sigaction is preferable.
50675         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50676         module.
50677         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50678         sigaction.
50679
50680         Improve robustness of sigprocmask by overriding signal.
50681         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50682         is in use.
50683         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50684         (SIGKILL, SIGSTOP): Provide fallbacks.
50685         (rpl_signal): Implement.
50686         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50687         signal can be called inside handlers.
50688
50689         Fix nanosleep module on mingw.
50690         * modules/nanosleep (Depends-on): Add sys_select.
50691         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50692
50693         Fix licensing of sigprocmask.
50694         * modules/raise (License): Relicense as LGPL.
50695
50696 2008-06-21  Bruno Haible  <bruno@clisp.org>
50697
50698         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50699         result if it contains question marks.
50700         Reported by Michael Geng <linux@michaelgeng.de>.
50701
50702 2008-06-19  Bruno Haible  <bruno@clisp.org>
50703
50704         Fix CVS-ism.
50705         * doc/gnulib.texi: Include updated-stamp.texi.
50706         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50707         (updated-stamp.texi): New rule.
50708         (gnulib.info): Depend on it.
50709         * doc/.gitignore: Add updated-stamp.texi.
50710         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50711
50712 2008-06-19  Bruno Haible  <bruno@clisp.org>
50713
50714         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50715         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50716
50717 2008-06-19  Eric Blake  <ebb9@byu.net>
50718
50719         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50720         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50721         Reported by Stepan Kasal.
50722
50723 2008-06-18  Bruno Haible  <bruno@clisp.org>
50724
50725         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50726         Reported by Eric Blake.
50727
50728 2008-06-18  Eric Blake  <ebb9@byu.net>
50729
50730         Work around cygwin 1.5.25 strsignal bug.
50731         * tests/test-strsignal.c: Allow for const char *.
50732         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50733
50734 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50735
50736         * users.txt: Update URL to article and add author/date
50737         information.
50738
50739 2008-06-17  Bruno Haible  <bruno@clisp.org>
50740
50741         New macro gl_DISABLE_THREADS.
50742         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50743         if the user did not pass --enable-threads or --disable-threads option.
50744         (gl_DISABLE_THREADS): New macro.
50745         Reported by Eric Blake <ebb9@byu.net>.
50746
50747 2008-06-17  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50750         when the macro ignores it.
50751         Based on a patch by Eric Blake <ebb9@byu.net>.
50752
50753 2008-06-17  Bruno Haible  <bruno@clisp.org>
50754
50755         * modules/tls (License): Change to LGPLv2+.
50756         Reported by Eric Blake.
50757
50758 2008-06-17  Eric Blake  <ebb9@byu.net>
50759
50760         Simplify c-stack prerequisites.
50761         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50762         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50763         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50764         check.
50765         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50766         <sys/resource.h>.
50767
50768         Move c-stack test into testsuite.
50769         * modules/c-stack-tests: New file.
50770         * lib/c-stack.c [DEBUG]: Move test program...
50771         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50772         fail test if sigaltstack is lacking.
50773         * tests/test-c-stack.sh: New driver file.
50774
50775 2008-06-16  Eric Blake  <ebb9@byu.net>
50776
50777         Use raise module consistently.
50778         * modules/fatal-signal (Depends-on): Add raise.
50779         * modules/sigprocmask (Depends-on): Likewise.
50780         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50781         * lib/sigprocmask.c (sigprocmask): Likewise.
50782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50783         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50784
50785         Fix compliance bug in sigpending.
50786         * lib/sigprocmask.c (sigpending): Return pending array via
50787         parameter, not return value.
50788
50789 2008-06-14  Eric Blake  <ebb9@byu.net>
50790
50791         Improve obstack-printf test code.
50792         * tests/test-obstack-printf.c (test_function): Fix comment, and
50793         simplify usage of obstack_* in macros.  Add a test for coverage.
50794         Reported by Bruno Haible.
50795
50796 2008-06-14  Bruno Haible  <bruno@clisp.org>
50797
50798         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50799         array size as a constant, not as a const variable.
50800         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50801         AC_USE_SYSTEM_EXTENSIONS.
50802         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50803         Test whether the obstack_printf function actually exists.
50804         * modules/obstack-printf (Depends-on): Add extensions.
50805         (Include): Remove obstack.h.
50806         * modules/obstack-printf-posix (Depends-on): Add extensions.
50807         (Include): Remove obstack.h.
50808
50809 2008-06-13  Eric Blake  <ebb9@byu.net>
50810
50811         Add obstack-printf and obstack-printf-posix modules.
50812         * modules/obstack-printf: New file.
50813         * modules/obstack-printf-posix: Likewise.
50814         * MODULES.html.sh (Misc): Mention them.
50815         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50816         Likewise.
50817         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50818         Likewise.
50819         * modules/stdio (Makefile.am): Accomodate new modules.
50820         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50821         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50822         Declare.
50823         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50824         functions.
50825         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50826         (gl_REPLACE_OBSTACK_PRINTF): New macros
50827         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50828         * tests/test-obstack-printf.c: New file.
50829         * modules/obstack-printf-tests: Likewise.
50830         * modules/obstack-printf-posix-tests: Likewise.
50831
50832 2008-06-11  Bruno Haible  <bruno@clisp.org>
50833
50834         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50835         * lib/open.c: Include errno.h.
50836         (open): Fail when attempting to write to a file that has a trailing
50837         slash.
50838         * tests/test-open.c (main): Test against trailing slash bug.
50839         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50840
50841 2008-06-10  Bruno Haible  <bruno@clisp.org>
50842
50843         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50844         for $? to work inside the trap command, with various /bin/sh-s.
50845         * tests/test-vc-list-files-cvs.sh: Likewise.
50846
50847 2008-06-10  Bruno Haible  <bruno@clisp.org>
50848
50849         * lib/acl-internal.h: Don't include gettext.h here.
50850         * lib/set-mode-acl.c: Include gettext.h here.
50851         * lib/copy-acl.c: Likewise.
50852
50853 2008-06-10  Bruno Haible  <bruno@clisp.org>
50854
50855         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50856         * lib/wait-process.c (wait_subprocess): Likewise.
50857         * lib/execute.h (execute): Add termsigp argument.
50858         * lib/execute.c (execute): Likewise.
50859         * lib/csharpcomp.c (compile_csharp_using_pnet,
50860         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50861         * lib/csharpexec.c (execute_csharp_using_pnet,
50862         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50863         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50864         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50865         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50866         is_jikes_present): Update.
50867         * lib/javaexec.c (execute_java_class): Update.
50868         * lib/javaversion.c (execute_and_read_line): Update.
50869         * NEWS: Document the changes.
50870         Reported by Eric Blake.
50871
50872 2008-06-10  Eric Blake  <ebb9@byu.net>
50873
50874         Add missing include.
50875         * tests/test-strstr.c (includes): Add <signal.h>.
50876         * tests/test-strcasestr.c (includes): Likewise.
50877         * tests/test-memmem.c (includes): Likewise.
50878
50879 2008-06-10  Bruno Haible  <bruno@clisp.org>
50880
50881         * lib/wait-process.c (wait_subprocess): Add an assertion.
50882
50883 2008-06-10  Bruno Haible  <bruno@clisp.org>
50884
50885         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50886
50887 2008-06-10  Bruno Haible  <bruno@clisp.org>
50888
50889         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50890         using alarm().
50891         * tests/test-strcasestr.c (main): Likewise.
50892         * tests/test-strstr.c (main): Likewise.
50893
50894 2008-06-09  Bruno Haible  <bruno@clisp.org>
50895
50896         Work around the Solaris 10 ACE ACLs ABI change.
50897         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50898         declare if ACL_NO_TRIVIAL is present.
50899         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50900         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50901         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50902         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50903         define if ACL_NO_TRIVIAL is present.
50904         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50905         and use the current ABI.
50906         (file_has_acl): Use same #if condition as elsewhere.
50907         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50908         in use, and use the current ABI.
50909         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50910         Reported by Jim Meyering.
50911
50912 2008-06-09  Eric Blake  <ebb9@byu.net>
50913
50914         Work around environments that (stupidly) ignore SIGALRM.
50915         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50916         before using alarm().
50917         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50918         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50919         Reported by Ian Beckwith <ianb@erislabs.net>.
50920
50921         Produce autobuild blurb earlier in log.
50922         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50923
50924 2008-06-09  Jim Meyering  <meyering@redhat.com>
50925         and OndÅ™ej Vašík  <ovasik@redhat.com>
50926
50927         utimens.c: correct kernel bug work-around
50928         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50929         failure, not success, and the kernel bug we're trying to work
50930         around affects not just the utimensat call, but also the fallback
50931         futimens call.
50932         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50933         not success.
50934         [HAVE_FUTIMENS]: Use the same work-around, here.
50935
50936 2008-06-09  Jim Meyering  <meyering@redhat.com>
50937
50938         add more guards around definition of ACE_-related code
50939         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50940         ALLOW and ACE_OWNER are also defined.
50941
50942 2008-06-08  Bruno Haible  <bruno@clisp.org>
50943
50944         * lib/acl-internal.h: Add me as co-author.
50945         * lib/file-has-acl.c: Likewise.
50946         * lib/set-mode-acl.c: Likewise.
50947         * lib/copy-acl.c: Likewise.
50948
50949 2008-06-08  Bruno Haible  <bruno@clisp.org>
50950
50951         Add support for AIX ACLs.
50952         * lib/acl-internal.h (acl_nontrivial): New declaration.
50953         * lib/file-has-acl.c (acl_nontrivial): New function.
50954         (file_has_acl): Add implementation using AIX 4 ACL API.
50955         * lib/set-mode-acl.c (qset_acl): Likewise.
50956         * lib/copy-acl.c (qcopy_acl): Likewise.
50957
50958 2008-06-08  Bruno Haible  <bruno@clisp.org>
50959
50960         Add support for HP-UX ACLs.
50961         * lib/acl-internal.h (acl_nontrivial): New declaration.
50962         * lib/file-has-acl.c (acl_nontrivial): New function.
50963         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50964         * lib/set-mode-acl.c (qset_acl): Likewise.
50965         * lib/copy-acl.c (qcopy_acl): Likewise.
50966
50967 2008-06-08  Bruno Haible  <bruno@clisp.org>
50968
50969         Add support for Cygwin ACLs.
50970         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50971         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50972         the chmod_or_fchmod call.
50973         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50974
50975 2008-06-08  Bruno Haible  <bruno@clisp.org>
50976
50977         Fix bug with setuid modes in Solaris 10+ code.
50978         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50979         succeeded, when the mode contains some special bits.
50980
50981 2008-06-08  Bruno Haible  <bruno@clisp.org>
50982
50983         Add support for Solaris 7..10 ACLs.
50984         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50985         declarations.
50986         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50987         functions.
50988         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50989         * lib/set-mode-acl.c (qset_acl): Likewise.
50990         * lib/copy-acl.c (qcopy_acl): Likewise.
50991
50992 2008-06-08  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50995         declaration.
50996         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50997         (acl_access_nontrivial): Remove MacOS X case.
50998         (file_has_acl): Use acl_extended_nontrivial.
50999         * lib/copy-acl.c (qcopy_acl): Likewise.
51000
51001 2008-06-08  Bruno Haible  <bruno@clisp.org>
51002
51003         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51004
51005 2008-06-08  Jim Meyering  <meyering@redhat.com>
51006
51007         * modules/acl (Maintainer): Add Bruno Haible.
51008
51009 2008-06-07  Bruno Haible  <bruno@clisp.org>
51010
51011         Improve support for Tru64 ACLs.
51012         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51013         ACL on OSF/1.
51014
51015 2008-06-07  Bruno Haible  <bruno@clisp.org>
51016
51017         Add support for MacOS X ACLs.
51018         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51019         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51020         * lib/set-mode-acl.c (qset_acl): Likewise.
51021         * lib/copy-acl.c (qcopy_acl): Likewise.
51022
51023 2008-06-07  Bruno Haible  <bruno@clisp.org>
51024
51025         Fix memory leak introduced on 2008-05-22.
51026         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51027         use.
51028
51029 2008-06-07  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51032         to construct an empty ACL.
51033
51034 2008-06-07  Bruno Haible  <bruno@clisp.org>
51035
51036         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51037         precisely.
51038         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51039
51040 2008-06-07  Bruno Haible  <bruno@clisp.org>
51041
51042         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51043         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51044
51045 2008-06-07  Bruno Haible  <bruno@clisp.org>
51046
51047         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51048         regardless of POSIX.
51049         * doc/posix-functions/_longjmp.texi: Likewise.
51050         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51051         SystemV platform in this case.
51052
51053 2008-06-06  Eric Blake  <ebb9@byu.net>
51054
51055         Document abort() bugs.
51056         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51057
51058         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51059         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51060         sigsetjmp.
51061         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51062         siglongjmp, but only as a macro.
51063         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51064         is obsolete.
51065         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51066
51067         Tweak documentation to cover cygwin argz bugs.
51068         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51069         argz bug fix; no code change needed since no cygwin releases
51070         occurred between the last fix and the bug being tested.
51071         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51072         module and recently fixed cygwin bugs.
51073         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51074         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51075         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51076         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51077         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51078         Likewise.
51079         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51080         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51081         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51082         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51083         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51084         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51085         Likewise.
51086
51087         Avoid gcc warning on cygwin.
51088         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51089         !ACL_NO_TRIVIAL]: Avoid unused variable.
51090
51091 2008-06-05  Eric Blake  <ebb9@byu.net>
51092
51093         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51094         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51095         git-version-gen fails to come up with a version.
51096         Reported by Simon Josefsson.
51097
51098 2008-06-05  Jim Meyering  <meyering@redhat.com>
51099             Paul Eggert  <eggert@cs.ucla.edu>
51100
51101         utimens.c: work around a probable Linux kernel bug
51102         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51103         appears to be a kernel bug that causes utimensat to return 280
51104         instead of 0, indicating success.
51105
51106 2008-06-04  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51109         2008-06-01 commit.
51110
51111 2008-06-04  Bruno Haible  <bruno@clisp.org>
51112
51113         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51114         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51115         (file_has_acl): Use it. Save errno afterwards.
51116         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51117
51118 2008-06-03  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51121         draft code. Simplify #ifs.
51122         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51123         Put Solaris code after POSIX-draft code. Fix comments regarding
51124         Solaris 10, HP-UX. Mention Cygwin.
51125         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51126
51127 2008-06-03  Eric Blake  <ebb9@byu.net>
51128
51129         Provide fallback for older kernels.
51130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51131         Provide runtime fallback if kernel lacks support.
51132         Reported by Mike Frysinger.
51133
51134 2008-06-02  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51137         it exists.
51138
51139 2008-06-02  Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51142         * lib/copy-acl.c (qcopy_acl): Update comment.
51143
51144 2008-06-02  Bruno Haible  <bruno@clisp.org>
51145
51146         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51147         like ACL APIs.
51148
51149 2008-06-02  Bruno Haible  <bruno@clisp.org>
51150
51151         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51152         * tests/test-set-mode-acl.sh: Likewise.
51153         * tests/test-copy-acl.sh: Likewise.
51154         * tests/test-copy-file.sh: Likewise.
51155
51156 2008-06-02  Bruno Haible  <bruno@clisp.org>
51157
51158         * tests/test-file-has-acl.sh: Remove unused code.
51159
51160 2008-06-01  Bruno Haible  <bruno@clisp.org>
51161
51162         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51163         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51164         messages.
51165         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51166
51167 2008-06-01  Bruno Haible  <bruno@clisp.org>
51168
51169         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51170         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51171         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51172         APIs.
51173         * modules/acl-tests (configure.ac): Remove tests now contained in
51174         m4/acl.m4.
51175
51176 2008-06-02  Jim Meyering  <meyering@redhat.com>
51177
51178         announce-gen: use a better key-server host name
51179         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51180         it may be more consistently reliable.  Suggested by Werner Koch
51181         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51182
51183 2008-06-01  Bruno Haible  <bruno@clisp.org>
51184
51185         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51186         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51187
51188 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51189
51190         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51191
51192 2008-06-01  Bruno Haible  <bruno@clisp.org>
51193
51194         New ACL tests.
51195         * tests/test-file-has-acl.sh: New file.
51196         * tests/test-file-has-acl.c: New file.
51197         * tests/test-set-mode-acl.sh: New file.
51198         * tests/test-set-mode-acl.c: New file.
51199         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51200         * tests/test-copy-acl.c: New file.
51201         * modules/acl-tests: New file, based on modules/copy-file-tests.
51202         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51203         (Depends-on): Add acl-tests.
51204         (configure.ac): Remove checks.
51205         (Makefile.am): Don't create test-sameacls program here any more.
51206
51207 2008-06-01  Bruno Haible  <bruno@clisp.org>
51208
51209         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51210         * tests/test-sameacls.c: Include progname.h.
51211         (main): Invoke set_program_name. Portability fixes for MacOS X,
51212         Solaris, HP-UX.
51213
51214 2008-06-01  Bruno Haible  <bruno@clisp.org>
51215
51216         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51217         function.
51218         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51219
51220 2008-06-01  Bruno Haible  <bruno@clisp.org>
51221
51222         * modules/rpmatch (Depends-on): Add strdup.
51223
51224 2008-06-01  Bruno Haible  <bruno@clisp.org>
51225
51226         * lib/pipe.c: Include unistd-safer.h.
51227         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51228         * modules/pipe (Depends-on): Add unistd-safer.
51229
51230 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51231
51232         * modules/autobuild (configure.ac): Call AB_INIT.
51233
51234 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51235
51236         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51237         Suggested by Bruno Haible <bruno@clisp.org>.
51238
51239 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51240
51241         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51242         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51243         <bruno@clisp.org>.
51244
51245 2008-05-29  Eric Blake  <ebb9@byu.net>
51246
51247         Prefer new POSIX 200x interfaces over futimesat.
51248         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51249         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51250         when available.
51251         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51252
51253 2008-05-28  Bruno Haible  <bruno@clisp.org>
51254
51255         * modules/stpcpy (License): Change to LGPLv2+.
51256         Requested by David Lutterkort <dlutter@redhat.com>.
51257
51258 2008-05-27  Bruno Haible  <bruno@clisp.org>
51259
51260         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51261         current mingw.
51262         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51263
51264 2008-05-27  Bruno Haible  <bruno@clisp.org>
51265
51266         * modules/iconv_open (Link): New section, from module 'iconv'.
51267         * modules/striconv (Link): Likewise.
51268         * modules/striconveh (Link): Likewise.
51269         * modules/xstriconv (Link): Likewise.
51270         * modules/unicodeio (Link): Likewise.
51271         * modules/propername (Link): Likewise.
51272         Reported by Jim Meyering.
51273
51274 2008-05-26  Jim Meyering  <meyering@redhat.com>
51275
51276         sha256: do not artificially restrict buffer length to be < 2^32
51277         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51278         uint32_t to size_t.
51279         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51280         to match.
51281
51282         avoid unaligned access errors, e.g., on sparc
51283         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51284         direct access through a possibly-unaligned uint64* pointer.
51285         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51286         direct access through a possibly-unaligned uint32* pointer.
51287         Prompted by this patch from Tom "spot" Callaway:
51288         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51289
51290         sha512.c: fix typo in comment
51291         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51292
51293 2008-05-25  Bruno Haible  <bruno@clisp.org>
51294
51295         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51296         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51297         (Makefile.am): Update lib_SOURCES.
51298
51299 2008-05-25  Bruno Haible  <bruno@clisp.org>
51300
51301         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51302
51303 2008-05-25  Jim Meyering  <meyering@redhat.com>
51304
51305         useless-if-before-free: freed expr may have white-space differences
51306         * build-aux/useless-if-before-free: Recognize cases in which the
51307         freed expression differs from the tested one in embedded white
51308         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51309         $1 was used, so we can't make any regexp shy.  Improved tests now
51310         detect this.
51311
51312         useless-if-before-free: accept white space in the expression.
51313         * build-aux/useless-if-before-free: For now, any white space
51314         in the expression must be identical in the free argument.
51315
51316         useless-if-before-free: efficiency tweak
51317         * build-aux/useless-if-before-free: Make the expression-matching
51318         regexp "shy".
51319         Make the *outer* regexp shy, not the expr-matching one.
51320
51321         update code-in-comment to accept cast of free arg
51322         * build-aux/useless-if-before-free: Update regexp.
51323
51324 2008-05-25  Bruno Haible  <bruno@clisp.org>
51325
51326         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51327         * modules/copy-file-tests (Files, Makefile.am): Update.
51328         * tests/test-copy-file.c (func_test_copy): Update.
51329
51330 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51331
51332         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51333
51334 2008-05-23  Bruno Haible  <bruno@clisp.org>
51335
51336         Improve support for ACLs on OSF/1.
51337         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51338         Remove fallback for unknown flavors of ACLs.
51339
51340 2008-05-22  Bruno Haible  <bruno@clisp.org>
51341
51342         Add support for ACLs on OSF/1.
51343         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51344         replacements.
51345         (acl_free_text): New macro fallback.
51346         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51347         acl_free.
51348         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51349         acl_free_text function. Require AC_C_INLINE.
51350
51351 2008-05-22  Bruno Haible  <bruno@clisp.org>
51352
51353         Make copy_acl work on MacOS X 10.5.
51354         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51355         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51356         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51357         If MODE_INSIDE_ACL, don't assume that every system has the same text
51358         representation for ACLs as FreeBSD.
51359         * lib/copy-acl.c (copy_acl): Add support for platforms with
51360         !MODE_INSIDE_ACL.
51361         * lib/file-has-acl.c (file_has_acl): Likewise.
51362         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51363         FreeBSD, MacOS X, or IRIX, respectively.
51364
51365 2008-05-22  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/acl.h: Don't include <sys/acl.h>.
51368         (GETACLCNT): Move fallback to lib/acl-internal.h.
51369         * lib/acl-internal.h: Include <sys/acl.h> here.
51370         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51371
51372 2008-05-22  Bruno Haible  <bruno@clisp.org>
51373
51374         Split off copy_acl function to separate file.
51375         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51376         * lib/acl.c (copy_acl): Moved function to separate file.
51377         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51378         * modules/acl (Files): Add lib/copy-acl.c.
51379         (Makefiles.am): Augment lib_SOURCES.
51380
51381 2008-05-22  Bruno Haible  <bruno@clisp.org>
51382
51383         * modules/copy-file-tests: New file.
51384         * tests/test-copy-file.sh: New file.
51385         * tests/test-copy-file.c: New file.
51386         * tests/test-copy-file-sameacls.c: New file.
51387
51388 2008-05-22  Eric Blake  <ebb9@byu.net>
51389
51390         Avoid gcc warning.
51391         * tests/test-memcmp.c (main): Pass NULL indirectly.
51392
51393 2008-05-21  Bruno Haible  <bruno@clisp.org>
51394
51395         Add reference doc about ACLs.
51396         * doc/acl-resources.txt: New file.
51397         * doc/acl-cygwin.txt: New file.
51398
51399 2008-05-21  Bruno Haible  <bruno@clisp.org>
51400
51401         Avoid one more warning from gcc.
51402         * lib/vasnprintf.c (IF_LINT): Update comments.
51403         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51404
51405 2008-05-21  Jim Meyering  <meyering@redhat.com>
51406
51407         avoid a warning from gcc
51408         * lib/vasnprintf.c (IF_LINT): Define.
51409         (scale10_round_decimal_long_double):
51410         Use it to avoid a "may be used uninitialized" warning.
51411         (scale10_round_decimal_double): Likewise.
51412
51413 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51414
51415         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51416         declared.
51417
51418 2008-05-20  Bruno Haible  <bruno@clisp.org>
51419
51420         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51421         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51422
51423 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51424
51425         * modules/memcmp-tests: New file.
51426         * tests/test-memcmp.c: New file.
51427
51428 2008-05-19  Bruno Haible  <bruno@clisp.org>
51429
51430         * modules/propername (Notice, configure.ac): Put quoted "..." into
51431         --keyword option.
51432         * lib/propername.h: Update comments accordingly.
51433         Reported by Eric Blake.
51434
51435 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51436
51437         * modules/getpass-gnu (Depends-on): Add fseeko.
51438
51439 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51440
51441         * modules/base64-tests: New file.
51442
51443 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51444
51445         * lib/base64.c (base64_decode_ctx): If a decode context structure
51446         was passed in use it to ignore newlines.  If a context structure
51447         was _not_ passed in, continue to treat newlines as garbage (this
51448         is the historical behavior).  Formerly base64_decode.
51449         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51450         takes a decode context structure.
51451         * lib/base64.h (base64_decode): Macro for four-argument calls.
51452         (base64_decode_alloc): Likewise.
51453         * lib/base64.c (base64_decode_ctx): If a decode context structure
51454         was passed in use it to ignore newlines.  If a context structure
51455         was _not_ passed in, continue to treat newlines as garbage (this
51456         is the historical behavior).  Formerly base64_decode.
51457         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51458         takes a decode context structure.
51459         * lib/base64.h (base64_decode): Macro for four-argument calls.
51460         (base64_decode_alloc): Likewise.
51461
51462 2008-05-19  Jim Meyering  <meyering@redhat.com>
51463
51464         avoid a warning from gcc
51465         * lib/trim.c (IF_LINT): Define.
51466         (trim2): Use it to avoid a "may be used uninitialized" warning.
51467
51468         Fix doc typo.
51469         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51470
51471 2008-05-19  Bruno Haible  <bruno@clisp.org>
51472
51473         * doc/glibc-functions/getpass.texi: Document limits of other
51474         implementations.
51475
51476 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51477             Bruno Haible <bruno@clisp.org>
51478
51479         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51480
51481 2008-05-18  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/propername: New file, from GNU gettext.
51484         * lib/propername.h: New file, from GNU gettext.
51485         * lib/propername.c: New file, from GNU gettext.
51486         * MODULES.html.sh (Internationalization functions): Add propername.
51487
51488 2008-05-16  Jim Meyering  <meyering@redhat.com>
51489             Bruno Haible  <bruno@clisp.org>
51490
51491         Avoid some warnings from "gcc -Wshadow".
51492         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51493
51494 2008-05-15  Eric Blake  <ebb9@byu.net>
51495
51496         Extend previous patch to cygwin 1.7.0.
51497         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51498         fast implementation in cygwin >= 1.7.0.
51499         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51501
51502 2008-05-15  Bruno Haible  <bruno@clisp.org>
51503
51504         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51505         implementation in glibc >= 2.9.
51506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51507         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51508
51509 2008-05-15  Bruno Haible  <bruno@clisp.org>
51510
51511         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51512         (Unicode string functions): Add unilbrk/*.
51513         Reported by Karl Berry.
51514
51515 2008-05-15  Eric Blake  <ebb9@byu.net>
51516
51517         Fix violation of <stdbool.h> replacement in regex.
51518         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51519         * lib/regexec.c (re_search_internal): Likewise.
51520         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51521
51522 2008-05-15  Jim Meyering  <meyering@redhat.com>
51523
51524         avoid distracting test output when git or cvs is not found
51525         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51526         * tests/test-vc-list-files-git.sh: Likewise.
51527
51528 2008-05-15  Eric Blake  <ebb9@byu.net>
51529
51530         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51531         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51532         glibc version.
51533         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51534         * doc/posix-functions/strstr.texi (strstr): Likewise.
51535         * lib/str-two-way.h (MAX): Sychronize with glibc.
51536
51537 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51538
51539         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51540         opr.ctx_type.
51541         (calc_first): Initialize constraint field.
51542         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51543         Fix grammar.
51544         (duplicate_node): Merge constraint field for all node types.
51545         (calc_eclosure_iter): Look at constraint field for all node types.
51546         * lib/regex_internal.c (create_cd_newstate): Don't look at
51547         opr.ctx_type.
51548
51549 2008-05-14  Bruno Haible  <bruno@clisp.org>
51550
51551         Help GCC to do better code generation.
51552         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51553         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51554         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51555         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51556         Declare with attribute 'malloc' if supported.
51557
51558 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51559
51560         use "echo STR|wc -c" rather than unportable "expr length STR"
51561         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51562         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51563
51564 2008-05-14  Jim Meyering  <meyering@redhat.com>
51565
51566         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51567         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51568         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51569         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51570         via Collin Lasse.
51571
51572 2008-05-14  Eric Blake  <ebb9@byu.net>
51573
51574         Avoid quadratic growth in gl_LIBSOURCES.
51575         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51576         Suggested by Bruno Haible.
51577
51578         Test xmemdup0.
51579         * modules/xmemdup0-tests: New file.
51580         * tests/test-xmemdup0.c: Likewise.
51581
51582 2008-05-13  Eric Blake  <ebb9@byu.net>
51583
51584         Split xmemdup0 into its own module.
51585         * modules/xmemdup0: New file.
51586         * lib/xmemdup0.h: Likewise.
51587         * lib/xmemdup0.c: Likewise.
51588         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51589         * lib/xalloc.h (xmemdup0): Remove.
51590         * lib/xmalloc.c (xmemdup0): Likewise.
51591
51592 2008-05-13  Eric Blake  <ebb9@byu.net>
51593             Bruno Haible  <bruno@clisp.org>
51594
51595         Reduce number of forks required during autoconf.
51596         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51597         and gl_LIBSOURCES_DIR.
51598         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51599         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51600         m4_syscmd per file.
51601         <m4_foreach_w>: Move...
51602         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51603
51604 2008-05-13  Eric Blake  <ebb9@byu.net>
51605
51606         * gnulib-tool: Fix various comment typos.
51607
51608 2008-05-12  Bruno Haible  <bruno@clisp.org>
51609
51610         Tailor the linebreaking algorithm.
51611         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51612
51613 2008-05-12  Bruno Haible  <bruno@clisp.org>
51614
51615         Update to Unicode 5.0.0.
51616         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51617         LBP_JV, LBP_JT. Redistribute values.
51618         (unilbrk_table): Change size.
51619         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51620         Unicode TR#14 rev. 22.
51621         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51622         LBP_JV, LBP_JT. Redistribute values.
51623         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51624         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51625         Update.
51626         * lib/unilbrk/lbrkprop1.h: Regenerated.
51627         * lib/unilbrk/lbrkprop2.h: Regenerated.
51628         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51629         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51630         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51631         Likewise.
51632         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51633         Likewise.
51634         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51635         result.
51636         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51637         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51638         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51639         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51640         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51641         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51642
51643 2008-05-11  Bruno Haible  <bruno@clisp.org>
51644
51645         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51646
51647 2008-05-11  Bruno Haible  <bruno@clisp.org>
51648
51649         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51650         * modules/unilbrk/gen-lbrk: New file.
51651
51652 2008-05-11  Bruno Haible  <bruno@clisp.org>
51653
51654         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51655         * m4/sha512.m4 (gl_SHA512): Likewise.
51656
51657 2008-05-11  Jim Meyering  <meyering@redhat.com>
51658
51659         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51660         * modules/crypto/sha256: New file.
51661         * modules/crypto/sha512: Likewise.
51662         * lib/sha256.c: Likewise.
51663         * lib/sha256.h: Likewise.
51664         * lib/sha512.c: Likewise.
51665         * lib/sha512.h: Likewise.
51666         * lib/u64.h: Likewise.
51667         * m4/sha256.m4: Likewise.
51668         * m4/sha512.m4: Likewise.
51669         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51670
51671 2008-05-10  Bruno Haible  <bruno@clisp.org>
51672
51673         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51674         (Input/Output <stdio.h>): Add xprintf.
51675         (Signal handling <signal.h>): Add strsignal.
51676         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51677         (Core language properties): Add func.
51678         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51679         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51680         strings.
51681         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51682         (Input/output): New section.
51683         (File system functions): Add openat-die, stat-macros.
51684         (Networking functions): Add sockets.
51685         (Unicode string functions): Add unictype/*.
51686         (Support for building libraries and executables): Add gperf.
51687         (Support for building documentation): Add agpl-3.0.
51688         (Misc): Add nocrash.
51689
51690 2008-05-10  Bruno Haible  <bruno@clisp.org>
51691
51692         * modules/unictype/gen-ctype: New file.
51693
51694 2008-05-10  Jim Meyering  <meyering@redhat.com>
51695
51696         Make chdir-safer.c more efficient on a system with no symlinks.
51697         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51698         also if ELOOP is zero.  Suggested by Bruno Haible.
51699
51700         Make chdir-safer.c slightly safer.
51701         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51702         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51703
51704         Avoid compile failure on systems without ELOOP (like mingw).
51705         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51706         Reported by Bruno Haible.
51707
51708 2008-05-10  Bruno Haible  <bruno@clisp.org>
51709
51710         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51711         (is_utf8_encoding): Use a case-insensitive comparison.
51712         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51713         streq.
51714
51715 2008-05-10  Bruno Haible  <bruno@clisp.org>
51716
51717         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51718         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51719         * lib/unilbrk/ulc-common.h (iconv_string_length,
51720         iconv_string_keeping_offsets): Remove declarations.
51721         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51722         Don't include <iconv.h>, streq.h, xsize.h.
51723         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51724         conversion.
51725         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51726         <iconv.h>, streq.h, xsize.h.
51727         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51728         conversion.
51729         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51730         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51731         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51732         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51733
51734 2008-05-10  Bruno Haible  <bruno@clisp.org>
51735
51736         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51737         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51738
51739         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51740         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51741
51742         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51743         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51744
51745         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51746         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51747
51748         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51749         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51750
51751         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51752         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51753
51754         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51755         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51756
51757         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51758         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51759
51760 2008-05-10  Bruno Haible  <bruno@clisp.org>
51761
51762         Split up 'linebreak' module.
51763         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51764         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51765         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51766         modifications.
51767         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51768         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51769         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51770         lib/linebreak.c.
51771         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51772         lib/linebreak.c.
51773         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51774         lib/linebreak.c.
51775         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51776         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51777         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51778         lib/linebreak.c.
51779         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51780         lib/linebreak.c.
51781         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51782         lib/linebreak.c.
51783         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51784         lib/linebreak.c.
51785         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51786         lib/linebreak.c.
51787         * modules/unilbrk/base: New file.
51788         * modules/unilbrk/tables: New file.
51789         * modules/unilbrk/u8-possible-linebreaks: New file.
51790         * modules/unilbrk/u16-possible-linebreaks: New file.
51791         * modules/unilbrk/u32-possible-linebreaks: New file.
51792         * modules/unilbrk/ulc-common: New file.
51793         * modules/unilbrk/ulc-possible-linebreaks: New file.
51794         * modules/unilbrk/u8-width-linebreaks: New file.
51795         * modules/unilbrk/u16-width-linebreaks: New file.
51796         * modules/unilbrk/u32-width-linebreaks: New file.
51797         * modules/unilbrk/ulc-width-linebreaks: New file.
51798         * lib/linebreak.h: Remove file.
51799         * lib/linebreak.c: Remove file.
51800         * m4/linebreak.m4: Remove file.
51801         * modules/linebreak: Remove file.
51802         * NEWS: Mention the changes.
51803
51804 2008-05-09  Eric Blake  <ebb9@byu.net>
51805
51806         Add xmemdup0.
51807         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51808         implementation.
51809         * lib/xmalloc.c (xmemdup0): New C implementation.
51810
51811 2008-05-08  Bruno Haible  <bruno@clisp.org>
51812
51813         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51814
51815 2008-05-07  Eric Blake  <ebb9@byu.net>
51816
51817         Support cross-compilation of <wctype.h>.
51818         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51819         AC_CACHE_CHECK.
51820
51821 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51822
51823         * build-aux/vc-list-files: Add support for bzr.
51824
51825 2008-05-03  Jim Meyering  <meyering@redhat.com>
51826
51827         avoid failed assertion with tight malloc
51828         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51829
51830 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51831
51832         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51833         are needed from arpa/inet.h.
51834         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51835         Reported by Bruno Haible.
51836
51837 2008-05-02  Jim Meyering  <meyering@redhat.com>
51838
51839         avoid compilation error on FreeBSD 6
51840         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51841
51842 2008-05-01  Jim Meyering  <meyering@redhat.com>
51843
51844         useless-if-before-free: correct --help's exit status description
51845         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51846         for one or more matches, etc.  Reported by Bruno Haible.
51847
51848         vc-list-files: make the stand-alone gnulib test work
51849         * modules/vc-list-files-tests (configure.ac):
51850         Define and AC_SUBST abs_aux_dir.
51851         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51852         $(abs_top_srcdir) to each script and having each of them
51853         duplicate the work of setting PATH, set PATH here, using
51854         the new variable, abs_aux_dir instead.
51855         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51856         * tests/test-vc-list-files-git.sh: Likewise.
51857         Reported by Bruno Haible.
51858
51859 2008-05-01  Bruno Haible  <bruno@clisp.org>
51860
51861         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51862         reallocation. Rename 'done' to 'found_delimiter'.
51863
51864 2008-05-01  Jim Meyering  <meyering@redhat.com>
51865
51866         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51867         * build-aux/vc-list-files: Use `...`, not $(...).
51868
51869 2008-04-30  Jim Meyering  <meyering@redhat.com>
51870
51871         add tests for vc-list-files
51872         * modules/vc-list-files-tests: New module.
51873         * tests/test-vc-list-files-cvs.sh: New file.
51874         * tests/test-vc-list-files-git.sh: New file.
51875
51876         avoid a warning from gcc
51877         * lib/getndelim2.c (IF_LINT): Define.
51878         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51879
51880         vc-list-files: work properly with build-aux/cvsu, too
51881         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51882         to all cvs-based clauses.
51883
51884         vc-list-files: work properly in the CVS+awk case, too
51885         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51886
51887         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51888         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51889         take more than one file argument, so .  Add quotes, just in case $dir
51890         ever contains a shell meta-character.  Prompted by Soren Hansen in
51891         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51892
51893 2008-04-29  Eric Blake  <ebb9@byu.net>
51894
51895         Optimize getndelim2 to use block operations when possible.
51896         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51897         freadseek, and memchr2.
51898         * lib/getndelim2.c (getndelim2): Use them for block reads.
51899
51900 2008-04-29  Bruno Haible  <bruno@clisp.org>
51901
51902         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51903         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51904         * modules/inet_ntop (Depends-on): Add extensions.
51905         * modules/inet_pton (Depends-on): Likewise.
51906         Reported by Simon Josefsson.
51907
51908 2008-04-29  Jim Meyering  <meyering@redhat.com>
51909
51910         When the is more than one match in a block, match all of them.
51911         * build-aux/useless-if-before-free: Iterate through each block
51912         until there are no more matches.
51913
51914         Fix broken useless-if-before-free script.
51915         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51916         the expression to match cast of argument to free-like function.
51917
51918 2008-04-29  Eric Blake  <ebb9@byu.net>
51919
51920         Use new header.
51921         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51922
51923 2008-04-29  Jim Meyering  <meyering@redhat.com>
51924
51925         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51926         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51927         by gnulib to exist and to declare e.g., inet_ntop.
51928         Don't include "inet_ntop.h", now removed.
51929
51930         * m4/arpa_inet_h.m4: Remove trailing blanks.
51931
51932 2008-04-29  Eric Blake  <ebb9@byu.net>
51933
51934         Silence valgrind on safe reads beyond potential array bounds.
51935         * lib/rawmemchr.valgrind: New file.
51936         * lib/strchrnul.valgrind: Likewise.
51937         * modules/rawmemchr (Files): Distribute new file.
51938         * modules/strchrnul (Files): Likewise.
51939         Suggested by Bruno Haible.
51940
51941 2008-04-29  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51944         (inet_ntop, inet_pton): Change portability warning's wording.
51945         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51946         Invoke gl_CHECK_NEXT_HEADERS.
51947         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51948         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51949         set ARPA_INET_H.
51950         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51951         * modules/arpa_inet (Description): No longer only for systems that
51952         lack it.
51953         (Depends-on): Add include_next.
51954         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51955         HAVE_ARPA_INET_H.
51956
51957 2008-04-29  Jim Meyering  <meyering@redhat.com>
51958
51959         * modules/mkdir (License): Re-license as LGPLv2+.
51960
51961 2008-04-29  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/rawmemchr (Maintainer): Set to Eric.
51964         * modules/strchrnul (Maintainer): Likewise.
51965
51966 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51967
51968         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51969         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51970
51971         * modules/arpa_inet (arpa/inet.h): Use them.
51972
51973 2008-04-28  Eric Blake  <ebb9@byu.net>
51974
51975         Test getndelim2.
51976         * modules/getndelim2-tests: New file.
51977         * tests/test-getndelim2.c: Likewise.
51978         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51979         stream.
51980         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51981
51982         * MODULES.html.sh: Document new module.
51983
51984 2008-04-20  Bruno Haible  <bruno@clisp.org>
51985
51986         * lib/c-stack.c (die): Use raise.
51987         * modules/c-stack (Depends-on): Add raise.
51988
51989 2008-04-28  Bruno Haible  <bruno@clisp.org>
51990
51991         Expect rpmatch to be declared.
51992         * lib/yesno.c (rpmatch): Remove declaration.
51993
51994         Declare rpmatch.
51995         * lib/stdlib.in.h (rpmatch): New declaration.
51996         * lib/rpmatch.c: Include <stdlib.h> first.
51997         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51998         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51999         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52000         HAVE_RPMATCH.
52001         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52002         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52003         (Include): Set to <stdlib.h>.
52004         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52005         HAVE_RPMATCH.
52006         * NEWS: Document the change.
52007
52008 2008-04-28  Bruno Haible  <bruno@clisp.org>
52009
52010         Change rpmatch to use nl_langinfo when appropriate.
52011         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52012         (N_): New macro.
52013         (localized_pattern): New function/macro.
52014         (try): Remove match, nomatch arguments. Copy the pattern into safe
52015         memory before caching it.
52016         (rpmatch): Use localized_pattern. Add translator comments.
52017         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52018         Suggested by Eric Blake.
52019         * modules/rpmatch (Depends-on): Add stdbool.
52020
52021 2008-04-28  Eric Blake  <ebb9@byu.net>
52022
52023         Add rawmemchr module, matching glibc.
52024         * modules/string (Makefile.am): New indicator.
52025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52026         * lib/string.in.h (rawmemchr): Declare when appropriate.
52027         * modules/rawmemchr: New file.
52028         * m4/rawmemchr.m4: Likewise.
52029         * lib/rawmemchr.c: Likewise.
52030         * modules/rawmemchr-tests: Likewise.
52031         * tests/test-rawmemchr.c: Likewise.
52032         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52033         module.
52034         * modules/strchrnul (Depends-on): Add rawmemchr.
52035         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52036
52037         Whitespace cleanup.
52038         * tests/test-strchrnul.c: Reindent.
52039         * lib/strchrnul.c: Likewise.
52040
52041         Optimize and test strchrnul.
52042         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52043         * modules/strchrnul-tests: New file.
52044         * tests/test-strchrnul.c: Likewise.
52045
52046         Remove intprops dependency.
52047         * modules/memchr (Depends-on): Remove intprops.
52048         * modules/memrchr (Depends-on): Likewise.
52049         * modules/memchr2 (Depends-on): Likewise.
52050         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52051         * lib/memrchr.c (__memrchr): Likewise.
52052         * lib/memrchr2.c (memchr2): Likewise.
52053         Reported by Simon Josefsson.
52054
52055 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52056
52057         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52058         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52059
52060 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52061
52062         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52063
52064         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52065
52066         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52067
52068         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52069         declarations.
52070         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52071
52072         * m4/inet_pton.m4: Don't check for header files.
52073
52074         * m4/inet_ntop.m4: Don't check for header files.
52075
52076 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52077
52078         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52079         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52080         trigger for cygwin).
52081         Reported by Bruno Haible  <bruno@clisp.org>.
52082
52083 2008-04-28  Bruno Haible  <bruno@clisp.org>
52084
52085         * doc/posix-functions/strdup.texi: Mention mingw problem.
52086
52087 2008-04-27  Bruno Haible  <bruno@clisp.org>
52088
52089         * modules/stat-time-tests (Depends-on): Add sleep.
52090         * tests/test-stat-time.c (force_unlink): New function.
52091         (cleanup): Use it.
52092         (test_mtime): Remove the ctime related tests.
52093         (test_ctime): New function, containing the ctime related tests.
52094         (main): Call test_ctime, except on native Windows platforms.
52095
52096 2008-04-27  Bruno Haible  <bruno@clisp.org>
52097
52098         * lib/rpmatch.c (rpmatch): Add some comments.
52099         Reported by James Youngman <jay@gnu.org>.
52100
52101 2008-04-27  Bruno Haible  <bruno@clisp.org>
52102
52103         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52104         quiet NaNs.
52105
52106 2008-04-27  Bruno Haible  <bruno@clisp.org>
52107
52108         Make test-yesno.sh work on mingw.
52109         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52110         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52111         (main): Set stdin to binary mode.
52112         * modules/yesno-tests (Depends-on): Add binary-io.
52113
52114 2008-04-27  Bruno Haible  <bruno@clisp.org>
52115
52116         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52117         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52118         argument that lie outside the IEEE 854 domain.
52119         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52120         (gl_ISFINITE): Use it.
52121         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52122
52123 2008-04-27  Bruno Haible  <bruno@clisp.org>
52124
52125         Allow local renaming in config.h.
52126         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52127
52128 2008-04-27  Bruno Haible  <bruno@clisp.org>
52129
52130         * lib/memchr.c (__memchr): Change type of 'i'.
52131         * lib/memchr2.c (memchr2): Likewise.
52132
52133 2008-04-26  Eric Blake  <ebb9@byu.net>
52134         and Bruno Haible  <bruno@clisp.org>
52135
52136         Optimize and test memrchr.
52137         * modules/memrchr (Depends-on): Add intprops.
52138         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52139         * modules/memrchr-tests: New file.
52140         * tests/test-memrchr.c: New file.
52141
52142 2008-04-26  Bruno Haible  <bruno@clisp.org>
52143
52144         Add tentative support for DragonFly BSD.
52145         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52146         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52147         fp.
52148         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52149         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52150         * lib/fpurge.c (fpurge): Likewise.
52151         * lib/freadable.c (freaadable): Likewise.
52152         * lib/freadahead.c (freadahead): Likewise.
52153         * lib/freading.c (freading): Likewise.
52154         * lib/freadptr.c (freadptr): Likewise.
52155         * lib/freadseek.c (freadptrinc): Likewise.
52156         * lib/fseeko.c (fseeko): Likewise.
52157         * lib/fseterr.c (fseterr): Likewise.
52158         * lib/fwritable.c (fwritable): Likewise.
52159         * lib/fwriting.c (fwriting): Likewise.
52160
52161 2008-04-26  Bruno Haible  <bruno@clisp.org>
52162
52163         * lib/stdio-impl.h: New file.
52164         * lib/fbufmode.c: Include stdio-impl.h.
52165         (fbufmode): Use fp_, remove redundant #defines.
52166         * lib/fflush.c: Include stdio-impl.h.
52167         (clear_ungetc_buffer): Remove redundant #defines.
52168         * lib/fpurge.c: Include stdio-impl.h.
52169         (fpurge): Remove redundant #defines.
52170         * lib/freadable.c: Include stdio-impl.h.
52171         (freadable): Remove redundant #defines.
52172         * lib/freadahead.c: Include stdio-impl.h.
52173         (freadahead): Remove redundant #defines.
52174         * lib/freading.c: Include stdio-impl.h.
52175         (freading): Remove redundant #defines.
52176         * lib/freadptr.c: Include stdio-impl.h.
52177         (freadptr): Remove redundant #defines.
52178         * lib/freadseek.c: Include stdio-impl.h.
52179         (freadptrinc): Remove redundant #defines.
52180         * lib/fseeko.c: Include stdio-impl.h.
52181         (rpl_fseeko): Remove redundant #defines.
52182         * lib/fseterr.c: Include stdio-impl.h.
52183         (fseterr): Remove redundant #defines.
52184         * lib/fwritable.c: Include stdio-impl.h.
52185         (fwritable: Remove redundant #defines.
52186         * lib/fwriting.c: Include stdio-impl.h.
52187         (fwriting): Remove redundant #defines.
52188         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52189         * modules/fflush (Files): Likewise.
52190         * modules/fpurge (Files): Likewise.
52191         * modules/freadable (Files): Likewise.
52192         * modules/freadahead (Files): Likewise.
52193         * modules/freading (Files): Likewise.
52194         * modules/freadptr (Files): Likewise.
52195         * modules/freadseek (Files): Likewise.
52196         * modules/fseeko (Files): Likewise.
52197         * modules/fseterr (Files): Likewise.
52198         * modules/fwritable (Files): Likewise.
52199         * modules/fwriting (Files): Likewise.
52200
52201 2008-04-26  Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52204         restore_seek_optimization, update_fpos_cache): New functions, extracted
52205         from rpl_fflush.
52206         (rpl_fflush): Use them.
52207         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52208         (gl_REPLACE_FFLUSH): Use it.
52209
52210 2008-04-26  Bruno Haible  <bruno@clisp.org>
52211
52212         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52213         on Solaris.
52214         * tests/test-xstrtoimax.sh: Likewise.
52215         * tests/test-xstrtoumax.sh: Likewise.
52216         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52217
52218 2008-04-26  Bruno Haible  <bruno@clisp.org>
52219
52220         * modules/memchr-tests: New file.
52221         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52222
52223 2008-04-26  Eric Blake  <ebb9@byu.net>
52224             Bruno Haible  <bruno@clisp.org>
52225
52226         * lib/memchr.c: Include intprops.h.
52227         (__memchr): Optimize parallel detection of matching bytes. Rename local
52228         variables. Add explanatory comments.
52229
52230 2008-04-26  Bruno Haible  <bruno@clisp.org>
52231
52232         Fix module 'memchr', broken since 2000-10-28.
52233         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52234
52235 2008-04-26  Bruno Haible  <bruno@clisp.org>
52236
52237         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52238         comments.
52239
52240 2008-04-25  Eric Blake  <ebb9@byu.net>
52241
52242         Use native fstatat on cygwin 1.7.0.
52243         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52244         first.
52245
52246 2008-04-23  Eric Blake  <ebb9@byu.net>
52247
52248         Improve memchr2 performance.
52249         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52250         NUL bytes.
52251         * modules/memchr2 (Depends-on): Use intprops.h.
52252
52253 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52254
52255         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52256         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52257         <blp@cs.stanford.edu>.
52258
52259 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52260
52261         * lib/arpa_inet.in.h: New file.
52262
52263         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52264         (Makefile.am): Sed in substitute header file.
52265
52266         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52267         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52268
52269         * modules/inet_ntop (configure.ac): Use
52270         gl_ARPA_INET_MODULE_INDICATOR.
52271
52272         * modules/inet_pton (configure.ac): Use
52273         gl_ARPA_INET_MODULE_INDICATOR.
52274
52275 2008-04-22  Jim Meyering  <meyering@redhat.com>
52276
52277         * modules/verify (License): Re-license as LGPLv2+.
52278
52279 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52280
52281         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52282         parameter to void* as per POSIX standard (MinGW uses char*).
52283
52284 2008-04-21  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52287         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52288         Define to replacements if REPLACE_ISWCNTRL is 1.
52289         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52290         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52291         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52292         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52293         what it fixes.
52294         * doc/posix-functions/iswalpha.texi: Likewise.
52295         * doc/posix-functions/iswblank.texi: Likewise.
52296         * doc/posix-functions/iswcntrl.texi: Likewise.
52297         * doc/posix-functions/iswdigit.texi: Likewise.
52298         * doc/posix-functions/iswgraph.texi: Likewise.
52299         * doc/posix-functions/iswlower.texi: Likewise.
52300         * doc/posix-functions/iswprint.texi: Likewise.
52301         * doc/posix-functions/iswpunct.texi: Likewise.
52302         * doc/posix-functions/iswspace.texi: Likewise.
52303         * doc/posix-functions/iswupper.texi: Likewise.
52304         * doc/posix-functions/iswxdigit.texi: Likewise.
52305         Reported by Alain Guibert.
52306
52307 2008-04-21  Bruno Haible  <bruno@clisp.org>
52308
52309         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52310         Patch by Alain Guibert.
52311
52312 2008-04-21  Bruno Haible  <bruno@clisp.org>
52313
52314         Fix test failures on mingw.
52315         * tests/test-xstrtol.c (print_no_progname): New function.
52316         (main): Install it in error_print_progname hook.
52317         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52318         * tests/test-xstrtoimax.sh: Likewise.
52319         * tests/test-xstrtoumax.sh: Likewise.
52320
52321 2008-04-21  Bruno Haible  <bruno@clisp.org>
52322
52323         Fix test failure on mingw.
52324         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52325
52326 2008-04-21  Bruno Haible  <bruno@clisp.org>
52327
52328         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52329         Actually assign a value.
52330
52331 2008-04-20  Bruno Haible  <bruno@clisp.org>
52332
52333         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52334         take 2.
52335         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52336         'canonicalize-lgpl' module is also used.
52337         * lib/canonicalize-lgpl.c: Undo last change.
52338         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52339
52340 2008-04-20  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52343         config.h. Provide _mkdir based fallback for mingw.
52344         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52345         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52346         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52347         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52348         rather than defining mkdir in config.h.
52349         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52350         (gl_SYS_STAT_H_DEFAULTS): New macro.
52351         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52352         HAVE_IO_H any more.
52353         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52354         HAVE_DECL_MKDIR and HAVE_IO_H.
52355
52356 2008-04-20  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/isapipe.c: Port to native Windows platforms.
52359
52360 2008-04-20  Bruno Haible  <bruno@clisp.org>
52361
52362         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52363
52364 2008-04-21  Eric Blake  <ebb9@byu.net>
52365
52366         Work around preprocessors that don't handle UINTMAX_MAX.
52367         * lib/memchr2.c (memchr2): Avoid embedded #if.
52368         Reported by Alain Guibert, fix suggested by Bruno Haible.
52369
52370 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52371
52372         * doc/posix-functions/strftime.texi (strftime): Explain better
52373         Windows incompatibility.  Suggested by Micah Cowan
52374         <micah@cowan.name>.
52375
52376 2008-04-20  Bruno Haible  <bruno@clisp.org>
52377
52378         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52379         unistr/u8-mblen.
52380
52381 2008-04-20  Bruno Haible  <bruno@clisp.org>
52382
52383         Fix test failure on platforms with non-GNU iconv.
52384         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52385         (U_TO_U8): Use it, rather than u16_to_u8.
52386         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52387         units at the end of the input string.
52388         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52389
52390 2008-04-20  Bruno Haible  <bruno@clisp.org>
52391
52392         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52393         when the resulting length is 0.
52394         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52395
52396 2008-04-20  Bruno Haible  <bruno@clisp.org>
52397
52398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52399         works.
52400         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52401
52402 2008-04-20  Bruno Haible  <bruno@clisp.org>
52403
52404         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52405         * modules/tsearch-tests (configure.ac): Test for initstate function.
52406
52407 2008-04-20  Bruno Haible  <bruno@clisp.org>
52408
52409         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52410         for nlink_t if missing.
52411         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52412
52413 2008-04-19  Bruno Haible  <bruno@clisp.org>
52414
52415         Work around snprintf bug on Linux libc5.
52416         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52417         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52418         gl_SNPRINTF_SIZE1.
52419         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52420         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52421         that test failed.
52422         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52423         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52424         * modules/snprintf (Files): Add m4/printf.m4.
52425         * modules/vsnprintf (Files): Likewise.
52426         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52427         * doc/posix-functions/vsnprintf.texi: Likewise.
52428
52429 2008-04-19  Bruno Haible  <bruno@clisp.org>
52430
52431         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52432         from 0.0058 to less than 10^-7.
52433
52434 2008-04-19  Bruno Haible  <bruno@clisp.org>
52435
52436         Fix rounding when a precision is given.
52437         * lib/vasnprintf.c (is_borderline): New function.
52438         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52439         9...9x.
52440         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52441         %e, %g.
52442         * tests/test-vasprintf-posix.c (test_function): Likewise.
52443         * tests/test-snprintf-posix.h (test_function): Likewise.
52444         * tests/test-sprintf-posix.h (test_function): Likewise.
52445         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52446         * tests/test-printf-posix.h (test_function): Likewise.
52447         * tests/test-printf-posix.output: Update.
52448         Reported by John Darrington <john@darrington.wattle.id.au> via
52449         Ben Pfaff <blp@cs.stanford.edu>.
52450
52451 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52452
52453         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52454         Suggested by Bruno Haible <bruno@clisp.org>.
52455
52456 2008-04-17  Bruno Haible  <bruno@clisp.org>
52457
52458         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52459         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52460         implementation.
52461         Patch by Bruce Merry <bmerry@gmail.com>.
52462
52463 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52464
52465         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52466         doesn't work under Windows.
52467
52468 2008-04-16  Bruno Haible  <bruno@clisp.org>
52469
52470         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52471         New macros.
52472         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52473         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52474         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52475         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52476         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52477         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52478         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52479         macros.
52480         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52481         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52482         Northern Sotho, Uighur.
52483
52484 2008-04-16  Bruno Haible  <bruno@clisp.org>
52485
52486         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52487         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52488         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52489         Reported by Daniel Bergström <daniel@octocode.com>.
52490
52491 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52492             Bruno Haible  <bruno@clisp.org>
52493
52494         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52495         function.
52496         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52497         New functions, mostly extracted from gl_locale_name_default.
52498         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52499
52500 2008-04-16  Eric Blake  <ebb9@byu.net>
52501
52502         Adjust strtod detection to catch glibc 2.7 bug.
52503         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52504         Reported by John Gatewood Ham.
52505
52506 2008-04-16  Bruno Haible  <bruno@clisp.org>
52507
52508         Add tentative support for Linux libc5.
52509         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52510         * lib/fpurge.c (fpurge): Likewise.
52511         * lib/freadable.c (freadable): Likewise.
52512         * lib/freadahead.c (freadahead): Likewise.
52513         * lib/freading.c (freading): Likewise.
52514         * lib/freadptr.c (freadptr): Likewise.
52515         * lib/freadseek.c (freadptrinc): Likewise.
52516         * lib/fseeko.c (rpl_fseeko): Likewise.
52517         * lib/fseterr.c (fseterr): Likewise.
52518         * lib/fwritable.c (fwritable): Likewise.
52519         * lib/fwriting.c (fwriting): Likewise.
52520         Reported by Alain Guibert <alguibert+bts@free.fr>.
52521
52522 2008-04-15  Bruno Haible  <bruno@clisp.org>
52523
52524         * modules/mathl (configure.ac): Define module indicator.
52525
52526 2008-04-15  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/logl.c (logl): Remove unused variables.
52529
52530 2008-04-15  Bruno Haible  <bruno@clisp.org>
52531
52532         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52533         fails.
52534
52535 2008-04-15  Bruno Haible  <bruno@clisp.org>
52536
52537         * lib/trim.c (trim2): Fix argument of isspace() macro.
52538
52539 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52540
52541         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52542         to 0.
52543         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52544
52545 2008-04-14  Bruno Haible  <bruno@clisp.org>
52546
52547         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52548         AC_LANG_PROGRAM argument.
52549         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52550         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52552         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52553         * m4/math_h.m4 (gl_MATH_H): Likewise.
52554         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52555         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52556         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52557         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52558         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52559         * m4/regex.m4 (gl_REGEX): Likewise.
52560         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52561         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52562         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52563         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52564         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52565         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52566         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52567         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52568
52569 2008-04-14  Jim Meyering  <meyering@redhat.com>
52570
52571         test-strtod: fix typos: s/abs/fabs/
52572         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52573
52574 2008-04-13  Bruno Haible  <bruno@clisp.org>
52575
52576         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52577         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52578         module is also used and while not building the reloc-wrapper.
52579
52580 2008-04-13  Bruno Haible  <bruno@clisp.org>
52581
52582         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52583
52584 2008-04-13  Bruno Haible  <bruno@clisp.org>
52585
52586         Fix AIX compilation failure introduced on 2008-04-02.
52587         * tests/test-frexp.c (exp): Undefine before redefining.
52588         * tests/test-frexpl.c (exp): Likewise.
52589
52590 2008-04-13  Bruno Haible  <bruno@clisp.org>
52591
52592         Work around a HP-UX stdio bug.
52593         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52594         * tests/test-ftello.c (main): Likewise.
52595         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52596         * doc/posix-functions/ftello.texi: Likewise.
52597
52598 2008-04-13  Bruno Haible  <bruno@clisp.org>
52599
52600         Make test-signbit pass on HP-UX/hppa.
52601         * tests/test-signbit.c (minus_zerol): New variable.
52602         (test_signbitl): Use it.
52603
52604 2008-04-13  Bruno Haible  <bruno@clisp.org>
52605
52606         Make truncl work on OSF/1 4.0.
52607         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52608         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52609         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52611         HAVE_DECL_TRUNCL.
52612         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52613         HAVE_DECL_TRUNCL.
52614         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52615
52616 2008-04-13  Bruno Haible  <bruno@clisp.org>
52617
52618         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52619
52620 2008-04-13  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52623         expression, so as to avoid HP-UX 11 cc compiler bug.
52624
52625 2008-04-13  Bruno Haible  <bruno@clisp.org>
52626
52627         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52628
52629 2008-04-13  Bruno Haible  <bruno@clisp.org>
52630
52631         * lib/git-merge-changelog.c: Remove empty declaration outside of
52632         functions.
52633
52634 2008-04-13  Bruno Haible  <bruno@clisp.org>
52635
52636         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52637
52638 2008-04-13  Bruno Haible  <bruno@clisp.org>
52639
52640         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52641         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52642         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52643         also if it exists but lacks definitions of the SHUT_* macros.
52644         * modules/sys_socket (Description): Update.
52645         Reported by Elbert Pol <e.pol@chello.nl>.
52646
52647 2008-04-13  Bruno Haible  <bruno@clisp.org>
52648
52649         * lib/localcharset.c (OS2): Don't redefine if already defined.
52650         Reported by Elbert Pol <e.pol@chello.nl>.
52651
52652 2008-04-13  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/binary-io.h [__EMX__]: Include <io.h>.
52655         Reported by Elbert Pol <e.pol@chello.nl>.
52656
52657 2008-04-12  Bruno Haible  <bruno@clisp.org>
52658
52659         * lib/fpucw.h: Enable the definitions also for x86_64.
52660         Needed for NetBSD/x86_64.
52661         Reported by Thomas Klausner <tk@giga.or.at>.
52662
52663 2008-04-12  Bruno Haible  <bruno@clisp.org>
52664
52665         * tests/test-strtod.c: Include isnand.h.
52666         (main): Use isnand instead of isnan.
52667         Reported by Jim Meyering.
52668
52669 2008-04-12  Bruno Haible  <bruno@clisp.org>
52670
52671         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52672         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52673
52674 2008-04-12  Jim Meyering  <meyering@redhat.com>
52675
52676         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52677
52678 2008-04-12  Bruno Haible  <bruno@clisp.org>
52679
52680         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52681         Reported by Elbert Pol <e.pol@chello.nl>.
52682
52683 2008-04-12  Eric Blake  <ebb9@byu.net>
52684
52685         Work around Solaris 10 math.h bug.
52686         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52687         (gl_MATH_H_DEFAULTS): Set up default.
52688         * modules/math (Makefile.am): Replace new indicators.
52689         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52690         * tests/test-math.c (main): Test this.
52691         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52692         * doc/posix-headers/math.texi (math.h): Mention bug.
52693         Reported by Nelson H. F. Beebe and Jim Meyering.
52694
52695 2008-04-11  Bruno Haible  <bruno@clisp.org>
52696
52697         Adapt to future versions of Apple GCC.
52698         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52699         Reported by Peter O'Gorman <peter@pogma.com>.
52700
52701 2008-04-11  Bruno Haible  <bruno@clisp.org>
52702
52703         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52704
52705 2008-04-11  Bruno Haible  <bruno@clisp.org>
52706
52707         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52708
52709         * modules/getaddrinfo-tests (Makefile.am): Define
52710         test_getaddrinfo_LDADD.
52711
52712 2008-04-11  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52715         (init): Fix syntax error.
52716         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52717         is declared.
52718
52719 2008-04-11  Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52722         * modules/glob (Depends-on): Add stdbool.
52723
52724 2008-04-11  Bruno Haible  <bruno@clisp.org>
52725
52726         * lib/trim.c: Include <string.h>.
52727
52728 2008-04-11  Eric Blake  <ebb9@byu.net>
52729
52730         Avoid compile failure on OS/2.
52731         * lib/regex_internal.h (internal_function): Disable optimization
52732         on OS/2 (__EMX__), where it caused compiler error.
52733         Reported by Elbert Pol.
52734
52735 2008-04-11  Bruno Haible  <bruno@clisp.org>
52736
52737         Flush the standard error stream before aborting. Needed on mingw.
52738         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52739         * tests/test-array_list.c (ASSERT): Likewise.
52740         * tests/test-array_oset.c (ASSERT): Likewise.
52741         * tests/test-avltree_list.c (ASSERT): Likewise.
52742         * tests/test-avltree_oset.c (ASSERT): Likewise.
52743         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52744         * tests/test-binary-io.c (ASSERT): Likewise.
52745         * tests/test-byteswap.c (ASSERT): Likewise.
52746         * tests/test-c-ctype.c (ASSERT): Likewise.
52747         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52748         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52749         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52750         * tests/test-c-strstr.c (ASSERT): Likewise.
52751         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52752         * tests/test-canonicalize.c (ASSERT): Likewise.
52753         * tests/test-carray_list.c (ASSERT): Likewise.
52754         * tests/test-ceilf1.c (ASSERT): Likewise.
52755         * tests/test-ceilf2.c (ASSERT): Likewise.
52756         * tests/test-ceill.c (ASSERT): Likewise.
52757         * tests/test-count-one-bits.c (ASSERT): Likewise.
52758         * tests/test-fbufmode.c (ASSERT): Likewise.
52759         * tests/test-fflush2.c (ASSERT): Likewise.
52760         * tests/test-floorf1.c (ASSERT): Likewise.
52761         * tests/test-floorf2.c (ASSERT): Likewise.
52762         * tests/test-floorl.c (ASSERT): Likewise.
52763         * tests/test-fopen.c (ASSERT): Likewise.
52764         * tests/test-fpending.c (ASSERT): Likewise.
52765         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52766         * tests/test-fpurge.c (ASSERT): Likewise.
52767         * tests/test-freadable.c (ASSERT): Likewise.
52768         * tests/test-freadahead.c (ASSERT): Likewise.
52769         * tests/test-freading.c (ASSERT): Likewise.
52770         * tests/test-freadptr.c (ASSERT): Likewise.
52771         * tests/test-freadptr2.c (ASSERT): Likewise.
52772         * tests/test-freadseek.c (ASSERT): Likewise.
52773         * tests/test-freopen.c (ASSERT): Likewise.
52774         * tests/test-frexp.c (ASSERT): Likewise.
52775         * tests/test-frexpl.c (ASSERT): Likewise.
52776         * tests/test-fseek.c (ASSERT): Likewise.
52777         * tests/test-fseeko.c (ASSERT): Likewise.
52778         * tests/test-fstrcmp.c (ASSERT): Likewise.
52779         * tests/test-ftell.c (ASSERT): Likewise.
52780         * tests/test-ftello.c (ASSERT): Likewise.
52781         * tests/test-func.c (ASSERT): Likewise.
52782         * tests/test-fwritable.c (ASSERT): Likewise.
52783         * tests/test-fwriting.c (ASSERT): Likewise.
52784         * tests/test-getdelim.c (ASSERT): Likewise.
52785         * tests/test-getline.c (ASSERT): Likewise.
52786         * tests/test-i-ring.c (ASSERT): Likewise.
52787         * tests/test-iconv-utf.c (ASSERT): Likewise.
52788         * tests/test-iconv.c (ASSERT): Likewise.
52789         * tests/test-isfinite.c (ASSERT): Likewise.
52790         * tests/test-isnand.c (ASSERT): Likewise.
52791         * tests/test-isnanf.c (ASSERT): Likewise.
52792         * tests/test-isnanl.h (ASSERT): Likewise.
52793         * tests/test-ldexpl.c (ASSERT): Likewise.
52794         * tests/test-linked_list.c (ASSERT): Likewise.
52795         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52796         * tests/test-localename.c (ASSERT): Likewise.
52797         * tests/test-lseek.c (ASSERT): Likewise.
52798         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52799         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52800         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52801         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52802         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52803         * tests/test-mbschr.c (ASSERT): Likewise.
52804         * tests/test-mbscspn.c (ASSERT): Likewise.
52805         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52806         * tests/test-mbspbrk.c (ASSERT): Likewise.
52807         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52808         * tests/test-mbsrchr.c (ASSERT): Likewise.
52809         * tests/test-mbsspn.c (ASSERT): Likewise.
52810         * tests/test-mbsstr1.c (ASSERT): Likewise.
52811         * tests/test-mbsstr2.c (ASSERT): Likewise.
52812         * tests/test-mbsstr3.c (ASSERT): Likewise.
52813         * tests/test-memchr2.c (ASSERT): Likewise.
52814         * tests/test-memmem.c (ASSERT): Likewise.
52815         * tests/test-open.c (ASSERT): Likewise.
52816         * tests/test-printf-frexp.c (ASSERT): Likewise.
52817         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52818         * tests/test-printf-posix.c (ASSERT): Likewise.
52819         * tests/test-quotearg.c (ASSERT): Likewise.
52820         * tests/test-rbtree_list.c (ASSERT): Likewise.
52821         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52822         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52823         * tests/test-round1.c (ASSERT): Likewise.
52824         * tests/test-roundf1.c (ASSERT): Likewise.
52825         * tests/test-roundl.c (ASSERT): Likewise.
52826         * tests/test-signbit.c (ASSERT): Likewise.
52827         * tests/test-sleep.c (ASSERT): Likewise.
52828         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52829         * tests/test-snprintf.c (ASSERT): Likewise.
52830         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52831         * tests/test-stat-time.c (ASSERT): Likewise.
52832         * tests/test-strcasestr.c (ASSERT): Likewise.
52833         * tests/test-strerror.c (ASSERT): Likewise.
52834         * tests/test-striconv.c (ASSERT): Likewise.
52835         * tests/test-striconveh.c (ASSERT): Likewise.
52836         * tests/test-striconveha.c (ASSERT): Likewise.
52837         * tests/test-strsignal.c (ASSERT): Likewise.
52838         * tests/test-strstr.c (ASSERT): Likewise.
52839         * tests/test-strtod.c (ASSERT): Likewise.
52840         * tests/test-trunc1.c (ASSERT): Likewise.
52841         * tests/test-trunc2.c (ASSERT): Likewise.
52842         * tests/test-truncf1.c (ASSERT): Likewise.
52843         * tests/test-truncf2.c (ASSERT): Likewise.
52844         * tests/test-truncl.c (ASSERT): Likewise.
52845         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52846         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52847         * tests/test-vasnprintf.c (ASSERT): Likewise.
52848         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52849         * tests/test-vasprintf.c (ASSERT): Likewise.
52850         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52851         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52852         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52853         * tests/test-vsnprintf.c (ASSERT): Likewise.
52854         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52855         * tests/test-wcwidth.c (ASSERT): Likewise.
52856         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52857         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52858         * tests/test-xvasprintf.c (ASSERT): Likewise.
52859         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52860         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52861         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52862         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52863         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52864         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52865         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52866         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52867         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52868         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52869         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52870         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52871         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52872         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52873         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52874         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52875         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52876         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52877         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52878         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52879         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52880         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52881         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52882         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52883         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52884         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52885         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52886         * tests/unictype/test-combining.c (ASSERT): Likewise.
52887         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52888         * tests/unictype/test-digit.c (ASSERT): Likewise.
52889         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52890         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52891         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52892         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52893         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52894         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52895         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52896         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52897         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52898         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52899         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52900         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52901         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52902         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52903         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52904         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52905         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52906         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52907         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52908         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52909         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52910         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52911         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52912         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52913         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52914         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52915         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52916         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52917         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52918         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52919         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52920         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52921         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52922         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52923         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52924         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52925         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52926         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52927         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52928         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52929         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52930         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52931         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52932         Reported by Eric Blake.
52933
52934 2008-04-11  Bruno Haible  <bruno@clisp.org>
52935
52936         * lib/wchar.in.h: Tweak comment.
52937
52938 2008-04-11  Bruno Haible  <bruno@clisp.org>
52939
52940         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52941         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52942         gl_COMMON.
52943         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52944
52945 2008-04-11  Bruno Haible  <bruno@clisp.org>
52946
52947         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52948
52949 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52950
52951         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52952         of attempting to use non-existing /dev/*random.  Based on patch
52953         from Adam Strzelecki <ono@java.pl> in
52954         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52955
52956 2008-04-08  Bruno Haible  <bruno@clisp.org>
52957
52958         Add tentative support for emx+gcc.
52959         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52960         * lib/fpurge.c (fpurge): Likewise.
52961         * lib/freadable.c (freadable): Likewise.
52962         * lib/freadahead.c (freadahead): Likewise.
52963         * lib/freading.c (freading): Likewise.
52964         * lib/freadptr.c (freadptr): Likewise.
52965         * lib/freadseek.c (freadptrinc): Likewise.
52966         * lib/fseeko.c (rpl_fseeko): Likewise.
52967         * lib/fseterr.c (fseterr): Likewise.
52968         * lib/fwritable.c (fwritable): Likewise.
52969         * lib/fwriting.c (fwriting): Likewise.
52970         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52971
52972 2008-04-09  Eric Blake  <ebb9@byu.net>
52973
52974         Avoid some autoconf warnings.
52975         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52976         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52977         * m4/afs.m4 (gl_AFS): Likewise.
52978         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52979         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52980         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52981         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52982         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52983         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52984         (AC_CHECK_DECLS_ONCE): Likewise.
52985         Rename file...
52986         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52987         gnulib-tool requires autoconf 2.59 or better.
52988         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52989
52990 2008-04-08  Eric Blake  <ebb9@byu.net>
52991
52992         Use 'git describe --match' if present (added in git 1.5.5).
52993         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52994         if possible.
52995
52996 2008-04-08  Bruno Haible  <bruno@clisp.org>
52997
52998         Add tentative support for OpenServer.
52999         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53000         _ptr, _cnt.
53001         * lib/fpurge.c (fpurge): Likewise.
53002         * lib/freadable.c (freadable): Likewise.
53003         * lib/freadahead.c (freadahead): Likewise.
53004         * lib/freading.c (freading): Likewise.
53005         * lib/freadptr.c (freadptr): Likewise.
53006         * lib/freadseek.c (freadptrinc): Likewise.
53007         * lib/fseeko.c (rpl_fseeko): Likewise.
53008         * lib/fseterr.c (fseterr): Likewise.
53009         * lib/fwritable.c (fwritable): Likewise.
53010         * lib/fwriting.c (fwriting): Likewise.
53011         Reported by Roger Cornelius <rac@tenzing.org> and
53012         Brian K. White <brian@aljex.com>.
53013
53014 2008-04-06  Jim Meyering  <meyering@redhat.com>
53015
53016         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53017
53018 2008-04-06  Bruno Haible  <bruno@clisp.org>
53019
53020         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53021         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53022         * tests/test-printf-posix.sh: Likewise.
53023         * tests/test-vfprintf-posix.sh: Likewise.
53024         * tests/test-vprintf-posix.sh: Likewise.
53025         * tests/test-xprintf-posix.sh: Likewise.
53026
53027 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53028
53029         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53030         hide error from 'ls', needed on OS/2.
53031         Report by Elbert Pol <elbert.pol@gmail.com>.
53032
53033 2008-04-04  Eric Blake  <ebb9@byu.net>
53034
53035         Make test-fseeko.c failures meaningful.
53036         * tests/test-fseeko.c: Print line number on failure.
53037         * tests/test-fseek.c: Likewise.
53038         Reported by Nelson H. F. Beebe.
53039
53040         Improve strtod bug detection check.
53041         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53042         required for Solaris 10.
53043         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53044
53045 2008-04-04  Bruno Haible  <bruno@clisp.org>
53046
53047         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53048         by m4/setenv.m4.
53049
53050 2008-04-03  Eric Blake  <ebb9@byu.net>
53051
53052         Ensure sane .version contents.
53053         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53054         version string.
53055         * build-aux/git-version-gen: Improve documentation.
53056
53057         Make GNU make output nicer.
53058         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53059         MAKECMDGOALS to enforce message for all command line targets.  Set
53060         srcdir for use in maint.mk.
53061
53062         Another maintainer tweak.
53063         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53064         a target that regenerates version.
53065
53066 2008-04-03  Jim Meyering  <meyering@redhat.com>
53067
53068         vc-list-files: don't cause coreutils "make po-check" failure
53069         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53070
53071 2008-04-03  Eric Blake  <ebb9@byu.net>
53072
53073         Allow VPATH usage of vc-list-files.
53074         * build-aux/vc-list-files (scriptversion): Add timestamp.
53075         (options): Add --help, --version, -C.
53076         (CVS): Support installed cvsu.
53077
53078 2008-04-02  Bruno Haible  <bruno@clisp.org>
53079
53080         Avoid some "statement with no effect" warnings from gcc.
53081         * tests/test-wctype.c (main): Explicitly ignore unused values.
53082         Reported by Jim Meyering.
53083
53084 2008-04-02  Jim Meyering  <meyering@redhat.com>
53085
53086         Avoid some warnings from "gcc -Wshadow".
53087         * tests/test-frexp.c (exp): Define to a different identifier.
53088         * tests/test-frexpl.c (exp): Likewise.
53089
53090 2008-04-03  Jim Meyering  <meyering@redhat.com>
53091
53092         bootstrap: remove dangling *.[ch] symlinks from lib
53093         * build-aux/bootstrap [dangling symlink removal]: Move find's
53094         -depth option to precede all others, to avoid a warning.
53095         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53096
53097 2008-04-02  Bruno Haible  <bruno@clisp.org>
53098
53099         Avoid some warnings from "gcc -Wshadow".
53100         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53101         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53102         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53103         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53104         Reported by Jim Meyering.
53105
53106 2008-04-01  Bruno Haible  <bruno@clisp.org>
53107
53108         Fix test to work on IRIX 6.5 with cc.
53109         * tests/test-math.c (numeric_equal): New function.
53110         (main): Use it.
53111
53112 2008-04-01  Bruno Haible  <bruno@clisp.org>
53113
53114         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53115
53116 2008-04-01  Bruno Haible  <bruno@clisp.org>
53117
53118         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53119         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53120         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53121         (Depends-on): Remove math.
53122
53123         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53124         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53125         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53126         (Depends-on): Remove math.
53127
53128         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53129         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53130         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53131         (Depends-on): Remove math.
53132         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53133         (Depends-on): Remove math.
53134
53135         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53136         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53137         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53138         (Depends-on): Remove math.
53139         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53140         (Depends-on): Remove math.
53141
53142         * tests/test-round1.c: Include nan.h.
53143         (main): Use NaNd instead of NAN.
53144         * modules/round-tests (Files): Add tests/nan.h.
53145
53146         * tests/test-trunc1.c: Include nan.h.
53147         (main): Use NaNd instead of NAN.
53148         * modules/trunc-tests (Files): Add tests/nan.h.
53149
53150         * tests/test-roundf1.c: Include nan.h.
53151         (main): Use NaNf instead of NAN.
53152         * modules/roundf-tests (Files): Add tests/nan.h.
53153
53154         * tests/test-truncf1.c: Include nan.h.
53155         (main): Use NaNf instead of NAN.
53156         * modules/truncf-tests (Files): Add tests/nan.h.
53157
53158         * tests/test-ceilf1.c: Include nan.h.
53159         (main): Use NaNf instead of NAN.
53160         * modules/ceilf-tests (Files): Add tests/nan.h.
53161
53162         * tests/test-floorf1.c: Include nan.h.
53163         (main): Use NaNf instead of NAN.
53164         * modules/floorf-tests (Files): Add tests/nan.h.
53165
53166         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53167         (main): Use NaNf instead of NAN.
53168         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53169
53170         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53171         (main): Use NaNd instead of NAN.
53172         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53173
53174         * tests/test-frexp.c: Include nan.h.
53175         (main): Use NaNd instead of NAN.
53176         * modules/frexp-tests (Files): Add tests/nan.h.
53177
53178         * lib/isnan.c: Don't include <math.h>.
53179         (FUNC): Don't use NAN macro.
53180         * modules/isnand-nolibm (Depends-on): Remove math.
53181         * modules/isnanf-nolibm (Depends-on): Remove math.
53182         * modules/isnanl (Depends-on): Remove math.
53183         * modules/isnanl-nolibm (Depends-on): Remove math.
53184
53185         * tests/nan.h: New file.
53186
53187 2008-04-01  Eric Blake  <ebb9@byu.net>
53188
53189         Fix typos.
53190         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53191         values to be the right type.
53192
53193         For now, cater to gnulib strtod inaccuracies.
53194         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53195         fractional results.  While not as nice from a QoI perspective, it
53196         is a quicker patch than correctly implementing decimal to binary
53197         rounding.
53198
53199 2008-03-31  Eric Blake  <ebb9@byu.net>
53200
53201         Guarantee a definition of NAN.
53202         * lib/math.in.h (NAN): Define if missing.
53203         * tests/test-math.c (main): Test it.
53204         * doc/posix-headers/math.texi (math.h): Document this.
53205         * lib/isnan.c (rpl_isnand): Use it.
53206         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53207         * tests/test-floorf1.c (NaN): Likewise.
53208         * tests/test-frexp.c (NaN): Likewise.
53209         * tests/test-isnand.c (NaN): Likewise.
53210         * tests/test-isnanf.c (NaN): Likewise.
53211         * tests/test-round1.c (NaN): Likewise.
53212         * tests/test-roundf1.c (NaN): Likewise.
53213         * tests/test-snprintf-posix.h (NaN): Likewise.
53214         * tests/test-sprintf-posix.h (NaN): Likewise.
53215         * tests/test-trunc1.c (NaN): Likewise.
53216         * tests/test-truncf1.c (NaN): Likewise.
53217         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53218         * tests/test-vasprintf-posix.c (NaN): Likewise.
53219         * modules/isnand-nolibm (Depends-on): Add math.
53220         * modules/isnanf-nolibm (Depends-on): Likewise.
53221         * modules/isnanl (Depends-on): Likewise.
53222         * modules/isnanl-nolibm (Depends-on): Likewise.
53223         * modules/snprintf-posix-tests (Depends-on): Likewise.
53224         * modules/sprintf-posix-tests (Depends-on): Likewise.
53225         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53226         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53227         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53228         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53229
53230 2008-03-31  Bruno Haible  <bruno@clisp.org>
53231
53232         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53233         * doc/posix-functions/strtod.texi: Likewise.
53234
53235 2008-03-31  Bruno Haible  <bruno@clisp.org>
53236
53237         * tests/test-strtod.c (main): Don't use C99 syntax.
53238
53239 2008-03-31  Bruno Haible  <bruno@clisp.org>
53240
53241         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53242         Reported by Eric Blake.
53243
53244 2008-03-31  Jim Meyering  <meyering@redhat.com>
53245
53246         Don't compare actual signbit return values.
53247         * tests/test-strtod.c (main): Rather, compare only their
53248         zero/non-zero nature.
53249
53250 2008-03-31  Eric Blake  <ebb9@byu.net>
53251
53252         More strtod documentation.
53253         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53254         failures as distinct bugs.
53255
53256 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53257
53258         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53259         Problem reported by Erik Benada in
53260         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53261
53262 2008-03-30  Bruno Haible  <bruno@clisp.org>
53263
53264         * tests/test-strtod.c: Add comments about which assertion fails on which
53265         platform.
53266         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53267
53268 2008-03-30  Eric Blake  <ebb9@byu.net>
53269
53270         Test signbit behavior on zeros.
53271         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53272         (test_signbitd, test_signbitl): Likewise.
53273
53274         More strtod touchups.
53275         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53276         sign of negative underflow, for now.  Use .5, not .1.
53277         * doc/posix-functions/strtod.texi (strtod): Mention these
53278         limitations.
53279         Reported by Jim Meyering.
53280
53281 2008-03-30  Bruno Haible  <bruno@clisp.org>
53282
53283         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53284         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53285
53286 2008-03-30  Bruno Haible  <bruno@clisp.org>
53287
53288         Avoid failure when attempting to return empty iconv results on some
53289         platforms.
53290         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53291         allocation, don't report ENOMEM when the resulting string is empty.
53292
53293 2008-03-30  Bruno Haible  <bruno@clisp.org>
53294
53295         Fix buffer overrun.
53296         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53297         Don't consider the width for tmp_length. Check count against tmp_length
53298         before doing the padding. Ensure enough allocation during padding.
53299
53300 2008-03-30  Eric Blake  <ebb9@byu.net>
53301
53302         strtod touchups.
53303         * lib/strtod.c (strtod): Avoid compiler warnings.
53304         Reported by Jim Meyering.
53305
53306 2008-03-30  Bruno Haible  <bruno@clisp.org>
53307
53308         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53309         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53310         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53311         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53312         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53313         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53314         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53315         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53316
53317         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53318         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53319         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53320         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53321         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53322         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53323         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53324         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53325
53326         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53327         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53328         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53329         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53330         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53331         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53332         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53333         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53334
53335         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53336         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53337
53338         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53339         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53340
53341         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53342         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53343
53344         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53346         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53347
53348         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53349         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53350         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53351
53352         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53353         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53354         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53355
53356         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53358         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53359
53360         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53361         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53362         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53363         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53364         (Depends-on): Add EOVERFLOW.
53365         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53366         (Depends-on): Add EOVERFLOW.
53367         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53368         (Depends-on): Add EOVERFLOW.
53369         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53370         (Depends-on): Add EOVERFLOW.
53371         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53372         (Depends-on): Add EOVERFLOW.
53373         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53374         (Depends-on): Add EOVERFLOW.
53375         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53376         (Depends-on): Add EOVERFLOW.
53377         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53378         (Depends-on): Add EOVERFLOW.
53379
53380         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53382         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53383
53384         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53386         * modules/snprintf (Depends-on): Add EOVERFLOW.
53387
53388         * lib/poll.c (EOVERFLOW): Remove fallback.
53389         * modules/poll (Depends-on): Add EOVERFLOW.
53390
53391         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53392         * modules/getugroups (Depends-on): Add EOVERFLOW.
53393
53394         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53395         * modules/getdelim (Depends-on): Add EOVERFLOW.
53396
53397         * lib/ftell.c (EOVERFLOW): Remove fallback.
53398         * modules/ftell (Depends-on): Add EOVERFLOW.
53399
53400         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53401         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53402         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53403
53404         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53405
53406         * modules/EOVERFLOW-tests: New file.
53407         * tests/test-EOVERFLOW.c: New file.
53408
53409         * modules/EOVERFLOW: New file.
53410         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53411
53412 2008-03-30  Bruno Haible  <bruno@clisp.org>
53413
53414         Fix bug introduced on 2007-06-10.
53415         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53416         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53417
53418 2008-03-30  Bruno Haible  <bruno@clisp.org>
53419
53420         Improve freadseek's efficiency after ungetc.
53421         * lib/freadseek.c: Include freadahead.h.
53422         (freadptrinc): New function, extracted from freadseek.
53423         (freadseek): Use it in a loop. Use freadahead to determine the number
53424         of loop iterations.
53425         * modules/freadseek (Depends-on): Add freadahead.
53426         (configure.ac): Require AC_C_INLINE.
53427
53428 2008-03-30  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/freadseek.c (freadseek): Don't ignore the return value of
53431         freadptr.
53432
53433 2008-03-29  Eric Blake  <ebb9@byu.net>
53434
53435         Add hex float support.
53436         * modules/strtod (Depends-on): Add c-ctype.
53437         (Link): Mention POW_LIB.
53438         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53439         whitespace between 'e' and exponent.
53440         * tests/test-strtod.c (main): Enable hex float tests.
53441         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53442         now provides.
53443
53444         Document various strtod bugs, with some fixes.
53445         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53446         "-0x", "inf", "nan", and hex constants.
53447         * doc/posix-functions/atof.texi (atof): Likewise.
53448         * modules/stdlib (Makefile.am): Support strtod.
53449         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53450         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53451         detect additional strtod bugs.
53452         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53453         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53454         bool where appropriate.  Parse 'inf' and 'nan'.
53455         * tests/test-strtod.c: New file.
53456         * modules/strtod (Depends-on): Add stdbool, stdlib.
53457         (configure.ac): Turn on module indicator.
53458         * modules/strtod-tests: New module.
53459
53460 2008-03-29  Eric Blake  <ebb9@byu.net>
53461
53462         Fix ftell on mingw.
53463         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53464         * modules/ftell-tests (Depends-on): Add binary-io.
53465         * modules/ftello-tests (Depends-on): Likewise.
53466         * tests/test-ftell.c (main): Enhance test to cover behavior after
53467         ungetc.  Enforce binary mode.
53468         * tests/test-ftello.c (main): Likewise.
53469
53470         Pass test-freadseek on cygwin.
53471         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53472         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53473         ungetc buffer.
53474
53475         * tests/test-fflush2.c (main): Fix typo.
53476
53477 2008-03-29  Bruno Haible  <bruno@clisp.org>
53478
53479         * tests/test-fflush2.c (main): Temporarily disable the contents of
53480         this test.
53481         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53482         Reported by Eric Blake.
53483
53484 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53485
53486         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53487         (GC_SHA224_DIGEST_SIZE): Add.
53488
53489         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53490         (gc_hash_digest_length): Likewise.
53491         (gc_hash_buffer): Likewise.
53492
53493 2008-03-25  Bruno Haible  <bruno@clisp.org>
53494
53495         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53496         detail which gettext release to use.
53497         Reported by Simon Josefsson.
53498
53499 2008-03-26  Jim Meyering  <meyering@redhat.com>
53500
53501         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53502         * modules/gnumakefile (clean-GNUmakefile): Also, use
53503         test ... && ... || : syntax rather than if-then ... fi.
53504
53505         gnumakefile: Don't double-quote-expand $(VPATH) value.
53506         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53507
53508 2008-03-24  Eric Blake  <ebb9@byu.net>
53509
53510         Alter GNUmakefile to install into top directory.
53511         * modules/maintainer-makefile: Split, and add dependency...
53512         * modules/gnumakefile: to this new module.
53513         * build-aux/GNUmakefile: Move...
53514         * top/GNUmakefile: ...here.
53515         * build-aux/maint.mk: Move...
53516         * top/maint.mk: ...here.
53517         * MODULES.html.sh (Support for maintaining...): Document new
53518         module.
53519
53520 2008-03-23  Bruno Haible  <bruno@clisp.org>
53521
53522         * gnulib-tool: New options --vc-files, --no-vc-files.
53523         (func_usage): Document them.
53524         (vc_files): New variable.
53525         (func_import): Consider vc_files.
53526         (func_create_testdir): Set vc_files to empty.
53527         Suggested by Jim Meyering and Karl Berry.
53528
53529 2008-03-23  Bruno Haible  <bruno@clisp.org>
53530
53531         Fix regex compilation error on HP-UX 11.
53532         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53533         * modules/regex (Files): Add m4/mbstate_t.m4.
53534         Reported by Ton Voon <ton.voon@altinity.com>.
53535
53536 2008-03-23  Bruno Haible  <bruno@clisp.org>
53537
53538         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53539
53540 2008-03-23  Eric Blake  <ebb9@byu.net>
53541             Bruno Haible  <bruno@clisp.org>
53542
53543         Install files from top/ in the destination directory.
53544         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53545         augmentation also for the files from top/.
53546         (func_import, func_create_testdir): Rewrite file names:
53547         top/filename -> filename.
53548
53549 2008-03-23  Bruno Haible  <bruno@clisp.org>
53550
53551         Tweak "gnulib --version" output.
53552         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53553
53554 2008-03-23  Bruno Haible  <bruno@clisp.org>
53555
53556         Tweak "gnulib --version" output.
53557         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53558         rather than contents of ChangeLog, when possible.
53559
53560 2008-03-21  Eric Blake  <ebb9@byu.net>
53561
53562         More --version tweaks.
53563         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53564         date of last ChangeLog entry.
53565
53566 2008-03-21  Jim Meyering  <meyering@redhat.com>
53567
53568         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53569
53570 2008-03-20  Eric Blake  <ebb9@byu.net>
53571
53572         VPATH fix.
53573         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53574
53575 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53576
53577         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53578         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53579
53580 2008-03-20  Eric Blake  <ebb9@byu.net>
53581
53582         Sync GNUmakefile with coreutils.
53583         * build-aux/GNUmakefile (have-Makefile): Rename...
53584         (_have-Makefile): ...to this, for namespace consideration.
53585         (GNUmakefile.cfg): Include, if present.
53586         (_autoreconf): Define a default.
53587         (_is-dist-target): New rule for rebuilds to pick up intra-release
53588         version.
53589         (maint-cfg.mk): Rename...
53590         (cfg.mk): ...to this.
53591
53592 2008-03-18  Jim Meyering  <meyering@redhat.com>
53593
53594         New script and module: mktempd
53595         * MODULES.html.sh (maint+release support): Add mktempd.
53596         * build-aux/mktempd: New file.
53597         * modules/mktempd: New file.
53598
53599 2008-03-15  Jim Meyering  <meyering@redhat.com>
53600
53601         Undo last change.
53602         * lib/sha1.c, lib/md5.c: 63 != ~63.
53603         Reported by Andreas Schwab.
53604
53605         sha1.c, md5.c: Hoist a redundant expression.
53606         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53607         "ctx->buflen" only once, before calling *_process_block.
53608         * lib/md5.c (md5_process_bytes): Likewise.
53609
53610 2008-03-14  Eric Blake  <ebb9@byu.net>
53611
53612         Bump copyright year in files generated by gnulib-tool.
53613         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53614         gnulib-tool, rather than hard-coding it.
53615
53616         Fix 'gnulib-tool --version' output to work with git.
53617         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53618         (startup): ...here.
53619         (func_version): Use it to invoke git-version-gen, rather than
53620         relying on CVS keyword expansion.  Modernize wording.
53621         (cvsdatestamp, last_checkin_date, version): Kill unused
53622         variables.
53623
53624 2008-03-12  Jim Meyering  <meyering@redhat.com>
53625
53626         Recognize optional cast of the argument to free.
53627         * build-aux/useless-if-before-free: Update regexps.
53628
53629         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53630
53631 2008-03-11  Bruno Haible  <bruno@clisp.org>
53632
53633         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53634         by a single package.
53635         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53636         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53637         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53638         Reported by Sam Steingold <sds@gnu.org>.
53639
53640 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53641
53642         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53643         repositories.
53644
53645 2008-03-11  Bruno Haible  <bruno@clisp.org>
53646
53647         Avoid conflicts between local macro definitions.
53648         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53649         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53650
53651 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53652             Bruno Haible  <bruno@clisp.org>
53653
53654         Make va_copy work with some version of xlc on AIX 5.1.
53655         * lib/stdarg.in.h: New file.
53656         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53657         On AIX, use a <stdarg.h> file substitute.
53658         * modules/stdarg (Files): Add lib/stdarg.in.h.
53659         (Depends-on): Add include_next.
53660         (Makefile.am): Build a stdarg.h substitute if requested.
53661         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53662
53663 2008-03-10  Bruno Haible  <bruno@clisp.org>
53664
53665         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53666         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53667         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53668
53669 2008-03-10  Bruno Haible  <bruno@clisp.org>
53670
53671         * modules/stdlib (Depends-on): Add include_next, remove
53672         absolute-header.
53673
53674 2008-03-09  Bruno Haible  <bruno@clisp.org>
53675
53676         * lib/freadahead.h (freadahead): Document more precisely.
53677         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53678         the sum of both buffer sizes.
53679         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53680         * NEWS: Document the change.
53681
53682 2008-03-09  Bruno Haible  <bruno@clisp.org>
53683
53684         Extend freadptr to return also the buffer size.
53685         * lib/freadptr.h (freadptr): Add sizep argument.
53686         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53687         (freadptr): Add sizep argument. Determine buffer size like freadahead
53688         does.
53689         * tests/test-freadptr.c: Don't include freadahead.h.
53690         (main): Adapt for new calling convention of freadptr.
53691         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53692         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53693         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53694         tests/test-freadptr2.sh.
53695         (Depends): Remove freadahead.
53696         (TESTS): Add test-freadptr2.sh.
53697         (check_PROGRAMS): Add test-freadptr2.
53698
53699 2008-03-09  Bruno Haible  <bruno@clisp.org>
53700
53701         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53702         Report and solution by Simon Josefsson.
53703
53704 2008-03-06  Bruno Haible  <bruno@clisp.org>
53705
53706         Make fflush after ungetc work on BSD platforms.
53707         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53708         * tests/test-fflush2.c: New file.
53709         * tests/test-fflush2.sh: New file.
53710         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53711         tests/test-fflush2.c.
53712         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53713         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53714
53715 2008-03-06  Eric Blake  <ebb9@byu.net>
53716
53717         Likewise for ftello.
53718         * modules/ftello (Dependencies): Add extensions.
53719         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53720
53721 2008-03-06  Bruno Haible  <bruno@clisp.org>
53722
53723         * modules/fseeko (Dependencies): Add extensions.
53724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53725         Needed on glibc systems.
53726
53727 2008-03-06  Bruno Haible  <bruno@clisp.org>
53728
53729         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53730         email address.
53731         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53732
53733 2008-03-06  Bruno Haible  <bruno@clisp.org>
53734
53735         * users.txt: Add libgnupdf.
53736
53737 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53738
53739         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53740         (Header File Substitutes, Function Substitutes,
53741         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53742         (Build robot for gnulib): Fix typo.
53743
53744 2008-03-06  Bruno Haible  <bruno@clisp.org>
53745
53746         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53747         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53748
53749 2008-03-06  Bruno Haible  <bruno@clisp.org>
53750
53751         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53752         * doc/gnulib.texi: Include it.
53753
53754 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53755
53756         * modules/func (License): Change license to unlimited; there was
53757         no LGPL parts in the module anyway.
53758
53759 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53760
53761         * modules/__func__: Renamed to modules/func.
53762         * modules/__func__-tests: Renamed to modules/func-tests.
53763         * tests/test-__func__.c: Renamed to tests/test-func.c.
53764         * m4/__func__.m4: Renamed to m4/func.m4.
53765         * doc/gnulib.texi (__func__): Section renamed to func.
53766         Suggested by Eric Blake <ebb9@byu.net>.
53767
53768 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53769
53770         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53771         about __func__.  Make example self-contained.  Suggested by Eric
53772         Blake <ebb9@byu.net>.
53773
53774         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53775         Suggested by Eric Blake <ebb9@byu.net>.
53776
53777 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53778
53779         * modules/__func__: New file.
53780         * modules/__func__-tests: New file.
53781         * tests/test-__func__.c: New file.
53782         * m4/__func__.m4: New file.
53783         * doc/gnulib.texi (__func__): Document __func__ module.
53784
53785 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53786
53787         * modules/byteswap (License): Re-license as LGPLv2+.
53788
53789 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53790
53791         * doc/Makefile: Add pdf target.
53792
53793 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53794
53795         * modules/inline (License): Use 'unlimited', since there are only
53796         *.m4 files in this module.
53797
53798 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53799             Bruno Haible  <bruno@clisp.org>
53800
53801         Add support for HP C 7.1 on OpenVMS 8.3.
53802         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53803
53804 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53805
53806         Update VMS specifics.
53807         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53808
53809 2008-03-02  Jim Meyering  <meyering@redhat.com>
53810
53811         Remove the last dependency on the "free" module.
53812         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53813         Reported by Bob Proulx.
53814
53815         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53816
53817         Remove useless "if" tests before free.  Deprecate "free" module.
53818         * doc/posix-functions/free.texi: Mention that this
53819         module is no longer useful.
53820         * modules/free (Notice): Say this module is obsolete.
53821         * modules/readutmp (Depends-on): Remove free.
53822         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53823         * lib/putenv.c (putenv): Likewise.
53824         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53825         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53826         * tests/test-c-strcasestr.c (main): Likewise.
53827         * tests/test-c-strstr.c (main): Likewise.
53828         * tests/test-mbscasestr1.c (main): Likewise.
53829         * tests/test-mbscasestr2.c (main): Likewise.
53830         * tests/test-mbsstr1.c (main): Likewise.
53831         * tests/test-mbsstr2.c (main): Likewise.
53832         * tests/test-memmem.c (main): Likewise.
53833         * tests/test-strcasestr.c (main): Likewise.
53834         * tests/test-striconv.c (main): Likewise.
53835         * tests/test-striconveh.c (main): Likewise.
53836         * tests/test-striconveha.c (main): Likewise.
53837         * tests/test-strstr.c (main): Likewise.
53838
53839         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53840
53841         bootstrap: sync from coreutils again
53842         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53843
53844 2008-03-01  Jim Meyering  <meyering@redhat.com>
53845
53846         bootstrap: sync from coreutils
53847         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53848         also when the target doesn't exist.
53849
53850 2008-03-01  Eric Blake  <ebb9@byu.net>
53851
53852         Fix bugs in last patch.
53853         * lib/memchr2.c (memchr2): Fix typo.
53854         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53855         extension.
53856         Reported by Bruce Korb.
53857
53858         New module 'memchr2'.
53859         * modules/memchr2: New file.
53860         * modules/memchr2-tests: Likewise.
53861         * lib/memchr2.h: Likewise.
53862         * lib/memchr2.c: Likewise, based on memchr.c.
53863         * tests/test-memchr2.c: New test.
53864         * MODULES.html.sh (String handling): Add memchr2.
53865
53866 2008-02-29  Bruno Haible  <bruno@clisp.org>
53867
53868         * modules/freadseek-tests: New file.
53869         * tests/test-freadseek.sh: New file.
53870         * tests/test-freadseek.c: New file.
53871
53872         New module 'freadseek'.
53873         * modules/freadseek: New file.
53874         * lib/freadseek.h: New file.
53875         * lib/freadseek.c: New file.
53876         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53877
53878 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53879
53880         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53881         wydawca.
53882
53883         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53884         program_invocation_name and program_invocation_short_name are
53885         present.
53886
53887 2008-02-28  Bruno Haible  <bruno@clisp.org>
53888
53889         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53890         * tests/test-freadptr.sh: Also test non-seekable stdin.
53891
53892 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53893
53894         * build-aux/bootstrap (source_base, m4_base)
53895         (doc_base, tests_base): New variables.
53896         (gnulib_tool_options): Do not hardcode base directories, use
53897         the above variables instead.
53898
53899 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53900
53901         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53902
53903 2008-02-28  Bruno Haible  <bruno@clisp.org>
53904
53905         * modules/freadptr-tests: New file.
53906         * tests/test-freadptr.sh: New file.
53907         * tests/test-freadptr.c: New file.
53908
53909         New module 'freadptr'.
53910         * modules/freadptr: New file.
53911         * lib/freadptr.h: New file.
53912         * lib/freadptr.c: New file.
53913         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53914
53915 2008-02-26  Karl Berry  <karl@freefriends.org>
53916
53917         Sync from Libtool:
53918         * libltdl/argz.c (argz_add, argz_count): New functions.
53919         * libltdl/argz.in.h: Declare them.
53920         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53921
53922 2008-02-22  Bruno Haible  <bruno@clisp.org>
53923
53924         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53925         is a pointer type.  Needed for HP-UX 10.
53926         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53927         * doc/posix-functions/gmtime_r.texi: Likewise.
53928         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53929
53930 2008-02-24  Bruno Haible  <bruno@clisp.org>
53931
53932         * modules/environ-tests: New file.
53933         * tests/test-environ.c: New file.
53934
53935         New module 'environ'.
53936         * modules/environ: New file.
53937         * lib/unistd.in.h (environ): New declaration.
53938         * m4/environ.m4: New file.
53939         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53940         after use.
53941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53942         HAVE_DECL_ENVIRON.
53943         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53944         HAVE_DECL_ENVIRON.
53945         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53946         wrong claim that 'environ' is missing on some systems.
53947         * modules/execute (Depends-on): Add environ.
53948         * lib/execute.c (environ): Remove fallback declaration.
53949         * modules/pipe (Depends-on): Add environ.
53950         * lib/pipe.c (environ): Remove fallback declaration.
53951         * modules/setenv (Depends-on): Add environ.
53952         * lib/setenv.c (environ): Remove fallback declaration.
53953         * modules/unsetenv (Depends-on): Add environ.
53954         * lib/unsetenv.c (environ): Remove fallback declaration.
53955         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53956         m4/environ.m4.
53957         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53958         (gl_PREREQ_UNSETENV): Likewise.
53959
53960 2008-02-24  Bruno Haible  <bruno@clisp.org>
53961
53962         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53963
53964 2008-02-20  Bob Proulx  <bob@proulx.com>
53965
53966         Enable use of older two part flavor 'git describe'.
53967         * build-aux/git-version-gen: If using the older two part flavor of
53968         git version then recreate the third part now present in the
53969         newer three part flavor of git describe.
53970
53971 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53972
53973         * lib/fts.c (fts_build): Typo correction to comment.
53974
53975 2008-02-17  Bruno Haible  <bruno@clisp.org>
53976
53977         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53978         generating no-op conflicts.
53979
53980 2008-02-17  Bruno Haible  <bruno@clisp.org>
53981
53982         Speed up by 10%.
53983         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53984         result_entries, rather than an index-based loop.
53985
53986 2008-02-17  Bruno Haible  <bruno@clisp.org>
53987
53988         Speed up by 25%.
53989         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53990         'hashcode_cached'.
53991         (entry_create): New function.
53992         (entry_hashcode): Use the cached hashcode if possible.
53993         (read_changelog_file, try_split_merged_entry): Use entry_create.
53994
53995 2008-02-17  Bruno Haible  <bruno@clisp.org>
53996
53997         Speed up from O(n^2) to O(n) for long ChangeLog files.
53998         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53999         (read_changelog_file): Change implementation of entries_reversed list
54000         to rbtreehash.
54001         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54002
54003 2008-02-17  Bruno Haible  <bruno@clisp.org>
54004
54005         New option --split-merged-entry.
54006         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54007         (find_paragraph_end, try_split_merged_entry): New functions.
54008         (long_options): Add option --split-merged-entry.
54009         (usage): Document option --split-merged-entry.
54010         (main): Implement option --split-merged-entry.
54011         Reported by Eric Blake.
54012
54013 2008-02-17  Bruno Haible  <bruno@clisp.org>
54014
54015         * lib/git-merge-changelog.c: Include c-strstr.h.
54016         (main): Support the "git pull --rebase" situation.
54017         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54018         Reported by Eric Blake.
54019
54020 2008-02-16  Eric Blake  <ebb9@byu.net>
54021
54022         Avoid doubling \ in common case of "c-maybe" quoting style.
54023         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54024         eliding outer quotes.
54025         * lib/quotearg.h: Document this.
54026         * tests/test-quotearg.c (result_strings, inputs, results_g)
54027         (flag_results, locale_results): Test it by adding a new string to
54028         each test group.
54029         (compare_strings): Test new string.
54030
54031 2008-02-13  Eric Blake  <ebb9@byu.net>
54032
54033         Avoid trigraph quoting in default output.
54034         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54035         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54036         unless explicitly requested.
54037         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54038
54039 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54040
54041         Don't rely on signed integer overflowing to negative value.
54042         * lib/getugroups.c (getugroups): Include <limits.h>.
54043         Instead, compare against INT_MAX, and increment only if the test passes.
54044
54045 2008-02-13  Jim Meyering  <meyering@redhat.com>
54046         and Eric Blake  <ebb9@byu.net>
54047
54048         Avoid shadowing warning and compile errors on Linux.
54049         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54050         forwarding macros on Linux.
54051         (dcgettext): Define a stub, for Linux.
54052         (results_g, main): Avoid warnings.
54053
54054 2008-02-12  Eric Blake  <ebb9@byu.net>
54055
54056         Silence warning in last patch.
54057         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54058
54059         Quotearg part 4: add tests, fix c-maybe colon quoting.
54060         * lib/quotearg.h: Improve documentation.
54061         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54062         escapes when adding outer quotes.  When quoting trigraphs, use
54063         valid C notation.  When quoting NUL, omit extra characters if next
54064         character is not digit.  Alter prototype.
54065         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54066         callers.
54067         * modules/quotearg-tests: New module.
54068         * tests/test-quotearg.c: New test.
54069
54070 2008-02-07  Eric Blake  <ebb9@byu.net>
54071
54072         Quotearg part 3: add flag to control outer quote elision.
54073         * lib/quotearg.h (c_maybe_quoting_style): New style.
54074         (enum quoting_flags): Better documentation of flags.
54075         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54076         c-maybe style.
54077         (quotearg_buffer_restyled): Handle new flag to elide outer
54078         quotes.
54079
54080         Quotearg part 2: add flag that can control NUL elision.
54081         * lib/quotearg.h (set_quoting_flags): New prototype.
54082         * lib/quotearg.c (struct quoting_options): Add flag field.
54083         (set_quoting_flags): New function.
54084         (quotearg_buffer_restyled): Add flags parameter.
54085         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54086         (quotearg_n_options): Set the flag, since length cannot be
54087         returned.
54088         (quoting_options_from_style): Default flags correctly.
54089
54090         Quotearg part 1: more wrappers, restore quotearg_char state.
54091         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54092         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54093         (quotearg_colon_mem): New wrappers.
54094         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54095         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54096         functions.
54097         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54098         (quotearg_colon_mem): New functions.
54099
54100 2008-02-11  Bruno Haible  <bruno@clisp.org>
54101
54102         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54103         library in the current directory: it does not work with parallel make.
54104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54105
54106 2008-02-11  Bruno Haible  <bruno@clisp.org>
54107
54108         * .gitattributes: New file.
54109
54110 2008-02-11  Jim Meyering  <meyering@redhat.com>
54111
54112         useless-if-before-free: Fix reversed exit values.
54113         * build-aux/useless-if-before-free: Use correct values
54114         for EXIT_MATCH and EXIT_NO_MATCH.
54115
54116         * build-aux/useless-if-before-free: Close stdout carefully.
54117
54118 2008-02-10  Bruno Haible  <bruno@clisp.org>
54119
54120         New module 'git-merge-changelog'.
54121         * modules/git-merge-changelog: New file.
54122         * lib/git-merge-changelog.c: New file.
54123
54124 2008-02-10  Jim Meyering  <meyering@redhat.com>
54125
54126         useless-if-before-free: New option: --list (-l).
54127
54128         useless-if-before-free: Don't exit immediately upon open failure.
54129         * build-aux/useless-if-before-free: Exit 2 for errors.
54130         Upon failure to open a file, don't exit immediately.
54131         Rather, just warn and continue with any remaining files.
54132
54133 2008-02-10  Bruno Haible  <bruno@clisp.org>
54134
54135         New abstract list operation 'node_set_value'.
54136         * lib/gl_list.h (gl_list_node_set_value): New function.
54137         (struct gl_list_implementation): New field node_set_value.
54138         * lib/gl_list.c (gl_list_node_set_value): New function.
54139         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54140         (gl_array_list_implementation): Update.
54141         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54142         (gl_carray_list_implementation): Update.
54143         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54144         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54145         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54146         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54147         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54148         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54149         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54150         Update.
54151         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54152         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54153         (gl_sublist_list_implementation): Update.
54154
54155 2008-02-10  Bruno Haible  <bruno@clisp.org>
54156
54157         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54158         Needed when ELEMENT is #defined to 'some_type *'.
54159
54160 2008-02-10  Jim Meyering  <meyering@redhat.com>
54161
54162         New script and module: useless-if-before-free
54163         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54164         * build-aux/useless-if-before-free: New file.
54165         * modules/useless-if-before-free: New file.
54166
54167         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54168
54169         xstrtol_error: Fix typo.
54170         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54171         s/exit_failure/exit_status/.
54172
54173 2008-02-09  Jim Meyering  <meyering@redhat.com>
54174
54175         New script and module: gitlog-to-changelog
54176         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54177         * modules/gitlog-to-changelog: New file.
54178         * build-aux/gitlog-to-changelog: New file.
54179
54180 2008-02-08  Jim Meyering  <meyering@redhat.com>
54181
54182         Avoid two "parameter unused" warnings.
54183         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54184         Mark "st" as used.
54185
54186         Use "git COMMAND", not "git-COMMAND".
54187         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54188         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54189         * build-aux/git-version-gen: Use "git status", not "git-status".
54190
54191 2008-02-07  Bruno Haible  <bruno@clisp.org>
54192
54193         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54194         Avoids a crash on Windows Vista.
54195         Reported by Adam Strzelecki <ono@java.pl> via
54196         Simon Josefsson <simon@josefsson.org>.
54197
54198 2008-02-06  Bruno Haible  <bruno@clisp.org>
54199
54200         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54201         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54202         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54204         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54205         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54206         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54207         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54208         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54209         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54210         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54211         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54212         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54213         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54215         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54216         left-adjust flag.
54217         * tests/test-snprintf-posix.h (test_function): Likewise.
54218         * tests/test-sprintf-posix.h (test_function): Likewise.
54219         * tests/test-vasprintf-posix.c (test_function): Likewise.
54220         * doc/posix-functions/fprintf.texi: Update.
54221         * doc/posix-functions/printf.texi: Update.
54222         * doc/posix-functions/snprintf.texi: Update.
54223         * doc/posix-functions/sprintf.texi: Update.
54224         * doc/posix-functions/vfprintf.texi: Update.
54225         * doc/posix-functions/vprintf.texi: Update.
54226         * doc/posix-functions/vsnprintf.texi: Update.
54227         * doc/posix-functions/vsprintf.texi: Update.
54228         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54229
54230 2008-02-06  Bruno Haible  <bruno@clisp.org>
54231
54232         Fix bug introduced on 2008-01-26.
54233         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54234
54235 2008-02-06  Bruno Haible  <bruno@clisp.org>
54236
54237         Fix bug introduced on 2007-06-10.
54238         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54239         !NEED_PRINTF_FLAG_ZERO.
54240
54241 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54242
54243         getloadavg: use libperfstat on AIX5
54244         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54245
54246 2008-02-03  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/diffseq.h: Add comments about required #includes.
54249         Reported by Michael Biggs <gnulib@doubleplum.net>.
54250
54251 2008-02-01  Bruno Haible  <bruno@clisp.org>
54252
54253         * users.txt: Add gnuit.
54254
54255 2008-01-31  Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/md4.c (set_uint32): Mark as inline.
54258         * lib/md5.c (set_uint32): Likewise.
54259         * lib/sha1.c (set_uint32): Likewise.
54260         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54261         * m4/md5.m4 (gl_MD5): Likewise.
54262         * m4/sha1.m4 (gl_SHA1): Likewise.
54263
54264 2008-01-31  Jim Meyering  <meyering@redhat.com>
54265
54266         Use "sizeof VAR", rather than a literal "4".
54267         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54268         * lib/md4.c (md4_read_ctx): Likewise.
54269         * lib/sha1.c (sha1_read_ctx): Likewise.
54270
54271 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54272
54273         * tests/test-sha1.c: New file, based on test-md5.c.
54274
54275         * modules/crypto/sha1-tests: New file.
54276
54277 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54278
54279         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54280
54281 2008-01-31  Jim Meyering  <meyering@redhat.com>
54282
54283         Prefer "sizeof v" over the equivalent "4".
54284         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54285         * lib/md5.c (set_uint32): Likewise.
54286         * lib/sha1.c (set_uint32): Likewise.
54287
54288 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54289
54290         * lib/sha1.c (set_uint32): Mark function as static.
54291
54292 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54293
54294         md2: clarify comments to say that alignment is not required.
54295         * lib/md2.h: Remove warning about alignment in comment.
54296         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54297         never been required.
54298
54299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54300
54301         md4: adapt alignment constraint fix from sha1.
54302         * lib/md4.c (set_uint32): New function, from sha1.c
54303         (md4_read_ctx): Use it.
54304         (md4_finish_ctx): Doc fix.
54305         * lib/md4.h: Doc fix.
54306
54307 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54308
54309         md5: adapt alignment constraint fix from sha1.
54310         * lib/md5.c (set_uint32): New function, from sha1.c
54311         (md5_read_ctx): Use it.
54312         (md5_finish_ctx): Doc fix.
54313         * lib/md5.h: Doc fix.
54314
54315 2008-01-30  Peter Palfrader  <weasel@debian.org>
54316
54317         sha1: remove the result buffer alignment constraint
54318         * lib/sha1.c (set_uint32): New function.
54319         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54320         constraint.
54321         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54322         * lib/sha1.h: Likewise.
54323
54324 2008-01-30  Andreas Schwab  <schwab@suse.de>
54325             Bruno Haible  <bruno@clisp.org>
54326
54327         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54328         correct definition of LDBL_MIN_EXP.
54329
54330 2008-01-30  Karl Berry  <karl@gnu.org>
54331
54332         * config/srclist-update: try to preserve x bit on updates.
54333         * config/srclistvars.sh: update for karl.
54334
54335 2008-01-29  Jim Meyering  <meyering@redhat.com>
54336
54337         vasnprintf.c: Avoid warning about unused label
54338         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54339         "overflow" label definition and associated code with the
54340         same cpp condition that guards the sole use of that label.
54341
54342 2008-01-26  Bruno Haible  <bruno@clisp.org>
54343
54344         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54345         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54346         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54347         * lib/isnanl-nolibm.h (isnanl): Likewise.
54348         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54349
54350 2008-01-26  Bruno Haible  <bruno@clisp.org>
54351
54352         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54353         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54354
54355 2008-01-26  Bruno Haible  <bruno@clisp.org>
54356
54357         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54358         GCC >= 4.0 built-in.
54359         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54360
54361 2008-01-26  Bruno Haible  <bruno@clisp.org>
54362
54363         Rename isnan, applicable to 'double' only, to isnand.
54364         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54365         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54366         (configure.ac): Update.
54367         (Include): Replace "isnan.h" with "isnand.h".
54368         * m4/isnand.m4: Renamed from m4/isnan.m4.
54369         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54370         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54371         instead of isnan.c.
54372         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54373         instead of HAVE_ISNAN_IN_LIBC.
54374         (isnand): Renamed from isnan.
54375         * lib/isnand.c: New file.
54376         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54377         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54378         (Makefile.am): Update.
54379         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54380         Include isnand.h instead of isnan.h.
54381         (main): Test isnand instead of isnan.
54382         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54383         isnan-nolibm.
54384         * modules/frexp (Depends-on): Likewise.
54385         * modules/frexp-tests (Depends-on): Likewise.
54386         * modules/frexp-nolibm (Depends-on): Likewise.
54387         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54388         * modules/isfinite (Depends-on): Likewise.
54389         * modules/round-tests (Depends-on): Likewise.
54390         * modules/signbit (Depends-on): Likewise.
54391         * modules/signbit-tests (Depends-on): Likewise.
54392         * modules/snprintf-posix (Depends-on): Likewise.
54393         * modules/sprintf-posix (Depends-on): Likewise.
54394         * modules/trunc-tests (Depends-on): Likewise.
54395         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54396         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54397         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54398         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54399         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54400         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54401         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54402         * modules/vasnprintf-posix (Depends-on): Likewise.
54403         * modules/vasprintf-posix (Depends-on): Likewise.
54404         * modules/vfprintf-posix (Depends-on): Likewise.
54405         * modules/vsnprintf-posix (Depends-on): Likewise.
54406         * modules/vsprintf-posix (Depends-on): Likewise.
54407         * lib/frexp.c: Include isnand.h instead of isnan.h.
54408         (ISNAN): Set to isnand instead of isnan.
54409         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54410         (gl_isfinited): Use isnand instead of isnan.
54411         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54412         (gl_signbitd): Use isnand instead of isnan.
54413         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54414         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54415         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54416         (main): Use isnand instead of isnan.
54417         * tests/test-round1.c: Include isnand.h.
54418         (main): Use isnand instead of isnan.
54419         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54420         (ISNAN): Set to isnand instead of isnan.
54421         * tests/test-trunc1.c: Include isnand.h.
54422         (main): Use isnand instead of isnan.
54423         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54424         (equal): Use isnand instead of isnan.
54425         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54426         isnand-nolibm.
54427         * NEWS: Mention the change.
54428
54429 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54430             Bruno Haible  <bruno@clisp.org>
54431
54432         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54433         the GCC builtins for signbits are present and set
54434         REPLACE_SIGNBIT_USING_GCC if so.
54435         * lib/math.in.h (signbit): Define using GCC builtins if
54436         REPLACE_SIGNBIT_USING_GCC is set.
54437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54438         REPLACE_SIGNBIT_USING_GCC.
54439         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54440
54441 2008-01-25  Jim Meyering  <meyering@redhat.com>
54442
54443         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54444         * lib/poll.c: Include <config.h>, not "config.h".
54445         * tests/test-getaddrinfo.c: Likewise.
54446
54447 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54448
54449         * modules/sockets-tests: New file.
54450
54451 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54452
54453         * modules/sockets: New module, can be used to call WSA_Startup and
54454         WSA_Cleanup when needed.
54455
54456         * lib/sockets.h, lib/sockets.c: New files.
54457
54458         * m4/sockets.m4: New file.
54459
54460         * tests/test-sockets.c: New file.
54461
54462 2008-01-19  Bruno Haible  <bruno@clisp.org>
54463
54464         * doc/posix-headers: Renamed from doc/headers.
54465         * doc/posix-functions: Renamed from doc/functions.
54466         * doc/gnulib.texi: Update.
54467
54468 2008-01-19  Bruno Haible  <bruno@clisp.org>
54469
54470         * doc/glibc-functions/strcasestr.texi: Include contents of
54471         doc/functions/strcasestr.texi, fixing the list of platforms.
54472         * doc/functions/strcasestr.texi: Remove file.
54473
54474 2008-01-19  Bruno Haible  <bruno@clisp.org>
54475
54476         * doc/glibc-functions/memmem.texi: Include contents of
54477         doc/functions/memmem.texi.
54478         * doc/functions/memmem.texi: Remove file.
54479
54480 2008-01-18  Bruno Haible  <bruno@clisp.org>
54481
54482         * doc/glibc-functions/*.texi: New files.
54483         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54484         to use the new files.
54485
54486 2008-01-17  Bruno Haible  <bruno@clisp.org>
54487
54488         * tests/test-gethostname.c (main): Fix printf statement.
54489
54490 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54491
54492         * modules/gethostname-tests: New file.
54493
54494         * tests/test-gethostname.c: New file.
54495
54496 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54497
54498         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54499         used by the UNAME case.  Reported by Bruno Haible
54500         <bruno@clisp.org>.
54501
54502 2008-01-17  Eric Blake  <ebb9@byu.net>
54503
54504         Convert c-strcasestr to be more efficient.
54505         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54506         (Depends-on): Add c-strcase, remove malloca, strnlen.
54507         * tests/test-c-strcasestr.c (main): Enhance test.
54508         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54509
54510 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54511
54512         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54513         Use it in creating po/Makevars.
54514
54515 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54516
54517         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54518         Applications that requires it should initialize libgcrypt
54519         manually.
54520
54521 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54522
54523         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54524
54525 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54526
54527         Fix problem with getdate on mingw32 reported by Simon Josefsson
54528         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54529         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54530         tzname", when deciding whether to declare tzname.
54531         * lib/strftime.c (tzname): Likewise.
54532
54533 2008-01-15  Bruno Haible  <bruno@clisp.org>
54534
54535         Work around a MacOS X 10.5 bug in frexpl().
54536         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54537         * doc/functions/frexpl.texi: Document the bug.
54538         Reported by Elias Pipping <pipping@gentoo.org>.
54539
54540 2008-01-14  Eric Blake  <ebb9@byu.net>
54541
54542         Touch up previous patch.
54543         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54544         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54545
54546         Convert strcasestr module to use Two-Way algorithm.
54547         * modules/strcasestr-simple: New module, based on the old
54548         strcasestr, but with Two-Way rather than KMP.
54549         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54550         * lib/string.in.h (rpl_strcasestr): Declare.
54551         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54552         performance.
54553         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54554         * modules/string (Makefile.am): Support strcasestr.
54555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54556         * modules/strcasestr-tests (Depends-on): Check for alarm.
54557         * tests/test-strcasestr.c: Augment test.
54558         * lib/str-two-way.h: Clean up stray macro.
54559         * NEWS: Document new module.
54560         * MODULES.html.sh (string handling): Likewise.
54561         * doc/functions/strcasestr.texi: New file.
54562         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54563         here, since it is not a POSIX function.
54564
54565 2008-01-14  Colin Watson  <cjwatson@debian.org>
54566             Bruno Haible  <bruno@clisp.org>
54567
54568         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54569         works fine; if not, set REPLACE_STRSIGNAL.
54570         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54571         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54572         REPLACE_STRSIGNAL.
54573         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54574         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54575         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54576
54577 2008-01-14  Bruno Haible  <bruno@clisp.org>
54578
54579         * modules/strsignal (Include): Change to <string.h>.
54580
54581 2008-01-14  Colin Watson  <cjwatson@debian.org>
54582
54583         * modules/argp (Notice): Add a notice recommending to change
54584         XGETTEXT_OPTIONS.
54585         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54586
54587 2008-01-13  Colin Watson  <cjwatson@debian.org>
54588
54589         * modules/strsignal-tests: New file.
54590         * tests/test-strsignal.c: New file.
54591
54592         * lib/strsignal.c: New file, from glibc with modifications.
54593         * lib/siglist.h: New file, from glibc with modifications.
54594         * lib/string.in.h (strsignal): New declaration.
54595         * m4/strsignal.m4: New file.
54596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54597         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54598         * modules/strsignal: New file.
54599         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54600         HAVE_DECL_STRSIGNAL.
54601
54602 2008-01-13  Bruno Haible  <bruno@clisp.org>
54603
54604         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54605         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54606         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54607         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54608
54609 2008-01-13  Bruno Haible  <bruno@clisp.org>
54610
54611         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54612         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54613         * lib/argp.h (__attribute__): Likewise.
54614         * lib/c-stack.c (__attribute__): Likewise.
54615         * lib/error.h (__attribute__): Likewise.
54616         * lib/fts.c (__attribute__): Likewise.
54617         * lib/openat.h (__attribute__): Likewise.
54618         * lib/stdio.in.h (__attribute__): Likewise.
54619         * lib/string.in.h (__attribute__): Likewise.
54620         * lib/utimens.c (__attribute__): Likewise.
54621         * lib/vasnprintf.h (__attribute__): Likewise.
54622         * lib/xalloc.h (__attribute__): Likewise.
54623         * lib/xprintf.h (__attribute__): Likewise.
54624         * lib/xstrtol.h (__attribute__): Likewise.
54625         * lib/xvasprintf.h (__attribute__): Likewise.
54626
54627 2008-01-12  Bruno Haible  <bruno@clisp.org>
54628
54629         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54630         * doc/glibc-headers/a.out.texi: New file.
54631         * doc/glibc-headers/aliases.texi: New file.
54632         * doc/glibc-headers/alloca.texi: New file.
54633         * doc/glibc-headers/ar.texi: New file.
54634         * doc/glibc-headers/argp.texi: New file.
54635         * doc/glibc-headers/argz.texi: New file.
54636         * doc/glibc-headers/byteswap.texi: New file.
54637         * doc/glibc-headers/crypt.texi: New file.
54638         * doc/glibc-headers/endian.texi: New file.
54639         * doc/glibc-headers/envz.texi: New file.
54640         * doc/glibc-headers/err.texi: New file.
54641         * doc/glibc-headers/error.texi: New file.
54642         * doc/glibc-headers/execinfo.texi: New file.
54643         * doc/glibc-headers/fpu_control.texi: New file.
54644         * doc/glibc-headers/fstab.texi: New file.
54645         * doc/glibc-headers/fts.texi: New file.
54646         * doc/glibc-headers/getopt.texi: New file.
54647         * doc/glibc-headers/ieee754.texi: New file.
54648         * doc/glibc-headers/ifaddrs.texi: New file.
54649         * doc/glibc-headers/libintl.texi: New file.
54650         * doc/glibc-headers/mcheck.texi: New file.
54651         * doc/glibc-headers/mntent.texi: New file.
54652         * doc/glibc-headers/obstack.texi: New file.
54653         * doc/glibc-headers/paths.texi: New file.
54654         * doc/glibc-headers/printf.texi: New file.
54655         * doc/glibc-headers/pty.texi: New file.
54656         * doc/glibc-headers/resolv.texi: New file.
54657         * doc/glibc-headers/shadow.texi: New file.
54658         * doc/glibc-headers/sysexits.texi: New file.
54659         * doc/glibc-headers/ttyent.texi: New file.
54660
54661 2008-01-12  Jim Meyering  <meyering@redhat.com>
54662
54663         announce-gen: emit Gnulib's git-based version string.
54664         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54665         New option --gnulib-version=V, where V is expected to be
54666         the output of running git describe in the gnulib directory.
54667         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54668         not useful, and plan to stop publishing an xdelta file with each
54669         coreutils release.
54670
54671         * build-aux/announce-gen: Also check for lzma-compressed files.
54672
54673 2008-01-11  Bruno Haible  <bruno@clisp.org>
54674
54675         * tests/test-memmem.c (main): Increase maximum allowed time.
54676         * tests/test-strstr.c (main): Likewise.
54677
54678 2008-01-11  Bruno Haible  <bruno@clisp.org>
54679
54680         * doc/functions/memmem.texi: Add more precisions about platforms.
54681         * doc/functions/strstr.texi: Likewise.
54682
54683 2008-01-10  Eric Blake  <ebb9@byu.net>
54684
54685         * m4/strstr.m4: Delete cruft from copy-n-paste.
54686         Reported by Bruno Haible.
54687
54688 2008-01-10  Bruno Haible  <bruno@clisp.org>
54689
54690         Make c-strstr rely on strstr.
54691         * lib/c-strstr.c: Don't include str-kmp.h.
54692         (c_strstr): Define in terms of strstr.
54693         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54694         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54695
54696 2008-01-10  Bruno Haible  <bruno@clisp.org>
54697
54698         * doc/gnulib.texi (String Functions in C Locale): New section.
54699         * doc/c-ctype.texi: New file.
54700         * doc/c-strcase.texi: New file.
54701         * doc/c-strcaseeq.texi: New file.
54702         * doc/c-strcasestr.texi: New file.
54703         * doc/c-strstr.texi: New file.
54704         * doc/c-strtod.texi: New file.
54705         * doc/c-strtold.texi: New file.
54706
54707 2008-01-10  Eric Blake  <ebb9@byu.net>
54708
54709         * lib/relocatable.h: Fix a comment.
54710
54711 2008-01-10  Eric Blake  <ebb9@byu.net>
54712
54713         Share two-way algorithm.
54714         * lib/str-two-way.h: New file, merged from...
54715         * lib/memmem.c: ...here...
54716         * lib/strstr.c: ...and here.
54717         * modules/memmem (Files): Use it.
54718         * modules/strstr (Files): Likewise.
54719
54720         Avoid quadratic strstr implementations.
54721         * lib/strstr.c: New file.
54722         * m4/strstr.m4: Likewise.
54723         * modules/strstr: Likewise.
54724         * modules/strstr-tests: Likewise.
54725         * tests/test-strstr.c: Likewise.
54726         * lib/string.in.h (rpl_strstr): Declare.
54727         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54728         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54729         * modules/string (Makefile.am): Likewise.
54730         * MODULES.html.sh (string handling): Mention new module.
54731         * doc/functions/strstr.texi (strstr): Document the bug.
54732
54733 2008-01-10  Bruno Haible  <bruno@clisp.org>
54734
54735         * lib/relocatable.h (relocate): State whether result is freshly
54736         allocated or not.
54737         * lib/relocatable.c (relocate): Return a freshly allocated string
54738         instead of a pointer to a privately held string.
54739         Reported by Sylvain Beucler <beuc@gnu.org>.
54740
54741 2008-01-10  Colin Watson  <cjwatson@debian.org>
54742
54743         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54744         s/S_ISNLK/S_ISLNK/.
54745
54746 2008-01-09  Bruno Haible  <bruno@clisp.org>
54747
54748         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54749         and other files.
54750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54751         if it's only a guess.
54752         * modules/memmem: Simplify by depending on memmem-simple.
54753
54754 2008-01-09  Bruno Haible  <bruno@clisp.org>
54755
54756         Work around OpenBSD 4.0 tdelete() bug.
54757         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54758         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54759         macros and don't redefine the enum values.
54760         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54761         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54762         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54763
54764 2008-01-09  Bruno Haible  <bruno@clisp.org>
54765
54766         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54767         (main): Don't perform the tests if setlocale did not install a UTF-8
54768         locale. Needed on OpenBSD 4.0.
54769         * modules/wcwidth-tests (Depends-on): Add localcharset.
54770
54771 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54772
54773         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54774         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54775         * NEWS: announce this.
54776         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54777
54778 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54779         and Eric Blake  <ebb9@byu.net>
54780
54781         Add memmem-simple module.
54782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54783         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54784         * modules/memmem-simple: New file.
54785         * modules/memmem (Description): Tweak.
54786         * MODULES.html.sh (string handling): Mention new module.
54787         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54788         addressed by memmem-simple.
54789         * NEWS: Document the difference.
54790
54791 2008-01-09  Eric Blake  <ebb9@byu.net>
54792
54793         Give gcc some memmem optimization hints.
54794         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54795         (strcasestr): Declare as pure.
54796         * modules/memmem (Maintainer): Claim my implementation.
54797
54798 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54799
54800         Support AIX 6.1 and higher.
54801         * build-aux/config.libpath: Likewise.
54802         * build-aux/config.rpath: Likewise.
54803
54804 2008-01-08  Jim Meyering  <meyering@redhat.com>
54805             Bruno Haible  <bruno@clisp.org>
54806
54807         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54808         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54809         Reported by Peter Fales in
54810         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54811
54812 2008-01-08  Bruno Haible  <bruno@clisp.org>
54813
54814         * modules/unictype/category-of (Depends-on): Add
54815         unictype/category-none.
54816         * modules/unictype/category-and-tests (Depends-on): Add
54817         unictype/category-{L,N,Lu,Nd}.
54818         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54819         * modules/unictype/category-or-tests (Depends-on): Add
54820         unictype/category-{L,N}.
54821         * modules/unictype/category-name-tests (Depends-on): Add
54822         unictype/category-{Z,Nl}.
54823         Reported by Simon Josefsson.
54824
54825 2008-01-08  Bruno Haible  <bruno@clisp.org>
54826
54827         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54828         convention better.
54829         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54830         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54831         Reported by Peter Miller <millerp@canb.auug.org.au>.
54832
54833 2008-01-08  Eric Blake  <ebb9@byu.net>
54834
54835         Rewrite memmem to guarantee linear complexity without malloc.
54836         * lib/memmem.c (memmem): Use Two-Way rather than
54837         Knuth-Morris-Pratt, to allow O(1) space usage.
54838         (critical_factorization, two_way_short_needle)
54839         (two_way_long_needle): New functions.
54840         (knuth_morris_pratt): Delete.
54841         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54842         Add stdint.
54843         * tests/test-memmem.c (main): Add tests for periodic needle and
54844         sublinear performance.
54845         * doc/functions/memmem.texi (memmem): Document other deficiencies
54846         in cygwin and older glibc.
54847
54848 2008-01-08  Bruno Haible  <bruno@clisp.org>
54849
54850         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54851         augmentation.
54852
54853 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54854
54855         Add a configure time option: --disable-acl.
54856         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54857         AC_ARG_ENABLE(acl).
54858
54859 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54860
54861         * tests/test-localename.c: Don't include obsolete "setenv.h".
54862
54863         * modules/localename-tests (Depends-on): Need unsetenv.
54864
54865 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54866
54867         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54868
54869 2008-01-06  Colin Watson  <cjwatson@debian.org>
54870
54871         * users.txt: Add man-db.
54872
54873 2008-01-07  Bruno Haible  <bruno@clisp.org>
54874
54875         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54876         previous section name.
54877
54878 2008-01-07  Bruno Haible  <bruno@clisp.org>
54879
54880         * lib/progname.c (set_program_name): Don't strip off a leading
54881         "lt-" prefix outside a .libs directory.
54882         Suggested by Paul Eggert.
54883
54884 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54885             Bruno Haible  <bruno@clisp.org>
54886
54887         Improve memory cleanup in 'relocatable' module.
54888         * lib/relocatable.h (compute_curr_prefix): Change return type to
54889         'char *'.
54890         * lib/relocatable.c (compute_curr_prefix): Change return type to
54891         'char *'. Free curr_installdir after use.
54892         (relocate): Free curr_prefix_better after use.
54893         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54894
54895 2008-01-01  Bruno Haible  <bruno@clisp.org>
54896
54897         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54898         failure on older glibc systems.
54899         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54900
54901 2008-01-05  Eric Blake  <ebb9@byu.net>
54902
54903         Avoid quadratic system memmem.
54904         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54905         Reported by Ralf Wildenhues.
54906
54907         Fix memmem test for mingw.
54908         * modules/memmem-tests (configure.ac): Check for alarm.
54909         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54910         it.
54911         * doc/functions/memmem.texi: New file.
54912         * doc/gnulib.texi (Function Substitutes): Add memmem.
54913         Reported by Bruno Haible.
54914
54915 2008-01-04  Bruno Haible  <bruno@clisp.org>
54916
54917         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54918         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54919         gl_HEADER_STRING_H_DEFAULTS.
54920
54921 2008-01-04  Eric Blake  <ebb9@byu.net>
54922
54923         Shorten duration of memmem test.
54924         * tests/test-memmem.c (main): Use alarm to declare failure if test
54925         is taking too long.
54926         Reported by Ralf Wildenhues.
54927
54928 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54929
54930         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54931         string, needed by strerror.
54932
54933 2008-01-03  Colin Watson  <cjwatson@debian.org>
54934             Bruno Haible  <bruno@clisp.org>
54935
54936         * doc/gnulib-tool.texi (Localization): New section.
54937
54938 2008-01-02  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54941         variables to 'unsigned char *' type.
54942         Reported by Paul Eggert.
54943
54944 2008-01-02  Jim Meyering  <jim@meyering.net>
54945
54946         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54947
54948 2007-12-31  Jim Meyering  <jim@meyering.net>
54949
54950         Avoid use of private FTS type name.
54951         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54952
54953 2007-12-30  Karl Berry  <karl@gnu.org>
54954
54955         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54956         work around defect in Texinfo and/or the standalone Info browser.
54957
54958 2007-12-30  Bruno Haible  <bruno@clisp.org>
54959
54960         Unify 5 copies of the KMP code.
54961         * lib/str-kmp.h: New file.
54962         * lib/c-strcasestr.c: Include str-kmp.h.
54963         (knuth_morris_pratt): Remove function.
54964         (c_strcasestr): Update.
54965         * lib/c-strstr.c: Include str-kmp.h.
54966         (knuth_morris_pratt): Remove function.
54967         (c_strcasestr): Update.
54968         * lib/mbscasestr.c: Include str-kmp.h.
54969         (knuth_morris_pratt_unibyte): Remove function.
54970         * lib/mbsstr.c: Include str-kmp.h.
54971         (knuth_morris_pratt_unibyte): Remove function.
54972         * lib/strcasestr.c: Include str-kmp.h.
54973         (knuth_morris_pratt): Remove function.
54974         (strcasestr): Update.
54975         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54976         * modules/c-strstr (Files): Likewise.
54977         * modules/mbscasestr (Files): Likewise.
54978         * modules/mbsstr (Files): Likewise.
54979         * modules/strcasestr (Files): Likewise.
54980         Suggested by Paul Eggert.
54981
54982 2007-12-30  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54985         defined.
54986
54987 2007-12-30  Bruno Haible  <bruno@clisp.org>
54988
54989         * lib/xmalloca.h: Include xalloc.h.
54990         (xnmalloca): New macro.
54991
54992 2007-12-30  Bruno Haible  <bruno@clisp.org>
54993
54994         * lib/malloca.h (nmalloca): New macro.
54995         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54996         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54997         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54998         knuth_morris_pratt_multibyte): Likewise.
54999         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55000         knuth_morris_pratt_multibyte): Likewise.
55001         * lib/memmem.c (knuth_morris_pratt): Likewise.
55002         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55003
55004 2007-12-25  Bruno Haible  <bruno@clisp.org>
55005
55006         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55007         * lib/glob.c: Don't include openat.h.
55008         (link_exists2_p): Add back the code that deals with the
55009         !GLOB_ALTDIRFUNC case.
55010         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55011         let it do the filename concatenation.
55012         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55013         * modules/glob (Depends-on): Remove openat.
55014
55015 2007-12-31  Bruno Haible  <bruno@clisp.org>
55016
55017         * modules/dirfd (License): Change to LGPLv2+.
55018         Approved by Jim Meyering.
55019
55020 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55021
55022         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55023         when multiplying M by sizeof (size_t).
55024
55025 2007-12-10  Martin Lambers  <marlam@marlam.de>
55026
55027         Override getpagesize on mingw.
55028         * lib/getpagesize.c: New file.
55029         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55030         * modules/getpagesize (Files): Add lib/getpagesize.c.
55031         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55033         REPLACE_GETPAGESIZE.
55034         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55035
55036 2007-12-25  Bruno Haible  <bruno@clisp.org>
55037
55038         * modules/localcharset (Notice): New field.
55039         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55040         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55041
55042 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55043             Bruno Haible  <bruno@clisp.org>
55044
55045         Avoid using the syntax symbol() in formatted documentation.
55046         * MODULES.html.sh (func_module): When replacing symbol() with a
55047         hyperlink, remove the parentheses. Show an error if some remain.
55048         Recognize and render the '...' syntax.
55049         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55050         Rework. Add paragraph about GCC's inlining.
55051         * doc/alloca.texi: Likewise.
55052         * doc/error.texi: Remove parentheses from symbol reference.
55053         * doc/gnulib-intro.texi: Likewise.
55054         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55055         * modules/fnmatch (Description): Reword to say "the ... function".
55056         * modules/full-read (Description): Likewise.
55057         * modules/full-write (Description): Likewise.
55058         * modules/safe-read (Description): Likewise.
55059         * modules/safe-write (Description): Likewise.
55060         * modules/strchrnul (Description): Likewise.
55061         * modules/trim (Description): Likewise.
55062         * modules/error (Description): Remove parentheses from symbol
55063         references.
55064         * modules/verror (Description): Likewise.
55065         Reported by Karl Berry.
55066
55067 2007-12-25  Bruno Haible  <bruno@clisp.org>
55068
55069         Fixup after 2007-10-16 commit.
55070         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55071
55072 2007-12-24  Bruno Haible  <bruno@clisp.org>
55073
55074         Make --enable-relocatable work with DESTDIR.
55075         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55076         to compute installdir from destprog.
55077         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55078         also set the RELOC_DESTDIR variable.
55079         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55080
55081 2007-12-24  Bruno Haible  <bruno@clisp.org>
55082
55083         Fix link error due to xalloc_die().
55084         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55085         of xreadlink.
55086         * lib/relocwrapper.c: Update comments.
55087         * build-aux/install-reloc: Remove xreadlink.c from file list.
55088         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55089         xreadlink.c.
55090         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55091
55092 2007-12-24  Bruno Haible  <bruno@clisp.org>
55093
55094         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55095         * lib/setenv.h: Remove file.
55096         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55097         lib/setenv.h.
55098         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55099         (Depends-on): Add stdlib.
55100         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55101         gl_FUNC_UNSETENV.
55102         (Include): Replace setenv.h with <stdlib.h>.
55103         * modules/unsetenv: New file.
55104         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55105         * lib/unsetenv.c: Include <stdlib.h> first.
55106         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55107         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55108         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55109         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55110         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55111         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55113         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55114         * doc/functions/unsetenv.texi: Update.
55115         * modules/xsetenv (Depends-on): Add unsetenv.
55116         * modules/getdate (Depends-on): Likewise.
55117         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55118         * lib/xsetenv.c: Don't include setenv.h.
55119         * lib/getdate.y: Likewise.
55120         * lib/relocwrapper.c: Likewise.
55121         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55122         (Depends-on): Add stdlib.
55123         * NEWS: Mention the changes.
55124         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55125
55126 2007-12-23  Bruno Haible  <bruno@clisp.org>
55127
55128         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55129         indentation.
55130
55131 2007-12-23  Bruno Haible  <bruno@clisp.org>
55132
55133         * lib/c-strcasestr.c: Add more comments.
55134         * lib/c-strstr.c: Likewise.
55135         * lib/mbscasestr.c: Likewise.
55136         * lib/mbsstr.c: Likewise.
55137         * lib/strcasestr.c: Likewise.
55138         * lib/memmem.c: Likewise.
55139
55140 2007-12-23  Bruno Haible  <bruno@clisp.org>
55141
55142         * tests/test-memmem.c: Include <string.h> first.
55143
55144 2007-12-22  Bruno Haible  <bruno@clisp.org>
55145
55146         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55147         the contents of $testsbase.
55148         Reported by Ralf Wildenhues.
55149
55150 2007-12-22  Bruno Haible  <bruno@clisp.org>
55151
55152         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55153         two variables local_ldadd_before, local_ldadd_last.
55154
55155 2007-12-20  Eric Blake  <ebb9@byu.net>
55156
55157         Work around circular library issue when cross-compiling.
55158         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55159         that progname.o does not need to pull in rpl_memcmp.
55160
55161 2007-12-19  Eric Blake  <ebb9@byu.net>
55162
55163         Fix memmem to avoid O(n^2) worst-case complexity.
55164         * lib/memmem.c (knuth_morris_pratt): New function.
55165         (memmem): Use it if first few naive iterations fail.
55166         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55167         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55168         * modules/memchr (License): Likewise.
55169         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55170         malloca.
55171         * tests/test-memmem.c: Rewrite, borrowing ideas from
55172         test-mbsstr1.c; the old version wouldn't even compile!
55173         * modules/memmem-tests: New file.
55174         * lib/string.in.h (rpl_memmem): Add declaration.
55175         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55176         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55177         REPLACE_MEMMEM.
55178
55179 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55180
55181         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55182         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55183         before any system include files, and undef after them all.  This
55184         should fix a problem on VMS reported by John E. Malmberg in
55185         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55186
55187 2007-12-17  Eric Blake  <ebb9@byu.net>
55188
55189         Revert addition of verify, for BSD/OS.
55190         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55191         can't handle large files, for the sake of obsolete platforms.
55192         * modules/fseeko (Depends-on): Remove verify.
55193         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55194         * doc/functions/ftello.texi (ftello): Likewise.
55195         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55196         Reported by Larry Jones.
55197
55198 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55199
55200         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55201         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55202
55203 2007-12-17  Jim Meyering  <meyering@redhat.com>
55204
55205         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55206         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55207         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55208         * modules/getcwd (Depends-on): Add openat.
55209         Reported by Petr Salinger.
55210
55211 2007-12-17  Bruno Haible  <bruno@clisp.org>
55212
55213         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55214         avoid a segmentation fault of the configure test on x86_64 systems.
55215
55216 2007-12-15  Jim Meyering  <meyering@redhat.com>
55217
55218         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55219
55220 2007-12-13  Eric Blake  <ebb9@byu.net>
55221
55222         Another fseek test.
55223         * tests/test-fseek.c (main): Also test ungetc handling.
55224         * tests/test-fseeko.c (main): Likewise.
55225         * modules/fseeko (Depends-on): Add verify.
55226         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55227         large.
55228         Reported by Larry Jones.
55229
55230         Fix fseeko on mingw.
55231         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55232         seek.
55233
55234         Beef up fseek tests.
55235         * tests/test-fseek.c (main): Also test eof handling.
55236         * tests/test-fseeko.c (main): Likewise.
55237         Reported by Larry Jones.
55238
55239 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55240
55241         Fix fseeko on BSD-based platforms.
55242         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55243         successful seek.
55244
55245 2007-12-12  Eric Blake  <ebb9@byu.net>
55246
55247         Allow circular dependency of separate libtests.a
55248         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55249         when use_libtests.
55250
55251 2007-12-11  Eric Blake  <ebb9@byu.net>
55252
55253         Fix bug with -0.0L in previous patch.
55254         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55255         * tests/test-isnan.c (main): Also test on zeroes.
55256         * tests/test-isnanf.c (main): Likewise.
55257         * tests/test-isnanl.h (main): Likewise.
55258
55259         Detect pseudo-denormals on x86 even when cross-compiling.
55260         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55261         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55262         invalid bit patterns that happen to satisfy ==.
55263
55264         Avoid link failures with separate libtests.a.
55265         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55266         last, to satisfy circular dependencies.
55267
55268 2007-12-11  Eric Blake  <ebb9@byu.net>
55269         and Bruno Haible  <bruno@clisp.org>
55270
55271         Fix OpenBSD 4.0 <float.h> handling of long double.
55272         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55273         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55274         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55275
55276 2007-12-11  Jim Meyering  <meyering@redhat.com>
55277
55278         * users.txt: Add libvirt.
55279
55280         Support versions of autoconf prior to 2.59c.
55281         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55282         if it is not already defined.
55283
55284 2007-12-09  Bruno Haible  <bruno@clisp.org>
55285
55286         Let 'gnulib-tool --import' collect sources needed for the tests in
55287         tests/ rather than in lib/.
55288         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55289         argument. If true, add rules to generate libtests.a, and put libtests.a
55290         into $(LDADD). Consider source files in subdirectories and set
55291         uses_subdirs.
55292         (func_emit_initmacro_start, func_emit_initmacro_end,
55293         func_emit_initmacro_done): Pass all arguments explicitly.
55294         (func_import): Determine two module lists main_modules,
55295         testsrelated_modules. Determine use_libtests. Determine two variables
55296         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55297         instead of just sed_transform_lib_file. Determine two variables
55298         main_files and testsrelated_files. Compute 'files' as the union of
55299         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55300         func_add_or_update. In the generated gnulib-comp.m4, collect the
55301         object files for tests/ in different variables than those for lib/.
55302         Substitute LIBTESTS_LIBDEPS.
55303         (func_create_testdir): Combine the uses_subdirs results from
55304         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55305
55306 2007-12-09  Bruno Haible  <bruno@clisp.org>
55307
55308         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55309         the build-aux directory.
55310
55311 2007-12-09  Bruno Haible  <bruno@clisp.org>
55312
55313         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55314         introduced on 2006-09-09.
55315
55316 2007-12-07  Jim Meyering  <meyering@redhat.com>
55317
55318         Let these macros work also with autoconf-2.59.
55319         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55320         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55321         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55322
55323 2007-12-06  Jim Meyering  <meyering@redhat.com>
55324
55325         Avoid a configure-time syntax error in gl_FUNC_ACL.
55326         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55327         function in each branch, before testing the cache variable.
55328
55329 2007-12-04  Eric Blake  <ebb9@byu.net>
55330
55331         Make scripts executable.
55332         * build-aux/config.guess: Add execute permissions.
55333         * build-aux/config.sub: Likewise.
55334         * build-aux/gendocs.sh: Likewise.
55335
55336         Fix frexp on mingw.
55337         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55338         cross-compiling.
55339         * doc/functions/frexp.texi (frexp): Document the bug.
55340
55341         Make cygwin fseeko check more reliable.
55342         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55343         version numbers, rather than unrelated feature check.
55344         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55345         * doc/functions/ftello.texi (ftello): Likewise.
55346         Reported by Bruno Haible.
55347
55348         * m4/strerror.m4: Bump version number.
55349
55350 2007-12-03  Bruno Haible  <bruno@clisp.org>
55351
55352         * doc/functions/mprotect.texi: Mention the mingw problem.
55353
55354 2007-12-03  Eric Blake  <ebb9@byu.net>
55355
55356         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55357         REPLACE_STRERROR is initialized before this macro.
55358
55359 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55360
55361         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55362         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55363         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55364         put -lsec in even for programs other than 'ls'.  This fixes a problem
55365         for gettext reported by Bruno Haible in
55366         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55367         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55368         Add support for Solaris 10.  This isn't efficient, but should get the
55369         job done for now.
55370
55371 2007-12-03  James Youngman  <jay@gnu.org>
55372
55373         * doc/regexprops-generic.texi: change "an close-group" to "a
55374         close-group" and "illegal" to "not allowed".
55375
55376 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55377
55378         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55379         pr_byname.h. Needed for the rare case when the maintainer has done
55380         "make maintainer-clean" in the source directory and then attempts a
55381         build outside the source directory.
55382         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55383         scripts_byname.h.
55384
55385 2007-12-02  Martin Lambers <marlam@marlam.de>
55386             Bruno Haible  <bruno@clisp.org>
55387
55388         * lib/getpagesize.h: Remove file.
55389         * lib/unistd.in.h: Include declaration of getpagesize here.
55390         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55391         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55392         HAVE_SYS_PARAM_H.
55393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55394         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55395         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55396         (Depends-on): Add unistd.
55397         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55398         (Include): Use <unistd.h> instead of getpagesize.h.
55399         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55400         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55401         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55402         gl_GETPAGESIZE invocation, already handled by module dependency.
55403         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55404
55405 2007-12-02  Bruno Haible  <bruno@clisp.org>
55406
55407         * modules/strings-tests: New file.
55408         * tests/test-strings.c: New file.
55409
55410         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55411         * lib/strings.in.h: New file.
55412         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55413         * m4/strings_h.m4: New file.
55414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55415         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55416         * modules/strings: New file.
55417         * modules/string (Makefile.am): Update.
55418         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55419         Reported by Karl Berry.
55420
55421 2007-12-01  Eric Blake  <ebb9@byu.net>
55422
55423         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55424         accomodate fix in cygwin 1.5.25.
55425
55426 2007-12-01  Jim Meyering  <meyering@redhat.com>
55427
55428         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55429         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55430         that would inhibit utf8-optimization of a regexp containing line-
55431         or buffer-anchors, e.g., `^', `$'.
55432
55433 2007-11-30  Bruno Haible  <bruno@clisp.org>
55434
55435         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55436         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55437         glthread_recursive_lock_init.
55438         * lib/lock.c (glthread_recursive_lock_init)
55439         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55440         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55441
55442 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55443
55444         New function qset_acl, like set_acl but with syscall semantics.
55445         * lib/acl.h (qset_acl): New decl.
55446         * lib/acl.c (qset_acl): New function.
55447         (set_acl): Use new function.  Use more-consistent diagnostics.
55448
55449 2007-11-28  Jim Meyering  <meyering@redhat.com>
55450
55451         * modules/physmem (License): Change from GPL to LGPLv2+.
55452
55453 2007-11-26  Bruno Haible  <bruno@clisp.org>
55454
55455         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55456         'long double' type has excess precision.
55457         Reported by Jim Meyering in
55458         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55459
55460 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55461
55462         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55463         Sync from <http://gnu.org/licenses>.
55464         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55465         with license text from same location.
55466         * doc/maintain.texi, doc/standards.texi:  Sync from
55467         <http://savannah.gnu.org/projects/gnustandards>.
55468
55469 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55470         and Jim Meyering  <meyering@redhat.com>
55471
55472         Adjust getdate' grammar to accept a slightly more regular language.
55473         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55474         Before, the former was rejected.
55475         * lib/getdate.y (digits_to_date_time): New function, factored
55476         out of ...
55477         (number): ...here.  Just call digits_to_date_time.
55478         (hybrid): New non-terminal to handle an <unsigned number,
55479         signed relative offset> sequence consistently.
55480
55481 2007-11-18  Jim Meyering  <meyering@redhat.com>
55482
55483         Pull my changes from coreutils:
55484         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55485         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55486         use of $gnulib_tool_option_extras, so that it's separated from the
55487         preceding argument.
55488
55489         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55490         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55491         parent destination directories before copying a file into place.
55492
55493 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55494
55495         bootstrap: work also with 4-argument variant of AC_INIT
55496         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55497
55498 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55499
55500         Port test-getaddrinfo to Solaris.
55501         Problem reported by Bruno Haible in
55502         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55503         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55504         explanation of setting 'hints'.
55505         Don't reject an implementation merely because it returns EAI_SERVICE.
55506         (EAI_SERVICE): Define to 0 if not defined.
55507
55508 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55509
55510         The license of gnu-make and posix-shell is now "GPLed build tool".
55511         * modules/gnu-make (License): Likewise.
55512         * modules/posix-shell (License): Likewise.
55513
55514         New module posix-shell, for determining a POSIX shell
55515         or perhaps something that is close enough to a POSIX shell.
55516         * m4/posix-shell.m4: New file.
55517         * modules/posix-shell: New file.
55518
55519         * MODULES.html.sh: Mention new module.
55520
55521         New module gnu-make, for determining whether we're using GNU Make.
55522         * m4/gnu-make.m4: New file.
55523         * modules/gnu-make: New file.
55524         * MODULES.html.sh: Mention new module.
55525
55526 2007-11-14  Jim Meyering  <meyering@redhat.com>
55527
55528         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55529         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55530         use this macro to create a function _definition_.
55531         Remove useless "#undef ARGMATCH_DIE".
55532
55533 2007-11-14  Bruno Haible  <bruno@clisp.org>
55534
55535         * lib/config.charset: Update for OpenBSD 4.1.
55536         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55537
55538 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55539
55540         Document 64-bit #if problems in stdint.texi.
55541         * doc/headers/stdint.texi (stdint.h): Mention problems with
55542         64-bit-#if, and how to work around them.
55543
55544         Don't insist on 'long long int' support in the preprocessor.  It
55545         breaks too many things.  For example, PRIdMAX still uses a 'long
55546         long int' format with the latest Sun compiler, even though
55547         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55548         preprocessor problem.  This causes the latest coreutils to dump
55549         core on Solaris 10 sparc with the Sun C compiler.
55550         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55551         the troublesome expressions at configure-time, not at #if-time.
55552         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55553         preprocessor.
55554         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55555         compile-time C checks, done at 'configure'-time.
55556         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55557         * modules/inttypes (Makefile): Substitute the new symbols that
55558         gl_INTTYPES_H now generates.
55559         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55560
55561 2007-11-12  Bruno Haible  <bruno@clisp.org>
55562
55563         Tests for Unicode character classification functions.
55564
55565         * modules/unictype/bidicategory-byname-tests: New file.
55566         * modules/unictype/bidicategory-name-tests: New file.
55567         * modules/unictype/bidicategory-of-tests: New file.
55568         * modules/unictype/bidicategory-test-tests: New file.
55569         * modules/unictype/block-list-tests: New file.
55570         * modules/unictype/block-of-tests: New file.
55571         * modules/unictype/block-test-tests: New file.
55572         * modules/unictype/category-C-tests: New file.
55573         * modules/unictype/category-Cc-tests: New file.
55574         * modules/unictype/category-Cf-tests: New file.
55575         * modules/unictype/category-Cn-tests: New file.
55576         * modules/unictype/category-Co-tests: New file.
55577         * modules/unictype/category-Cs-tests: New file.
55578         * modules/unictype/category-L-tests: New file.
55579         * modules/unictype/category-Ll-tests: New file.
55580         * modules/unictype/category-Lm-tests: New file.
55581         * modules/unictype/category-Lo-tests: New file.
55582         * modules/unictype/category-Lt-tests: New file.
55583         * modules/unictype/category-Lu-tests: New file.
55584         * modules/unictype/category-M-tests: New file.
55585         * modules/unictype/category-Mc-tests: New file.
55586         * modules/unictype/category-Me-tests: New file.
55587         * modules/unictype/category-Mn-tests: New file.
55588         * modules/unictype/category-N-tests: New file.
55589         * modules/unictype/category-Nd-tests: New file.
55590         * modules/unictype/category-Nl-tests: New file.
55591         * modules/unictype/category-No-tests: New file.
55592         * modules/unictype/category-P-tests: New file.
55593         * modules/unictype/category-Pc-tests: New file.
55594         * modules/unictype/category-Pd-tests: New file.
55595         * modules/unictype/category-Pe-tests: New file.
55596         * modules/unictype/category-Pf-tests: New file.
55597         * modules/unictype/category-Pi-tests: New file.
55598         * modules/unictype/category-Po-tests: New file.
55599         * modules/unictype/category-Ps-tests: New file.
55600         * modules/unictype/category-S-tests: New file.
55601         * modules/unictype/category-Sc-tests: New file.
55602         * modules/unictype/category-Sk-tests: New file.
55603         * modules/unictype/category-Sm-tests: New file.
55604         * modules/unictype/category-So-tests: New file.
55605         * modules/unictype/category-Z-tests: New file.
55606         * modules/unictype/category-Zl-tests: New file.
55607         * modules/unictype/category-Zp-tests: New file.
55608         * modules/unictype/category-Zs-tests: New file.
55609         * modules/unictype/category-and-not-tests: New file.
55610         * modules/unictype/category-and-tests: New file.
55611         * modules/unictype/category-byname-tests: New file.
55612         * modules/unictype/category-name-tests: New file.
55613         * modules/unictype/category-none-tests: New file.
55614         * modules/unictype/category-of-tests: New file.
55615         * modules/unictype/category-or-tests: New file.
55616         * modules/unictype/category-test-withtable-tests: New file.
55617         * modules/unictype/combining-class-tests: New file.
55618         * modules/unictype/ctype-alnum-tests: New file.
55619         * modules/unictype/ctype-alpha-tests: New file.
55620         * modules/unictype/ctype-blank-tests: New file.
55621         * modules/unictype/ctype-cntrl-tests: New file.
55622         * modules/unictype/ctype-digit-tests: New file.
55623         * modules/unictype/ctype-graph-tests: New file.
55624         * modules/unictype/ctype-lower-tests: New file.
55625         * modules/unictype/ctype-print-tests: New file.
55626         * modules/unictype/ctype-punct-tests: New file.
55627         * modules/unictype/ctype-space-tests: New file.
55628         * modules/unictype/ctype-upper-tests: New file.
55629         * modules/unictype/ctype-xdigit-tests: New file.
55630         * modules/unictype/decimal-digit-tests: New file.
55631         * modules/unictype/digit-tests: New file.
55632         * modules/unictype/mirror-tests: New file.
55633         * modules/unictype/numeric-tests: New file.
55634         * modules/unictype/property-alphabetic-tests: New file.
55635         * modules/unictype/property-ascii-hex-digit-tests: New file.
55636         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55637         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55638         * modules/unictype/property-bidi-block-separator-tests: New file.
55639         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55640         * modules/unictype/property-bidi-common-separator-tests: New file.
55641         * modules/unictype/property-bidi-control-tests: New file.
55642         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55643         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55644         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55645         * modules/unictype/property-bidi-european-digit-tests: New file.
55646         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55647         * modules/unictype/property-bidi-left-to-right-tests: New file.
55648         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55649         * modules/unictype/property-bidi-other-neutral-tests: New file.
55650         * modules/unictype/property-bidi-pdf-tests: New file.
55651         * modules/unictype/property-bidi-segment-separator-tests: New file.
55652         * modules/unictype/property-bidi-whitespace-tests: New file.
55653         * modules/unictype/property-byname-tests: New file.
55654         * modules/unictype/property-combining-tests: New file.
55655         * modules/unictype/property-composite-tests: New file.
55656         * modules/unictype/property-currency-symbol-tests: New file.
55657         * modules/unictype/property-dash-tests: New file.
55658         * modules/unictype/property-decimal-digit-tests: New file.
55659         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55660         * modules/unictype/property-deprecated-tests: New file.
55661         * modules/unictype/property-diacritic-tests: New file.
55662         * modules/unictype/property-extender-tests: New file.
55663         * modules/unictype/property-format-control-tests: New file.
55664         * modules/unictype/property-grapheme-base-tests: New file.
55665         * modules/unictype/property-grapheme-extend-tests: New file.
55666         * modules/unictype/property-grapheme-link-tests: New file.
55667         * modules/unictype/property-hex-digit-tests: New file.
55668         * modules/unictype/property-hyphen-tests: New file.
55669         * modules/unictype/property-id-continue-tests: New file.
55670         * modules/unictype/property-id-start-tests: New file.
55671         * modules/unictype/property-ideographic-tests: New file.
55672         * modules/unictype/property-ids-binary-operator-tests: New file.
55673         * modules/unictype/property-ids-trinary-operator-tests: New file.
55674         * modules/unictype/property-ignorable-control-tests: New file.
55675         * modules/unictype/property-iso-control-tests: New file.
55676         * modules/unictype/property-join-control-tests: New file.
55677         * modules/unictype/property-left-of-pair-tests: New file.
55678         * modules/unictype/property-line-separator-tests: New file.
55679         * modules/unictype/property-logical-order-exception-tests: New file.
55680         * modules/unictype/property-lowercase-tests: New file.
55681         * modules/unictype/property-math-tests: New file.
55682         * modules/unictype/property-non-break-tests: New file.
55683         * modules/unictype/property-not-a-character-tests: New file.
55684         * modules/unictype/property-numeric-tests: New file.
55685         * modules/unictype/property-other-alphabetic-tests: New file.
55686         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55687         * modules/unictype/property-other-grapheme-extend-tests: New file.
55688         * modules/unictype/property-other-id-continue-tests: New file.
55689         * modules/unictype/property-other-id-start-tests: New file.
55690         * modules/unictype/property-other-lowercase-tests: New file.
55691         * modules/unictype/property-other-math-tests: New file.
55692         * modules/unictype/property-other-uppercase-tests: New file.
55693         * modules/unictype/property-paired-punctuation-tests: New file.
55694         * modules/unictype/property-paragraph-separator-tests: New file.
55695         * modules/unictype/property-pattern-syntax-tests: New file.
55696         * modules/unictype/property-pattern-white-space-tests: New file.
55697         * modules/unictype/property-private-use-tests: New file.
55698         * modules/unictype/property-punctuation-tests: New file.
55699         * modules/unictype/property-quotation-mark-tests: New file.
55700         * modules/unictype/property-radical-tests: New file.
55701         * modules/unictype/property-sentence-terminal-tests: New file.
55702         * modules/unictype/property-soft-dotted-tests: New file.
55703         * modules/unictype/property-space-tests: New file.
55704         * modules/unictype/property-terminal-punctuation-tests: New file.
55705         * modules/unictype/property-test-tests: New file.
55706         * modules/unictype/property-titlecase-tests: New file.
55707         * modules/unictype/property-unassigned-code-value-tests: New file.
55708         * modules/unictype/property-unified-ideograph-tests: New file.
55709         * modules/unictype/property-uppercase-tests: New file.
55710         * modules/unictype/property-variation-selector-tests: New file.
55711         * modules/unictype/property-white-space-tests: New file.
55712         * modules/unictype/property-xid-continue-tests: New file.
55713         * modules/unictype/property-xid-start-tests: New file.
55714         * modules/unictype/property-zero-width-tests: New file.
55715         * modules/unictype/scripts-tests: New file.
55716         * modules/unictype/syntax-c-ident-tests: New file.
55717         * modules/unictype/syntax-c-whitespace-tests: New file.
55718         * modules/unictype/syntax-java-ident-tests: New file.
55719         * modules/unictype/syntax-java-whitespace-tests: New file.
55720         * tests/unictype/test-bidi_byname.c: New file.
55721         * tests/unictype/test-bidi_name.c: New file.
55722         * tests/unictype/test-bidi_of.c: New file.
55723         * tests/unictype/test-bidi_test.c: New file.
55724         * tests/unictype/test-block_list.c: New file.
55725         * tests/unictype/test-block_of.c: New file.
55726         * tests/unictype/test-block_test.c: New file.
55727         * tests/unictype/test-categ_and.c: New file.
55728         * tests/unictype/test-categ_and_not.c: New file.
55729         * tests/unictype/test-categ_byname.c: New file.
55730         * tests/unictype/test-categ_name.c: New file.
55731         * tests/unictype/test-categ_none.c: New file.
55732         * tests/unictype/test-categ_of.c: New file.
55733         * tests/unictype/test-categ_or.c: New file.
55734         * tests/unictype/test-categ_test_withtable.c: New file.
55735         * tests/unictype/test-combining.c: New file.
55736         * tests/unictype/test-decdigit.c: New file.
55737         * tests/unictype/test-digit.c: New file.
55738         * tests/unictype/test-mirror.c: New file.
55739         * tests/unictype/test-numeric.c: New file.
55740         * tests/unictype/test-pr_byname.c: New file.
55741         * tests/unictype/test-pr_test.c: New file.
55742         * tests/unictype/test-predicate-part1.h: New file.
55743         * tests/unictype/test-predicate-part2.h: New file.
55744         * tests/unictype/test-scripts.c: New file.
55745         * tests/unictype/test-sy_c_ident.c: New file.
55746         * tests/unictype/test-sy_java_ident.c: New file.
55747
55748         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55749         for Unicode 5.0.0.
55750         * tests/unictype/test-categ_Cc.c: Likewise.
55751         * tests/unictype/test-categ_Cf.c: Likewise.
55752         * tests/unictype/test-categ_Cn.c: Likewise.
55753         * tests/unictype/test-categ_Co.c: Likewise.
55754         * tests/unictype/test-categ_Cs.c: Likewise.
55755         * tests/unictype/test-categ_L.c: Likewise.
55756         * tests/unictype/test-categ_Ll.c: Likewise.
55757         * tests/unictype/test-categ_Lm.c: Likewise.
55758         * tests/unictype/test-categ_Lo.c: Likewise.
55759         * tests/unictype/test-categ_Lt.c: Likewise.
55760         * tests/unictype/test-categ_Lu.c: Likewise.
55761         * tests/unictype/test-categ_M.c: Likewise.
55762         * tests/unictype/test-categ_Mc.c: Likewise.
55763         * tests/unictype/test-categ_Me.c: Likewise.
55764         * tests/unictype/test-categ_Mn.c: Likewise.
55765         * tests/unictype/test-categ_N.c: Likewise.
55766         * tests/unictype/test-categ_Nd.c: Likewise.
55767         * tests/unictype/test-categ_Nl.c: Likewise.
55768         * tests/unictype/test-categ_No.c: Likewise.
55769         * tests/unictype/test-categ_P.c: Likewise.
55770         * tests/unictype/test-categ_Pc.c: Likewise.
55771         * tests/unictype/test-categ_Pd.c: Likewise.
55772         * tests/unictype/test-categ_Pe.c: Likewise.
55773         * tests/unictype/test-categ_Pf.c: Likewise.
55774         * tests/unictype/test-categ_Pi.c: Likewise.
55775         * tests/unictype/test-categ_Po.c: Likewise.
55776         * tests/unictype/test-categ_Ps.c: Likewise.
55777         * tests/unictype/test-categ_S.c: Likewise.
55778         * tests/unictype/test-categ_Sc.c: Likewise.
55779         * tests/unictype/test-categ_Sk.c: Likewise.
55780         * tests/unictype/test-categ_Sm.c: Likewise.
55781         * tests/unictype/test-categ_So.c: Likewise.
55782         * tests/unictype/test-categ_Z.c: Likewise.
55783         * tests/unictype/test-categ_Zl.c: Likewise.
55784         * tests/unictype/test-categ_Zp.c: Likewise.
55785         * tests/unictype/test-categ_Zs.c: Likewise.
55786         * tests/unictype/test-ctype_alnum.c: Likewise.
55787         * tests/unictype/test-ctype_alpha.c: Likewise.
55788         * tests/unictype/test-ctype_blank.c: Likewise.
55789         * tests/unictype/test-ctype_cntrl.c: Likewise.
55790         * tests/unictype/test-ctype_digit.c: Likewise.
55791         * tests/unictype/test-ctype_graph.c: Likewise.
55792         * tests/unictype/test-ctype_lower.c: Likewise.
55793         * tests/unictype/test-ctype_print.c: Likewise.
55794         * tests/unictype/test-ctype_punct.c: Likewise.
55795         * tests/unictype/test-ctype_space.c: Likewise.
55796         * tests/unictype/test-ctype_upper.c: Likewise.
55797         * tests/unictype/test-ctype_xdigit.c: Likewise.
55798         * tests/unictype/test-decdigit.h: Likewise.
55799         * tests/unictype/test-digit.h: Likewise.
55800         * tests/unictype/test-numeric.h: Likewise.
55801         * tests/unictype/test-pr_alphabetic.c: Likewise.
55802         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55803         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55804         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55805         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55806         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55807         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55808         * tests/unictype/test-pr_bidi_control.c: Likewise.
55809         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55810         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55811         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55812         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55813         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55814         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55815         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55816         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55817         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55818         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55819         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55820         * tests/unictype/test-pr_combining.c: Likewise.
55821         * tests/unictype/test-pr_composite.c: Likewise.
55822         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55823         * tests/unictype/test-pr_dash.c: Likewise.
55824         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55825         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55826         * tests/unictype/test-pr_deprecated.c: Likewise.
55827         * tests/unictype/test-pr_diacritic.c: Likewise.
55828         * tests/unictype/test-pr_extender.c: Likewise.
55829         * tests/unictype/test-pr_format_control.c: Likewise.
55830         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55831         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55832         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55833         * tests/unictype/test-pr_hex_digit.c: Likewise.
55834         * tests/unictype/test-pr_hyphen.c: Likewise.
55835         * tests/unictype/test-pr_id_continue.c: Likewise.
55836         * tests/unictype/test-pr_id_start.c: Likewise.
55837         * tests/unictype/test-pr_ideographic.c: Likewise.
55838         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55839         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55840         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55841         * tests/unictype/test-pr_iso_control.c: Likewise.
55842         * tests/unictype/test-pr_join_control.c: Likewise.
55843         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55844         * tests/unictype/test-pr_line_separator.c: Likewise.
55845         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55846         * tests/unictype/test-pr_lowercase.c: Likewise.
55847         * tests/unictype/test-pr_math.c: Likewise.
55848         * tests/unictype/test-pr_non_break.c: Likewise.
55849         * tests/unictype/test-pr_not_a_character.c: Likewise.
55850         * tests/unictype/test-pr_numeric.c: Likewise.
55851         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55852         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55853         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55854         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55855         * tests/unictype/test-pr_other_id_start.c: Likewise.
55856         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55857         * tests/unictype/test-pr_other_math.c: Likewise.
55858         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55859         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55860         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55861         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55862         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55863         * tests/unictype/test-pr_private_use.c: Likewise.
55864         * tests/unictype/test-pr_punctuation.c: Likewise.
55865         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55866         * tests/unictype/test-pr_radical.c: Likewise.
55867         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55868         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55869         * tests/unictype/test-pr_space.c: Likewise.
55870         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55871         * tests/unictype/test-pr_titlecase.c: Likewise.
55872         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55873         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55874         * tests/unictype/test-pr_uppercase.c: Likewise.
55875         * tests/unictype/test-pr_variation_selector.c: Likewise.
55876         * tests/unictype/test-pr_white_space.c: Likewise.
55877         * tests/unictype/test-pr_xid_continue.c: Likewise.
55878         * tests/unictype/test-pr_xid_start.c: Likewise.
55879         * tests/unictype/test-pr_zero_width.c: Likewise.
55880         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55881         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55882
55883 2007-11-12  Bruno Haible  <bruno@clisp.org>
55884
55885         Unicode character classification functions.
55886         * lib/unictype.h: New file.
55887         * modules/unictype/base: New file.
55888         * modules/unictype/category-L: New file.
55889         * modules/unictype/category-Lu: New file.
55890         * modules/unictype/category-Ll: New file.
55891         * modules/unictype/category-Lt: New file.
55892         * modules/unictype/category-Lm: New file.
55893         * modules/unictype/category-Lo: New file.
55894         * modules/unictype/category-M: New file.
55895         * modules/unictype/category-Mn: New file.
55896         * modules/unictype/category-Mc: New file.
55897         * modules/unictype/category-Me: New file.
55898         * modules/unictype/category-N: New file.
55899         * modules/unictype/category-Nd: New file.
55900         * modules/unictype/category-Nl: New file.
55901         * modules/unictype/category-No: New file.
55902         * modules/unictype/category-P: New file.
55903         * modules/unictype/category-Pc: New file.
55904         * modules/unictype/category-Pd: New file.
55905         * modules/unictype/category-Ps: New file.
55906         * modules/unictype/category-Pe: New file.
55907         * modules/unictype/category-Pi: New file.
55908         * modules/unictype/category-Pf: New file.
55909         * modules/unictype/category-Po: New file.
55910         * modules/unictype/category-S: New file.
55911         * modules/unictype/category-Sm: New file.
55912         * modules/unictype/category-Sc: New file.
55913         * modules/unictype/category-Sk: New file.
55914         * modules/unictype/category-So: New file.
55915         * modules/unictype/category-Z: New file.
55916         * modules/unictype/category-Zs: New file.
55917         * modules/unictype/category-Zl: New file.
55918         * modules/unictype/category-Zp: New file.
55919         * modules/unictype/category-C: New file.
55920         * modules/unictype/category-Cc: New file.
55921         * modules/unictype/category-Cf: New file.
55922         * modules/unictype/category-Cs: New file.
55923         * modules/unictype/category-Co: New file.
55924         * modules/unictype/category-Cn: New file.
55925         * modules/unictype/category-or: New file.
55926         * modules/unictype/category-of: New file.
55927         * modules/unictype/category-test: New file.
55928         * modules/unictype/category-test-withtable: New file.
55929         * modules/unictype/category-byname: New file.
55930         * modules/unictype/category-none: New file.
55931         * modules/unictype/category-and: New file.
55932         * modules/unictype/category-and-not: New file.
55933         * modules/unictype/category-name: New file.
55934         * modules/unictype/combining-class: New file.
55935         * modules/unictype/category-all: New file.
55936         * modules/unictype/bidicategory-all: New file.
55937         * modules/unictype/bidicategory-byname: New file.
55938         * modules/unictype/bidicategory-name: New file.
55939         * modules/unictype/bidicategory-of: New file.
55940         * modules/unictype/bidicategory-test: New file.
55941         * modules/unictype/decimal-digit: New file.
55942         * modules/unictype/digit: New file.
55943         * modules/unictype/numeric: New file.
55944         * modules/unictype/mirror: New file.
55945         * modules/unictype/property-white-space: New file.
55946         * modules/unictype/property-alphabetic: New file.
55947         * modules/unictype/property-other-alphabetic: New file.
55948         * modules/unictype/property-not-a-character: New file.
55949         * modules/unictype/property-default-ignorable-code-point: New file.
55950         * modules/unictype/property-other-default-ignorable-code-point: New
55951         file.
55952         * modules/unictype/property-deprecated: New file.
55953         * modules/unictype/property-logical-order-exception: New file.
55954         * modules/unictype/property-variation-selector: New file.
55955         * modules/unictype/property-private-use: New file.
55956         * modules/unictype/property-unassigned-code-value: New file.
55957         * modules/unictype/property-uppercase: New file.
55958         * modules/unictype/property-other-uppercase: New file.
55959         * modules/unictype/property-lowercase: New file.
55960         * modules/unictype/property-other-lowercase: New file.
55961         * modules/unictype/property-titlecase: New file.
55962         * modules/unictype/property-soft-dotted: New file.
55963         * modules/unictype/property-id-start: New file.
55964         * modules/unictype/property-other-id-start: New file.
55965         * modules/unictype/property-id-continue: New file.
55966         * modules/unictype/property-other-id-continue: New file.
55967         * modules/unictype/property-xid-start: New file.
55968         * modules/unictype/property-xid-continue: New file.
55969         * modules/unictype/property-pattern-white-space: New file.
55970         * modules/unictype/property-pattern-syntax: New file.
55971         * modules/unictype/property-join-control: New file.
55972         * modules/unictype/property-grapheme-base: New file.
55973         * modules/unictype/property-grapheme-extend: New file.
55974         * modules/unictype/property-other-grapheme-extend: New file.
55975         * modules/unictype/property-grapheme-link: New file.
55976         * modules/unictype/property-bidi-control: New file.
55977         * modules/unictype/property-bidi-left-to-right: New file.
55978         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55979         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55980         * modules/unictype/property-bidi-european-digit: New file.
55981         * modules/unictype/property-bidi-eur-num-separator: New file.
55982         * modules/unictype/property-bidi-eur-num-terminator: New file.
55983         * modules/unictype/property-bidi-arabic-digit: New file.
55984         * modules/unictype/property-bidi-common-separator: New file.
55985         * modules/unictype/property-bidi-block-separator: New file.
55986         * modules/unictype/property-bidi-segment-separator: New file.
55987         * modules/unictype/property-bidi-whitespace: New file.
55988         * modules/unictype/property-bidi-non-spacing-mark: New file.
55989         * modules/unictype/property-bidi-boundary-neutral: New file.
55990         * modules/unictype/property-bidi-pdf: New file.
55991         * modules/unictype/property-bidi-embedding-or-override: New file.
55992         * modules/unictype/property-bidi-other-neutral: New file.
55993         * modules/unictype/property-hex-digit: New file.
55994         * modules/unictype/property-ascii-hex-digit: New file.
55995         * modules/unictype/property-ideographic: New file.
55996         * modules/unictype/property-unified-ideograph: New file.
55997         * modules/unictype/property-radical: New file.
55998         * modules/unictype/property-ids-binary-operator: New file.
55999         * modules/unictype/property-ids-trinary-operator: New file.
56000         * modules/unictype/property-zero-width: New file.
56001         * modules/unictype/property-space: New file.
56002         * modules/unictype/property-non-break: New file.
56003         * modules/unictype/property-iso-control: New file.
56004         * modules/unictype/property-format-control: New file.
56005         * modules/unictype/property-dash: New file.
56006         * modules/unictype/property-hyphen: New file.
56007         * modules/unictype/property-punctuation: New file.
56008         * modules/unictype/property-line-separator: New file.
56009         * modules/unictype/property-paragraph-separator: New file.
56010         * modules/unictype/property-quotation-mark: New file.
56011         * modules/unictype/property-sentence-terminal: New file.
56012         * modules/unictype/property-terminal-punctuation: New file.
56013         * modules/unictype/property-currency-symbol: New file.
56014         * modules/unictype/property-math: New file.
56015         * modules/unictype/property-other-math: New file.
56016         * modules/unictype/property-paired-punctuation: New file.
56017         * modules/unictype/property-left-of-pair: New file.
56018         * modules/unictype/property-combining: New file.
56019         * modules/unictype/property-composite: New file.
56020         * modules/unictype/property-decimal-digit: New file.
56021         * modules/unictype/property-numeric: New file.
56022         * modules/unictype/property-diacritic: New file.
56023         * modules/unictype/property-extender: New file.
56024         * modules/unictype/property-ignorable-control: New file.
56025         * modules/unictype/property-test: New file.
56026         * modules/unictype/property-byname: New file.
56027         * modules/unictype/property-all: New file.
56028         * modules/unictype/scripts: New file.
56029         * modules/unictype/scripts-all: New file.
56030         * modules/unictype/block-of: New file.
56031         * modules/unictype/block-test: New file.
56032         * modules/unictype/block-list: New file.
56033         * modules/unictype/block-all: New file.
56034         * modules/unictype/syntax-c-whitespace: New file.
56035         * modules/unictype/syntax-java-whitespace: New file.
56036         * modules/unictype/syntax-c-ident: New file.
56037         * modules/unictype/syntax-java-ident: New file.
56038         * modules/unictype/ctype-alnum: New file.
56039         * modules/unictype/ctype-alpha: New file.
56040         * modules/unictype/ctype-cntrl: New file.
56041         * modules/unictype/ctype-digit: New file.
56042         * modules/unictype/ctype-graph: New file.
56043         * modules/unictype/ctype-lower: New file.
56044         * modules/unictype/ctype-print: New file.
56045         * modules/unictype/ctype-punct: New file.
56046         * modules/unictype/ctype-space: New file.
56047         * modules/unictype/ctype-upper: New file.
56048         * modules/unictype/ctype-xdigit: New file.
56049         * modules/unictype/ctype-blank: New file.
56050         * lib/unictype/bidi_byname.c: New file.
56051         * lib/unictype/bidi_name.c: New file.
56052         * lib/unictype/bidi_of.c: New file.
56053         * lib/unictype/bidi_test.c: New file.
56054         * lib/unictype/bitmap.h: New file.
56055         * lib/unictype/block_test.c: New file.
56056         * lib/unictype/blocks.c: New file.
56057         * lib/unictype/categ_C.c: New file.
56058         * lib/unictype/categ_Cc.c: New file.
56059         * lib/unictype/categ_Cf.c: New file.
56060         * lib/unictype/categ_Cn.c: New file.
56061         * lib/unictype/categ_Co.c: New file.
56062         * lib/unictype/categ_Cs.c: New file.
56063         * lib/unictype/categ_L.c: New file.
56064         * lib/unictype/categ_Ll.c: New file.
56065         * lib/unictype/categ_Lm.c: New file.
56066         * lib/unictype/categ_Lo.c: New file.
56067         * lib/unictype/categ_Lt.c: New file.
56068         * lib/unictype/categ_Lu.c: New file.
56069         * lib/unictype/categ_M.c: New file.
56070         * lib/unictype/categ_Mc.c: New file.
56071         * lib/unictype/categ_Me.c: New file.
56072         * lib/unictype/categ_Mn.c: New file.
56073         * lib/unictype/categ_N.c: New file.
56074         * lib/unictype/categ_Nd.c: New file.
56075         * lib/unictype/categ_Nl.c: New file.
56076         * lib/unictype/categ_No.c: New file.
56077         * lib/unictype/categ_P.c: New file.
56078         * lib/unictype/categ_Pc.c: New file.
56079         * lib/unictype/categ_Pd.c: New file.
56080         * lib/unictype/categ_Pe.c: New file.
56081         * lib/unictype/categ_Pf.c: New file.
56082         * lib/unictype/categ_Pi.c: New file.
56083         * lib/unictype/categ_Po.c: New file.
56084         * lib/unictype/categ_Ps.c: New file.
56085         * lib/unictype/categ_S.c: New file.
56086         * lib/unictype/categ_Sc.c: New file.
56087         * lib/unictype/categ_Sk.c: New file.
56088         * lib/unictype/categ_Sm.c: New file.
56089         * lib/unictype/categ_So.c: New file.
56090         * lib/unictype/categ_Z.c: New file.
56091         * lib/unictype/categ_Zl.c: New file.
56092         * lib/unictype/categ_Zp.c: New file.
56093         * lib/unictype/categ_Zs.c: New file.
56094         * lib/unictype/categ_and.c: New file.
56095         * lib/unictype/categ_and_not.c: New file.
56096         * lib/unictype/categ_byname.c: New file.
56097         * lib/unictype/categ_name.c: New file.
56098         * lib/unictype/categ_none.c: New file.
56099         * lib/unictype/categ_of.c: New file.
56100         * lib/unictype/categ_or.c: New file.
56101         * lib/unictype/categ_test.c: New file.
56102         * lib/unictype/combining.c: New file.
56103         * lib/unictype/ctype_alnum.c: New file.
56104         * lib/unictype/ctype_alpha.c: New file.
56105         * lib/unictype/ctype_blank.c: New file.
56106         * lib/unictype/ctype_cntrl.c: New file.
56107         * lib/unictype/ctype_digit.c: New file.
56108         * lib/unictype/ctype_graph.c: New file.
56109         * lib/unictype/ctype_lower.c: New file.
56110         * lib/unictype/ctype_print.c: New file.
56111         * lib/unictype/ctype_punct.c: New file.
56112         * lib/unictype/ctype_space.c: New file.
56113         * lib/unictype/ctype_upper.c: New file.
56114         * lib/unictype/ctype_xdigit.c: New file.
56115         * lib/unictype/decdigit.c: New file.
56116         * lib/unictype/digit.c: New file.
56117         * lib/unictype/identsyntaxmap.h: New file.
56118         * lib/unictype/mirror.c: New file.
56119         * lib/unictype/numeric.c: New file.
56120         * lib/unictype/pr_alphabetic.c: New file.
56121         * lib/unictype/pr_ascii_hex_digit.c: New file.
56122         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56123         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56124         * lib/unictype/pr_bidi_block_separator.c: New file.
56125         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56126         * lib/unictype/pr_bidi_common_separator.c: New file.
56127         * lib/unictype/pr_bidi_control.c: New file.
56128         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56129         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56130         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56131         * lib/unictype/pr_bidi_european_digit.c: New file.
56132         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56133         * lib/unictype/pr_bidi_left_to_right.c: New file.
56134         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56135         * lib/unictype/pr_bidi_other_neutral.c: New file.
56136         * lib/unictype/pr_bidi_pdf.c: New file.
56137         * lib/unictype/pr_bidi_segment_separator.c: New file.
56138         * lib/unictype/pr_bidi_whitespace.c: New file.
56139         * lib/unictype/pr_byname.c: New file.
56140         * lib/unictype/pr_byname.gperf: New file.
56141         * lib/unictype/pr_combining.c: New file.
56142         * lib/unictype/pr_composite.c: New file.
56143         * lib/unictype/pr_currency_symbol.c: New file.
56144         * lib/unictype/pr_dash.c: New file.
56145         * lib/unictype/pr_decimal_digit.c: New file.
56146         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56147         * lib/unictype/pr_deprecated.c: New file.
56148         * lib/unictype/pr_diacritic.c: New file.
56149         * lib/unictype/pr_extender.c: New file.
56150         * lib/unictype/pr_format_control.c: New file.
56151         * lib/unictype/pr_grapheme_base.c: New file.
56152         * lib/unictype/pr_grapheme_extend.c: New file.
56153         * lib/unictype/pr_grapheme_link.c: New file.
56154         * lib/unictype/pr_hex_digit.c: New file.
56155         * lib/unictype/pr_hyphen.c: New file.
56156         * lib/unictype/pr_id_continue.c: New file.
56157         * lib/unictype/pr_id_start.c: New file.
56158         * lib/unictype/pr_ideographic.c: New file.
56159         * lib/unictype/pr_ids_binary_operator.c: New file.
56160         * lib/unictype/pr_ids_trinary_operator.c: New file.
56161         * lib/unictype/pr_ignorable_control.c: New file.
56162         * lib/unictype/pr_iso_control.c: New file.
56163         * lib/unictype/pr_join_control.c: New file.
56164         * lib/unictype/pr_left_of_pair.c: New file.
56165         * lib/unictype/pr_line_separator.c: New file.
56166         * lib/unictype/pr_logical_order_exception.c: New file.
56167         * lib/unictype/pr_lowercase.c: New file.
56168         * lib/unictype/pr_math.c: New file.
56169         * lib/unictype/pr_non_break.c: New file.
56170         * lib/unictype/pr_not_a_character.c: New file.
56171         * lib/unictype/pr_numeric.c: New file.
56172         * lib/unictype/pr_other_alphabetic.c: New file.
56173         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56174         * lib/unictype/pr_other_grapheme_extend.c: New file.
56175         * lib/unictype/pr_other_id_continue.c: New file.
56176         * lib/unictype/pr_other_id_start.c: New file.
56177         * lib/unictype/pr_other_lowercase.c: New file.
56178         * lib/unictype/pr_other_math.c: New file.
56179         * lib/unictype/pr_other_uppercase.c: New file.
56180         * lib/unictype/pr_paired_punctuation.c: New file.
56181         * lib/unictype/pr_paragraph_separator.c: New file.
56182         * lib/unictype/pr_pattern_syntax.c: New file.
56183         * lib/unictype/pr_pattern_white_space.c: New file.
56184         * lib/unictype/pr_private_use.c: New file.
56185         * lib/unictype/pr_punctuation.c: New file.
56186         * lib/unictype/pr_quotation_mark.c: New file.
56187         * lib/unictype/pr_radical.c: New file.
56188         * lib/unictype/pr_sentence_terminal.c: New file.
56189         * lib/unictype/pr_soft_dotted.c: New file.
56190         * lib/unictype/pr_space.c: New file.
56191         * lib/unictype/pr_terminal_punctuation.c: New file.
56192         * lib/unictype/pr_test.c: New file.
56193         * lib/unictype/pr_titlecase.c: New file.
56194         * lib/unictype/pr_unassigned_code_value.c: New file.
56195         * lib/unictype/pr_unified_ideograph.c: New file.
56196         * lib/unictype/pr_uppercase.c: New file.
56197         * lib/unictype/pr_variation_selector.c: New file.
56198         * lib/unictype/pr_white_space.c: New file.
56199         * lib/unictype/pr_xid_continue.c: New file.
56200         * lib/unictype/pr_xid_start.c: New file.
56201         * lib/unictype/pr_zero_width.c: New file.
56202         * lib/unictype/scripts.c: New file.
56203         * lib/unictype/sy_c_ident.c: New file.
56204         * lib/unictype/sy_c_whitespace.c: New file.
56205         * lib/unictype/sy_java_ident.c: New file.
56206         * lib/unictype/sy_java_whitespace.c: New file.
56207
56208         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56209         Unicode 5.0.0.
56210         * lib/unictype/blocks.h: Likewise.
56211         * lib/unictype/categ_C.h: Likewise.
56212         * lib/unictype/categ_Cc.h: Likewise.
56213         * lib/unictype/categ_Cf.h: Likewise.
56214         * lib/unictype/categ_Cn.h: Likewise.
56215         * lib/unictype/categ_Co.h: Likewise.
56216         * lib/unictype/categ_Cs.h: Likewise.
56217         * lib/unictype/categ_L.h: Likewise.
56218         * lib/unictype/categ_Ll.h: Likewise.
56219         * lib/unictype/categ_Lm.h: Likewise.
56220         * lib/unictype/categ_Lo.h: Likewise.
56221         * lib/unictype/categ_Lt.h: Likewise.
56222         * lib/unictype/categ_Lu.h: Likewise.
56223         * lib/unictype/categ_M.h: Likewise.
56224         * lib/unictype/categ_Mc.h: Likewise.
56225         * lib/unictype/categ_Me.h: Likewise.
56226         * lib/unictype/categ_Mn.h: Likewise.
56227         * lib/unictype/categ_N.h: Likewise.
56228         * lib/unictype/categ_Nd.h: Likewise.
56229         * lib/unictype/categ_Nl.h: Likewise.
56230         * lib/unictype/categ_No.h: Likewise.
56231         * lib/unictype/categ_P.h: Likewise.
56232         * lib/unictype/categ_Pc.h: Likewise.
56233         * lib/unictype/categ_Pd.h: Likewise.
56234         * lib/unictype/categ_Pe.h: Likewise.
56235         * lib/unictype/categ_Pf.h: Likewise.
56236         * lib/unictype/categ_Pi.h: Likewise.
56237         * lib/unictype/categ_Po.h: Likewise.
56238         * lib/unictype/categ_Ps.h: Likewise.
56239         * lib/unictype/categ_S.h: Likewise.
56240         * lib/unictype/categ_Sc.h: Likewise.
56241         * lib/unictype/categ_Sk.h: Likewise.
56242         * lib/unictype/categ_Sm.h: Likewise.
56243         * lib/unictype/categ_So.h: Likewise.
56244         * lib/unictype/categ_Z.h: Likewise.
56245         * lib/unictype/categ_Zl.h: Likewise.
56246         * lib/unictype/categ_Zp.h: Likewise.
56247         * lib/unictype/categ_Zs.h: Likewise.
56248         * lib/unictype/categ_of.h: Likewise.
56249         * lib/unictype/combining.h: Likewise.
56250         * lib/unictype/ctype_alnum.h: Likewise.
56251         * lib/unictype/ctype_alpha.h: Likewise.
56252         * lib/unictype/ctype_blank.h: Likewise.
56253         * lib/unictype/ctype_cntrl.h: Likewise.
56254         * lib/unictype/ctype_digit.h: Likewise.
56255         * lib/unictype/ctype_graph.h: Likewise.
56256         * lib/unictype/ctype_lower.h: Likewise.
56257         * lib/unictype/ctype_print.h: Likewise.
56258         * lib/unictype/ctype_punct.h: Likewise.
56259         * lib/unictype/ctype_space.h: Likewise.
56260         * lib/unictype/ctype_upper.h: Likewise.
56261         * lib/unictype/ctype_xdigit.h: Likewise.
56262         * lib/unictype/decdigit.h: Likewise.
56263         * lib/unictype/digit.h: Likewise.
56264         * lib/unictype/mirror.h: Likewise.
56265         * lib/unictype/numeric.h: Likewise.
56266         * lib/unictype/pr_alphabetic.h: Likewise.
56267         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56268         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56269         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56270         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56271         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56272         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56273         * lib/unictype/pr_bidi_control.h: Likewise.
56274         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56275         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56276         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56277         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56278         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56279         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56280         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56281         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56282         * lib/unictype/pr_bidi_pdf.h: Likewise.
56283         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56284         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56285         * lib/unictype/pr_combining.h: Likewise.
56286         * lib/unictype/pr_composite.h: Likewise.
56287         * lib/unictype/pr_currency_symbol.h: Likewise.
56288         * lib/unictype/pr_dash.h: Likewise.
56289         * lib/unictype/pr_decimal_digit.h: Likewise.
56290         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56291         * lib/unictype/pr_deprecated.h: Likewise.
56292         * lib/unictype/pr_diacritic.h: Likewise.
56293         * lib/unictype/pr_extender.h: Likewise.
56294         * lib/unictype/pr_format_control.h: Likewise.
56295         * lib/unictype/pr_grapheme_base.h: Likewise.
56296         * lib/unictype/pr_grapheme_extend.h: Likewise.
56297         * lib/unictype/pr_grapheme_link.h: Likewise.
56298         * lib/unictype/pr_hex_digit.h: Likewise.
56299         * lib/unictype/pr_hyphen.h: Likewise.
56300         * lib/unictype/pr_id_continue.h: Likewise.
56301         * lib/unictype/pr_id_start.h: Likewise.
56302         * lib/unictype/pr_ideographic.h: Likewise.
56303         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56304         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56305         * lib/unictype/pr_ignorable_control.h: Likewise.
56306         * lib/unictype/pr_iso_control.h: Likewise.
56307         * lib/unictype/pr_join_control.h: Likewise.
56308         * lib/unictype/pr_left_of_pair.h: Likewise.
56309         * lib/unictype/pr_line_separator.h: Likewise.
56310         * lib/unictype/pr_logical_order_exception.h: Likewise.
56311         * lib/unictype/pr_lowercase.h: Likewise.
56312         * lib/unictype/pr_math.h: Likewise.
56313         * lib/unictype/pr_non_break.h: Likewise.
56314         * lib/unictype/pr_not_a_character.h: Likewise.
56315         * lib/unictype/pr_numeric.h: Likewise.
56316         * lib/unictype/pr_other_alphabetic.h: Likewise.
56317         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56318         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56319         * lib/unictype/pr_other_id_continue.h: Likewise.
56320         * lib/unictype/pr_other_id_start.h: Likewise.
56321         * lib/unictype/pr_other_lowercase.h: Likewise.
56322         * lib/unictype/pr_other_math.h: Likewise.
56323         * lib/unictype/pr_other_uppercase.h: Likewise.
56324         * lib/unictype/pr_paired_punctuation.h: Likewise.
56325         * lib/unictype/pr_paragraph_separator.h: Likewise.
56326         * lib/unictype/pr_pattern_syntax.h: Likewise.
56327         * lib/unictype/pr_pattern_white_space.h: Likewise.
56328         * lib/unictype/pr_private_use.h: Likewise.
56329         * lib/unictype/pr_punctuation.h: Likewise.
56330         * lib/unictype/pr_quotation_mark.h: Likewise.
56331         * lib/unictype/pr_radical.h: Likewise.
56332         * lib/unictype/pr_sentence_terminal.h: Likewise.
56333         * lib/unictype/pr_soft_dotted.h: Likewise.
56334         * lib/unictype/pr_space.h: Likewise.
56335         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56336         * lib/unictype/pr_titlecase.h: Likewise.
56337         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56338         * lib/unictype/pr_unified_ideograph.h: Likewise.
56339         * lib/unictype/pr_uppercase.h: Likewise.
56340         * lib/unictype/pr_variation_selector.h: Likewise.
56341         * lib/unictype/pr_white_space.h: Likewise.
56342         * lib/unictype/pr_xid_continue.h: Likewise.
56343         * lib/unictype/pr_xid_start.h: Likewise.
56344         * lib/unictype/pr_zero_width.h: Likewise.
56345         * lib/unictype/scripts.h: Likewise.
56346         * lib/unictype/scripts_byname.gperf: Likewise.
56347         * lib/unictype/sy_c_ident.h: Likewise.
56348         * lib/unictype/sy_c_whitespace.h: Likewise.
56349         * lib/unictype/sy_java_ident.h: Likewise.
56350         * lib/unictype/sy_java_whitespace.h: Likewise.
56351
56352         * lib/unictype/Makefile: New file.
56353         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56354         glibc.
56355         * lib/unictype/3level.h: New file, copied from glibc.
56356         * lib/unictype/3levelbit.h: New file.
56357
56358 2007-11-11  Bruno Haible  <bruno@clisp.org>
56359
56360         * modules/gperf: New file.
56361         * modules/iconv_open (Depends-on): Add it.
56362         (Makefile.am): Remove the GPERF definition.
56363
56364 2007-11-11  Bruno Haible  <bruno@clisp.org>
56365
56366         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56367         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56368
56369 2007-11-11  Bruno Haible  <bruno@clisp.org>
56370
56371         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56372         (usage): Remove function.
56373
56374 2007-11-11  Bruno Haible  <bruno@clisp.org>
56375
56376         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56377         gl_FUNC_CEILF_LIBS.
56378         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56379         gl_FUNC_CEIL_LIBS.
56380         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56381         gl_FUNC_CEILL_LIBS.
56382         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56383         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56384         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56385
56386 2007-11-11  Bruno Haible  <bruno@clisp.org>
56387
56388         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56389         roundf were declared but do not exist on functions.
56390         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56391         roundl were declared but do not exist on functions.
56392         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56393         HAVE_FLOORL_AND_CEILL, respectively.
56394         Needed for Sun C on Solaris 10.
56395
56396 2007-11-11  Bruno Haible  <bruno@clisp.org>
56397
56398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56399         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56400         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56401         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56403         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56404         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56405         HAVE_DECL_ROUNDF.
56406         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56407         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56409         of HAVE_DECL_ROUND*.
56410         * modules/math (Makefile.am): Update.
56411
56412 2007-11-10  Bruno Haible  <bruno@clisp.org>
56413
56414         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56415         ptrdiff_t as m4/intl.m4.
56416
56417 2007-11-10  Jim Meyering  <meyering@redhat.com>
56418
56419         Avoid link failure for the argmatch test.
56420         * tests/test-argmatch.c (usage): Define function to avoid a link
56421         failure: argmatch_die requires a usage function.
56422
56423 2007-11-09  Bruno Haible  <bruno@clisp.org>
56424
56425         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56426         * doc/functions/vsnprintf.texi: Likewise.
56427         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56428         with a size argument < 2.
56429
56430 2007-11-09  Bruno Haible  <bruno@clisp.org>
56431
56432         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56433         buffer. Fixes an inefficiency introduced on 2007-11-03.
56434
56435 2007-11-09  Bruno Haible  <bruno@clisp.org>
56436
56437         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56438         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56439
56440 2007-11-08  Jim Meyering  <meyering@redhat.com>
56441
56442         Change cache variable name prefix "jm_" to "gl_" everywhere.
56443         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56444         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56445         * m4/uptime.m4: s/gl_/jm_/
56446
56447 2007-11-07  Bruno Haible  <bruno@clisp.org>
56448
56449         Update to GNU gettext 0.17.
56450         * m4/intl.m4: Update to GNU gettext 0.17.
56451         * m4/po.m4: Likewise.
56452         * modules/gettext (Files): Remove m4/ulonglong.m4.
56453         (configure.ac): Require gettext infrastructure from version 0.17.
56454
56455 2007-11-06  Bruno Haible  <bruno@clisp.org>
56456
56457         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56458         symbolic values are not defined in a public header.
56459         * lib/freadable.c (freadable) [QNX]: Likewise.
56460         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56461         * lib/freading.c (freading) [QNX]: Likewise.
56462         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56463         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56464         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56465         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56466         Reported by Alain Magloire.
56467
56468         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56469
56470 2007-11-05  Bruno Haible  <bruno@clisp.org>
56471
56472         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56473         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56474         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56475         Reported by Eric Blake.
56476
56477 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56478             Bruno Haible  <bruno@clisp.org>
56479
56480         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56481         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56482         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56483         (malloc): Undefine also before including <stdlib.h>.
56484         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56485         Needed on OSF/1 4.0.
56486
56487 2007-11-05  Jim Meyering  <meyering@redhat.com>
56488
56489         git-version-gen: sync from coreutils.
56490         * build-aux/git-version-gen: Add comments.
56491         Change the first '-' to '.' in the snapshot version string,
56492         e.g., 6.9-377-08144 -> 6.9.377-08144
56493         Remove first parameter.
56494         Don't declare a version "-dirty" merely because a time
56495         stamp has changed.
56496
56497 2007-11-04  Bruno Haible  <bruno@clisp.org>
56498
56499         * lib/lock.h: Protect all macro definitions containing an 'if'
56500         statement through a "do { ... } while (0)".
56501         * lib/tls.h: Likewise.
56502
56503 2007-11-04  Bruno Haible  <bruno@clisp.org>
56504
56505         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56506
56507 2007-11-04  Bruno Haible  <bruno@clisp.org>
56508
56509         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56510         * modules/fprintf-posix (Depends-on): Add nocrash.
56511         * modules/snprintf-posix (Depends-on): Likewise.
56512         * modules/sprintf-posix (Depends-on): Likewise.
56513         * modules/vasnprintf-posix (Depends-on): Likewise.
56514         * modules/vasprintf-posix (Depends-on): Likewise.
56515         * modules/vfprintf-posix (Depends-on): Likewise.
56516         * modules/vsnprintf-posix (Depends-on): Likewise.
56517         * modules/vsprintf-posix (Depends-on): Likewise.
56518         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56519         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56520         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56521         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56522         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56523         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56524         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56525
56526 2007-11-04  Bruno Haible  <bruno@clisp.org>
56527
56528         * modules/nocrash: New file.
56529         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56530         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56531
56532 2007-11-04  Bruno Haible  <bruno@clisp.org>
56533
56534         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56535         precision handling.
56536         * tests/test-vasprintf-posix.c (test_function): Likewise.
56537         * tests/test-snprintf-posix.h (test_function): Likewise.
56538         * tests/test-sprintf-posix.h (test_function): Likewise.
56539
56540         Fix *printf behaviour for large precisions on mingw and BeOS.
56541         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56542         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56543         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56544         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56545         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56546         gl_PRINTF_PRECISION and test its result. Invoke
56547         gl_PREREQ_VASNPRINTF_PRECISION.
56548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56549         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56550         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56551         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56552         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56554         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56555         * doc/functions/fprintf.texi: Update.
56556         * doc/functions/printf.texi: Update.
56557         * doc/functions/snprintf.texi: Update.
56558         * doc/functions/sprintf.texi: Update.
56559         * doc/functions/vfprintf.texi: Update.
56560         * doc/functions/vprintf.texi: Update.
56561         * doc/functions/vsnprintf.texi: Update.
56562         * doc/functions/vsprintf.texi: Update.
56563
56564 2007-11-04  Bruno Haible  <bruno@clisp.org>
56565
56566         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56567
56568 2007-11-04  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56571         Reported by Sylvain Beucler <beuc@gnu.org>.
56572
56573 2007-11-03  Bruno Haible  <bruno@clisp.org>
56574
56575         * tests/test-fprintf-posix2.sh: New file.
56576         * tests/test-fprintf-posix2.c: New file.
56577         * modules/fprintf-posix-tests (Files): Add them.
56578         (TESTS): Add test-fprintf-posix2.sh.
56579         (configure.ac): Check for getrlimit and setrlimit.
56580         (check_PROGRAMS): Add test-fprintf-posix2.
56581
56582         * tests/test-printf-posix2.sh: New file.
56583         * tests/test-printf-posix2.c: New file.
56584         * modules/printf-posix-tests (Files): Add them.
56585         (TESTS): Add test-printf-posix2.sh.
56586         (configure.ac): Check for getrlimit and setrlimit.
56587         (check_PROGRAMS): Add test-printf-posix2.
56588
56589         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56590         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56591         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56592         (decode_double): New function, copied from decode_long_double.
56593         (scale10_round_decimal_decoded): New function, extracted from
56594         scale10_round_decimal_long_double.
56595         (scale10_round_decimal_long_double): Use it.
56596         (scale10_round_decimal_double): New function.
56597         (floorlog10): New function.
56598         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56600         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56601         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56602         gl_PRINTF_ENOMEM and test its result. Invoke
56603         gl_PREREQ_VASNPRINTF_ENOMEM.
56604         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56607         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56608         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56609         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56610         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56611         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56612         * modules/snprintf-posix (Depends-on): Likewise.
56613         * modules/sprintf-posix (Depends-on): Likewise.
56614         * modules/vasnprintf-posix (Depends-on): Likewise.
56615         * modules/vasprintf-posix (Depends-on): Likewise.
56616         * modules/vfprintf-posix (Depends-on): Likewise.
56617         * modules/vsnprintf-posix (Depends-on): Likewise.
56618         * modules/vsprintf-posix (Depends-on): Likewise.
56619         * doc/functions/fprintf.texi: Update.
56620         * doc/functions/printf.texi: Update.
56621         * doc/functions/snprintf.texi: Update.
56622         * doc/functions/sprintf.texi: Update.
56623         * doc/functions/vfprintf.texi: Update.
56624         * doc/functions/vprintf.texi: Update.
56625         * doc/functions/vsnprintf.texi: Update.
56626         * doc/functions/vsprintf.texi: Update.
56627
56628 2007-11-03  Bruno Haible  <bruno@clisp.org>
56629
56630         * modules/frexp-nolibm-tests: New file.
56631
56632         * modules/frexp-nolibm: New file.
56633         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56634
56635 2007-11-03  Bruno Haible  <bruno@clisp.org>
56636
56637         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56638         value is C99 compliant.
56639         Needed for OSF/1 5.1.
56640
56641 2007-11-03  Bruno Haible  <bruno@clisp.org>
56642
56643         Fix out-of-memory handling of vasnprintf.
56644         * lib/printf-parse.c: Include <errno.h>.
56645         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56646         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56647         is already set.
56648
56649 2007-11-02  Eric Blake  <ebb9@byu.net>
56650
56651         Fix tests on cygwin.
56652         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56653
56654 2007-11-01  Bruno Haible  <bruno@clisp.org>
56655
56656         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56657         warning.
56658         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56659         needed for POSIX compatibility.
56660
56661 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56662
56663         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56664         for compatibility with GNU.
56665
56666 2007-11-01  Bruno Haible  <bruno@clisp.org>
56667
56668         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56669         (putenv): Renamed from rpl_putenv. Change argument type from
56670         'const char *' to 'char *'.
56671         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56672         of defining putenv in config.h, just set REPLACE_PUTENV.
56673         * modules/putenv (Depends-on): Add stdlib.
56674         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56675         (Include): Use <stdlib.h>.
56676         * lib/stdlib.in.h (putenv): New declaration.
56677         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56678         REPLACE_PUTENV.
56679         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56680         REPLACE_PUTENV.
56681         Needed for MacOS X 10.5.0.
56682         Reported by Peter O'Gorman <peter@pogma.com>.
56683
56684 2007-11-01  Jim Meyering  <meyering@redhat.com>
56685
56686         Treat an empty date string exactly like "0".
56687         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56688         if the remaining date string (to be parsed) is empty, use "0".
56689         Reported by Mischa Molhoek and discussed in this thread:
56690         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56691
56692 2007-10-31  Bruno Haible  <bruno@clisp.org>
56693
56694         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56695         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56696         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56697         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56698         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56699         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56700
56701 2007-10-31  Bruno Haible  <bruno@clisp.org>
56702
56703         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56704         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56705         (AC_TYPE_LONG_LONG_INT): Use it.
56706         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56707         it as well.
56708         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56709         to m4/longlong.m4.
56710         * modules/stdint (Files): Remove m4/ulonglong.m4.
56711         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56712         m4/ulonglong.m4.
56713         * modules/strtoumax (Files): Likewise.
56714
56715 2007-10-30  Bruno Haible  <bruno@clisp.org>
56716
56717         * modules/xvasprintf-posix: New file.
56718         Suggested by Eric Blake.
56719
56720 2007-10-30  Bruno Haible  <bruno@clisp.org>
56721
56722         * modules/xprintf-posix-tests: New file.
56723         * tests/test-xprintf-posix.sh: New file.
56724         * tests/test-xprintf-posix.c: New file.
56725         * tests/test-xfprintf-posix.c: New file.
56726
56727         * modules/xprintf-posix: New file.
56728
56729 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56730
56731         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56732         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56733         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56734
56735 2007-10-29  Bruno Haible  <bruno@clisp.org>
56736
56737         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56738         contain the special marker '_cv_'.
56739         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56740         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56741         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56742         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56743         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56744         Reported by Ralf Wildenhues.
56745
56746 2007-10-29  Bruno Haible  <bruno@clisp.org>
56747
56748         * gnulib-tool (func_import): When --lgpl is not specified, set
56749         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56750         GPLv3.
56751         Reported by Simon Josefsson.
56752
56753 2007-10-28  Bruno Haible  <bruno@clisp.org>
56754
56755         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56756         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56757         HAVE_DECL_ISFINITE.
56758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56759         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56760         HAVE_DECL_ISFINITE.
56761
56762 2007-10-28  Bruno Haible  <bruno@clisp.org>
56763
56764         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56765         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56766
56767 2007-10-28  Bruno Haible  <bruno@clisp.org>
56768
56769         Fix link errors with Sun C 5.0 on Solaris 10.
56770         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56771         function is declared but not present in the compiler's libm.
56772         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56773         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56774         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56775         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56776         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56777         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56778         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56780         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56781         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56782         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56783         HAVE_DECL_FLOORL.
56784
56785 2007-10-28  Bruno Haible  <bruno@clisp.org>
56786
56787         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56788         gl_FUNC_FLOORL. Cache the result.
56789         (gl_FUNC_FLOORL): Use it.
56790         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56791         gl_FUNC_CEILL. Cache the result.
56792         (gl_FUNC_CEILL): Use it.
56793
56794         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56795         gl_FUNC_FLOOR. Cache the result.
56796         (gl_FUNC_FLOOR): Use it.
56797         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56798         gl_FUNC_CEIL. Cache the result.
56799         (gl_FUNC_CEIL): Use it.
56800
56801         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56802         gl_FUNC_FLOORF. Cache the result.
56803         (gl_FUNC_FLOORF): Use it.
56804         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56805         gl_FUNC_CEILF. Cache the result.
56806         (gl_FUNC_CEILF): Use it.
56807
56808 2007-10-28  Bruno Haible  <bruno@clisp.org>
56809
56810         * gnulib-tool: Allow specifying the LGPL version number through
56811         --lgpl=2 or --lgpl=3.
56812         (func_usage): Document --lgpl with argument.
56813         Handle --lgpl=... arguments.
56814         (func_import): Recognize also gl_LGPL calls with an argument. When
56815         --lgpl=2 is used and the module's license is just LGPL, report an
56816         error. Set sed_transform_lib_file according to the lgpl variable. In
56817         the generated files, use --lgpl or gl_LGPL invocations with argument,
56818         if necessary.
56819         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56820         an LGPv2+ license.
56821         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56822         gl_LGPL macro.
56823
56824 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56825             Bruno Haible  <bruno@clisp.org>
56826
56827         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56828         (u16_uctomb_aux): Likewise.
56829         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56830         !HAVE_INLINE.
56831         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56832
56833 2007-10-28  Bruno Haible  <bruno@clisp.org>
56834
56835         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56836         Invoke AM_GETTEXT_OPTION if it exists.
56837         * modules/vasprintf: Likewise.
56838         * modules/verror: Likewise.
56839         * modules/xprintf: Likewise.
56840         * modules/xvasprintf: Likewise.
56841
56842 2007-10-27  Ben Pfaff  <blp@gnu.org>
56843
56844         * lib/math.in.h: Define isfinite macro and prototypes for
56845         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56846         implementations.
56847         * m4/math_h.m4: New substitutions for isfinite module.
56848         * lib/isfinite.c: New file.
56849         * m4/isfinite.m4: New file.
56850         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56851         * modules/isfinite: New file.
56852         * modules/isfinite-tests: New file.
56853         * tests/tests-isfinite.c: New file.
56854         * doc/functions/isfinite.texi: Mention isfinite module.
56855         * MODULES.html.sh: Mention new module.
56856
56857 2007-10-27  Ben Pfaff  <blp@gnu.org>
56858
56859         Ralf Wildenhues reported that Tru64 4.0D declares the round
56860         functions but does not have definitions.
56861         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56862         cannot be found in any library, set the output variable to
56863         "missing" instead of "".
56864         * m4/round.m4: Also use our substitute if we cannot find round in
56865         any library, even if it is declared.
56866         * m4/roundf.m4: Likewise for roundf.
56867         * m4/roundl.m4: Likewise for roundl.
56868         * lib/math.in.h: Undefine roundf, round, roundl before defining
56869         their replacements, to allow for hypothetical systems where these
56870         may be defined as macros but not available in libraries.
56871
56872 2007-10-27  Bruno Haible  <bruno@clisp.org>
56873
56874         * doc/gnulib.texi: Invoke @firstparagraphindent.
56875         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56876         changes in gnulib.
56877         (Source changes): New section.
56878
56879 2007-10-26  Bruno Haible  <bruno@clisp.org>
56880
56881         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56882         borrowed from autoconf.
56883
56884 2007-10-26  Bruno Haible  <bruno@clisp.org>
56885
56886         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56887         strerror returned the empty string. Needed on HP-UX 11.00.
56888
56889 2007-10-24  Micah Cowan  <micah@cowan.name>
56890
56891         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56892         * build-aux/bootstrap: Remove support for now-unnecessary option,
56893         --cvs-user, and envvars CVS_USER, CVS_RSH.
56894
56895 2007-10-24  Jim Meyering  <meyering@redhat.com>
56896
56897         Avoid diagnostics from sha1sum when there is no cached checksum.
56898         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56899         if the po.s1 file hasn't been created yet.
56900
56901         * build-aux/bootstrap: Sync from coreutils:
56902         2007-10-24  Jim Meyering  <meyering@redhat.com>
56903         Get gnulib from the git repository, not from an obsolete cvs one.
56904         * build-aux/bootstrap: Suggestion from Micah Cowan.
56905         2007-10-04  Jim Meyering  <jim@meyering.net>
56906         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56907         (update_po_files): Work also when there are no .po files in po/.
56908
56909 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56910
56911         * README: Append ".git" to git and cg examples.
56912         Problem reported by Benoit Sigoure.
56913
56914 2007-10-23  Micah Cowan  <micah@cowan.name>
56915
56916         * users.txt: Add wget.
56917
56918 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56919
56920         Fix linking of some unistdio tests on FreeBSD.
56921         * modules/unistdio/u16-vsnprintf-tests
56922         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56923         * modules/unistdio/u16-vsprintf-tests
56924         (test_u16_vsnprintf1_LDADD): Likewise.
56925         * modules/unistdio/u32-vsnprintf-tests
56926         (test_u32_vsnprintf1_LDADD): Likewise.
56927         * modules/unistdio/u32-vsprintf-tests
56928         (test_u32_vsprintf1_LDADD): Likewise.
56929         * modules/unistdio/u8-vsnprintf-tests
56930         (test_u8_vsnprintf1_LDADD): Likewise.
56931         * modules/unistdio/u8-vsprintf-tests
56932         (test_u8_vsprintf1_LDADD): Likewise.
56933         * modules/unistdio/ulc-vsnprintf-tests
56934         (test_ulc_vsnprintf1_LDADD): Likewise.
56935         * modules/unistdio/ulc-vsprintf-tests
56936         (test_ulc_vsprintf1_LDADD): Likewise.
56937
56938         Fix linking of some uniconv tests on FreeBSD.
56939         * modules/uniconv/u16-conv-from-enc-tests
56940         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56941         * modules/uniconv/u16-conv-to-enc-tests
56942         (test_u16_conv_to_enc_LDADD): Likewise.
56943         * modules/uniconv/u16-strconv-from-enc-tests
56944         (test_u16_strconv_from_enc_LDADD): Likewise.
56945         * modules/uniconv/u16-strconv-to-enc-tests
56946         (test_u16_strconv_to_enc_LDADD): Likewise.
56947         * modules/uniconv/u32-conv-from-enc-tests
56948         (test_u32_conv_from_enc_LDADD): Likewise.
56949         * modules/uniconv/u32-conv-to-enc-tests
56950         (test_u32_conv_to_enc_LDADD): Likewise.
56951         * modules/uniconv/u32-strconv-from-enc-tests
56952         (test_u32_strconv_from_enc_LDADD): Likewise.
56953         * modules/uniconv/u32-strconv-to-enc-tests
56954         (test_u32_strconv_to_enc_LDADD): Likewise.
56955         * modules/uniconv/u8-conv-from-enc-tests
56956         (test_u8_conv_from_enc_LDADD): Likewise.
56957         * modules/uniconv/u8-conv-to-enc-tests
56958         (test_u8_conv_to_enc_LDADD): Likewise.
56959         * modules/uniconv/u8-strconv-from-enc-tests
56960         (test_u8_strconv_from_enc_LDADD): Likewise.
56961         * modules/uniconv/u8-strconv-to-enc-tests
56962         (test_u8_strconv_to_enc_LDADD): Likewise.
56963
56964 2007-10-22  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56967         size.
56968
56969 2007-10-22  Eric Blake  <ebb9@byu.net>
56970
56971         Tweak x*printf documentation.
56972         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56973         variable name and comments.
56974         Suggested by Bruno Haible.
56975
56976 2007-10-22  Bruno Haible  <bruno@clisp.org>
56977
56978         * lib/acl.c (copy_acl): Fix file name in comment.
56979
56980 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56981
56982         Fix Tru64 problem with stdbool.h.
56983         * lib/stdbool.in.h (false, true):
56984         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56985         Don't declare as an enum in this situation; it runs afoul of Tru64.
56986         Problem reported by Steven M. Schweda in
56987         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56988
56989 2007-10-22  Eric Blake  <ebb9@byu.net>
56990
56991         Also wrap vf?printf.
56992         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56993         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56994         (xvprintf, xvfprintf): New functions.
56995
56996 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56997
56998         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56999         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57000
57001         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57002         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57003
57004 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57005
57006         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57007         by Bruno Haible.
57008
57009 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57010
57011         * lib/getloadavg.c
57012         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57013         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57014
57015         * tests/test-i-ring.c: Work for C89.
57016
57017 2007-10-22  Bruno Haible  <bruno@clisp.org>
57018
57019         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57020         -1u, in preprocessor expression, so that we don't test for the bug
57021         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57022         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57023
57024 2007-10-22  Eric Blake  <ebb9@byu.net>
57025
57026         * tests/test-yesno.sh: Silence stderr during test.
57027
57028 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57029
57030         * modules/crypto/gc-camellia: New file.
57031
57032         * m4/gc-camellia.m4: New file.
57033
57034         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57035
57036         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57037
57038 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57039
57040         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57041         --help to stdout.  Reported by sms@antinode.org (Steven
57042         M. Schweda).
57043
57044 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57045
57046         * users.txt: Fix link to libksba.
57047
57048 2007-10-21  Ben Pfaff  <blp@gnu.org>
57049
57050         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57051         round.c roundf implementation that depends on floorf and ceilf to
57052         be tested unconditionally.
57053
57054 2007-10-21  Ben Pfaff  <blp@gnu.org>
57055
57056         * m4/check-libm-func.m4: Removed.
57057         * m4/check-math-lib.m4: New file.
57058         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57059         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57060         definition and lack of AC_LIBOBJ([roundf]).
57061         * m4/roundl.m4: Ditto, and similarly for roundl.
57062         * modules/round: Reference new m4 file.
57063         * modules/roundf: Ditto.
57064         * modules/roundl: Ditto.
57065         * tests/test-round2.c (main): Use ROUND instead of round.
57066         Bug report from Bruno Haible.
57067
57068 2007-10-21  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57071         context.
57072
57073 2007-10-21  Bruno Haible  <bruno@clisp.org>
57074
57075         * tests/test-wcwidth.c (main): Allow negative result for some control
57076         characters.
57077
57078         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57079         Needed on OSF/1 5.1.
57080
57081 2007-10-21  Bruno Haible  <bruno@clisp.org>
57082
57083         * tests/test-floorf1.c: Include isnanf.h.
57084         (main): Use isnanf() instead of isnan().
57085         * tests/test-ceilf1.c: Include isnanf.h.
57086         (main): Use isnanf() instead of isnan().
57087         * tests/test-truncf1.c: Include isnanf.h.
57088         (main): Use isnanf() instead of isnan().
57089         * tests/test-roundf1.c: Include isnanf.h.
57090         (main): Use isnanf() instead of isnan().
57091
57092 2007-10-21  Eric Blake  <ebb9@byu.net>
57093
57094         * users.txt: Update URL for m4.
57095
57096 2007-10-21  Bruno Haible  <bruno@clisp.org>
57097
57098         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57099
57100 2007-10-21  Bruno Haible  <bruno@clisp.org>
57101
57102         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57103         Git's management files if the CVS files are not present.
57104
57105 2007-10-20  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57108         gcc-3.4.x.
57109
57110 2007-10-20  Ben Pfaff  <blp@gnu.org>
57111
57112         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57113         implementations.
57114         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57115         * lib/round.c: New file.
57116         * lib/roundf.c: New file.
57117         * lib/roundl.c: New file.
57118         * m4/round.m4: New file.
57119         * m4/roundf.m4: New file.
57120         * m4/roundl.m4: New file.
57121         * m4/check-libm-func-m4: New file.
57122         * modules/math: Replace round, roundf, roundl related @VARS@ in
57123         math.in.h.
57124         * modules/round: New file.
57125         * modules/round-tests: New file.
57126         * modules/roundf: New file.
57127         * modules/roundf-tests: New file.
57128         * modules/roundl: New file.
57129         * modules/roundl-tests: New file.
57130         * tests/test-round1.c: New file.
57131         * tests/test-round2.c: New file.
57132         * tests/test-roundf1.c: New file.
57133         * tests/test-roundf2.c: New file.
57134         * tests/test-roundl.c: New file.
57135         * doc/functions/round.texi: Mention round module.
57136         * doc/functions/roundf.texi: Mention roundf module.
57137         * doc/functions/roundl.texi: Mention roundl module.
57138         * MODULES.html.sh: Mention new modules.
57139         Thanks to Bruno Haible for suggestions.
57140
57141 2007-10-20  Jim Meyering  <meyering@redhat.com>
57142
57143         * lib/xprintf.c: Include <config.h> unconditionally.
57144
57145         Change xprintf's license to GPL.
57146         * modules/xprintf (License): s/LGPL/GPL/, since this module
57147         depends on modules (exit and exitfail) which are GPL.
57148         Suggestion from Bruno Haible.
57149
57150         xprintf fixes.
57151         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57152         Use a clearer diagnostic.
57153         Patch from Bruno Haible.
57154
57155 2007-10-20  Bruno Haible  <bruno@clisp.org>
57156
57157         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57158         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57159         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57160
57161 2007-10-20  Bruno Haible  <bruno@clisp.org>
57162
57163         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57164         precision in the comparison result > x - 1 or similar.
57165         * tests/test-ceilf2.c (correct_result_p): Likewise.
57166         * tests/test-truncf2.c (correct_result_p): Likewise.
57167         * tests/test-trunc2.c (correct_result_p): Likewise.
57168         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57169
57170 2007-10-20  Bruno Haible  <bruno@clisp.org>
57171
57172         * modules/ceil: New file.
57173         * m4/ceil.m4: New file.
57174         * doc/functions/ceil.texi: Mention the 'ceil' module.
57175
57176 2007-10-20  Bruno Haible  <bruno@clisp.org>
57177
57178         * modules/floor: New file.
57179         * m4/floor.m4: New file.
57180         * doc/functions/floor.texi: Mention the 'floor' module.
57181
57182 2007-10-20  Bruno Haible  <bruno@clisp.org>
57183
57184         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57185         of %a.
57186         * modules/floorf-tests (Depends-on): Likewise.
57187         * modules/truncf-tests (Depends-on): Likewise.
57188         * modules/trunc-tests (Depends-on): Likewise.
57189         Reported by Ben Pfaff.
57190
57191 2007-10-19  Jim Meyering  <meyering@redhat.com>
57192
57193         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57194         Don't bother testing specific errno values.  Just test ferror.
57195
57196         New module: xprintf
57197         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57198
57199 2007-10-19  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57202         syntax.
57203         * modules/javaexec (Makefile.am): Likewise.
57204         * modules/relocatable-prog (Makefile.am): Likewise.
57205         Suggested by Jim Meyering.
57206
57207 2007-10-18  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57210         Reported by Jim Meyering.
57211
57212 2007-10-18  Eric Blake  <ebb9@byu.net>
57213
57214         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57215
57216 2007-10-18  Bruno Haible  <bruno@clisp.org>
57217
57218         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57219         the format string into writable memory. Needed in Fortify conditions.
57220
57221 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57222             Bruno Haible  <bruno@clisp.org>
57223
57224         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57225         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57226         * modules/trim (Depends-on): Add mbchar.
57227         (configure.ac): Add gl_FUNC_MBRTOWC.
57228         (Makefile.am): Augment lib_SOURCES.
57229
57230 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57231
57232         Modify glob.c to use fstatat and dirfd, to simplify it.
57233         Suggested by Eric Blake.
57234         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57235         Don't include <stdbool.h>; not used.
57236         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57237         (link_exists_p): Simplify implementation, since we can now assume
57238         dirfd and fstatat.
57239         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57240
57241 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57242
57243         * gnulib-tool (func_get_dependencies): Fix sed script to
57244         match only tests.
57245
57246 2007-10-17  Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57249         allow locale names without encoding suffix.
57250         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57251         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57252
57253 2007-10-16  Bruno Haible  <bruno@clisp.org>
57254
57255         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57256         * lib/getgroups.c (getgroups): Likewise.
57257         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57258
57259 2007-10-16  Bruno Haible  <bruno@clisp.org>
57260
57261         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57262         * modules/malloc-posix (License): Likewise.
57263         * modules/realloc-posix (License): Likewise.
57264         * modules/calloc-posix (License): Likewise.
57265         * modules/intprops (License): Change from GPL to LGPL, with
57266         Paul Eggert's approval.
57267
57268 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57269
57270         Merge glibc changes into lib/glob.c.
57271
57272         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57273         2007-10-15 04:59:03 UTC.  Here are the changes:
57274
57275         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57276
57277         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57278
57279         * lib/glob.c: Add some branch prediction throughout.
57280
57281         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57282
57283         [BZ #5103]
57284         * lib/glob.c (glob): Recognize patterns starting \/.
57285
57286         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57287
57288         [BZ #3996]
57289         * lib/glob.c (attribute_hidden): Define if not defined.
57290         (glob): Unescape dirname, filename or username when needed and not
57291         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57292         is NULL.  Handle unescaped [ in pattern without closing ].
57293         Don't pass GLOB_CHECK down to recursive glob for directories.
57294         (__glob_pattern_type): New function.
57295         (__glob_pattern_p): Implement using __glob_pattern_type.
57296         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57297         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57298         Remove unreachable code.
57299
57300         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57301
57302         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57303         explain why there are no leaks.
57304
57305         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57306
57307         [BZ #3253]
57308         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57309         time, rather allocate increasingly bigger arrays of pointers, if
57310         possible with alloca, if too large with malloc.
57311
57312 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57313
57314         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57315         Problem reported by H.Merijn Brand in
57316         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57318         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57319
57320 2007-10-15  Bruno Haible  <bruno@clisp.org>
57321
57322         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57323         with explicit rpl_ prefix.
57324         * lib/fopen.c (fopen): Likewise.
57325         * lib/freopen.c (freopen): Likewise.
57326         * lib/iconv.c (iconv): Likewise.
57327         * lib/iconv_close.c (iconv_close): Likewise.
57328
57329 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57330
57331         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57332
57333 2007-10-15  Bruno Haible  <bruno@clisp.org>
57334
57335         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57336         <stddef.h> instead of <stdlib.h> since we only need NULL.
57337         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57338
57339 2007-10-15  Bruno Haible  <bruno@clisp.org>
57340
57341         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57342         Replace paragraph talking about LIBOBJS.
57343         Reported by Colin Watson <cjwatson@debian.org>.
57344
57345 2007-10-15  Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57348         <stdlib.h> before using NULL.
57349
57350 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57351
57352         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57353         Reported by Albert Chin <china@thewrittenword.com>.
57354
57355 2007-10-14  Bruno Haible  <bruno@clisp.org>
57356
57357         * modules/iconv_open-utf-tests: New file.
57358         * tests/test-iconv-utf.c: New file.
57359
57360         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57361         * modules/iconv_open-utf: New file.
57362         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57363         (iconv, iconv_close): New declarations.
57364         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57365         be defined.
57366         (iconv_open): Add special handling of conversion between UTF-8 and
57367         UTF-{16,32}{BE,LE}.
57368         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57369         * lib/iconv_close.c: New file.
57370         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57371         gl_FUNC_ICONV_OPEN.
57372         (gl_FUNC_ICONV_OPEN): Use it.
57373         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57374         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57375         and REPLACE_ICONV_UTF.
57376         * modules/iconv_open (Depends-on): Add c-strcase.
57377         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57378         ICONV_CONST.
57379         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57380
57381 2007-10-13  Albert Chin  <china@thewrittenword.com>
57382             Bruno Haible  <bruno@clisp.org>
57383
57384         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57385         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57386
57387 2007-10-13  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57390         defined, use the ISO C99 inline semantics.
57391         * lib/argp.h (ARGP_EI): Likewise.
57392
57393 2007-10-13  Bruno Haible  <bruno@clisp.org>
57394
57395         Handle 'inline' change in gcc 4.3.0.
57396         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57397         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57398         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57399         argp_fmtstream_point): Disable 'extern' declaration if the function
57400         definition is going to be provided inline.
57401         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57402         semantics, not the ISO C99 inline semantics.
57403         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57404         'extern' declaration if the function definition is going to be provided
57405         inline.
57406         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57407         the GNU C inline semantics, not the ISO C99 inline semantics. With
57408         GCC 4.2, avoid a warning.
57409
57410 2007-10-13  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/freading.h (freading): Enable the use of __freading for
57413         glibc >= 2.7.
57414         * lib/freading.c (freading): Likewise.
57415
57416 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57417
57418         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57419         "warning: C99 inline functions are not supported; using GNU89".
57420
57421 2007-10-12  Bruno Haible  <bruno@clisp.org>
57422
57423         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57424         of 2.
57425         * tests/test-ceilf2.c: New file.
57426         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57427
57428         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57429         * modules/ceilf-tests: Update.
57430
57431 2007-10-12  Bruno Haible  <bruno@clisp.org>
57432
57433         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57434         of 2.
57435         * tests/test-floorf2.c: New file.
57436         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57437
57438         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57439         * modules/floorf-tests: Update.
57440
57441 2007-10-12  Bruno Haible  <bruno@clisp.org>
57442
57443         * tests/test-trunc2.c: New file.
57444         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57445
57446         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57447         * modules/trunc-tests: Update.
57448
57449 2007-10-12  Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57452         of 2.
57453         * tests/test-truncf2.c: New file.
57454         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57455
57456         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57457         * modules/truncf-tests: Update.
57458
57459 2007-10-11  Eric Blake  <ebb9@byu.net>
57460
57461         Don't claim strerror is broken on Interix.
57462         * doc/functions/strerror.texi (strerror): Known broken systems are
57463         now Solaris 8, and not Interix.
57464         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57465         Interix on cross-compile.
57466         Reported by Martin Koeppe in
57467         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57468
57469 2007-10-11  Bruno Haible  <bruno@clisp.org>
57470
57471         * modules/i-ring-tests: New file.
57472         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57473         instead of assert.
57474
57475 2007-10-11  Bruno Haible  <bruno@clisp.org>
57476
57477         * modules/filenamecat-tests: New file.
57478         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57479         * lib/filenamecat.c: Remove test code.
57480
57481 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57482
57483         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57484
57485         * lib/strerror.c: Include <string.h> always, to test interface,
57486         and to remove the need for the dummy.
57487         Include intprops.h to compute width instead of doing it ourselves
57488         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57489         (strerror): Define it to return NULL if there's no system strerror.
57490         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57491         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57492         ancient pre-strerror Unix systems well any more.  Saying "unknown
57493         system error" is enough.
57494         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57495         simpler strerror.c implementation.
57496         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57497         Simplify the tests to reflect the simpler strerror implementation.
57498         * modules/strerror (Depends-on): Add intprops.
57499
57500 2007-10-09  Eric Blake  <ebb9@byu.net>
57501
57502         Silence test-fpending.
57503         * modules/fpending-tests (Files): Add wrapper script.
57504         * tests/test-fpending.sh: New file.
57505
57506 2007-10-09  Bruno Haible  <bruno@clisp.org>
57507
57508         * MODULES.html.sh (func_module): Don't create a hyperlink for
57509         function names like 'printf_frexp'.
57510         (Misc): Add crc, memxor.
57511         (Characteristics of floating types): New section.
57512         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57513         isnanf-nolibm, signbit, trunc, truncf, truncl.
57514         (Enhancements for ISO C 99 functions): New subsection Input/output.
57515         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57516         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57517         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57518         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57519         (Enhancements for POSIX:2001 functions): Add chdir-long.
57520         (File system functions): Add areadlink, chdir-safer, read-file.
57521         Remove cycle-check.
57522         (File system as inode set): New section.
57523         (Date and time): Add gethrxtime.
57524         (Multithreading): Add openmp.
57525         (Internationalization functions): Add localename.
57526         (Unicode string functions): Add unistr/u*-mbsnlen.
57527         (Support for maintaining and releasing projects): Add git-version-gen.
57528         (Lone files): Remove directories.
57529
57530 2007-10-08  Ben Pfaff  <blp@gnu.org>
57531
57532         * lib/xmalloca.h: Fix typo in comment.
57533
57534 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57537         when avoiding problems with integer overflow.  Use a portable test
57538         instead.
57539
57540 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57541
57542         * modules/dummy (License): Change to LGPLv2+.
57543         * modules/float (License): Likewise
57544         * modules/realloc (License): Likewise
57545         * modules/stdlib (License): Likewise
57546
57547 2007-10-07  Bruno Haible  <bruno@clisp.org>
57548
57549         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57550         * floor.c (TWO_MANT_DIG): Likewise.
57551         * ceil.c (TWO_MANT_DIG): Likewise.
57552         Reported by Ben Pfaff.
57553
57554 2007-10-07  Bruno Haible  <bruno@clisp.org>
57555
57556         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57557         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57558         * lib/frexp.c (FUNC): Likewise.
57559         * lib/printf-frexp.h (printf_frexp): Likewise.
57560         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57561         * lib/printf-frexp.c (FUNC): Likewise.
57562         Suggested by Jim Meyering.
57563
57564 2007-10-07  Jim Meyering  <meyering@redhat.com>
57565
57566         Make xnanosleep's integer overflow test more robust.
57567         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57568         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57569
57570 2007-10-07  Bruno Haible  <bruno@clisp.org>
57571
57572         * NEWS: Mention the license change.
57573
57574         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57575         abbreviations in the modules files.
57576
57577         Change copyright notice from GPLv2+ to GPLv3+.
57578         * README: Change copyright notice.
57579         * MODULES.html.sh: Likewise.
57580         * build-aux/bootstrap.conf: Likewise.
57581         * build-aux/config.libpath: Likewise.
57582         * build-aux/csharpcomp.sh.in: Likewise.
57583         * build-aux/csharpexec.sh.in: Likewise.
57584         * build-aux/install-reloc: Likewise.
57585         * build-aux/javacomp.sh.in: Likewise.
57586         * build-aux/javaexec.sh.in: Likewise.
57587         * build-aux/ldd.sh.in: Likewise.
57588         * build-aux/reloc-ldflags: Likewise.
57589         * build-aux/relocatable.sh.in: Likewise.
57590         * build-aux/x-to-1.in: Likewise.
57591         * check-module: Likewise.
57592         * config/srclistvars.sh: Likewise.
57593         * gnulib-tool: Likewise.
57594         * lib/acl-internal.h: Likewise.
57595         * lib/acl.c: Likewise.
57596         * lib/acl.h: Likewise.
57597         * lib/acl_entries.c: Likewise.
57598         * lib/areadlink-with-size.c: Likewise.
57599         * lib/areadlink.c: Likewise.
57600         * lib/areadlink.h: Likewise.
57601         * lib/argmatch.c: Likewise.
57602         * lib/argmatch.h: Likewise.
57603         * lib/argp-ba.c: Likewise.
57604         * lib/argp-eexst.c: Likewise.
57605         * lib/argp-fmtstream.c: Likewise.
57606         * lib/argp-fmtstream.h: Likewise.
57607         * lib/argp-fs-xinl.c: Likewise.
57608         * lib/argp-help.c: Likewise.
57609         * lib/argp-namefrob.h: Likewise.
57610         * lib/argp-parse.c: Likewise.
57611         * lib/argp-pin.c: Likewise.
57612         * lib/argp-pv.c: Likewise.
57613         * lib/argp-pvh.c: Likewise.
57614         * lib/argp-xinl.c: Likewise.
57615         * lib/argp.h: Likewise.
57616         * lib/at-func.c: Likewise.
57617         * lib/atanl.c: Likewise.
57618         * lib/backupfile.c: Likewise.
57619         * lib/backupfile.h: Likewise.
57620         * lib/basename.c: Likewise.
57621         * lib/binary-io.h: Likewise.
57622         * lib/byteswap.in.h: Likewise.
57623         * lib/c-stack.c: Likewise.
57624         * lib/c-stack.h: Likewise.
57625         * lib/c-strcasestr.c: Likewise.
57626         * lib/c-strcasestr.h: Likewise.
57627         * lib/c-strstr.c: Likewise.
57628         * lib/c-strstr.h: Likewise.
57629         * lib/c-strtod.c: Likewise.
57630         * lib/calloc.c: Likewise.
57631         * lib/canon-host.c: Likewise.
57632         * lib/canon-host.h: Likewise.
57633         * lib/canonicalize-lgpl.c: Likewise.
57634         * lib/canonicalize.c: Likewise.
57635         * lib/canonicalize.h: Likewise.
57636         * lib/ceil.c: Likewise.
57637         * lib/ceilf.c: Likewise.
57638         * lib/ceill.c: Likewise.
57639         * lib/chdir-long.c: Likewise.
57640         * lib/chdir-long.h: Likewise.
57641         * lib/chdir-safer.c: Likewise.
57642         * lib/chdir-safer.h: Likewise.
57643         * lib/chown.c: Likewise.
57644         * lib/classpath.c: Likewise.
57645         * lib/classpath.h: Likewise.
57646         * lib/clean-temp.c: Likewise.
57647         * lib/clean-temp.h: Likewise.
57648         * lib/cloexec.c: Likewise.
57649         * lib/close-stream.c: Likewise.
57650         * lib/closein.c: Likewise.
57651         * lib/closein.h: Likewise.
57652         * lib/closeout.c: Likewise.
57653         * lib/closeout.h: Likewise.
57654         * lib/concat-filename.c: Likewise.
57655         * lib/copy-file.c: Likewise.
57656         * lib/copy-file.h: Likewise.
57657         * lib/count-one-bits.h: Likewise.
57658         * lib/crc.c: Likewise.
57659         * lib/crc.h: Likewise.
57660         * lib/creat-safer.c: Likewise.
57661         * lib/csharpcomp.c: Likewise.
57662         * lib/csharpcomp.h: Likewise.
57663         * lib/csharpexec.c: Likewise.
57664         * lib/csharpexec.h: Likewise.
57665         * lib/cycle-check.c: Likewise.
57666         * lib/cycle-check.h: Likewise.
57667         * lib/diacrit.c: Likewise.
57668         * lib/diacrit.h: Likewise.
57669         * lib/diffseq.h: Likewise.
57670         * lib/dirchownmod.c: Likewise.
57671         * lib/dirent.in.h: Likewise.
57672         * lib/dirfd.c: Likewise.
57673         * lib/dirfd.h: Likewise.
57674         * lib/dirname.c: Likewise.
57675         * lib/dirname.h: Likewise.
57676         * lib/dummy.c: Likewise.
57677         * lib/dup-safer.c: Likewise.
57678         * lib/dup2.c: Likewise.
57679         * lib/eealloc.h: Likewise.
57680         * lib/error.c: Likewise.
57681         * lib/error.h: Likewise.
57682         * lib/euidaccess.c: Likewise.
57683         * lib/exclude.c: Likewise.
57684         * lib/exclude.h: Likewise.
57685         * lib/execute.c: Likewise.
57686         * lib/execute.h: Likewise.
57687         * lib/exitfail.c: Likewise.
57688         * lib/exitfail.h: Likewise.
57689         * lib/expl.c: Likewise.
57690         * lib/fatal-signal.c: Likewise.
57691         * lib/fatal-signal.h: Likewise.
57692         * lib/fbufmode.c: Likewise.
57693         * lib/fbufmode.h: Likewise.
57694         * lib/fchdir.c: Likewise.
57695         * lib/fchmodat.c: Likewise.
57696         * lib/fchownat.c: Likewise.
57697         * lib/fcntl--.h: Likewise.
57698         * lib/fcntl-safer.h: Likewise.
57699         * lib/fcntl.in.h: Likewise.
57700         * lib/fd-safer.c: Likewise.
57701         * lib/fflush.c: Likewise.
57702         * lib/file-has-acl.c: Likewise.
57703         * lib/file-set.c: Likewise.
57704         * lib/file-type.c: Likewise.
57705         * lib/file-type.h: Likewise.
57706         * lib/fileblocks.c: Likewise.
57707         * lib/filemode.c: Likewise.
57708         * lib/filemode.h: Likewise.
57709         * lib/filename.h: Likewise.
57710         * lib/filenamecat.c: Likewise.
57711         * lib/filenamecat.h: Likewise.
57712         * lib/findprog.c: Likewise.
57713         * lib/findprog.h: Likewise.
57714         * lib/float.in.h: Likewise.
57715         * lib/floor.c: Likewise.
57716         * lib/floorf.c: Likewise.
57717         * lib/floorl.c: Likewise.
57718         * lib/fopen-safer.c: Likewise.
57719         * lib/fopen.c: Likewise.
57720         * lib/fpending.c: Likewise.
57721         * lib/fpending.h: Likewise.
57722         * lib/fprintf.c: Likewise.
57723         * lib/fprintftime.h: Likewise.
57724         * lib/fpucw.h: Likewise.
57725         * lib/fpurge.c: Likewise.
57726         * lib/fpurge.h: Likewise.
57727         * lib/freadable.c: Likewise.
57728         * lib/freadable.h: Likewise.
57729         * lib/freadahead.c: Likewise.
57730         * lib/freadahead.h: Likewise.
57731         * lib/freading.c: Likewise.
57732         * lib/freading.h: Likewise.
57733         * lib/free.c: Likewise.
57734         * lib/freopen.c: Likewise.
57735         * lib/frexp.c: Likewise.
57736         * lib/frexpl.c: Likewise.
57737         * lib/fseek.c: Likewise.
57738         * lib/fseterr.c: Likewise.
57739         * lib/fseterr.h: Likewise.
57740         * lib/fstatat.c: Likewise.
57741         * lib/fstrcmp.c: Likewise.
57742         * lib/fstrcmp.h: Likewise.
57743         * lib/fsusage.c: Likewise.
57744         * lib/fsusage.h: Likewise.
57745         * lib/ftell.c: Likewise.
57746         * lib/ftello.c: Likewise.
57747         * lib/fts-cycle.c: Likewise.
57748         * lib/fts.c: Likewise.
57749         * lib/fts_.h: Likewise.
57750         * lib/full-read.c: Likewise.
57751         * lib/full-read.h: Likewise.
57752         * lib/full-write.c: Likewise.
57753         * lib/full-write.h: Likewise.
57754         * lib/fwritable.c: Likewise.
57755         * lib/fwritable.h: Likewise.
57756         * lib/fwriteerror.c: Likewise.
57757         * lib/fwriteerror.h: Likewise.
57758         * lib/fwriting.c: Likewise.
57759         * lib/fwriting.h: Likewise.
57760         * lib/gcd.c: Likewise.
57761         * lib/gcd.h: Likewise.
57762         * lib/getcwd.c: Likewise.
57763         * lib/getdate.h: Likewise.
57764         * lib/getdate.y: Likewise.
57765         * lib/getdomainname.c: Likewise.
57766         * lib/getdomainname.h: Likewise.
57767         * lib/getgroups.c: Likewise.
57768         * lib/gethostname.c: Likewise.
57769         * lib/gethrxtime.c: Likewise.
57770         * lib/gethrxtime.h: Likewise.
57771         * lib/getloadavg.c: Likewise.
57772         * lib/getndelim2.c: Likewise.
57773         * lib/getndelim2.h: Likewise.
57774         * lib/getnline.c: Likewise.
57775         * lib/getnline.h: Likewise.
57776         * lib/getopt.c: Likewise.
57777         * lib/getopt.in.h: Likewise.
57778         * lib/getopt1.c: Likewise.
57779         * lib/getopt_int.h: Likewise.
57780         * lib/getpagesize.h: Likewise.
57781         * lib/getsubopt.c: Likewise.
57782         * lib/gettime.c: Likewise.
57783         * lib/getugroups.c: Likewise.
57784         * lib/getugroups.h: Likewise.
57785         * lib/getusershell.c: Likewise.
57786         * lib/gl_anyavltree_list1.h: Likewise.
57787         * lib/gl_anyavltree_list2.h: Likewise.
57788         * lib/gl_anyhash_list1.h: Likewise.
57789         * lib/gl_anyhash_list2.h: Likewise.
57790         * lib/gl_anylinked_list1.h: Likewise.
57791         * lib/gl_anylinked_list2.h: Likewise.
57792         * lib/gl_anyrbtree_list1.h: Likewise.
57793         * lib/gl_anyrbtree_list2.h: Likewise.
57794         * lib/gl_anytree_list1.h: Likewise.
57795         * lib/gl_anytree_list2.h: Likewise.
57796         * lib/gl_anytree_oset.h: Likewise.
57797         * lib/gl_anytreehash_list1.h: Likewise.
57798         * lib/gl_anytreehash_list2.h: Likewise.
57799         * lib/gl_array_list.c: Likewise.
57800         * lib/gl_array_list.h: Likewise.
57801         * lib/gl_array_oset.c: Likewise.
57802         * lib/gl_array_oset.h: Likewise.
57803         * lib/gl_avltree_list.c: Likewise.
57804         * lib/gl_avltree_list.h: Likewise.
57805         * lib/gl_avltree_oset.c: Likewise.
57806         * lib/gl_avltree_oset.h: Likewise.
57807         * lib/gl_avltreehash_list.c: Likewise.
57808         * lib/gl_avltreehash_list.h: Likewise.
57809         * lib/gl_carray_list.c: Likewise.
57810         * lib/gl_carray_list.h: Likewise.
57811         * lib/gl_linked_list.c: Likewise.
57812         * lib/gl_linked_list.h: Likewise.
57813         * lib/gl_linkedhash_list.c: Likewise.
57814         * lib/gl_linkedhash_list.h: Likewise.
57815         * lib/gl_list.c: Likewise.
57816         * lib/gl_list.h: Likewise.
57817         * lib/gl_oset.c: Likewise.
57818         * lib/gl_oset.h: Likewise.
57819         * lib/gl_rbtree_list.c: Likewise.
57820         * lib/gl_rbtree_list.h: Likewise.
57821         * lib/gl_rbtree_oset.c: Likewise.
57822         * lib/gl_rbtree_oset.h: Likewise.
57823         * lib/gl_rbtreehash_list.c: Likewise.
57824         * lib/gl_rbtreehash_list.h: Likewise.
57825         * lib/gl_sublist.c: Likewise.
57826         * lib/gl_sublist.h: Likewise.
57827         * lib/group-member.c: Likewise.
57828         * lib/group-member.h: Likewise.
57829         * lib/hard-locale.c: Likewise.
57830         * lib/hard-locale.h: Likewise.
57831         * lib/hash-pjw.c: Likewise.
57832         * lib/hash-pjw.h: Likewise.
57833         * lib/hash-triple.c: Likewise.
57834         * lib/hash.c: Likewise.
57835         * lib/hash.h: Likewise.
57836         * lib/human.c: Likewise.
57837         * lib/human.h: Likewise.
57838         * lib/i-ring.c: Likewise.
57839         * lib/i-ring.h: Likewise.
57840         * lib/idcache.c: Likewise.
57841         * lib/imaxabs.c: Likewise.
57842         * lib/imaxdiv.c: Likewise.
57843         * lib/inet_pton.c: Likewise.
57844         * lib/inet_pton.h: Likewise.
57845         * lib/intprops.h: Likewise.
57846         * lib/inttostr.c: Likewise.
57847         * lib/inttostr.h: Likewise.
57848         * lib/inttypes.in.h: Likewise.
57849         * lib/isapipe.c: Likewise.
57850         * lib/isdir.c: Likewise.
57851         * lib/isnan.c: Likewise.
57852         * lib/isnan.h: Likewise.
57853         * lib/isnanf.c: Likewise.
57854         * lib/isnanf.h: Likewise.
57855         * lib/isnanl-nolibm.h: Likewise.
57856         * lib/isnanl.c: Likewise.
57857         * lib/isnanl.h: Likewise.
57858         * lib/javacomp.c: Likewise.
57859         * lib/javacomp.h: Likewise.
57860         * lib/javaexec.c: Likewise.
57861         * lib/javaexec.h: Likewise.
57862         * lib/javaversion.c: Likewise.
57863         * lib/javaversion.h: Likewise.
57864         * lib/javaversion.java: Likewise.
57865         * lib/lbrkprop.h: Likewise.
57866         * lib/lchmod.h: Likewise.
57867         * lib/lchown.c: Likewise.
57868         * lib/ldexpl.c: Likewise.
57869         * lib/linebreak.c: Likewise.
57870         * lib/linebreak.h: Likewise.
57871         * lib/linebuffer.c: Likewise.
57872         * lib/linebuffer.h: Likewise.
57873         * lib/locale.in.h: Likewise.
57874         * lib/logl.c: Likewise.
57875         * lib/long-options.c: Likewise.
57876         * lib/long-options.h: Likewise.
57877         * lib/lstat.c: Likewise.
57878         * lib/lstat.h: Likewise.
57879         * lib/math.in.h: Likewise.
57880         * lib/mbchar.c: Likewise.
57881         * lib/mbchar.h: Likewise.
57882         * lib/mbfile.h: Likewise.
57883         * lib/mbiter.h: Likewise.
57884         * lib/mbscasecmp.c: Likewise.
57885         * lib/mbscasestr.c: Likewise.
57886         * lib/mbschr.c: Likewise.
57887         * lib/mbscspn.c: Likewise.
57888         * lib/mbslen.c: Likewise.
57889         * lib/mbsncasecmp.c: Likewise.
57890         * lib/mbsnlen.c: Likewise.
57891         * lib/mbspbrk.c: Likewise.
57892         * lib/mbspcasecmp.c: Likewise.
57893         * lib/mbsrchr.c: Likewise.
57894         * lib/mbssep.c: Likewise.
57895         * lib/mbsspn.c: Likewise.
57896         * lib/mbsstr.c: Likewise.
57897         * lib/mbstok_r.c: Likewise.
57898         * lib/mbswidth.c: Likewise.
57899         * lib/mbswidth.h: Likewise.
57900         * lib/mbuiter.h: Likewise.
57901         * lib/memcasecmp.c: Likewise.
57902         * lib/memcasecmp.h: Likewise.
57903         * lib/memchr.c: Likewise.
57904         * lib/memcmp.c: Likewise.
57905         * lib/memcoll.c: Likewise.
57906         * lib/memcoll.h: Likewise.
57907         * lib/memcpy.c: Likewise.
57908         * lib/memrchr.c: Likewise.
57909         * lib/mkancesdirs.c: Likewise.
57910         * lib/mkdir-p.c: Likewise.
57911         * lib/mkdir-p.h: Likewise.
57912         * lib/mkdir.c: Likewise.
57913         * lib/mkdirat.c: Likewise.
57914         * lib/mkdtemp.c: Likewise.
57915         * lib/mkstemp-safer.c: Likewise.
57916         * lib/mkstemp.c: Likewise.
57917         * lib/modechange.c: Likewise.
57918         * lib/modechange.h: Likewise.
57919         * lib/mountlist.c: Likewise.
57920         * lib/mountlist.h: Likewise.
57921         * lib/mpsort.c: Likewise.
57922         * lib/nanosleep.c: Likewise.
57923         * lib/obstack.c: Likewise.
57924         * lib/obstack.h: Likewise.
57925         * lib/open-safer.c: Likewise.
57926         * lib/open.c: Likewise.
57927         * lib/openat-die.c: Likewise.
57928         * lib/openat-priv.h: Likewise.
57929         * lib/openat-proc.c: Likewise.
57930         * lib/openat.c: Likewise.
57931         * lib/openat.h: Likewise.
57932         * lib/pagealign_alloc.c: Likewise.
57933         * lib/pagealign_alloc.h: Likewise.
57934         * lib/physmem.c: Likewise.
57935         * lib/physmem.h: Likewise.
57936         * lib/pipe-safer.c: Likewise.
57937         * lib/pipe.c: Likewise.
57938         * lib/pipe.h: Likewise.
57939         * lib/posixtm.c: Likewise.
57940         * lib/posixtm.h: Likewise.
57941         * lib/posixver.c: Likewise.
57942         * lib/printf-frexp.c: Likewise.
57943         * lib/printf-frexp.h: Likewise.
57944         * lib/printf-frexpl.c: Likewise.
57945         * lib/printf-frexpl.h: Likewise.
57946         * lib/printf.c: Likewise.
57947         * lib/progname.c: Likewise.
57948         * lib/progname.h: Likewise.
57949         * lib/progreloc.c: Likewise.
57950         * lib/putenv.c: Likewise.
57951         * lib/quote.c: Likewise.
57952         * lib/quote.h: Likewise.
57953         * lib/quotearg.c: Likewise.
57954         * lib/quotearg.h: Likewise.
57955         * lib/raise.c: Likewise.
57956         * lib/readline.c: Likewise.
57957         * lib/readline.h: Likewise.
57958         * lib/readlink.c: Likewise.
57959         * lib/readtokens.c: Likewise.
57960         * lib/readtokens.h: Likewise.
57961         * lib/readtokens0.c: Likewise.
57962         * lib/readtokens0.h: Likewise.
57963         * lib/readutmp.c: Likewise.
57964         * lib/readutmp.h: Likewise.
57965         * lib/realloc.c: Likewise.
57966         * lib/relocwrapper.c: Likewise.
57967         * lib/rename-dest-slash.c: Likewise.
57968         * lib/rename.c: Likewise.
57969         * lib/rmdir.c: Likewise.
57970         * lib/rpmatch.c: Likewise.
57971         * lib/safe-read.c: Likewise.
57972         * lib/safe-read.h: Likewise.
57973         * lib/safe-write.c: Likewise.
57974         * lib/safe-write.h: Likewise.
57975         * lib/same-inode.h: Likewise.
57976         * lib/same.c: Likewise.
57977         * lib/same.h: Likewise.
57978         * lib/save-cwd.c: Likewise.
57979         * lib/save-cwd.h: Likewise.
57980         * lib/savedir.c: Likewise.
57981         * lib/savedir.h: Likewise.
57982         * lib/savewd.c: Likewise.
57983         * lib/savewd.h: Likewise.
57984         * lib/search.in.h: Likewise.
57985         * lib/setenv.c: Likewise.
57986         * lib/setenv.h: Likewise.
57987         * lib/settime.c: Likewise.
57988         * lib/sh-quote.c: Likewise.
57989         * lib/sh-quote.h: Likewise.
57990         * lib/sig2str.c: Likewise.
57991         * lib/sig2str.h: Likewise.
57992         * lib/signal.in.h: Likewise.
57993         * lib/signbitd.c: Likewise.
57994         * lib/signbitf.c: Likewise.
57995         * lib/signbitl.c: Likewise.
57996         * lib/sigprocmask.c: Likewise.
57997         * lib/sincosl.c: Likewise.
57998         * lib/sleep.c: Likewise.
57999         * lib/sprintf.c: Likewise.
58000         * lib/sqrtl.c: Likewise.
58001         * lib/stat-time.h: Likewise.
58002         * lib/stdio--.h: Likewise.
58003         * lib/stdio-safer.h: Likewise.
58004         * lib/stdlib--.h: Likewise.
58005         * lib/stdlib-safer.h: Likewise.
58006         * lib/stdlib.in.h: Likewise.
58007         * lib/stpcpy.c: Likewise.
58008         * lib/stpncpy.c: Likewise.
58009         * lib/strchrnul.c: Likewise.
58010         * lib/strcspn.c: Likewise.
58011         * lib/strerror.c: Likewise.
58012         * lib/strftime.c: Likewise.
58013         * lib/strftime.h: Likewise.
58014         * lib/striconveh.c: Likewise.
58015         * lib/striconveh.h: Likewise.
58016         * lib/striconveha.c: Likewise.
58017         * lib/striconveha.h: Likewise.
58018         * lib/stripslash.c: Likewise.
58019         * lib/strnlen1.c: Likewise.
58020         * lib/strnlen1.h: Likewise.
58021         * lib/strtod.c: Likewise.
58022         * lib/strtoimax.c: Likewise.
58023         * lib/strtok_r.c: Likewise.
58024         * lib/strtol.c: Likewise.
58025         * lib/strtoll.c: Likewise.
58026         * lib/strtoul.c: Likewise.
58027         * lib/strtoull.c: Likewise.
58028         * lib/sysexits.in.h: Likewise.
58029         * lib/tempname.c: Likewise.
58030         * lib/tempname.h: Likewise.
58031         * lib/timespec.h: Likewise.
58032         * lib/tls.c: Likewise.
58033         * lib/tls.h: Likewise.
58034         * lib/tmpdir.c: Likewise.
58035         * lib/tmpdir.h: Likewise.
58036         * lib/tmpfile-safer.c: Likewise.
58037         * lib/tmpfile.c: Likewise.
58038         * lib/trigl.c: Likewise.
58039         * lib/trigl.h: Likewise.
58040         * lib/trim.c: Likewise.
58041         * lib/trim.h: Likewise.
58042         * lib/trunc.c: Likewise.
58043         * lib/truncf.c: Likewise.
58044         * lib/truncl.c: Likewise.
58045         * lib/tsearch.c: Likewise.
58046         * lib/unicodeio.c: Likewise.
58047         * lib/unicodeio.h: Likewise.
58048         * lib/unistd--.h: Likewise.
58049         * lib/unistd-safer.h: Likewise.
58050         * lib/unistdio/ulc-fprintf.c: Likewise.
58051         * lib/unistdio/ulc-vfprintf.c: Likewise.
58052         * lib/unlinkdir.c: Likewise.
58053         * lib/unlinkdir.h: Likewise.
58054         * lib/unlocked-io.h: Likewise.
58055         * lib/unsetenv.c: Likewise.
58056         * lib/userspec.c: Likewise.
58057         * lib/utime.c: Likewise.
58058         * lib/utimecmp.c: Likewise.
58059         * lib/utimecmp.h: Likewise.
58060         * lib/utimens.c: Likewise.
58061         * lib/verify.h: Likewise.
58062         * lib/verror.c: Likewise.
58063         * lib/verror.h: Likewise.
58064         * lib/version-etc-fsf.c: Likewise.
58065         * lib/version-etc.c: Likewise.
58066         * lib/version-etc.h: Likewise.
58067         * lib/vfprintf.c: Likewise.
58068         * lib/vprintf.c: Likewise.
58069         * lib/vsprintf.c: Likewise.
58070         * lib/w32spawn.h: Likewise.
58071         * lib/wait-process.c: Likewise.
58072         * lib/wait-process.h: Likewise.
58073         * lib/wcwidth.c: Likewise.
58074         * lib/write-any-file.c: Likewise.
58075         * lib/xalloc-die.c: Likewise.
58076         * lib/xalloc.h: Likewise.
58077         * lib/xasprintf.c: Likewise.
58078         * lib/xgetcwd.c: Likewise.
58079         * lib/xgetcwd.h: Likewise.
58080         * lib/xgetdomainname.c: Likewise.
58081         * lib/xgetdomainname.h: Likewise.
58082         * lib/xgethostname.c: Likewise.
58083         * lib/xmalloc.c: Likewise.
58084         * lib/xmalloca.c: Likewise.
58085         * lib/xmalloca.h: Likewise.
58086         * lib/xmemcoll.c: Likewise.
58087         * lib/xnanosleep.c: Likewise.
58088         * lib/xreadlink.c: Likewise.
58089         * lib/xreadlink.h: Likewise.
58090         * lib/xsetenv.c: Likewise.
58091         * lib/xsetenv.h: Likewise.
58092         * lib/xstriconv.c: Likewise.
58093         * lib/xstriconv.h: Likewise.
58094         * lib/xstrndup.c: Likewise.
58095         * lib/xstrndup.h: Likewise.
58096         * lib/xstrtod.c: Likewise.
58097         * lib/xstrtod.h: Likewise.
58098         * lib/xstrtol-error.c: Likewise.
58099         * lib/xstrtol.c: Likewise.
58100         * lib/xstrtol.h: Likewise.
58101         * lib/xtime.h: Likewise.
58102         * lib/xvasprintf.c: Likewise.
58103         * lib/xvasprintf.h: Likewise.
58104         * lib/yesno.c: Likewise.
58105         * lib/yesno.h: Likewise.
58106         * posix-modules: Likewise.
58107         * tests/test-alloca-opt.c: Likewise.
58108         * tests/test-arcfour.c: Likewise.
58109         * tests/test-arctwo.c: Likewise.
58110         * tests/test-argmatch.c: Likewise.
58111         * tests/test-argp-2.sh: Likewise.
58112         * tests/test-argp.c: Likewise.
58113         * tests/test-arpa_inet.c: Likewise.
58114         * tests/test-array_list.c: Likewise.
58115         * tests/test-array_oset.c: Likewise.
58116         * tests/test-atexit.c: Likewise.
58117         * tests/test-avltree_list.c: Likewise.
58118         * tests/test-avltree_oset.c: Likewise.
58119         * tests/test-avltreehash_list.c: Likewise.
58120         * tests/test-base64.c: Likewise.
58121         * tests/test-binary-io.c: Likewise.
58122         * tests/test-byteswap.c: Likewise.
58123         * tests/test-c-ctype.c: Likewise.
58124         * tests/test-c-strcasecmp.c: Likewise.
58125         * tests/test-c-strcasestr.c: Likewise.
58126         * tests/test-c-strncasecmp.c: Likewise.
58127         * tests/test-c-strstr.c: Likewise.
58128         * tests/test-canonicalize-lgpl.c: Likewise.
58129         * tests/test-canonicalize.c: Likewise.
58130         * tests/test-carray_list.c: Likewise.
58131         * tests/test-ceilf.c: Likewise.
58132         * tests/test-ceill.c: Likewise.
58133         * tests/test-count-one-bits.c: Likewise.
58134         * tests/test-crc.c: Likewise.
58135         * tests/test-dirname.c: Likewise.
58136         * tests/test-fbufmode.c: Likewise.
58137         * tests/test-fcntl.c: Likewise.
58138         * tests/test-fflush.c: Likewise.
58139         * tests/test-floorf.c: Likewise.
58140         * tests/test-floorl.c: Likewise.
58141         * tests/test-fopen.c: Likewise.
58142         * tests/test-fprintf-posix.c: Likewise.
58143         * tests/test-fprintf-posix.h: Likewise.
58144         * tests/test-fpurge.c: Likewise.
58145         * tests/test-freadable.c: Likewise.
58146         * tests/test-freadahead.c: Likewise.
58147         * tests/test-freading.c: Likewise.
58148         * tests/test-freopen.c: Likewise.
58149         * tests/test-frexp.c: Likewise.
58150         * tests/test-frexpl.c: Likewise.
58151         * tests/test-fseek.c: Likewise.
58152         * tests/test-fseeko.c: Likewise.
58153         * tests/test-fseterr.c: Likewise.
58154         * tests/test-fstrcmp.c: Likewise.
58155         * tests/test-ftell.c: Likewise.
58156         * tests/test-ftello.c: Likewise.
58157         * tests/test-fwritable.c: Likewise.
58158         * tests/test-fwriting.c: Likewise.
58159         * tests/test-getaddrinfo.c: Likewise.
58160         * tests/test-getpass.c: Likewise.
58161         * tests/test-gettimeofday.c: Likewise.
58162         * tests/test-hmac-md5.c: Likewise.
58163         * tests/test-hmac-sha1.c: Likewise.
58164         * tests/test-iconv.c: Likewise.
58165         * tests/test-iconvme.c: Likewise.
58166         * tests/test-inttypes.c: Likewise.
58167         * tests/test-isnan.c: Likewise.
58168         * tests/test-isnanf.c: Likewise.
58169         * tests/test-isnanl-nolibm.c: Likewise.
58170         * tests/test-isnanl.c: Likewise.
58171         * tests/test-isnanl.h: Likewise.
58172         * tests/test-ldexpl.c: Likewise.
58173         * tests/test-linked_list.c: Likewise.
58174         * tests/test-linkedhash_list.c: Likewise.
58175         * tests/test-locale.c: Likewise.
58176         * tests/test-localename.c: Likewise.
58177         * tests/test-lock.c: Likewise.
58178         * tests/test-lseek.c: Likewise.
58179         * tests/test-malloca.c: Likewise.
58180         * tests/test-math.c: Likewise.
58181         * tests/test-mbscasecmp.c: Likewise.
58182         * tests/test-mbscasestr1.c: Likewise.
58183         * tests/test-mbscasestr2.c: Likewise.
58184         * tests/test-mbscasestr3.c: Likewise.
58185         * tests/test-mbscasestr4.c: Likewise.
58186         * tests/test-mbschr.c: Likewise.
58187         * tests/test-mbscspn.c: Likewise.
58188         * tests/test-mbsncasecmp.c: Likewise.
58189         * tests/test-mbspbrk.c: Likewise.
58190         * tests/test-mbspcasecmp.c: Likewise.
58191         * tests/test-mbsrchr.c: Likewise.
58192         * tests/test-mbsspn.c: Likewise.
58193         * tests/test-mbsstr1.c: Likewise.
58194         * tests/test-mbsstr2.c: Likewise.
58195         * tests/test-mbsstr3.c: Likewise.
58196         * tests/test-md5.c: Likewise.
58197         * tests/test-memmem.c: Likewise.
58198         * tests/test-netinet_in.c: Likewise.
58199         * tests/test-open.c: Likewise.
58200         * tests/test-printf-frexp.c: Likewise.
58201         * tests/test-printf-frexpl.c: Likewise.
58202         * tests/test-printf-posix.c: Likewise.
58203         * tests/test-printf-posix.h: Likewise.
58204         * tests/test-rbtree_list.c: Likewise.
58205         * tests/test-rbtree_oset.c: Likewise.
58206         * tests/test-rbtreehash_list.c: Likewise.
58207         * tests/test-read-file.c: Likewise.
58208         * tests/test-rijndael.c: Likewise.
58209         * tests/test-search.c: Likewise.
58210         * tests/test-signbit.c: Likewise.
58211         * tests/test-sleep.c: Likewise.
58212         * tests/test-snprintf-posix.c: Likewise.
58213         * tests/test-snprintf-posix.h: Likewise.
58214         * tests/test-snprintf.c: Likewise.
58215         * tests/test-sprintf-posix.c: Likewise.
58216         * tests/test-sprintf-posix.h: Likewise.
58217         * tests/test-stat-time.c: Likewise.
58218         * tests/test-stdbool.c: Likewise.
58219         * tests/test-stdint.c: Likewise.
58220         * tests/test-stdio.c: Likewise.
58221         * tests/test-stdlib.c: Likewise.
58222         * tests/test-stpncpy.c: Likewise.
58223         * tests/test-strcasestr.c: Likewise.
58224         * tests/test-striconv.c: Likewise.
58225         * tests/test-striconveh.c: Likewise.
58226         * tests/test-striconveha.c: Likewise.
58227         * tests/test-string.c: Likewise.
58228         * tests/test-sys_select.c: Likewise.
58229         * tests/test-sys_socket.c: Likewise.
58230         * tests/test-sys_stat.c: Likewise.
58231         * tests/test-sys_time.c: Likewise.
58232         * tests/test-sysexits.c: Likewise.
58233         * tests/test-time.c: Likewise.
58234         * tests/test-tls.c: Likewise.
58235         * tests/test-trunc.c: Likewise.
58236         * tests/test-truncf.c: Likewise.
58237         * tests/test-truncl.c: Likewise.
58238         * tests/test-unistd.c: Likewise.
58239         * tests/test-vasnprintf-posix.c: Likewise.
58240         * tests/test-vasnprintf-posix2.c: Likewise.
58241         * tests/test-vasnprintf.c: Likewise.
58242         * tests/test-vasprintf-posix.c: Likewise.
58243         * tests/test-vasprintf.c: Likewise.
58244         * tests/test-verify.c: Likewise.
58245         * tests/test-vfprintf-posix.c: Likewise.
58246         * tests/test-vprintf-posix.c: Likewise.
58247         * tests/test-vsnprintf-posix.c: Likewise.
58248         * tests/test-vsnprintf.c: Likewise.
58249         * tests/test-vsprintf-posix.c: Likewise.
58250         * tests/test-wchar.c: Likewise.
58251         * tests/test-wctype.c: Likewise.
58252         * tests/test-wcwidth.c: Likewise.
58253         * tests/test-xstrtol.c: Likewise.
58254         * tests/test-xvasprintf.c: Likewise.
58255         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58256         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58257         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58258         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58259         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58260         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58261         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58262         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58263         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58264         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58265         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58266         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58267         * tests/uniname/test-uninames.c: Likewise.
58268         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58269         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58270         * tests/unistdio/test-u16-printf1.h: Likewise.
58271         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58272         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58273         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58274         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58275         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58276         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58277         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58278         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58279         * tests/unistdio/test-u32-printf1.h: Likewise.
58280         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58281         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58282         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58283         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58284         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58285         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58286         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58287         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58288         * tests/unistdio/test-u8-printf1.h: Likewise.
58289         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58290         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58291         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58292         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58293         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58294         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58295         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58296         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58297         * tests/unistdio/test-ulc-printf1.h: Likewise.
58298         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58299         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58300         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58301         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58302         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58303         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58304         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58305         * tests/uniwidth/test-u16-width.c: Likewise.
58306         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58307         * tests/uniwidth/test-u32-width.c: Likewise.
58308         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58309         * tests/uniwidth/test-u8-width.c: Likewise.
58310         * tests/uniwidth/test-uc_width.c: Likewise.
58311         * config/srclist-update: Likewise.
58312         (fixlicense): Update to GPLv3+.
58313
58314         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58315         * tests/test-tsearch.c: Change copyright notice.
58316
58317         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58318         * lib/c-strcaseeq.h: Change copyright notice.
58319         * lib/streq.h: Likewise.
58320         * lib/uniconv.h: Likewise.
58321         * lib/uniconv/u-conv-from-enc.h: Likewise.
58322         * lib/uniconv/u-conv-to-enc.h: Likewise.
58323         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58324         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58325         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58326         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58327         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58328         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58329         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58330         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58331         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58332         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58333         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58334         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58335         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58336         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58337         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58338         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58339         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58340         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58341         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58342         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58343         * lib/uniname.h: Likewise.
58344         * lib/uniname/uniname.c: Likewise.
58345         * lib/unistdio.h: Likewise.
58346         * lib/unistdio/u-asnprintf.h: Likewise.
58347         * lib/unistdio/u-asprintf.h: Likewise.
58348         * lib/unistdio/u-printf-args.c: Likewise.
58349         * lib/unistdio/u-printf-args.h: Likewise.
58350         * lib/unistdio/u-printf-parse.h: Likewise.
58351         * lib/unistdio/u-snprintf.h: Likewise.
58352         * lib/unistdio/u-sprintf.h: Likewise.
58353         * lib/unistdio/u-vasprintf.h: Likewise.
58354         * lib/unistdio/u-vsnprintf.h: Likewise.
58355         * lib/unistdio/u-vsprintf.h: Likewise.
58356         * lib/unistdio/u16-asnprintf.c: Likewise.
58357         * lib/unistdio/u16-asprintf.c: Likewise.
58358         * lib/unistdio/u16-printf-parse.c: Likewise.
58359         * lib/unistdio/u16-snprintf.c: Likewise.
58360         * lib/unistdio/u16-sprintf.c: Likewise.
58361         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58362         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58363         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58364         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58365         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58366         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58367         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58368         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58369         * lib/unistdio/u16-vasnprintf.c: Likewise.
58370         * lib/unistdio/u16-vasprintf.c: Likewise.
58371         * lib/unistdio/u16-vsnprintf.c: Likewise.
58372         * lib/unistdio/u16-vsprintf.c: Likewise.
58373         * lib/unistdio/u32-asnprintf.c: Likewise.
58374         * lib/unistdio/u32-asprintf.c: Likewise.
58375         * lib/unistdio/u32-printf-parse.c: Likewise.
58376         * lib/unistdio/u32-snprintf.c: Likewise.
58377         * lib/unistdio/u32-sprintf.c: Likewise.
58378         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58379         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58380         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58381         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58382         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58383         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58384         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58385         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58386         * lib/unistdio/u32-vasnprintf.c: Likewise.
58387         * lib/unistdio/u32-vasprintf.c: Likewise.
58388         * lib/unistdio/u32-vsnprintf.c: Likewise.
58389         * lib/unistdio/u32-vsprintf.c: Likewise.
58390         * lib/unistdio/u8-asnprintf.c: Likewise.
58391         * lib/unistdio/u8-asprintf.c: Likewise.
58392         * lib/unistdio/u8-printf-parse.c: Likewise.
58393         * lib/unistdio/u8-snprintf.c: Likewise.
58394         * lib/unistdio/u8-sprintf.c: Likewise.
58395         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58396         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58397         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58398         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58399         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58400         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58401         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58402         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58403         * lib/unistdio/u8-vasnprintf.c: Likewise.
58404         * lib/unistdio/u8-vasprintf.c: Likewise.
58405         * lib/unistdio/u8-vsnprintf.c: Likewise.
58406         * lib/unistdio/u8-vsprintf.c: Likewise.
58407         * lib/unistdio/ulc-asnprintf.c: Likewise.
58408         * lib/unistdio/ulc-asprintf.c: Likewise.
58409         * lib/unistdio/ulc-printf-parse.c: Likewise.
58410         * lib/unistdio/ulc-snprintf.c: Likewise.
58411         * lib/unistdio/ulc-sprintf.c: Likewise.
58412         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58413         * lib/unistdio/ulc-vasprintf.c: Likewise.
58414         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58415         * lib/unistdio/ulc-vsprintf.c: Likewise.
58416         * lib/unistr.h: Likewise.
58417         * lib/unistr/u-cpy-alloc.h: Likewise.
58418         * lib/unistr/u-cpy.h: Likewise.
58419         * lib/unistr/u-endswith.h: Likewise.
58420         * lib/unistr/u-move.h: Likewise.
58421         * lib/unistr/u-set.h: Likewise.
58422         * lib/unistr/u-startswith.h: Likewise.
58423         * lib/unistr/u-stpcpy.h: Likewise.
58424         * lib/unistr/u-stpncpy.h: Likewise.
58425         * lib/unistr/u-strcat.h: Likewise.
58426         * lib/unistr/u-strcpy.h: Likewise.
58427         * lib/unistr/u-strcspn.h: Likewise.
58428         * lib/unistr/u-strdup.h: Likewise.
58429         * lib/unistr/u-strlen.h: Likewise.
58430         * lib/unistr/u-strncat.h: Likewise.
58431         * lib/unistr/u-strncpy.h: Likewise.
58432         * lib/unistr/u-strnlen.h: Likewise.
58433         * lib/unistr/u-strpbrk.h: Likewise.
58434         * lib/unistr/u-strspn.h: Likewise.
58435         * lib/unistr/u-strstr.h: Likewise.
58436         * lib/unistr/u-strtok.h: Likewise.
58437         * lib/unistr/u16-check.c: Likewise.
58438         * lib/unistr/u16-chr.c: Likewise.
58439         * lib/unistr/u16-cmp.c: Likewise.
58440         * lib/unistr/u16-cpy-alloc.c: Likewise.
58441         * lib/unistr/u16-cpy.c: Likewise.
58442         * lib/unistr/u16-endswith.c: Likewise.
58443         * lib/unistr/u16-mblen.c: Likewise.
58444         * lib/unistr/u16-mbsnlen.c: Likewise.
58445         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58446         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58447         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58448         * lib/unistr/u16-mbtouc.c: Likewise.
58449         * lib/unistr/u16-mbtoucr.c: Likewise.
58450         * lib/unistr/u16-move.c: Likewise.
58451         * lib/unistr/u16-next.c: Likewise.
58452         * lib/unistr/u16-prev.c: Likewise.
58453         * lib/unistr/u16-set.c: Likewise.
58454         * lib/unistr/u16-startswith.c: Likewise.
58455         * lib/unistr/u16-stpcpy.c: Likewise.
58456         * lib/unistr/u16-stpncpy.c: Likewise.
58457         * lib/unistr/u16-strcat.c: Likewise.
58458         * lib/unistr/u16-strchr.c: Likewise.
58459         * lib/unistr/u16-strcmp.c: Likewise.
58460         * lib/unistr/u16-strcpy.c: Likewise.
58461         * lib/unistr/u16-strcspn.c: Likewise.
58462         * lib/unistr/u16-strdup.c: Likewise.
58463         * lib/unistr/u16-strlen.c: Likewise.
58464         * lib/unistr/u16-strmblen.c: Likewise.
58465         * lib/unistr/u16-strmbtouc.c: Likewise.
58466         * lib/unistr/u16-strncat.c: Likewise.
58467         * lib/unistr/u16-strncmp.c: Likewise.
58468         * lib/unistr/u16-strncpy.c: Likewise.
58469         * lib/unistr/u16-strnlen.c: Likewise.
58470         * lib/unistr/u16-strpbrk.c: Likewise.
58471         * lib/unistr/u16-strrchr.c: Likewise.
58472         * lib/unistr/u16-strspn.c: Likewise.
58473         * lib/unistr/u16-strstr.c: Likewise.
58474         * lib/unistr/u16-strtok.c: Likewise.
58475         * lib/unistr/u16-to-u32.c: Likewise.
58476         * lib/unistr/u16-to-u8.c: Likewise.
58477         * lib/unistr/u16-uctomb-aux.c: Likewise.
58478         * lib/unistr/u16-uctomb.c: Likewise.
58479         * lib/unistr/u32-check.c: Likewise.
58480         * lib/unistr/u32-chr.c: Likewise.
58481         * lib/unistr/u32-cmp.c: Likewise.
58482         * lib/unistr/u32-cpy-alloc.c: Likewise.
58483         * lib/unistr/u32-cpy.c: Likewise.
58484         * lib/unistr/u32-endswith.c: Likewise.
58485         * lib/unistr/u32-mblen.c: Likewise.
58486         * lib/unistr/u32-mbsnlen.c: Likewise.
58487         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58488         * lib/unistr/u32-mbtouc.c: Likewise.
58489         * lib/unistr/u32-mbtoucr.c: Likewise.
58490         * lib/unistr/u32-move.c: Likewise.
58491         * lib/unistr/u32-next.c: Likewise.
58492         * lib/unistr/u32-prev.c: Likewise.
58493         * lib/unistr/u32-set.c: Likewise.
58494         * lib/unistr/u32-startswith.c: Likewise.
58495         * lib/unistr/u32-stpcpy.c: Likewise.
58496         * lib/unistr/u32-stpncpy.c: Likewise.
58497         * lib/unistr/u32-strcat.c: Likewise.
58498         * lib/unistr/u32-strchr.c: Likewise.
58499         * lib/unistr/u32-strcmp.c: Likewise.
58500         * lib/unistr/u32-strcpy.c: Likewise.
58501         * lib/unistr/u32-strcspn.c: Likewise.
58502         * lib/unistr/u32-strdup.c: Likewise.
58503         * lib/unistr/u32-strlen.c: Likewise.
58504         * lib/unistr/u32-strmblen.c: Likewise.
58505         * lib/unistr/u32-strmbtouc.c: Likewise.
58506         * lib/unistr/u32-strncat.c: Likewise.
58507         * lib/unistr/u32-strncmp.c: Likewise.
58508         * lib/unistr/u32-strncpy.c: Likewise.
58509         * lib/unistr/u32-strnlen.c: Likewise.
58510         * lib/unistr/u32-strpbrk.c: Likewise.
58511         * lib/unistr/u32-strrchr.c: Likewise.
58512         * lib/unistr/u32-strspn.c: Likewise.
58513         * lib/unistr/u32-strstr.c: Likewise.
58514         * lib/unistr/u32-strtok.c: Likewise.
58515         * lib/unistr/u32-to-u16.c: Likewise.
58516         * lib/unistr/u32-to-u8.c: Likewise.
58517         * lib/unistr/u32-uctomb.c: Likewise.
58518         * lib/unistr/u8-check.c: Likewise.
58519         * lib/unistr/u8-chr.c: Likewise.
58520         * lib/unistr/u8-cmp.c: Likewise.
58521         * lib/unistr/u8-cpy-alloc.c: Likewise.
58522         * lib/unistr/u8-cpy.c: Likewise.
58523         * lib/unistr/u8-endswith.c: Likewise.
58524         * lib/unistr/u8-mblen.c: Likewise.
58525         * lib/unistr/u8-mbsnlen.c: Likewise.
58526         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58527         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58528         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58529         * lib/unistr/u8-mbtouc.c: Likewise.
58530         * lib/unistr/u8-mbtoucr.c: Likewise.
58531         * lib/unistr/u8-move.c: Likewise.
58532         * lib/unistr/u8-next.c: Likewise.
58533         * lib/unistr/u8-prev.c: Likewise.
58534         * lib/unistr/u8-set.c: Likewise.
58535         * lib/unistr/u8-startswith.c: Likewise.
58536         * lib/unistr/u8-stpcpy.c: Likewise.
58537         * lib/unistr/u8-stpncpy.c: Likewise.
58538         * lib/unistr/u8-strcat.c: Likewise.
58539         * lib/unistr/u8-strchr.c: Likewise.
58540         * lib/unistr/u8-strcmp.c: Likewise.
58541         * lib/unistr/u8-strcpy.c: Likewise.
58542         * lib/unistr/u8-strcspn.c: Likewise.
58543         * lib/unistr/u8-strdup.c: Likewise.
58544         * lib/unistr/u8-strlen.c: Likewise.
58545         * lib/unistr/u8-strmblen.c: Likewise.
58546         * lib/unistr/u8-strmbtouc.c: Likewise.
58547         * lib/unistr/u8-strncat.c: Likewise.
58548         * lib/unistr/u8-strncmp.c: Likewise.
58549         * lib/unistr/u8-strncpy.c: Likewise.
58550         * lib/unistr/u8-strnlen.c: Likewise.
58551         * lib/unistr/u8-strpbrk.c: Likewise.
58552         * lib/unistr/u8-strrchr.c: Likewise.
58553         * lib/unistr/u8-strspn.c: Likewise.
58554         * lib/unistr/u8-strstr.c: Likewise.
58555         * lib/unistr/u8-strtok.c: Likewise.
58556         * lib/unistr/u8-to-u16.c: Likewise.
58557         * lib/unistr/u8-to-u32.c: Likewise.
58558         * lib/unistr/u8-uctomb-aux.c: Likewise.
58559         * lib/unistr/u8-uctomb.c: Likewise.
58560         * lib/unitypes.h: Likewise.
58561         * lib/uniwidth.h: Likewise.
58562         * lib/uniwidth/cjk.h: Likewise.
58563         * lib/uniwidth/u16-strwidth.c: Likewise.
58564         * lib/uniwidth/u16-width.c: Likewise.
58565         * lib/uniwidth/u32-strwidth.c: Likewise.
58566         * lib/uniwidth/u32-width.c: Likewise.
58567         * lib/uniwidth/u8-strwidth.c: Likewise.
58568         * lib/uniwidth/u8-width.c: Likewise.
58569         * lib/uniwidth/width.c: Likewise.
58570
58571 2007-10-07  Bruno Haible  <bruno@clisp.org>
58572
58573         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58574         The file is still under LGPL (see modules/inttypes).
58575
58576 2007-10-06  Bruno Haible  <bruno@clisp.org>
58577
58578         * modules/trunc (Dependencies): Add 'extensions'.
58579         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58580         Reported by Ben Pfaff <blp@gnu.org>.
58581
58582 2007-10-06  Bruno Haible  <bruno@clisp.org>
58583
58584         * modules/freopen-tests: New file.
58585         * tests/test-freopen.c: New file.
58586
58587         * modules/fopen-tests: New file.
58588         * tests/test-fopen.c: New file.
58589
58590         * modules/fopen: New file.
58591         * lib/fopen.c: New file.
58592         * m4/fopen.m4: New file.
58593         * modules/freopen: New file.
58594         * lib/freopen.c: New file.
58595         * m4/freopen.m4: New file.
58596         * lib/stdio.in.h (fopen, freopen): New declarations.
58597         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58598         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58599         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58600         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58601         * doc/functions/fopen.texi: Mention the 'fopen' module.
58602         * doc/functions/freopen.texi: Mention the 'freopen' module.
58603
58604 2007-10-06  Bruno Haible  <bruno@clisp.org>
58605
58606         * modules/open-tests: New file.
58607         * tests/test-open.c: New file.
58608
58609         * modules/open: New file.
58610         * lib/open.c: New file.
58611         * m4/open.m4: New file.
58612         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58613         lib/open.c does.
58614         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58615         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58616         macros.
58617         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58618         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58619         REPLACE_OPEN.
58620         * doc/functions/open.texi: Mention the 'open' module.
58621
58622 2007-10-04  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/ceill-tests: New file.
58625         * tests/test-ceill.c: New file.
58626
58627         * modules/ceill: New file.
58628         * lib/ceill.c: Replace entire file.
58629         * m4/ceill.m4: New file.
58630         * lib/math.in.h (ceill): Replace declaration.
58631         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58632         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58633         * doc/functions/ceill.texi: Mention the 'ceill' module.
58634         * modules/mathl (Files): Remove lib/ceill.c.
58635         (Depends-on): Add ceill.
58636
58637 2007-10-04  Bruno Haible  <bruno@clisp.org>
58638
58639         * modules/ceilf-tests: New file.
58640         * tests/test-ceilf.c: New file.
58641
58642         * modules/ceilf: New file.
58643         * lib/ceil.c: New file.
58644         * lib/ceilf.c: New file.
58645         * m4/ceilf.m4: New file.
58646         * lib/math.in.h (ceilf): New declaration.
58647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58648         HAVE_DECL_CEILF.
58649         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58650         HAVE_DECL_CEILF.
58651         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58652
58653 2007-10-04  Bruno Haible  <bruno@clisp.org>
58654
58655         * modules/floorl-tests: New file.
58656         * tests/test-floorl.c: New file.
58657
58658         * modules/floorl: New file.
58659         * lib/floorl.c: Replace entire file.
58660         * m4/floorl.m4: New file.
58661         * lib/math.in.h (floorl): Replace declaration.
58662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58663         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58664         * doc/functions/floorl.texi: Mention the 'floorl' module.
58665         * modules/mathl (Files): Remove lib/floorl.c.
58666         (Depends-on): Add floorl.
58667
58668 2007-10-04  Bruno Haible  <bruno@clisp.org>
58669
58670         * modules/floorf-tests: New file.
58671         * tests/test-floorf.c: New file.
58672
58673         * modules/floorf: New file.
58674         * lib/floor.c: New file.
58675         * lib/floorf.c: New file.
58676         * m4/floorf.m4: New file.
58677         * lib/math.in.h (floorf): New declaration.
58678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58679         HAVE_DECL_FLOORF.
58680         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58681         HAVE_DECL_FLOORF.
58682         * doc/functions/floorf.texi: Mention the 'floorf' module.
58683
58684 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58685             Bruno Haible  <bruno@clisp.org>
58686
58687         Advertise for the Git server instead of the CVS server.
58688         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58689         repository instead of the CVS one.
58690         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58691         about all VCS systems generically.
58692         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58693
58694 2007-10-04  Bruno Haible  <bruno@clisp.org>
58695
58696         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58697         means.
58698         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58699
58700 2007-10-04  Bruno Haible  <bruno@clisp.org>
58701
58702         * modules/truncl-tests: New file.
58703         * tests/test-truncl.c: New file.
58704
58705         * modules/truncl: New file.
58706         * lib/truncl.c: New file.
58707         * m4/truncl.m4: New file.
58708         * lib/math.in.h (truncl): New declaration.
58709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58710         HAVE_DECL_TRUNCL.
58711         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58712         HAVE_DECL_TRUNCL.
58713         * doc/functions/truncl.texi: Mention the 'truncl' module.
58714
58715 2007-10-04  Bruno Haible  <bruno@clisp.org>
58716
58717         * modules/truncf-tests: New file.
58718         * tests/test-truncf.c: New file.
58719
58720         * modules/truncf: New file.
58721         * lib/trunc.c: Make paramerizable through USE_* macros.
58722         * lib/truncf.c: New file.
58723         * m4/truncf.m4: New file.
58724         * lib/math.in.h (truncf): New declaration.
58725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58726         HAVE_DECL_TRUNCF.
58727         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58728         HAVE_DECL_TRUNCF.
58729         * doc/functions/truncf.texi: Mention the 'truncf' module.
58730
58731 2007-10-03  Bruno Haible  <bruno@clisp.org>
58732
58733         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58734         augmentation also for tests modules.
58735         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58736         * modules/atexit-tests (Makefile.am): Likewise.
58737         * modules/binary-io-tests (Makefile.am): Likewise.
58738         * modules/c-strcase-tests (Makefile.am): Likewise.
58739         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58740         * modules/canonicalize-tests (Makefile.am): Likewise.
58741         * modules/closein-tests (Makefile.am): Likewise.
58742         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58743         * modules/freadahead-tests (Makefile.am): Likewise.
58744         * modules/fseek-tests (Makefile.am): Likewise.
58745         * modules/fseeko-tests (Makefile.am): Likewise.
58746         * modules/ftell-tests (Makefile.am): Likewise.
58747         * modules/ftello-tests (Makefile.am): Likewise.
58748         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58749         * modules/isnanl-tests (Makefile.am): Likewise.
58750         * modules/lseek-tests (Makefile.am): Likewise.
58751         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58752         * modules/mbscasestr-tests (Makefile.am): Likewise.
58753         * modules/mbschr-tests (Makefile.am): Likewise.
58754         * modules/mbscspn-tests (Makefile.am): Likewise.
58755         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58756         * modules/mbspbrk-tests (Makefile.am): Likewise.
58757         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58758         * modules/mbsrchr-tests (Makefile.am): Likewise.
58759         * modules/mbsspn-tests (Makefile.am): Likewise.
58760         * modules/mbsstr-tests (Makefile.am): Likewise.
58761         * modules/printf-posix-tests (Makefile.am): Likewise.
58762         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58763         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58764         * modules/tsearch-tests (Makefile.am): Likewise.
58765         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58766         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58767         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58768         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58769         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58770         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58771         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58772         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58773         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58774         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58775         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58776         * modules/xstrtol-tests (Makefile.am): Likewise.
58777         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58778         * modules/yesno-tests (Makefile.am): Likewise.
58779
58780 2007-10-03  Bruno Haible  <bruno@clisp.org>
58781
58782         * modules/trunc-tests: New file.
58783         * tests/test-trunc.c: New file.
58784
58785         * modules/trunc: New file.
58786         * lib/trunc.c: New file.
58787         * m4/trunc.m4: New file.
58788         * lib/math.in.h (trunc): New declaration.
58789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58790         HAVE_DECL_TRUNC.
58791         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58792         HAVE_DECL_TRUNC.
58793         * doc/functions/trunc.texi: Mention the 'trunc' module.
58794
58795 2007-10-03  Bruno Haible  <bruno@clisp.org>
58796
58797         * tests/test-fpending.c: New file, mostly copied
58798         from coreutils/lib/t-fpending.c.
58799         * modules/fpending-tests: New file.
58800
58801 2007-10-03  Bruno Haible  <bruno@clisp.org>
58802
58803         Port the stdio extensions to QNX (untested).
58804         * lib/fseterr.c (fseterr): Add support for QNX.
58805         * lib/fbufmode.c (fbufmode): Likewise.
58806         * lib/freadable.c (freadable): Likewise.
58807         * lib/fwritable.c (fwritable): Likewise.
58808         * lib/freading.c (freading): Likewise.
58809         * lib/fwriting.c (fwriting): Likewise.
58810         * lib/freadahead.c (freadahed): Likewise.
58811         * lib/fpurge.c (fpurge): Likewise.
58812         * lib/fseeko.c (rpl_fseeko): Likewise.
58813
58814 2007-10-03  Bruno Haible  <bruno@clisp.org>
58815             Jim Meyering  <jim@meyering.net>
58816             Eric Blake  <ebb9@byu.net>
58817
58818         * doc/relocatable.texi: Use @command instead of @program.
58819
58820 2007-10-02  Jim Meyering  <jim@meyering.net>
58821
58822         Perform one more "_.h" -> ".in.h" substitution.
58823         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58824         instead of unistd_.h here, too.
58825
58826 2007-10-01  Bruno Haible  <bruno@clisp.org>
58827
58828         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58829         Needed for the alloca-opt module.
58830
58831 2007-09-30  Bruno Haible  <bruno@clisp.org>
58832
58833         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58834         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58835         alloca_.h.
58836         * lib/argz.in.h: Renamed from lib/argz_.h.
58837         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58838         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58839         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58840         byteswap_.h.
58841         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58842         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58843         dirent_.h.
58844         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58845         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58846         fcntl_.h.
58847         * lib/float.in.h: Renamed from lib/float_.h.
58848         * modules/float (Files, Makefile.am): Use float.in.h instead of
58849         float_.h.
58850         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58851         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58852         fnmatch_.h.
58853         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58854         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58855         getopt_.h.
58856         * lib/glob.in.h: Renamed from lib/glob_.h.
58857         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58858         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58859         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58860         iconv_.h.
58861         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58862         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58863         inttypes_.h.
58864         * lib/locale.in.h: Renamed from lib/locale_.h.
58865         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58866         locale_.h.
58867         * lib/math.in.h: Renamed from lib/math_.h.
58868         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58869         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58870         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58871         of netinet_in_.h. Add dependency.
58872         * lib/poll.in.h: Renamed from lib/poll_.h.
58873         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58874         * lib/search.in.h: Renamed from lib/search_.h.
58875         * modules/search (Files, Makefile.am): Use search.in.h instead of
58876         search_.h.
58877         * lib/signal.in.h: Renamed from lib/signal_.h.
58878         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58879         _signal.h.
58880         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58881         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58882         stdbool_.h.
58883         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58884         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58885         stdint_.h.
58886         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58887         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58888         stdio_.h.
58889         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58890         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58891         stdlib_.h.
58892         * lib/string.in.h: Renamed from lib/string_.h.
58893         * modules/string (Files, Makefile.am): Use string.in.h instead of
58894         string_.h.
58895         * doc/gnulib-tool.texi (Initial import): Update.
58896         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58897         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58898         of sys_select_.h. Add dependency.
58899         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58900         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58901         of sys_socket_.h.
58902         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58903         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58904         sys_stat_.h.
58905         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58906         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58907         sys_time_.h.
58908         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58909         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58910         sysexits_.h.
58911         * lib/time.in.h: Renamed from lib/time_.h.
58912         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58913         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58914         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58915         unistd_.h.
58916         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58917         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58918         wchar_.h.
58919         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58920         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58921         wctype_.h.
58922         * build-aux/bootstrap (slurp): Update.
58923         * lib/.cppi-disable: Update.
58924
58925 2007-09-30  Bruno Haible  <bruno@clisp.org>
58926
58927         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58928         Needed on BeOS.
58929
58930 2007-09-30  Bruno Haible  <bruno@clisp.org>
58931
58932         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58933
58934 2007-09-29  Bruno Haible  <bruno@clisp.org>
58935
58936         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58937
58938 2007-09-29  Bruno Haible  <bruno@clisp.org>
58939
58940         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58941         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58942         * build-aux/install-reloc: Compile also areadlink.c.
58943         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58944
58945 2007-09-29  Bruno Haible  <bruno@clisp.org>
58946
58947         * gnulib-tool (func_emit_initmacro_done): Indentation.
58948
58949 2007-09-29  Bruno Haible  <bruno@clisp.org>
58950
58951         * README: Add CVS checkout update instructions.
58952         Info from Bob Proulx <bob@proulx.com>.
58953
58954 2007-09-28  Eric Blake  <ebb9@byu.net>
58955
58956         Provide move-if-change.
58957         * build-aux/move-if-change: New file, based on best practice
58958         rather than any canonical upstream location.
58959
58960 2007-09-28  Jim Meyering  <jim@meyering.net>
58961
58962         Fix canonicalize loop-detection corner case.
58963         Do not attempt to stat the symlink values stored via seen_triple.
58964         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58965         on linux-2.6.18, (but not 2.6.22).
58966         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58967         triple_compare.  The former compares dev,ino,filename, while the latter
58968         would actually stat dirname(filename) when dev and ino were equal.
58969         * lib/hash-triple.c: Install <string.h>.
58970         (STREQ): Define.
58971         (triple_compare_ino_str): New function.
58972         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58973
58974 2007-09-28  Eric Blake  <ebb9@byu.net>
58975
58976         Enforce that AC_REPLACE_FUNCS files exist.
58977         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58978         override check for typos.
58979
58980         Fix test-closein on Solaris 10.
58981         * tests/test-closein.c (main): Don't assume stdin can be inherited
58982         closed on all systems.
58983         * tests/test-closein.sh: Likewise.
58984         Reported by Piotr Tarnowski.
58985
58986 2007-09-28  Jim Meyering  <jim@meyering.net>
58987
58988         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58989
58990 2007-09-27  Jim Meyering  <jim@meyering.net>
58991
58992         canonicalize: Avoid a false-positive cycle failure.
58993         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58994         Sort.  Remove cycle-check.
58995         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58996         not cycle-check.h.
58997         (seen_triple): New function.
58998         (canonicalize_filename_mode): Use it instead of cycle-check.
58999         * tests/test-canonicalize.c: Add a test for this bug.
59000         * tests/test-canonicalize.sh: Set up and run the test.
59001
59002         New module, file-set, from coreutils.
59003         * modules/file-set: Define it.
59004         * lib/file-set.c, lib/file-set.h: Implement.
59005
59006         New module, hash-triple, from coreutils.
59007         * modules/hash-triple: Define it.
59008         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59009
59010 2007-09-25  Eric Blake  <ebb9@byu.net>
59011
59012         Fix strerror on Interix.
59013         * lib/string_.h (strerror): Declare replacement.
59014         * doc/functions/strerror.texi (strerror): Document the Interix
59015         shortcoming.
59016         * modules/string (Makefile.am): Support new hooks.
59017         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59018         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59019         gl_FUNC_STRERROR_SEPARATE.
59020         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59021         * lib/strerror.c (rpl_strerror): Provide replacement.
59022         * modules/strerror (Depends-on): Add string.
59023         (configure.ac): Detect use of module.
59024         * tests/test-strerror.c: New file.
59025         * modules/strerror-tests: New test module.
59026         * modules/argp (Depends-on): Add strerror.
59027         * modules/error (Depends-on): Likewise.
59028         Reported by Martin Koeppe.
59029
59030 2007-09-24  Bruno Haible  <bruno@clisp.org>
59031
59032         * README: Update git instructions.
59033
59034 2007-09-24  Eric Blake  <ebb9@byu.net>
59035
59036         Revert fpending breakage from 2007-09-08.
59037         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59038         __fpending.c.
59039
59040 2007-09-24  Jim Meyering  <jim@meyering.net>
59041
59042         filenamecat.c: Add a test.
59043         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59044         showing how the function works when DIR is the empty string.
59045
59046 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59047
59048         * tests/test-canonicalize.sh: Turn on executable bit.
59049
59050 2007-09-19  Eric Blake  <ebb9@byu.net>
59051
59052         * README: Update CVS instructions.
59053
59054 2007-09-18  Bruno Haible  <bruno@clisp.org>
59055
59056         * modules/areadlink: New file.
59057         * lib/areadlink.h (areadlink): New declaration.
59058         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59059
59060 2007-09-17  Jim Meyering  <jim@meyering.net>
59061
59062         * lib/savewd.c (ESTALE) [!defined]: Define.
59063         Reported to be required on Interix by Martin Koeppe.
59064
59065 2007-09-17  Bruno Haible  <bruno@clisp.org>
59066
59067         * gnulib-tool (func_version): Use $version.
59068
59069 2007-09-16  Bruno Haible  <bruno@clisp.org>
59070
59071         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59072         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59073         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59074         Reported by Greg Schafer <gschafer@zip.com.au>.
59075
59076 2007-09-15  Bruno Haible  <bruno@clisp.org>
59077
59078         * gnulib-tool (sed): Try a little harder to make bash understand the
59079         alias.
59080         Reported by Bruce Korb <bruce.korb@gmail.com>.
59081
59082 2007-09-13  Eric Blake  <ebb9@byu.net>
59083
59084         * ChangeLog: Remove conflict markers.
59085
59086 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59087
59088         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59089         Reported by Bruno Haible <bruno@clisp.org>.
59090
59091 2007-09-12  Bruno Haible  <bruno@clisp.org>
59092
59093         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59094         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59095         is not defined.
59096
59097 2007-09-12  Eric Blake  <ebb9@byu.net>
59098
59099         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59100         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59101         Autoconf definition.
59102         * modules/euidaccess (Depends-on): Add extensions, for
59103         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59104         * modules/fnmatch (Depends-on): Likewise.
59105         * modules/getaddrinfo (Depends-on): Likewise.
59106         * modules/getdelim (Depends-on): Likewise.
59107         * modules/getline (Depends-on): Likewise.
59108         * modules/getsubopt (Depends-on): Likewise.
59109         * modules/gettext (Depends-on): Likewise.
59110         * modules/group-member (Depends-on): Likewise.
59111         * modules/mbchar (Depends-on): Likewise.
59112         * modules/memmem (Depends-on): Likewise.
59113         * modules/mempcpy (Depends-on): Likewise.
59114         * modules/memrchr (Depends-on): Likewise.
59115         * modules/pagealign_alloc (Depends-on): Likewise.
59116         * modules/readutmp (Depends-on): Likewise.
59117         * modules/stpcpy (Depends-on): Likewise.
59118         * modules/stpncpy (Depends-on): Likewise.
59119         * modules/strchrnul (Depends-on): Likewise.
59120         * modules/strndup (Depends-on): Likewise.
59121         * modules/strsep (Depends-on): Likewise.
59122         * modules/strverscmp (Depends-on): Likewise.
59123         * modules/vasprintf (Depends-on): Likewise.
59124         * modules/wcwidth (Depends-on): Likewise.
59125         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59126         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59127         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59128         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59129         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59130         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59131         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59132         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59133         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59134         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59135         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59136         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59138         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59139         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59140         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59141         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59142         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59143         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59144         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59145         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59146         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59147         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59148         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59149         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59150         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59151         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59152         so that lock.m4 can be used in gettext without extensions module.
59153
59154 2007-09-11  Bruno Haible  <bruno@clisp.org>
59155
59156         * m4/isc-posix.m4: Remove file.
59157         Suggested by Eric Blake.
59158
59159 2007-09-11  Eric Blake  <ebb9@byu.net>
59160
59161         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59162
59163 2007-09-10  Bruno Haible  <bruno@clisp.org>
59164
59165         * posix-modules: Fix typo in error message.
59166         Reported by Matt <mkraai@beckman.com>.
59167
59168 2007-09-09  Bruno Haible  <bruno@clisp.org>
59169
59170         * doc/functions/getdelim.texi: Update list of platforms lacking the
59171         function.
59172         * doc/functions/getline.texi: Likewise.
59173
59174 2007-09-09  Jim Meyering  <jim@meyering.net>
59175
59176         * lib/hash.c (hash_initialize): Detect calloc failure.
59177         Reported by Bruno Haible.
59178
59179 2007-09-09  Bruno Haible  <bruno@clisp.org>
59180
59181         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59182         malloc or realloc fails.
59183
59184 2007-09-09  Bruno Haible  <bruno@clisp.org>
59185
59186         * modules/getcwd (Depends-on): Add malloc-posix.
59187         * modules/glob (Depends-on): Likewise.
59188         * modules/putenv (Depends-on): Likewise.
59189         * modules/strdup (Depends-on): Likewise.
59190         * modules/getdelim (Depends-on): Add realloc-posix.
59191         * modules/read-file (Depends-on): Likewise.
59192
59193 2007-09-09  Bruno Haible  <bruno@clisp.org>
59194
59195         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59196         (gl_FUNC_MALLOC_POSIX): Require it.
59197         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59198         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59199         * modules/realloc (Files): Add m4/malloc.m4.
59200         * modules/calloc (Files): Likewise.
59201
59202 2007-09-09  Bruno Haible  <bruno@clisp.org>
59203
59204         * modules/malloc-posix: New file.
59205         * modules/malloc (Depends-on): Add malloc-posix.
59206         * lib/malloc.c: Include errno.h.
59207         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59208         and a POSIX-compatible malloc into a single function. Set ENOMEM
59209         when returning NULL.
59210         * m4/malloc.m4: New file.
59211         * doc/functions/malloc.texi: Mention the malloc-posix module.
59212         * lib/stdlib_.h (malloc): New declaration.
59213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59214         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59215         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59216         and HAVE_MALLOC_POSIX.
59217
59218 2007-09-09  Bruno Haible  <bruno@clisp.org>
59219
59220         * modules/realloc-posix: New file.
59221         * modules/realloc (Depends-on): Add realloc-posix.
59222         * lib/realloc.c: Include errno.h.
59223         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59224         and a POSIX-compatible realloc into a single function. Set ENOMEM
59225         when returning NULL.
59226         * m4/realloc.m4: New file.
59227         * doc/functions/realloc.texi: Mention the realloc-posix module.
59228         * lib/stdlib_.h (realloc): New declaration.
59229         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59230         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59231         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59232         and HAVE_REALLOC_POSIX.
59233
59234 2007-09-09  Bruno Haible  <bruno@clisp.org>
59235
59236         * modules/calloc-posix: New file.
59237         * modules/calloc (Depends-on): Add calloc-posix.
59238         * lib/calloc.c: Include errno.h.
59239         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59240         and a POSIX-compatible calloc into a single function. Set ENOMEM
59241         when returning NULL.
59242         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59243         * doc/functions/calloc.texi: Mention the calloc-posix module.
59244         * lib/stdlib_.h (calloc): New declaration.
59245         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59246         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59247         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59248         and HAVE_CALLOC_POSIX.
59249
59250 2007-09-09  Bruno Haible  <bruno@clisp.org>
59251
59252         Allow for modules to show an arbitrary notice.
59253         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59254         * gnulib-tool: New option --extract-notice.
59255         (func_usage): Document it.
59256         (sed_extract_prog): Update.
59257         (func_get_notice): New function.
59258         (func_modules_notice): New function.
59259         (func_import, func_create_testdir): Invoke it.
59260         Suggested by Jim Meyering.
59261
59262 2007-09-09  Bruno Haible  <bruno@clisp.org>
59263
59264         * gnulib-tool: New options --verbose, --quiet.
59265         (func_usage): Document them.
59266         (verbose): New variable.
59267         (func_execute_command): New function.
59268         (func_import): Don't show the module list and the file list if
59269         $verbose < 0.
59270         (func_create_testdir): Likewise. Use func_execute_command.
59271         (func_create_megatestdir): Use func_execute_command.
59272
59273 2007-09-08  Bruno Haible  <bruno@clisp.org>
59274
59275         * gnulib-tool (func_import): Prefer rsync over wget when available,
59276         for fetching the PO files.
59277
59278 2007-09-08  Bruno Haible  <bruno@clisp.org>
59279
59280         * posix-modules: New file. Portions copied from gnulib-tool.
59281         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59282
59283 2007-09-08  Jim Meyering  <jim@meyering.net>
59284
59285         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59286         * lib/fpending.h: Rename from __fpending.h.
59287         * lib/fpending.c: Rename from __fpending.c.
59288         Include "fpending.h", not "__fpending.h".
59289         * lib/__fpending.h, lib/__fpending.c: Remove files.
59290         * modules/fpending (Files): Reflect new file names.
59291         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59292
59293 2007-09-08  Bruno Haible  <bruno@clisp.org>
59294
59295         * m4/inttypes-h.m4: Remove stub file.
59296
59297 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59298
59299         * doc/headers/stdint.texi: Discuss #include_next issue.
59300
59301 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59304
59305 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59306
59307         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59308         in variable name.
59309
59310 2007-09-03  Jim Meyering  <jim@meyering.net>
59311
59312         New module: git-version-gen.
59313         * modules/git-version-gen: New file.
59314
59315         Import changes from coreutils for bootstrap script.
59316
59317         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59318
59319         bootstrap: uses rsync to download the .po files
59320         * build-aux/bootstrap (po_download_command_format): New global.
59321         (download_po_files): Use rsync.
59322         (update_po_files): Don't remove .po files after download,
59323         so future rsync runs can take advantage of the copies.
59324
59325         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59326
59327         Solve the unnecessary-.po-file-regeneration problem once and for all.
59328         * build-aux/bootstrap (download_po_files): New function, renamed from
59329         get_translations.  Now, downloads, but doesn't update LINGUAS.
59330         (update_po_files): New function.
59331
59332         bootstrap: Ignore more.
59333         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59334         uniwidth to e.g., lib/.gitignore.
59335         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59336
59337         * build-aux/bootstrap: New setting: vc_ignore.
59338         (insert_sorted_if_absent): Create $file if absent.
59339         Adapt to new, possibly empty, list: $vc_ignore.
59340
59341         bootstrap: generate more ignorable names
59342         * build-aux/bootstrap (slurp): When generating ignorable names,
59343         also map .sin to .sed, .gperf to .c, and .y to .c.
59344
59345 2007-09-03  Jim Meyering  <jim@meyering.net>
59346
59347         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59348         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59349
59350 2007-09-02  Bruno Haible  <bruno@clisp.org>
59351
59352         Fix mis-recognition of 'mcs' on QNX 6.
59353         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59354         output contains the string "Mono".
59355         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59356         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59357
59358 2007-09-01  Bruno Haible  <bruno@clisp.org>
59359
59360         Fix collision between uniwidth/* and linebreak modules.
59361         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59362         u32_width): Remove declarations.
59363         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59364         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59365         streq3, streq2, streq1, streq0): Remove functions.
59366         (STREQ): Remove macro.
59367         (is_cjk_encoding): Remove function.
59368         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59369         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59370         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59371         * NEWS: Document the change.
59372
59373 2007-09-01  Bruno Haible  <bruno@clisp.org>
59374
59375         * lib/streq.h: Add double-inclusion guard.
59376
59377 2007-09-01  Karl Berry  <karl@gnu.org>
59378
59379         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59380
59381 2007-08-28  Jim Meyering  <jim@meyering.net>
59382
59383         Rename mreadlink_with_size to areadlink_with_size.
59384         * NEWS: Document the change.
59385         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59386         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59387         * lib/mreadlink.h: Rename this to...
59388         * lib/areadlink.h: ...this.
59389         * modules/mreadlink-with-size: Rename this to...
59390         * modules/areadlink-with-size: ...this.
59391         * lib/canonicalize.c: Reflect the renaming.
59392         * modules/canonicalize: Likewise.
59393
59394 2007-08-26  Bruno Haible  <bruno@clisp.org>
59395
59396         * gnulib-tool (func_import): When deciding which files to remove,
59397         consider also dangling symbolic links.
59398         Reported by Eric Blake.
59399
59400 2007-08-26  Bruno Haible  <bruno@clisp.org>
59401
59402         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59403
59404 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59405
59406         * lib/readline.c: Don't include getline.h, the prototype is now
59407         found in stdio.h.
59408
59409 2007-08-23  Jim Meyering  <jim@meyering.net>
59410
59411         Getdelim touchup.
59412         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59413         around the funlockfile call, since funlockfile never sets errno.
59414         Don't set errno upon failed realloc.
59415
59416 2007-08-22  Eric Blake  <ebb9@byu.net>
59417
59418         Getline touchups.
59419         * lib/getdelim.c (getdelim): Revert regression that required *n to
59420         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59421         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59422         getdelim, rather than whether implementation is missing.
59423         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59424         * lib/stdio_.h (getline): Also declare if replacement is
59425         required.
59426         * doc/functions/getdelim.texi: New file.
59427         * doc/functions/getline.texi: Likewise.
59428         * doc/gnulib.texi (Function Substitutes): Add new files.
59429         Reported by Bruno Haible.
59430
59431 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59432
59433         * users.txt: Add Guile.
59434
59435 2007-08-22  Eric Blake  <ebb9@byu.net>
59436
59437         * tests/test-getdelim.c (main): Use remove, not unlink.
59438         * tests/test-getline.c (main): Likewise.
59439
59440         Move getline and getdelim into stdio.h, per POSIX 200x.
59441         * modules/getline (Files): Remove getline.h.
59442         (Depends-on): Add stdio.
59443         (configure.ac): Add module indicator.
59444         * modules/getdelim (Files): Remove getdelim.h.
59445         (Depends-on): Add stdio.
59446         (configure.ac): Add module indicator.
59447         * modules/stdio (Makefile.am): Work with new indicators.
59448         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59449         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59450         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59451         * lib/getdelim.h: Delete.
59452         * lib/getline.h: Delete.
59453         * lib/stdio_.h (getdelim, getline): Declare.
59454         * modules/getdelim-tests: New module.
59455         * modules/getline-tests: Likewise.
59456         * tests/test-getdelim.c: New file.
59457         * tests/test-getline.c: Likewise.
59458         * NEWS: Document the change.
59459         * lib/getline.c: Update choice of header.
59460         * lib/csharpcomp.c: Likewise.
59461         * lib/getpass.c: Likewise.
59462         * lib/javacomp.c: Likewise.
59463         * lib/javaversion.c: Likewise.
59464         * lib/yesno.c: Likewise.
59465         * lib/getdelim.c: Likewise.
59466         (getdelim): Set errno on failure, and avoid memory leak.
59467
59468 2007-08-19  Bruno Haible  <bruno@clisp.org>
59469
59470         * modules/closein (Depends-on): Add freadahead.
59471         * lib/closein.c: Include freadahead.h.
59472         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59473         is zero.
59474
59475 2007-08-19  Bruno Haible  <bruno@clisp.org>
59476
59477         * modules/freadahead-tests: New file.
59478         * tests/test-freadahead.sh: New file.
59479         * tests/test-freadahead.c: New file.
59480
59481         * modules/freadahead: New file.
59482         * lib/freadahead.h: New file.
59483         * lib/freadahead.c: New file.
59484         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59485         fbufmode, fpurge, freadable, fwritable.
59486
59487 2007-08-19  Eric Blake  <ebb9@byu.net>
59488
59489         Test yesno in combination with closein.
59490         * lib/yesno.c (yesno): Document use of stdin.
59491         * modules/yesno-tests (Files): New module.
59492         * tests/test-yesno.c (main): New file.
59493         * tests/test-yesno.sh: Likewise.
59494
59495 2007-08-19  Bruno Haible  <bruno@clisp.org>
59496
59497         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59498         * lib/fseeko.c (rpl_fseeko): Likewise.
59499         * lib/fseterr.c (fseterr): Likewise.
59500
59501 2007-08-19  Bruno Haible  <bruno@clisp.org>
59502
59503         * tests/test-lseek.c (main): Disable a test for BeOS.
59504         * doc/functions/lseek.texi: Document the BeOS bug.
59505
59506 2007-08-19  Bruno Haible  <bruno@clisp.org>
59507             Eric Blake  <ebb9@byu.net>
59508
59509         * lib/lseek.c: Include <sys/stat.h>.
59510         (rpl_lseek): Add workaround code also for Unix platforms.
59511         Needed for BeOS.
59512         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59513         * doc/functions/lseek.texi: Document BeOS definiency.
59514
59515 2007-08-18  Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/fstrcmp-tests: New file.
59518         * tests/test-fstrcmp.c: New file.
59519
59520 2007-08-18  Bruno Haible  <bruno@clisp.org>
59521
59522         * modules/fstrcmp: New file, from GNU gettext with modifications.
59523         * lib/fstrcmp.h: New file, from GNU gettext.
59524         * lib/fstrcmp.c: New file, from GNU gettext.
59525         * MODULES.html.sh (String handling): Add fstrcmp.
59526
59527 2007-08-18  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59530         'bool'.
59531         (diag, compareseq): Remove const from the ctxt argument.
59532         (USE_HEURISTIC): Undefine at the end.
59533
59534 2007-08-18  Jim Meyering  <jim@meyering.net>
59535
59536         New file: lib/idcache.h
59537         * NEWS: Mention the addition.
59538         * modules/idcache (Files): Add lib/idcache.h
59539         * lib/idcache.c: Include "idcache.h".
59540         Don't include <sys/types.h>.
59541         Add a FIXME comment.
59542         Move file-scoped "static" declarations to the top.
59543         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59544
59545 2007-08-17  Bruno Haible  <bruno@clisp.org>
59546         and Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         * MODULES.html.sh: Add diffseq.
59549         * modules/diffseq: New file.
59550         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59551         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59552
59553 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         Import changes from coreutils for bootstrap script.
59556
59557         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59558
59559         * build-aux/bootstrap (slurp): Work even in environments where
59560         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59561         current code does not slurp files whose names start with ".", and
59562         this looks like it might be a troublesome area.
59563
59564         2007-07-11  Jim Meyering  <jim@meyering.net>
59565
59566         If there's a GPL vN copyright comment, require that N == 3.
59567
59568         2007-07-08  Jim Meyering  <jim@meyering.net>
59569
59570         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59571         * build-aux/bootstrap (mam_template): Move definition out of loop.
59572
59573         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59574
59575         * build-aux/bootstrap (symlink_to_dir): Rename function from
59576         symlink_to_gnulib.  Add a directory parameter.  Update all
59577         callers.
59578         (cp_mark_as_generated): Also check for -- and link to -- files in
59579         gl/.
59580
59581         2007-07-08  Jim Meyering  <jim@meyering.net>
59582
59583         Adapt to deeper hierarchy in gnulib.
59584         * build-aux/bootstrap (symlink_to_dir): If the destination
59585         directory doesn't exist, create it. This is required at least for
59586         "lib/uniwidth/cjk.h".
59587
59588         2007-05-15  Jim Meyering  <jim@meyering.net>
59589
59590         * build-aux/bootstrap: Now that generated Makefile.am files
59591         are no longer under version control, they must be created at
59592         bootstrap time.
59593
59594 2007-08-14  Ben Pfaff  <blp@gnu.org>
59595
59596         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59597
59598 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59599
59600         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59601         given the changes below.
59602         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59603         even on hosts that have padding bits beyond the supported 64.
59604
59605 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59606
59607         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59608         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59609         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59610         depends on it.
59611         (xstrtol_error): Remove.
59612         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59613         but with a different signature.
59614         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59615         * lib/xstrtol-error.c: Include exitfail.h.
59616         (xstrtol_fatal): New function, with a different signature from the
59617         old xstrtol_error, so that the caller need not worry about passing
59618         in an exit status, or about storage management of the option argument.
59619         (xstrtol_error): Now a static function.  Redo signature to
59620         implement xstrtol_fatal.  Output the correct number of hyphens in
59621         front of the option so that the caller need not worry about
59622         storage management.
59623         (N_): New macro.
59624         (_): Remove; not used now.
59625         * modules/xstrtol: Depend on getopt.
59626         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59627         of old STRTOL_FATAL_ERROR macro.
59628         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59629         of test program.
59630         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59631         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59632
59633 2007-08-08  Eric Blake  <ebb9@byu.net>
59634
59635         * lib/xstrtol-error.c: Add missing include.
59636
59637         Move xstrtol messages into gnulib domain, when --pobase is used.
59638         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59639         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59640         * modules/xstrtol (Files): Distribute new file.
59641         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59642         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59643         * tests/test-xstrtol.c: ...into new file.
59644         * tests/test-xstrtoul.c: Also test xstrtoul.
59645         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59646         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59647         * tests/test-xstrtol.sh: Drive the tests.
59648         * tests/test-xstrtoimax.sh: Likewise.
59649         * tests/test-xstrtoumax.sh: Likewise.
59650         * modules/xstrtol-tests: New module.
59651         * modules/xstrtoimax-tests: Likewise.
59652         * modules/xstrtoumax-tests: Likewise.
59653
59654 2007-08-08  Jim Meyering  <jim@meyering.net>
59655
59656         New function: mfile_name_concat.
59657         * lib/filenamecat.c (mfile_name_concat): New function, just like
59658         file_name_concat, but return NULL upon failure rather than exiting
59659         with a diagnostic.
59660         * lib/filenamecat.h: Declare it.
59661
59662 2007-08-07  Bruno Haible  <bruno@clisp.org>
59663
59664         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59665         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59666         warning from gcc.
59667         Reported by Eric Blake.
59668
59669 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59670
59671         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59672         * modules/crypto/arcfour (License): Likewise.
59673         * modules/crypto/des-tests (License): Likewise.
59674         * modules/crypto/gc-arctwo-tests (License): Likewise.
59675         * modules/crypto/gc-des-tests (License): Likewise.
59676         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59677         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59678         * modules/crypto/gc-md2-tests (License): Likewise.
59679         * modules/crypto/gc-md4-tests (License): Likewise.
59680         * modules/crypto/gc-md5-tests (License): Likewise.
59681         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59682         * modules/crypto/gc-rijndael-tests (License): Likewise.
59683         * modules/crypto/gc-sha1-tests (License): Likewise.
59684         * modules/crypto/gc-tests (License): Likewise.
59685         * modules/crypto/hmac-md5 (License): Likewise.
59686         * modules/crypto/hmac-sha1 (License): Likewise.
59687         * modules/crypto/md2-tests (License): Likewise.
59688         * modules/crypto/md4-tests (License): Likewise.
59689         * modules/crypto/md5 (License): Likewise.
59690         * modules/crypto/rijndael (License): Likewise.
59691         * modules/crypto/sha1 (License): Likewise.
59692         * modules/memxor (License): Likewise.
59693
59694 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59695         and Bruno Haible  <bruno@clisp.org>
59696
59697         * NEWS: Describe interface changes to human, xstrtol.
59698         * lib/human.h: Include <xstrtol.h>.
59699         (human_options): Return enum strtol_error, not int.  Remove
59700         bool arg; take int * instead.
59701         * lib/human.c: Don't include "gettext.h".
59702         (_): Remove; no longer used.
59703         Don't include <xstrtol.h>, since human.h does it.
59704         (human_options): Adjust to abovementioned interface changes.
59705         Do not report error to stderr; that's now the caller's
59706         responsibility.
59707         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59708         interface change.
59709         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59710         Str, Argument_type_string.  All uses changed.  Put " argument"
59711         in diagnostics to make them clearer.  Change wording of suffix
59712         message for clarity.
59713         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59714         Argument_type_string.
59715         (STRTOL_FATAL_WARN): Remove; no longer used.
59716         * modules/human (Depends-on): Remove gettext-h.
59717
59718 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59719
59720         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59721
59722 2007-07-31  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59725         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59726         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59727
59728 2007-07-31  Bruno Haible  <bruno@clisp.org>
59729
59730         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59731         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59732
59733 2007-07-30  Bruno Haible  <bruno@clisp.org>
59734
59735         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59736         * modules/c-ctype (License): Likewise.
59737         * modules/c-strcase (License): Likewise.
59738         * modules/check-version (License): Likewise.
59739         * modules/iconv (License): Likewise.
59740         * modules/iconv_open (License): Likewise.
59741         * modules/read-file (License): Likewise.
59742         * modules/striconv (License): Likewise.
59743         * modules/strverscmp (License): Likewise.
59744         * modules/vasprintf (License): Likewise.
59745         * modules/crypto/des (License): Likewise.
59746         * modules/crypto/gc (License): Likewise.
59747         * modules/crypto/gc-arcfour (License): Likewise.
59748         * modules/crypto/gc-arctwo (License): Likewise.
59749         * modules/crypto/gc-des (License): Likewise.
59750         * modules/crypto/gc-hmac-md5 (License): Likewise.
59751         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59752         * modules/crypto/gc-md2 (License): Likewise.
59753         * modules/crypto/gc-md4 (License): Likewise.
59754         * modules/crypto/gc-md5 (License): Likewise.
59755         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59756         * modules/crypto/gc-random (License): Likewise.
59757         * modules/crypto/gc-rijndael (License): Likewise.
59758         * modules/crypto/gc-sha1 (License): Likewise.
59759         * modules/crypto/md2 (License): Likewise.
59760         * modules/crypto/md4 (License): Likewise.
59761
59762 2007-07-30  Jim Meyering  <jim@meyering.net>
59763
59764         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59765         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59766         it has valid stat data.  This bug would cause du not to count the
59767         sizes of inaccessible directories.
59768         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59769         in <http://bugzilla.redhat.com/250077>.
59770
59771 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59772             Bruno Haible  <bruno@clisp.org>
59773
59774         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59775         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59776         #include_next, gives a diagnostic about it, but reports no error in
59777         the exit code.
59778         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59779
59780 2007-07-24  Ben Pfaff  <blp@gnu.org>
59781
59782         Improve name: "count-one-bits" is better than "popcount".
59783         * MODULES.html.sh: Update name.
59784         * lib/popcount.h: Renamed lib/count-one-bits.h.
59785         (popcount): Renamed count_one_bits.
59786         (popcountl): Renamed count_one_bits_l.
59787         (popcountll): Renamed count_one_bits_ll.
59788         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59789         * modules/popcount: Renamed module/count-one-bits.
59790         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59791         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59792
59793 2007-07-23  Ben Pfaff  <blp@gnu.org>
59794
59795         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59796         better code generation, and add U to large constants to avoid
59797         warnings, in non-GCC case.
59798         Suggested by Bruno Haible.
59799
59800 2007-07-23  Ben Pfaff  <blp@gnu.org>
59801
59802         * lib/popcount.h: Use verify_true instead of if...abort.
59803         * modules/popcount: Depend on verify module.
59804         Suggested by Jim Meyering.
59805
59806 2007-07-23  Bruno Haible  <bruno@clisp.org>
59807
59808         * gnulib-tool (func_import): Create a .cvsignore file also when the
59809         directory is not yet in CVS but the toplevel directory is. When
59810         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59811         Reported by Karl Berry.
59812
59813 2007-07-22  Ben Pfaff  <blp@gnu.org>
59814
59815         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59816         case.
59817         Suggested by Eric Blake.
59818
59819 2007-07-22  Ben Pfaff  <blp@gnu.org>
59820
59821         New module: popcount.
59822         * MODULES.html.sh: Add popcount.
59823         * modules/popcount: New file.
59824         * modules/popcount-tests: New file.
59825         * tests/test-popcount.c: New file.
59826         * lib/popcount.h: New file.
59827         * m4/popcount.m4: New file.
59828
59829 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59830
59831         * build-aux/announce-gen: Update to GPLv3.
59832
59833         * build-aux/config.guess: Update from config.
59834
59835 2007-07-21  Bruno Haible  <bruno@clisp.org>
59836
59837         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59838         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59839
59840 2007-07-20  Jim Meyering  <jim@meyering.net>
59841
59842         * check-module: Diagnose a self-dependency.
59843
59844 2007-07-19  Bruno Haible  <bruno@clisp.org>
59845
59846         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59847         empty.
59848         Reported by Eric Blake.
59849
59850 2007-07-18  Bruno Haible  <bruno@clisp.org>
59851
59852         * gnulib-tool: New options --po-base, --po-domain.
59853         (func_usage): Document them.
59854         (pobase, po_domain): New variables.
59855         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59856         DEFAULT_TEXT_DOMAIN.
59857         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59858         (func_import): Consider pobase and po_domain. Create a po/ directory.
59859         (func_create_testdir): Set pobase and po_domain to empty.
59860         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59861         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59862
59863 2007-07-18  Bruno Haible  <bruno@clisp.org>
59864
59865         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59866         EXTRA_DIST augmentation for files in build-aux/.
59867
59868 2007-07-16  Bruno Haible  <bruno@clisp.org>
59869
59870         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59871         * modules/getdelim (License): Likewise.
59872
59873 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59874
59875         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59876         * modules/d-type (License): Likewise.
59877         * modules/extensions (License): Likewise.
59878         * modules/fnmatch (License): Likewise.
59879         * modules/fseeko (License): Likewise.
59880         * modules/getaddrinfo (License): Likewise.
59881         * modules/getline (License): Likewise.
59882         * modules/getlogin_r (License): Likewise.
59883         * modules/getpass (License): Likewise.
59884         * modules/gettimeofday (License): Likewise.
59885         * modules/glob (License): Likewise.
59886         * modules/inet_ntop (License): Likewise.
59887         * modules/malloc (License): Likewise.
59888         * modules/malloca (License): Likewise.
59889         * modules/memmem (License): Likewise.
59890         * modules/mempcpy (License): Likewise.
59891         * modules/memset (License): Likewise.
59892         * modules/minmax (License): Likewise.
59893         * modules/mktime (License): Likewise.
59894         * modules/netinet_in (License): Likewise.
59895         * modules/pathmax (License): Likewise.
59896         * modules/poll (License): Likewise.
59897         * modules/regex (License): Likewise.
59898         * modules/snprintf (License): Likewise.
59899         * modules/stdbool (License): Likewise.
59900         * modules/stdint (License): Likewise.
59901         * modules/stdio (License): Likewise.
59902         * modules/strcase (License): Likewise.
59903         * modules/strcasestr (License): Likewise.
59904         * modules/strdup (License): Likewise.
59905         * modules/string (License): Likewise.
59906         * modules/strndup (License): Likewise.
59907         * modules/strnlen (License): Likewise.
59908         * modules/strpbrk (License): Likewise.
59909         * modules/strptime (License): Likewise.
59910         * modules/strsep (License): Likewise.
59911         * modules/sys_select (License): Likewise.
59912         * modules/sys_socket (License): Likewise.
59913         * modules/sys_stat (License): Likewise.
59914         * modules/sys_time (License): Likewise.
59915         * modules/time (License): Likewise.
59916         * modules/time_r (License): Likewise.
59917         * modules/timegm (License): Likewise.
59918         * modules/unistd (License): Likewise.
59919         * modules/vsnprintf (License): Likewise.
59920         * modules/wctype (License): Likewise.
59921
59922 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59923
59924         * modules/argz (License): LGPLv2+.
59925
59926 2007-07-15  Karl Berry  <karl@gnu.org>
59927
59928         * doc/gnulib.texi: revise node structure per new fdl.texi.
59929
59930 2007-07-14  Bruno Haible  <bruno@clisp.org>
59931
59932         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59933         the output file.
59934         * lib/uniname/uninames.h: Regenerated.
59935
59936 2007-07-14  Karl Berry  <karl@gnu.org>
59937
59938         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59939         omitting sectioning and index commands.
59940
59941 2007-07-13  Bruno Haible  <bruno@clisp.org>
59942
59943         New gnulib-tool option --more-symlinks.
59944         * gnulib-tool (func_usage): Document --more-symlinks.
59945         (do_copyrights): New variable.
59946         Recognize option --more-symlinks.
59947         (func_import): Don't add a copyright notice transform to
59948         sed_transform_lib_file if do_copyrights is empty.
59949
59950 2007-07-13  Bruno Haible  <bruno@clisp.org>
59951
59952         * lib/vasnprintf.c (decimal_point_char): Define also if
59953         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59954         && !NEED_PRINTF_DIRECTIVE_A.
59955         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59956         Gary V. Vaughan <gary@gnu.org>.
59957
59958 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59959
59960         * lib/inttypes_.h: Undo previous change, since it was fixed
59961         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59962
59963 2007-07-13  Bruno Haible  <bruno@clisp.org>
59964
59965         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59966         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59967
59968 2007-07-13  Jim Meyering  <jim@meyering.net>
59969
59970         df: Don't fail for Tru64's "file-on-file mount".
59971         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59972         so we fall through and use statfs instead.  Details here:
59973         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59974         Reported by Albert Chin.
59975
59976 2007-07-13  Bruno Haible  <bruno@clisp.org>
59977
59978         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59979         * modules/configmake (License): Likewise.
59980         * modules/gettext (License): Likewise.
59981         * modules/gettext-h (License): Likewise.
59982         * modules/include_next (License): Likewise.
59983         * modules/link-warning (License): Likewise.
59984         * modules/localcharset (License): Likewise.
59985         * modules/localename (License): Likewise.
59986         * modules/lock (License): Likewise.
59987         * modules/relocatable-lib-lgpl (License): Likewise.
59988         * modules/size_max (License): Likewise.
59989         * modules/vasnprintf (License): Likewise.
59990         * modules/wchar (License): Likewise.
59991         * modules/xsize (License): Likewise.
59992
59993 2007-07-13  Bruno Haible  <bruno@clisp.org>
59994
59995         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59996         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59997
59998 2007-07-12  Bruno Haible  <bruno@clisp.org>
59999
60000         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60001         in the modules files.
60002
60003 2007-07-11  Karl Berry  <karl@gnu.org>
60004
60005         * MODULES.html.sh (func_module): use
60006          sed -e '\|^'"${includefile}"'$|d'
60007          instead of /.../d, to avoid errors on $includefile's containing /.
60008
60009 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60010
60011         * gnulib-tool (func_import): Avoid duplication of --avoid
60012         statements
60013         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60014         names to `_' in variable names.
60015
60016 2007-07-10  Eric Blake  <ebb9@byu.net>
60017
60018         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60019         * NEWS: Document this change.
60020
60021 2007-07-08  Bruno Haible  <bruno@clisp.org>
60022
60023         Update to Unicode 5.0.
60024         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60025         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60026         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60027         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60028         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60029         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60030         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60031         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60032         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60033         U+10A3F, U+1D242..U+1D244.
60034         (nonspacing_table_ind): Update.
60035         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60036         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60037
60038 2007-07-08  Bruno Haible  <bruno@clisp.org>
60039
60040         Update to Unicode 5.0.
60041         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60042         code transform. Extend the name index field of unicode_name_to_code and
60043         unicode_code_to_name from 16 to 24 bits.
60044         * lib/uniname/uniname.c (unicode_character_name,
60045         unicode_name_character): Add the range 0x12xxx to the code transform.
60046         * lib/uniname/uninames.h: Regenerated.
60047         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60048
60049 2007-07-07  Bruno Haible  <bruno@clisp.org>
60050
60051         * modules/wcwidth-tests: New file.
60052         * tests/test-wcwidth.c: New file.
60053
60054         Work around MacOS X wcwidth() bug.
60055         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60056         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60057         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60058         original wcwidth in non-UTF-8 locales.
60059         * modules/wcwidth (Depends-on): Add localcharset, streq,
60060         uniwidth/width.
60061         * doc/functions/wcwidth.texi: Update.
60062
60063 2007-07-07  Bruno Haible  <bruno@clisp.org>
60064
60065         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60066         (wcwidth): New declaration.
60067         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60068         macros.
60069         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60070         here. Prepare for creating <wchar.h> unconditionally.
60071         * modules/wchar (Depends-on): Add link-warning.
60072         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60073         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60074         * lib/wcwidth.h: Remove file.
60075         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60076         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60077         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60078         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60079         (Include): Replace wcwidth.h with <wchar.h>.
60080         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60081         * lib/mbchar.h: Don't include wcwidth.h.
60082         * lib/mbswidth.c: Likewise.
60083         * NEWS: Mention the change.
60084
60085 2007-07-07  Bruno Haible  <bruno@clisp.org>
60086
60087         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60088         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60089         definition with an external declaration.
60090         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60091         defined as a function. Remove AC_C_INLINE requirement.
60092         * modules/wcwidth (Files): Add lib/wcwidth.c.
60093         (Makefile.am): Remove redundant statement.
60094
60095 2007-07-07  Bruno Haible  <bruno@clisp.org>
60096
60097         * MODULES.html.sh (Unicode string functions): Add the new modules.
60098
60099         * tests/uniwidth/test-u32-strwidth.c: New file.
60100         * modules/uniwidth/u32-strwidth-tests: New file.
60101
60102         * lib/uniwidth/u32-strwidth.c: New file.
60103         * modules/uniwidth/u32-strwidth: New file.
60104
60105         * tests/uniwidth/test-u16-strwidth.c: New file.
60106         * modules/uniwidth/u16-strwidth-tests: New file.
60107
60108         * lib/uniwidth/u16-strwidth.c: New file.
60109         * modules/uniwidth/u16-strwidth: New file.
60110
60111         * tests/uniwidth/test-u8-strwidth.c: New file.
60112         * modules/uniwidth/u8-strwidth-tests: New file.
60113
60114         * lib/uniwidth/u8-strwidth.c: New file.
60115         * modules/uniwidth/u8-strwidth: New file.
60116
60117         * tests/uniwidth/test-u32-width.c: New file.
60118         * modules/uniwidth/u32-width-tests: New file.
60119
60120         * lib/uniwidth/u32-width.c: New file.
60121         * modules/uniwidth/u32-width: New file.
60122
60123         * tests/uniwidth/test-u16-width.c: New file.
60124         * modules/uniwidth/u16-width-tests: New file.
60125
60126         * lib/uniwidth/u16-width.c: New file.
60127         * modules/uniwidth/u16-width: New file.
60128
60129         * tests/uniwidth/test-u8-width.c: New file.
60130         * modules/uniwidth/u8-width-tests: New file.
60131
60132         * lib/uniwidth/u8-width.c: New file.
60133         * modules/uniwidth/u8-width: New file.
60134
60135         * tests/uniwidth/test-uc_width.c: New file.
60136         * modules/uniwidth/width-tests: New file.
60137
60138         * lib/uniwidth/width.c: New file, from GNU libiconv.
60139         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60140         * modules/uniwidth/width: New file.
60141
60142         * lib/uniwidth.h: New file, from GNU libiconv.
60143         * modules/uniwidth/base: New file.
60144
60145 2007-07-07  Bruno Haible  <bruno@clisp.org>
60146
60147         * lib/uniname.h: New file, from GNU gettext.
60148         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60149         * lib/uniname/uninames.h: New file, from GNU gettext.
60150         * lib/uniname/uniname.c: New file, from GNU gettext.
60151         * tests/uniname/test-uninames.sh: New file.
60152         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60153         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60154         * modules/uniname/base: New file.
60155         * modules/uniname/uniname: New file.
60156         * modules/uniname/uniname-tests: New file.
60157         * MODULES.html.sh (Unicode string functions): Add the new modules.
60158
60159 2007-07-06  Bruno Haible  <bruno@clisp.org>
60160
60161         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60162
60163 2007-07-06  Bruno Haible  <bruno@clisp.org>
60164
60165         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60166         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60167         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60168         include <sys/time.h>.
60169         Reported by Eric Blake.
60170
60171 2007-07-06  Eric Blake  <ebb9@byu.net>
60172
60173         Fix testing canonicalize on cygwin.
60174         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60175         Revert patch from 2007-06-19.
60176         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60177         canonicalize module is also in use.
60178         * tests/test-canonicalize.c: New file.
60179         * tests/test-canonicalize.sh: Likewise.
60180         * modules/canonicalize-tests: Likewise.
60181
60182 2007-07-06  Jim Meyering  <jim@meyering.net>
60183
60184         * lib/getugroups.c (getugroups): Detect getgrent failure.
60185         Adjust comment to reflect reality: this function may return -1.
60186
60187 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60188
60189         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60190         the new TP address.
60191         (usage): Fix typo
60192         (gnulib_mk): New variable.
60193
60194 2007-07-05  Jim Meyering  <jim@meyering.net>
60195
60196         Don't let endgrent clobber errno, no matter how improbable.
60197         * lib/getugroups.c (getugroups): Save and restore errno around
60198         endgrent call.
60199
60200         Close the group DB even when failing with 2^31 or more members.
60201         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60202
60203 2007-07-04  Jim Meyering  <jim@meyering.net>
60204
60205         * lib/getugroups.h: New file.
60206         * lib/getugroups.c: Include "getugroups.h".
60207         Remove uses of "register" keyword.
60208         Move local variable, "cp", down into scope where used.
60209         Give "username" parameter the "const" attribute.
60210         * modules/getugroups (Files): Add lib/getugroups.h
60211
60212 2007-07-04  Karl Berry  <karl@gnu.org>
60213
60214         * MODULES.html.sh (func_all_modules): Complete rename of
60215         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60216
60217 2007-07-02  Bruno Haible  <bruno@clisp.org>
60218
60219         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60220         mode, when inttypes.h comes from gnulib.
60221         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60222
60223 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60224
60225         * NEWS: Mention lgpl module name change.
60226
60227         * modules/lgpl-2.1: Renamed from lgpl.
60228
60229         * NEWS: Mention gpl module name change.
60230
60231         * modules/gpl-3.0: New file, based on gpl-2.0.
60232
60233         * modules/gpl-2.0: Renamed from gpl.
60234
60235         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60236         doc/gpl-2.0.texi.
60237
60238 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60239
60240         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60241         #define __STDC_LIMIT_MACROS temporarily while including
60242         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60243         Problem reported by Joel E. Denny in
60244         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60245
60246 2007-07-01  Bruno Haible  <bruno@clisp.org>
60247
60248         * lib/unistdio.h: New file.
60249         * lib/unistdio/u-asnprintf.h: New file.
60250         * lib/unistdio/u-asprintf.h: New file.
60251         * lib/unistdio/u-printf-args.c: New file.
60252         * lib/unistdio/u-printf-args.h: New file.
60253         * lib/unistdio/u-printf-parse.h: New file.
60254         * lib/unistdio/u-snprintf.h: New file.
60255         * lib/unistdio/u-sprintf.h: New file.
60256         * lib/unistdio/u-vasprintf.h: New file.
60257         * lib/unistdio/u-vsnprintf.h: New file.
60258         * lib/unistdio/u-vsprintf.h: New file.
60259         * lib/unistdio/ulc-asnprintf.c: New file.
60260         * lib/unistdio/ulc-asprintf.c: New file.
60261         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60262         * lib/unistdio/ulc-printf-parse.c: New file.
60263         * lib/unistdio/ulc-snprintf.c: New file.
60264         * lib/unistdio/ulc-sprintf.c: New file.
60265         * lib/unistdio/ulc-vasnprintf.c: New file.
60266         * lib/unistdio/ulc-vasprintf.c: New file.
60267         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60268         * lib/unistdio/ulc-vsnprintf.c: New file.
60269         * lib/unistdio/ulc-vsprintf.c: New file.
60270         * lib/unistdio/u8-asnprintf.c: New file.
60271         * lib/unistdio/u8-asprintf.c: New file.
60272         * lib/unistdio/u8-printf-parse.c: New file.
60273         * lib/unistdio/u8-snprintf.c: New file.
60274         * lib/unistdio/u8-sprintf.c: New file.
60275         * lib/unistdio/u8-vasnprintf.c: New file.
60276         * lib/unistdio/u8-vasprintf.c: New file.
60277         * lib/unistdio/u8-vsnprintf.c: New file.
60278         * lib/unistdio/u8-vsprintf.c: New file.
60279         * lib/unistdio/u8-u8-asnprintf.c: New file.
60280         * lib/unistdio/u8-u8-asprintf.c: New file.
60281         * lib/unistdio/u8-u8-snprintf.c: New file.
60282         * lib/unistdio/u8-u8-sprintf.c: New file.
60283         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60284         * lib/unistdio/u8-u8-vasprintf.c: New file.
60285         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60286         * lib/unistdio/u8-u8-vsprintf.c: New file.
60287         * lib/unistdio/u16-asnprintf.c: New file.
60288         * lib/unistdio/u16-asprintf.c: New file.
60289         * lib/unistdio/u16-printf-parse.c: New file.
60290         * lib/unistdio/u16-snprintf.c: New file.
60291         * lib/unistdio/u16-sprintf.c: New file.
60292         * lib/unistdio/u16-vasnprintf.c: New file.
60293         * lib/unistdio/u16-vasprintf.c: New file.
60294         * lib/unistdio/u16-vsnprintf.c: New file.
60295         * lib/unistdio/u16-vsprintf.c: New file.
60296         * lib/unistdio/u16-u16-asnprintf.c: New file.
60297         * lib/unistdio/u16-u16-asprintf.c: New file.
60298         * lib/unistdio/u16-u16-snprintf.c: New file.
60299         * lib/unistdio/u16-u16-sprintf.c: New file.
60300         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60301         * lib/unistdio/u16-u16-vasprintf.c: New file.
60302         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60303         * lib/unistdio/u16-u16-vsprintf.c: New file.
60304         * lib/unistdio/u32-asnprintf.c: New file.
60305         * lib/unistdio/u32-asprintf.c: New file.
60306         * lib/unistdio/u32-printf-parse.c: New file.
60307         * lib/unistdio/u32-snprintf.c: New file.
60308         * lib/unistdio/u32-sprintf.c: New file.
60309         * lib/unistdio/u32-vasnprintf.c: New file.
60310         * lib/unistdio/u32-vasprintf.c: New file.
60311         * lib/unistdio/u32-vsnprintf.c: New file.
60312         * lib/unistdio/u32-vsprintf.c: New file.
60313         * lib/unistdio/u32-u32-asnprintf.c: New file.
60314         * lib/unistdio/u32-u32-asprintf.c: New file.
60315         * lib/unistdio/u32-u32-snprintf.c: New file.
60316         * lib/unistdio/u32-u32-sprintf.c: New file.
60317         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60318         * lib/unistdio/u32-u32-vasprintf.c: New file.
60319         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60320         * lib/unistdio/u32-u32-vsprintf.c: New file.
60321         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60322         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60323         * tests/unistdio/test-ulc-printf1.h: New file.
60324         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60325         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60326         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60327         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60328         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60329         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60330         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60331         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60332         * tests/unistdio/test-u8-asnprintf1.c: New file.
60333         * tests/unistdio/test-u8-asnprintf1.h: New file.
60334         * tests/unistdio/test-u8-printf1.h: New file.
60335         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60336         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60337         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60338         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60339         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60340         * tests/unistdio/test-u8-vasprintf1.c: New file.
60341         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60342         * tests/unistdio/test-u8-vsprintf1.c: New file.
60343         * tests/unistdio/test-u16-asnprintf1.c: New file.
60344         * tests/unistdio/test-u16-asnprintf1.h: New file.
60345         * tests/unistdio/test-u16-printf1.h: New file.
60346         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60347         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60348         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60349         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60350         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60351         * tests/unistdio/test-u16-vasprintf1.c: New file.
60352         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60353         * tests/unistdio/test-u16-vsprintf1.c: New file.
60354         * tests/unistdio/test-u32-asnprintf1.c: New file.
60355         * tests/unistdio/test-u32-asnprintf1.h: New file.
60356         * tests/unistdio/test-u32-printf1.h: New file.
60357         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60358         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60359         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60360         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60361         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60362         * tests/unistdio/test-u32-vasprintf1.c: New file.
60363         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60364         * tests/unistdio/test-u32-vsprintf1.c: New file.
60365         * modules/unistdio/base: New file.
60366         * modules/unistdio/u-printf-args: New file.
60367         * modules/unistdio/ulc-asnprintf: New file.
60368         * modules/unistdio/ulc-asprintf: New file.
60369         * modules/unistdio/ulc-fprintf: New file.
60370         * modules/unistdio/ulc-printf-parse: New file.
60371         * modules/unistdio/ulc-snprintf: New file.
60372         * modules/unistdio/ulc-sprintf: New file.
60373         * modules/unistdio/ulc-vasnprintf: New file.
60374         * modules/unistdio/ulc-vasprintf: New file.
60375         * modules/unistdio/ulc-vfprintf: New file.
60376         * modules/unistdio/ulc-vsnprintf: New file.
60377         * modules/unistdio/ulc-vsprintf: New file.
60378         * modules/unistdio/u8-asnprintf: New file.
60379         * modules/unistdio/u8-asprintf: New file.
60380         * modules/unistdio/u8-printf-parse: New file.
60381         * modules/unistdio/u8-snprintf: New file.
60382         * modules/unistdio/u8-sprintf: New file.
60383         * modules/unistdio/u8-vasnprintf: New file.
60384         * modules/unistdio/u8-vasprintf: New file.
60385         * modules/unistdio/u8-vsnprintf: New file.
60386         * modules/unistdio/u8-vsprintf: New file.
60387         * modules/unistdio/u8-u8-asnprintf: New file.
60388         * modules/unistdio/u8-u8-asprintf: New file.
60389         * modules/unistdio/u8-u8-snprintf: New file.
60390         * modules/unistdio/u8-u8-sprintf: New file.
60391         * modules/unistdio/u8-u8-vasnprintf: New file.
60392         * modules/unistdio/u8-u8-vasprintf: New file.
60393         * modules/unistdio/u8-u8-vsnprintf: New file.
60394         * modules/unistdio/u8-u8-vsprintf: New file.
60395         * modules/unistdio/u16-asnprintf: New file.
60396         * modules/unistdio/u16-asprintf: New file.
60397         * modules/unistdio/u16-printf-parse: New file.
60398         * modules/unistdio/u16-snprintf: New file.
60399         * modules/unistdio/u16-sprintf: New file.
60400         * modules/unistdio/u16-vasnprintf: New file.
60401         * modules/unistdio/u16-vasprintf: New file.
60402         * modules/unistdio/u16-vsnprintf: New file.
60403         * modules/unistdio/u16-vsprintf: New file.
60404         * modules/unistdio/u16-u16-asnprintf: New file.
60405         * modules/unistdio/u16-u16-asprintf: New file.
60406         * modules/unistdio/u16-u16-snprintf: New file.
60407         * modules/unistdio/u16-u16-sprintf: New file.
60408         * modules/unistdio/u16-u16-vasnprintf: New file.
60409         * modules/unistdio/u16-u16-vasprintf: New file.
60410         * modules/unistdio/u16-u16-vsnprintf: New file.
60411         * modules/unistdio/u16-u16-vsprintf: New file.
60412         * modules/unistdio/u32-asnprintf: New file.
60413         * modules/unistdio/u32-asprintf: New file.
60414         * modules/unistdio/u32-printf-parse: New file.
60415         * modules/unistdio/u32-snprintf: New file.
60416         * modules/unistdio/u32-sprintf: New file.
60417         * modules/unistdio/u32-vasnprintf: New file.
60418         * modules/unistdio/u32-vasprintf: New file.
60419         * modules/unistdio/u32-vsnprintf: New file.
60420         * modules/unistdio/u32-vsprintf: New file.
60421         * modules/unistdio/u32-u32-asnprintf: New file.
60422         * modules/unistdio/u32-u32-asprintf: New file.
60423         * modules/unistdio/u32-u32-snprintf: New file.
60424         * modules/unistdio/u32-u32-sprintf: New file.
60425         * modules/unistdio/u32-u32-vasnprintf: New file.
60426         * modules/unistdio/u32-u32-vasprintf: New file.
60427         * modules/unistdio/u32-u32-vsnprintf: New file.
60428         * modules/unistdio/u32-u32-vsprintf: New file.
60429         * modules/unistdio/ulc-asnprintf-tests: New file.
60430         * modules/unistdio/ulc-vasnprintf-tests: New file.
60431         * modules/unistdio/ulc-vasprintf-tests: New file.
60432         * modules/unistdio/ulc-vsnprintf-tests: New file.
60433         * modules/unistdio/ulc-vsprintf-tests: New file.
60434         * modules/unistdio/u8-asnprintf-tests: New file.
60435         * modules/unistdio/u8-vasnprintf-tests: New file.
60436         * modules/unistdio/u8-vasprintf-tests: New file.
60437         * modules/unistdio/u8-vsnprintf-tests: New file.
60438         * modules/unistdio/u8-vsprintf-tests: New file.
60439         * modules/unistdio/u16-asnprintf-tests: New file.
60440         * modules/unistdio/u16-vasnprintf-tests: New file.
60441         * modules/unistdio/u16-vasprintf-tests: New file.
60442         * modules/unistdio/u16-vsnprintf-tests: New file.
60443         * modules/unistdio/u16-vsprintf-tests: New file.
60444         * modules/unistdio/u32-asnprintf-tests: New file.
60445         * modules/unistdio/u32-vasnprintf-tests: New file.
60446         * modules/unistdio/u32-vasprintf-tests: New file.
60447         * modules/unistdio/u32-vsnprintf-tests: New file.
60448         * modules/unistdio/u32-vsprintf-tests: New file.
60449         * MODULES.html.sh (Unicode string functions): Add the new modules.
60450
60451 2007-07-01  Bruno Haible  <bruno@clisp.org>
60452
60453         * lib/sprintf.c (sprintf): Limit the available length estimation,
60454         to avoid address wraparound.
60455         * lib/vsprintf.c (vsprintf): Likewise.
60456         * modules/sprintf-posix (Dependencies): Add stdint.
60457         * modules/vsprintf-posix (Dependencies): Likewise.
60458
60459 2007-07-01  Bruno Haible  <bruno@clisp.org>
60460
60461         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60462         Windows PATH as well. Conservative double-quoting. Comments.
60463
60464 2007-07-01  Bruno Haible  <bruno@clisp.org>
60465             Eric Blake  <ebb9@byu.net>
60466             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60467
60468         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60469         empty components in $PATH, denoting '.'.
60470
60471 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60472
60473         * gnulib-tool: Fix indentation.
60474         (func_create_megatestdir): Likewise.
60475         Report by Bruno Haible.
60476
60477 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60478
60479         Sync from Automake.
60480         * build-aux/gnupload: Fix shell portability issues with for loops.
60481         Report by Karl Berry.
60482
60483 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60484
60485         * build-aux/maint.mk (POURL): Use translationproject.org.
60486
60487 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60488             Bruno Haible  <bruno@clisp.org>
60489
60490         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60491         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60492         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60493         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60494         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60495
60496 2007-06-27  Bruno Haible  <bruno@clisp.org>
60497
60498         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60499         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60500
60501 2007-06-26  Karl Berry  <karl@gnu.org>
60502
60503         * MODULES.html.sh: remove xreadlink-with-size.
60504
60505 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60508         method that I hope also handles the double-include problem noted
60509         by Bruno Haible in
60510         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60511
60512 2007-06-23  Bruno Haible  <bruno@clisp.org>
60513
60514         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60515         Don't let the 'mostlyclean' target fail if the last subdirectory could
60516         not be removed.
60517         Reported by Karl Berry.
60518
60519 2007-06-23  Bruno Haible  <bruno@clisp.org>
60520
60521         * gnulib-tool (echo): Add a speedier workaround for ksh.
60522         * tests/test-echo.sh: Likewise.
60523
60524 2007-06-23  Bruno Haible  <bruno@clisp.org>
60525
60526         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60527         * tests/test-echo.sh: Likewise.
60528
60529 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60530
60531         * gnulib-tool (IFS): Initialize early, so we don't set it to
60532         empty later.
60533         (self_abspathname): Rewrite algorithm to set it, reindent.
60534         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60535         (func_create_megatestdir): Merge some sed scripts.
60536
60537 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60540         exposed by Sun Studio 11 cc on Solaris 8.
60541
60542 2007-06-22  Bruno Haible  <bruno@clisp.org>
60543
60544         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60545         backslashes.
60546         * tests/test-echo.sh: New file.
60547
60548 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60549
60550         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60551         simplify `sed_replace_build_aux' scripts, they are portable but
60552         echoing them with `echo' is not.
60553         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60554
60555 2007-06-21  Karl Berry  <karl@gnu.org>
60556
60557         * config/srclist.txt: guess we can't handle the licenses via
60558         srclist at the moment.
60559
60560 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60561
60562         * MODULES.html.sh: Add include_next.
60563         * modules/include_next: New file.
60564
60565 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60566
60567         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60568         INCLUDE_NEXT.
60569         (gl_CHECK_NEXT_HEADERS): New macro.
60570         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60571         the obsolescent gl_ABSOLUTE_HEADER.
60572         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60573         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60574         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60575         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60576         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60577         * m4/math_h.m4 (gl_MATH_H): Likewise.
60578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60579         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60580         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60581         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60582         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60583         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60584         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60585         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60586         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60588         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60589         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60590         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60591         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60592         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60593         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60594         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60595         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60596         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60597         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60598         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60599         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60600         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60601         * lib/float_.h: Likewise.
60602         * lib/inttypes_.h: Likewise.
60603         * lib/math_.h: Likewise.
60604         * lib/search_.h: Likewise.
60605         * lib/signal_.h: Likewise.
60606         * lib/stdint_.h: Likewise.
60607         * lib/stdio_.h: Likewise.
60608         * lib/stdlib_.h: Likewise.
60609         * lib/string_.h: Likewise.
60610         * lib/sys_stat_.h: Likewise.
60611         * lib/sys_time_.h: Likewise.
60612         * lib/time_.h: Likewise.
60613         * lib/unistd_.h: Likewise.
60614         * lib/wchar_.h: Likewise.
60615         * lib/wctype_.h: Likewise.
60616         * lib/dirent_.h: Likewise.
60617         * lib/iconv_.h: Likewise.
60618         * lib/locale_.h: Likewise.
60619         * lib/netinet_in_.h: Likewise.
60620         * lib/sys_select_.h: Likewise.
60621         * lib/sys_socket_.h: Likewise.
60622         * lib/sysexits_.h: Likewise.
60623         * modules/fcntl (Depends-on): Depend on include_next, not
60624         absolute_header.
60625         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60626         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60627         * modules/fchdir: Likewise.
60628         * modules/float: Likewise.
60629         * modules/iconv_open: Likewise.
60630         * modules/inttypes: Likewise.
60631         * modules/locale: Likewise.
60632         * modules/math: Likewise.
60633         * modules/netinet_in: Likewise.
60634         * modules/search: Likewise.
60635         * modules/signal: Likewise.
60636         * modules/stdint: Likewise.
60637         * modules/stdio: Likewise.
60638         * modules/stdlib: Likewise.
60639         * modules/string: Likewise.
60640         * modules/sys_select: Likewise.
60641         * modules/sys_socket: Likewise.
60642         * modules/sys_stat: Likewise.
60643         * modules/sys_time: Likewise.
60644         * modules/sysexits: Likewise.
60645         * modules/time: Likewise.
60646         * modules/unistd: Likewise.
60647         * modules/wchar: Likewise.
60648         * modules/wctype: Likewise.
60649         * modules/sys_stat: Change maintainer to "all".
60650         * modules/unistd: Likewise.
60651
60652 2007-06-20  Karl Berry  <karl@gnu.org>
60653
60654         * config/srclist.txt: track www changes in license files.
60655
60656 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60657
60658         * build-aux/bootstrap: Remove stray dot.
60659         Make sure build_aux settings are honored when linking
60660         gnulib_extra_files.
60661
60662 2007-06-19  Eric Blake  <ebb9@byu.net>
60663
60664         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60665         Allow compilation on cygwin.
60666
60667 2007-06-19  Jim Meyering  <jim@meyering.net>
60668
60669         xreadlink-with-size: Remove module.  No longer used.
60670         Ex-callers now use xreadlink or mreadlink-with-size.
60671         * modules/xreadlink-with-size: Remove module.
60672         * lib/xreadlink-with-size.c: Remove file.
60673         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60674         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60675         just before the function definition *is* accurate.
60676
60677         Eliminate one way canonicalize_filename_mode could exit.
60678         * lib/canonicalize.c (canonicalize_filename_mode):
60679         Use mreadlink_with_size, not xreadlink_with_size.
60680
60681 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60682
60683         Detect porting problems to FreeBSD/arm, which has time_t wider than
60684         long int.  Original problem reported for GNU diff by Xin Li in
60685         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60686         * modules/getdate (Depends-on): Add intprops, verify.
60687         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60688         is an integer type no wider than long int.
60689
60690 2007-06-18  Jim Meyering  <jim@meyering.net>
60691
60692         New module: mreadlink-with-size.
60693         * MODULES.html.sh: Add mreadlink-with-size.
60694         * modules/mreadlink-with-size: New module
60695         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60696         not xreadlink-with-size.
60697         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60698
60699 2007-06-16  Bruno Haible  <bruno@clisp.org>
60700
60701         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60702         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60703         Reported by Gary V. Vaughan <gary@gnu.org>.
60704
60705 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60706
60707         Revamp lchown so that it lives in unistd.h where it belongs.
60708         * lib/lchown.h: Remove.
60709         * lib/dirchownmod.c: Don't include lib/lchown.h.
60710         * lib/fchownat.c: Likewise.
60711         * lib/openat.c: Likewise.
60712         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60713         does not follow symlinks.
60714         (EOPNOTSUPP): Define if not defined.
60715         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60716         is defined to 0.
60717         (lchown): New decl.
60718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60719         Do not check for lchown decl.
60720         Set REPLACE_LCHOWN.
60721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60722         REPLACE_LCHOWN.
60723         * modules/chown: Make it clear it follows symlinks.
60724         * modules/lchown: Make it clear it doesn't follow symlinks.
60725         (Files): Remove lib/lchown.h
60726         (Depends-on): Add unistd.
60727         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60728         (Include): Include <unistd.h>, not "lchown.h".
60729         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60730         REPLACE_LCHOWN.
60731
60732 2007-06-15  Jim Meyering  <jim@meyering.net>
60733
60734         Change license (GPL to LGPL) of fsusage and dependents.
60735         * modules/fsusage (License): Change to LGPL.
60736         * modules/full-read (License): Likewise.
60737         * modules/full-write (License): Likewise.
60738         * modules/safe-read (License): Likewise.
60739         * modules/safe-write (License): Likewise.
60740
60741 2007-06-14  Ben Pfaff  <blp@gnu.org>
60742
60743         Missing part of allocsa -> malloca transition.
60744         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60745         gl_MALLOCA.
60746
60747 2007-06-12  Bruno Haible  <bruno@clisp.org>
60748
60749         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60750         to ia64, x86_64, i386.
60751         Reported by Eric Blake.
60752
60753 2007-06-12  Bruno Haible  <bruno@clisp.org>
60754
60755         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60756         cross-compiling to x86_64.
60757
60758 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60759
60760         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60761         glitch reported by Ralf Wildenhues in
60762         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60763
60764         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60765         Vin Shelton.
60766
60767 2007-06-11  Bruno Haible  <bruno@clisp.org>
60768
60769         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60770         replacement string.
60771         Reported by Eric Blake.
60772
60773 2007-06-10  Bruno Haible  <bruno@clisp.org>
60774
60775         Prepare vasnprintf code for use with Unicode strings.
60776         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60777         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60778         TYPE_U32_STRING.
60779         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60780         a_u32_string variants.
60781         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60782         * lib/printf-args.c: Don't include config.h and the specification
60783         header if PRINTF_FETCHARGS is already defined.
60784         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60785         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60786         TYPE_U16_STRING, TYPE_U32_STRING.
60787         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60788         u16_directive, u16_directives, u32_directive, u32_directives): New
60789         types.
60790         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60791         New declarations.
60792         * lib/printf-parse.c: Don't include config.h and the specification
60793         header if PRINTF_PARSE is already defined. Eliminate the set of
60794         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60795         them now. Include c-ctype.h.
60796         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60797         directive and CHAR_T_ONLY_ASCII.
60798         * lib/vasnprintf.c: Don't include config.h and the specification header
60799         if VASNPRINTF is already defined.
60800         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60801         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60802         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60803         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60804         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60805         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60806         code accordingly.
60807         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60808         pad_ourselves also in this case, with the 'c' and 's' directives, and
60809         with a different notion of "width".
60810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60811
60812 2007-06-10  Bruno Haible  <bruno@clisp.org>
60813
60814         * modules/unistr/u32-mbsnlen: New file.
60815         * lib/unistr/u32-mbsnlen.c: New file.
60816
60817         * modules/unistr/u16-mbsnlen: New file.
60818         * lib/unistr/u16-mbsnlen.c: New file.
60819
60820         * modules/unistr/u8-mbsnlen: New file.
60821         * lib/unistr/u8-mbsnlen.c: New file.
60822
60823         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60824         declarations.
60825
60826 2007-06-10  Bruno Haible  <bruno@clisp.org>
60827
60828         * lib/string_.h (mbsnlen): New declaration.
60829         * lib/mbsnlen.c: New file.
60830         * m4/mbsnlen.m4: New file.
60831         * modules/mbsnlen: New file.
60832         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60833         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60834         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60835
60836 2007-06-10  Bruno Haible  <bruno@clisp.org>
60837
60838         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60839
60840 2007-06-10  Bruno Haible  <bruno@clisp.org>
60841
60842         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60843         * lib/mbuiter.h: Likewise.
60844
60845 2007-06-10  Bruno Haible  <bruno@clisp.org>
60846
60847         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60848         declaration.
60849
60850 2007-06-10  Karl Berry  <karl@gnu.org>
60851
60852         * config/srclist.txt: remove gettext entries, Bruno prefers
60853         to update individually.
60854
60855 2007-06-10  Bruno Haible  <bruno@clisp.org>
60856
60857         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60858         'maxlen'. Ensure only length + width bytes are allocated, not
60859         length + 1 + width.
60860
60861 2007-06-09  Bruno Haible  <bruno@clisp.org>
60862
60863         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60864         (CHAR_T): Remove macro.
60865         (VASNPRINTF): Update.
60866
60867 2007-06-09  Bruno Haible  <bruno@clisp.org>
60868
60869         * MODULES.html.sh (Unicode string functions): Add the new modules.
60870
60871         * modules/uniconv/u32-conv-to-enc: New file.
60872         * lib/uniconv/u32-conv-to-enc.c: New file.
60873         * modules/uniconv/u32-conv-to-enc-tests: New file.
60874         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60875
60876         * modules/uniconv/u16-conv-to-enc: New file.
60877         * lib/uniconv/u16-conv-to-enc.c: New file.
60878         * lib/uniconv/u-conv-to-enc.h: New file.
60879         * modules/uniconv/u16-conv-to-enc-tests: New file.
60880         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60881
60882         * modules/uniconv/u8-conv-to-enc: New file.
60883         * lib/uniconv/u8-conv-to-enc.c: New file.
60884         * modules/uniconv/u8-conv-to-enc-tests: New file.
60885         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60886
60887         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60888         u32_conv_to_encoding): New declarations.
60889
60890 2007-06-09  Bruno Haible  <bruno@clisp.org>
60891
60892         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60893
60894 2007-06-09  Bruno Haible  <bruno@clisp.org>
60895
60896         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60897         * modules/malloca: Renamed from modules/allocsa, updated.
60898         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60899         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60900         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60901         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60902         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60903         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60904         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60905         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60906         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60907         * modules/c-strcasestr (Depends-on): Update.
60908         * lib/c-strcasestr.c: Update.
60909         * modules/c-strstr (Depends-on): Update.
60910         * lib/c-strstr.c: Update.
60911         * modules/canonicalize-lgpl (Depends-on): Update.
60912         * lib/canonicalize-lgpl.c: Update.
60913         * modules/clean-temp (Depends-on): Update.
60914         * lib/clean-temp.c: Update.
60915         * modules/csharpcomp (Depends-on): Update.
60916         * lib/csharpcomp.c: Update.
60917         * modules/csharpexec (Depends-on): Update.
60918         * lib/csharpexec.c: Update.
60919         * modules/javacomp (Depends-on): Update.
60920         * lib/javacomp.c: Update.
60921         * modules/javaexec (Depends-on): Update.
60922         * lib/javaexec.c: Update.
60923         * modules/mbscasestr (Depends-on): Update.
60924         * lib/mbscasestr.c: Update.
60925         * modules/mbsstr (Depends-on): Update.
60926         * lib/mbsstr.c: Update.
60927         * modules/setenv (Depends-on): Update.
60928         * lib/setenv.c: Update.
60929         * modules/strcasestr (Depends-on): Update.
60930         * lib/strcasestr.c: Update.
60931         * modules/striconveha (Depends-on): Update.
60932         * lib/striconveha.c: Update.
60933         * modules/relocatable-prog-wrapper (Files): Update.
60934         * lib/relocwrapper.c: Update.
60935         * build-aux/install-reloc: Update.
60936         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60937
60938 2007-06-08  Bruno Haible  <bruno@clisp.org>
60939
60940         Port to uClibc.
60941         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60942         * lib/fpurge.c (fpurge): Likewise.
60943         * lib/freading.c (freading): Likewise.
60944         * lib/fseeko.c (rpl_fseeko): Likewise.
60945         * lib/fseterr.c (fseterr): Likewise.
60946         * lib/fwriting.c (fwriting): Likewise.
60947         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60948
60949 2007-06-08  Bruno Haible  <bruno@clisp.org>
60950
60951         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60952         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60953         * modules/gettext (Files): Add m4/intlmacosx.m4.
60954
60955 2007-06-07  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/localename-tests: New file.
60958         * tests/test-localename.c: New file.
60959
60960         New module 'localename'.
60961         * lib/localename.h: New file.
60962         * lib/localename.c: New file, from GNU gettext.
60963         * m4/localename.m4: New file.
60964         * modules/localename: New file.
60965
60966 2007-06-07  Bruno Haible  <bruno@clisp.org>
60967
60968         Work around the lack of <wchar.h> on some builds of uClibc.
60969         * doc/headers/wchar.texi: Update.
60970         * lib/wchar_.h: Include <wchar.h> only if it exists.
60971         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60972         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60973         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60974         doesn't exist.
60975         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60976         * modules/mbfile (Depends-on): Add wchar.
60977         * modules/mbiter (Depends-on): Likewise.
60978         * modules/mbuiter (Depends-on): Likewise.
60979         Reported by Simon Josefsson.
60980
60981 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60982
60983         Work around problem reported by Steven M. Schweda in
60984         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60985         Tru64 5.1B with the Compaq compiler environment installed declares
60986         an 'isblank' function but does not define it in the C library.
60987         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60988         * lib/regex_internal.h (isblank): Likewise.
60989         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60990         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60991
60992 2007-06-05  Bruno Haible  <bruno@clisp.org>
60993
60994         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60995         ia64.
60996         * modules/printf-safe: New file.
60997         * modules/fprintf-posix (Depends-on): Add printf-safe.
60998         * modules/printf-posix (Depends-on): Likewise.
60999         * modules/snprintf-posix (Depends-on): Likewise.
61000         * modules/sprintf-posix (Depends-on): Likewise.
61001         * modules/vasnprintf-posix (Depends-on): Likewise.
61002         * modules/vasprintf-posix (Depends-on): Likewise.
61003         * modules/vfprintf-posix (Depends-on): Likewise.
61004         * modules/vprintf-posix (Depends-on): Likewise.
61005         * modules/vsnprintf-posix (Depends-on): Likewise.
61006         * modules/vsprintf-posix (Depends-on): Likewise.
61007         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61008         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61009         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61010         "no" on i386, x86_64, ia64.
61011         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61012         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61013         on i386, x86_64, ia64.
61014         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61015         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61016         on i386, x86_64, ia64.
61017         * tests/test-vasnprintf-posix.c: Include float.h.
61018         (LDBL80_WORDS): New macro.
61019         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61020         on i386, x86_64, ia64.
61021         * tests/test-vasprintf-posix.c: Include float.h.
61022         (LDBL80_WORDS): New macro.
61023         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61024         on i386, x86_64, ia64.
61025         * tests/test-snprintf-posix.c: Include float.h.
61026         * tests/test-sprintf-posix.c: Likewise.
61027         * tests/test-vsnprintf-posix.c: Likewise.
61028         * tests/test-vsprintf-posix.c: Likewise.
61029
61030 2007-06-05  Bruno Haible  <bruno@clisp.org>
61031
61032         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61033         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61034         non-IEEE numbers on i386, x86_64, ia64.
61035         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61036         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61037         * tests/test-isnanl.h: Include float.h.
61038         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61039
61040 2007-06-05  Bruno Haible  <bruno@clisp.org>
61041
61042         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61043         also the %a / %A. Handle the %a / %A code before this extra handling.
61044
61045 2007-06-05  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61048         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61049
61050 2007-06-05  Bruno Haible  <bruno@clisp.org>
61051
61052         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61053         typo in variable name.
61054
61055 2007-06-05  Eric Blake  <ebb9@byu.net>
61056
61057         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61058         Reported by Simon Josefsson.
61059
61060 2007-06-04  Bruno Haible  <bruno@clisp.org>
61061
61062         Avoid test failures on some PowerPC platforms.
61063         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61064         Define differently for PowerPC.
61065         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61066         Reported by Gary V. Vaughan <gary@gnu.org>.
61067
61068 2007-06-02  Bruno Haible  <bruno@clisp.org>
61069
61070         Fix test-stdint failure on FreeBSD/ia64.
61071         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61072         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61073         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61074         * doc/headers/stdint.texi: Update.
61075
61076 2007-06-01  Bruno Haible  <bruno@clisp.org>
61077
61078         * tests/test-binary-io.c (main): Pass a third argument to open().
61079         Reported by Gary V. Vaughan <gary@gnu.org>.
61080
61081 2007-06-01  Bruno Haible  <bruno@clisp.org>
61082
61083         * doc/functions/frexpl.texi: Update for mingw.
61084
61085 2007-06-01  Bruno Haible  <bruno@clisp.org>
61086
61087         * tests/test-lseek.c (main): Disable test of errno for invalid third
61088         argument.
61089         * doc/functions/lseek.texi: Update.
61090         Reported by Gary V. Vaughan <gary@gnu.org>.
61091
61092 2007-05-28  Bruno Haible  <bruno@clisp.org>
61093
61094         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61095
61096 2007-05-31  Eric Blake  <ebb9@byu.net>
61097
61098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61099         cross compiling.
61100
61101 2007-05-30  Eric Blake  <ebb9@byu.net>
61102         and Bruno Haible  <bruno@clisp.org>
61103
61104         Work around mingw test failures exposed by m4-1.4.9b.
61105         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61106         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61107         moment.
61108
61109 2007-05-30  Bruno Haible  <bruno@clisp.org>
61110
61111         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61112         assuming that they are closed. Needed on HP-UX 11.
61113
61114 2007-05-29  Bruno Haible  <bruno@clisp.org>
61115
61116         Fix a problem with #include_next.
61117         * lib/dirent_.h: Split the double-inclusion guard.
61118         * lib/fcntl_.h: Likewise.
61119         * lib/float_.h: Likewise.
61120         * lib/iconv_.h: Likewise.
61121         * lib/inttypes_.h: Likewise.
61122         * lib/locale_.h: Likewise.
61123         * lib/math_.h: Likewise.
61124         * lib/netinet_in_.h: Likewise.
61125         * lib/search_.h: Likewise.
61126         * lib/signal_.h: Likewise.
61127         * lib/stdint_.h: Likewise.
61128         * lib/stdio_.h: Likewise.
61129         * lib/stdlib_.h: Likewise.
61130         * lib/string_.h: Likewise.
61131         * lib/sys_select_.h: Likewise.
61132         * lib/sys_socket_.h: Likewise.
61133         * lib/sys_stat_.h: Likewise.
61134         * lib/sys_time_.h: Likewise.
61135         * lib/sysexits_.h: Likewise.
61136         * lib/time_.h: Likewise.
61137         * lib/unistd_.h: Likewise.
61138         * lib/wchar_.h: Likewise.
61139         * lib/wctype_.h: Likewise.
61140
61141 2007-05-29  Bruno Haible  <bruno@clisp.org>
61142
61143         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61144         for the moment.
61145
61146 2007-05-29  Bruno Haible  <bruno@clisp.org>
61147
61148         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61149         invocation.
61150         Reported by Eric Blake.
61151
61152 2007-05-29  Bruno Haible  <bruno@clisp.org>
61153
61154         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61155         compiling case.
61156
61157 2007-05-29  Eric Blake  <ebb9@byu.net>
61158             Bruno Haible  <bruno@clisp.org>
61159
61160         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61161         cross compiles.
61162
61163 2007-05-28  Eric Blake  <ebb9@byu.net>
61164
61165         * modules/closein-tests (test_closein_LDADD): Support test on
61166         cygwin with libtool.
61167
61168 2007-05-28  Bruno Haible  <bruno@clisp.org>
61169
61170         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61171         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61172         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61173         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61174         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61175         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61176         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61179
61180 2007-05-28  Eric Blake  <ebb9@byu.net>
61181
61182         Unconditionally include <config.h> in unit tests.
61183         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61184         * tests/test-allocsa.c, tests/test-arcfour.c,
61185         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61186         tests/test-array_list.c, tests/test-array_oset.c,
61187         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61188         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61189         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61190         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61191         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61192         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61193         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61194         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61195         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61196         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61197         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61198         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61199         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61200         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61201         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61202         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61203         test-md5.c, test-memmem.c, test-printf-posix.c,
61204         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61205         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61206         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61207         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61208         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61209         test-vasnprintf-posix2.c, test-vasnprintf.c,
61210         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61211         test-vfprintf-posix.c, test-vprintf-posix.c,
61212         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61213         test-xvasprintf.c: Likewise.
61214
61215 2007-05-28  Bruno Haible  <bruno@clisp.org>
61216
61217         * gnulib-tool (func_import): Remember the --with-tests command-line
61218         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61219         Reported by Eric Blake.
61220
61221 2007-05-28  Bruno Haible  <bruno@clisp.org>
61222
61223         * modules/ftell-tests: New file.
61224         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61225         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61226
61227         * lib/ftell.c: New file.
61228         * modules/ftell: New file.
61229         * m4/ftell.m4: New file.
61230         * doc/functions/ftell.texi: Update.
61231         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61232         REPLACE_FTELL.
61233         * lib/stdio_.h (rpl_ftell): New declaration.
61234         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61235         REPLACE_FTELL.
61236
61237 2007-05-28  Eric Blake  <ebb9@byu.net>
61238
61239         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61240
61241 2007-05-28  Bruno Haible  <bruno@clisp.org>
61242
61243         * modules/fseek-tests: New file.
61244         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61245         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61246
61247         * lib/fseek.c: New file.
61248         * modules/fseek: New file.
61249         * m4/fseek.m4: New file.
61250         * doc/functions/fseek.texi: Update.
61251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61252         REPLACE_FSEEK.
61253         * lib/stdio_.h (rpl_fseek): New declaration.
61254         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61255         REPLACE_FSEEK.
61256
61257 2007-05-28  Bruno Haible  <bruno@clisp.org>
61258
61259         * lib/stdio_.h (fflush): More comments.
61260
61261 2007-05-28  Bruno Haible  <bruno@clisp.org>
61262
61263         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61264         runtime test.
61265
61266 2007-05-28  Eric Blake  <ebb9@byu.net>
61267
61268         Improve lseek module.
61269         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61270         * lib/unistd_.h (lseek): Scale back link warning message.
61271         * tests/test-lseek.c: Beef up test.
61272         * tests/test-lseek.sh: Exercise more facets of lseek.
61273         Reported by Bruno Haible.
61274
61275 2007-05-28  Bruno Haible  <bruno@clisp.org>
61276
61277         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61278         to define.
61279
61280 2007-05-27  Bruno Haible  <bruno@clisp.org>
61281
61282         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61283
61284 2007-05-27  Bruno Haible  <bruno@clisp.org>
61285
61286         * modules/openmp: New file.
61287         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61288         Noah Misch.
61289
61290 2007-05-26  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/chdir-long (Depends-on): Add fchdir.
61293         * modules/chdir-safer (Depends-on): Likewise.
61294         * modules/fts (Depends-on): Likewise.
61295         * modules/fts-lgpl (Depends-on): Likewise.
61296         * modules/openat (Depends-on): Likewise.
61297         * modules/savewd (Depends-on): Likewise.
61298
61299 2007-05-24  Eric Blake  <ebb9@byu.net>
61300
61301         Fix lseek on mingw.
61302         * modules/lseek: New module.
61303         * m4/lseek.m4: New file.
61304         * lib/lseek.c: New file.
61305         * modules/lseek-tests: New file.
61306         * tests/test-lseek.c: New file.
61307         * tests/test-lseek.sh: New file.
61308         * MODULES.html.sh: Document lseek module.
61309         * modules/fflush (Depends-on): Add lseek, fseeko.
61310         * modules/fseeko (Depends-on): Likewise.
61311         * modules/ftello (Depends-on): Likewise.
61312         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61313         broken.
61314         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61315         broken.
61316         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61317         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61318         * lib/ftello.c (rpl_ftello): Likewise.
61319         * tests/test-fseeko.c (main): Test this.
61320         * tests/test-fseeko.sh: Likewise.
61321         * tests/test-ftello.c (main): Likewise.
61322         * tests/test-ftello.sh: Likewise.
61323         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61324         implies replacing fseek.
61325         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61326         HAVE_FTELLO.
61327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61328         * modules/unistd (Makefile.am): Likewise.
61329         * lib/unistd_.h (lseek): Declare a replacement.
61330         * doc/functions/lseek.texi (lseek): Document this fix.
61331         * doc/functions/fseek.texi (fseek): Likewise.
61332         * doc/functions/ftell.texi (ftell): Likewise.
61333
61334 2007-05-24  Bruno Haible  <bruno@clisp.org>
61335
61336         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61337         in the printed representation of a NaN.
61338         * tests/test-vasprintf-posix.c (test_function): Likewise.
61339         * tests/test-snprintf-posix.h (test_function): Likewise.
61340         * tests/test-sprintf-posix.h (test_function): Likewise.
61341         Reported by Eric Blake.
61342
61343 2007-05-23  Eric Blake  <ebb9@byu.net>
61344
61345         Fix fseeko/ftello on cygwin 1.5.24.
61346         * doc/functions/fseeko.texi (fseeko): Document the fix.
61347         * doc/functions/ftello.texi (ftello): Document the fix.
61348         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61349         * doc/functions/stdout.text (stdout): New file.
61350         * doc/functions/stderr.text (stderr): New file.
61351         * doc/gnulib.texi (Function Substitutes): Use new files.
61352         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61353         prior to 1.7.0.
61354         * tests/test-ftello.c (main): Likewise for ftello.
61355         * tests/test-fseeko.sh: New file.
61356         * tests/test-ftello.sh: New file.
61357         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61358         with seekable stdin.
61359         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61360         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61361         (gl_REPLACE_FSEEKO): New macro.
61362         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61363         * modules/fseeko (Files): Distribute fseeko.c.
61364         * modules/ftello (Files): Distribute ftello.c.
61365         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61366         mode.
61367         * lib/ftello.c (rpl_ftello): New file.
61368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61369         fseeko, ftello.
61370         (gl_STDIN_LARGE_OFFSET): New macro.
61371         * modules/stdio (Makefile.am): Perform the replacement.
61372         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61373
61374 2007-05-23  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61377         GNULIB_POSIXCHECK is defined.
61378
61379 2007-05-21  Bruno Haible  <bruno@clisp.org>
61380
61381         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61382         Check also the output for NaN arguments. When cross-compiling, guess
61383         no on IRIX.
61384         * lib/vasnprintf.c: Update comments.
61385         * tests/test-vasnprintf-posix.c (strisnan): New function.
61386         (test_function): Use it.
61387         * tests/test-vasprintf-posix.c (strisnan): New function.
61388         (test_function): Use it.
61389         * tests/test-snprintf-posix.h (strisnan): New function.
61390         (test_function): Use it.
61391         * tests/test-sprintf-posix.h (strisnan): New function.
61392         (test_function): Use it.
61393         Reported by Eric Blake.
61394
61395 2007-05-20  Bruno Haible  <bruno@clisp.org>
61396
61397         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61398         numbers that fails on BeOS.
61399         * doc/functions/frexpl.texi: Update.
61400
61401 2007-05-20  Jim Meyering  <jim@meyering.net>
61402
61403         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61404         forced upon us by glibc-2.6.
61405
61406 2007-05-20  Bruno Haible  <bruno@clisp.org>
61407
61408         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61409         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61410         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61411         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61412         NEED_PRINTF_INFINITE.
61413         (is_infinitel): New function.
61414         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61415         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61416         gl_PREREQ_VASNPRINTF_INFINITE.
61417         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61418         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61419         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61420         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61421         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61422         gl_PREREQ_VASNPRINTF_INFINITE.
61423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61424         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61425         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61426         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61427         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61430         * doc/functions/fprintf.texi: Update.
61431         * doc/functions/printf.texi: Update.
61432         * doc/functions/snprintf.texi: Update.
61433         * doc/functions/sprintf.texi: Update.
61434         * doc/functions/vfprintf.texi: Update.
61435         * doc/functions/vprintf.texi: Update.
61436         * doc/functions/vsnprintf.texi: Update.
61437         * doc/functions/vsprintf.texi: Update.
61438
61439 2007-05-20  Bruno Haible  <bruno@clisp.org>
61440
61441         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61442         was not found in libc.
61443         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61444
61445 2007-05-20  Bruno Haible  <bruno@clisp.org>
61446
61447         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61448         printed as "-nan" instead of "nan".
61449         * tests/test-vasprintf-posix.c (test_function): Likewise.
61450         * tests/test-snprintf-posix.h (test_function): Likewise.
61451         * tests/test-sprintf-posix.h (test_function): Likewise.
61452         Needed for HP-UX 11.
61453
61454 2007-05-20  Jim Meyering  <jim@meyering.net>
61455
61456         Fix buggy test for the fchownat-deref bug.
61457         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61458         symlink required for the run-test.  Without it, this test would
61459         always declare that fchownat doesn't work, and client code would
61460         unnecessarily use the replacement function with fixed libc.
61461         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61462         Reported by Greg Schafer.
61463
61464 2007-05-19  Bruno Haible  <bruno@clisp.org>
61465
61466         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61467         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61468         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61469         Needed for IRIX 6.5 and Solaris 2.5.1.
61470
61471 2007-05-19  Bruno Haible  <bruno@clisp.org>
61472
61473         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61474         (test_function): Skip tests involving -0.0 on platforms where
61475         -0.0 = 0.0.
61476         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61477         (test_function): Skip tests involving -0.0 on platforms where
61478         -0.0 = 0.0.
61479         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61480         (test_function): Skip tests involving -0.0 on platforms where
61481         -0.0 = 0.0.
61482         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61483         (test_function): Skip tests involving -0.0 on platforms where
61484         -0.0 = 0.0.
61485         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61486         tests.
61487         * tests/test-printf-posix.h (test_function): Likewise.
61488         * tests/test-printf-posix.output: Remove all -0.0 related results.
61489         Needed for IRIX 6.5.
61490
61491 2007-05-19  Bruno Haible  <bruno@clisp.org>
61492
61493         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61494         printed as "nan0x7fffffff" instead of "nan".
61495         * tests/test-vasprintf-posix.c (test_function): Likewise.
61496         * tests/test-snprintf-posix.h (test_function): Likewise.
61497         * tests/test-sprintf-posix.h (test_function): Likewise.
61498         * tests/test-fprintf-posix.h (NaN): Remove macro.
61499         (test_function): Remove all NaN related tests.
61500         * tests/test-printf-posix.h (NaN): Remove macro.
61501         (test_function): Remove all NaN related tests.
61502         * tests/test-printf-posix.output: Remove all NaN related results.
61503         Needed for IRIX 6.5.
61504
61505 2007-05-19  Bruno Haible  <bruno@clisp.org>
61506
61507         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61508         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61509
61510 2007-05-19  Bruno Haible  <bruno@clisp.org>
61511
61512         * lib/float_.h: New file.
61513         * m4/float_h.m4: New file.
61514         * modules/float: New file.
61515         * modules/isnanl (Dependencies): Add float.
61516         * modules/isnanl-nolibm (Dependencies): Likewise.
61517         * modules/mathl (Dependencies): Likewise.
61518         * modules/printf-frexpl (Dependencies): Likewise.
61519         * modules/signbit (Dependencies): Likewise.
61520         * modules/vasnprintf (Dependencies): Likewise.
61521         * doc/headers/float.texi: Update.
61522
61523 2007-05-19  Jim Meyering  <jim@meyering.net>
61524
61525         * lib/utimens.c (gl_futimens): Rename from futimens,
61526         now that glibc-2.6 declares futimens.
61527         * lib/utimens.h: Likewise.
61528
61529 2007-05-19  Bruno Haible  <bruno@clisp.org>
61530
61531         Avoid test failures on mingw.
61532         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61533         * tests/test-printf-posix.sh: Likewise.
61534         * tests/test-vfprintf-posix.sh: Likewise.
61535         * tests/test-vprintf-posix.sh: Likewise.
61536
61537 2007-05-19  Bruno Haible  <bruno@clisp.org>
61538
61539         Fix *printf result for NaN, Inf, -0.0 on mingw.
61540         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61541         * lib/vasnprintf.c: Include math.h and isnan.h.
61542         (is_infinite_or_zero): New function.
61543         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61544         values in the %f, %F, %e, %E, %g, %G directives.
61545         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61546         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61547         gl_PRINTF_INFINITE and test its result. Invoke
61548         gl_PREREQ_VASNPRINTF_INFINITE.
61549         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61550         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61551         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61553         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61554         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61555         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61556         * doc/functions/fprintf.texi: Update.
61557         * doc/functions/printf.texi: Update.
61558         * doc/functions/snprintf.texi: Update.
61559         * doc/functions/sprintf.texi: Update.
61560         * doc/functions/vfprintf.texi: Update.
61561         * doc/functions/vprintf.texi: Update.
61562         * doc/functions/vsnprintf.texi: Update.
61563         * doc/functions/vsprintf.texi: Update.
61564
61565 2007-05-19  Bruno Haible  <bruno@clisp.org>
61566
61567         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61568         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61569         Instead of multiplying with 10^k, set extra_zeroes to k.
61570         (scale10_round_long_double): Remove function.
61571
61572 2007-05-18  Bruno Haible  <bruno@clisp.org>
61573
61574         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61575         introduced on 2007-05-06.
61576
61577 2007-05-18  Bruno Haible  <bruno@clisp.org>
61578
61579         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61580         %g directives.
61581         * tests/test-vasprintf-posix.c (test_function): Likewise.
61582         * tests/test-snprintf-posix.h (test_function): Likewise.
61583         * tests/test-sprintf-posix.h (test_function): Likewise.
61584
61585 2007-05-18  Bruno Haible  <bruno@clisp.org>
61586
61587         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61588         (strmatch): New function.
61589         (test_function): Test the %f directive on numbers of various exponents.
61590         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61591         (strmatch): New function.
61592         (test_function): Test the %f directive on numbers of various exponents.
61593         * tests/test-snprintf-posix.h (strmatch): New function.
61594         (test_function): Test the %f directive on numbers of various exponents.
61595         * tests/test-sprintf-posix.h (strmatch): New function.
61596         (test_function): Test the %f directive on numbers of various exponents.
61597         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61598         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61599         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61600         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61601
61602 2007-05-18  Bruno Haible  <bruno@clisp.org>
61603
61604         Add support for 'long double' number output.
61605         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61606         * lib/vasnprintf.c: Include math.h and float+.h.
61607         (mp_limb_t): New type.
61608         (GMP_LIMB_BITS): New macro.
61609         (mp_twolimb_t): New type.
61610         (GMP_TWOLIMB_BITS): New macro.
61611         (mpn_t): New type.
61612         (multiply, divide, convert_to_decimal, decode_long_double,
61613         scale10_round_long_double, scale10_round_decimal_long_double,
61614         floorlog10l): New functions.
61615         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61616         for the %f, %F, %e, %E, %g, %G directives.
61617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61619         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61620         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61628         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61629         * modules/snprintf-posix (Depends-on): Likewise.
61630         * modules/sprintf-posix (Depends-on): Likewise.
61631         * modules/vasnprintf-posix (Depends-on): Likewise.
61632         * modules/vasprintf-posix (Depends-on): Likewise.
61633         * modules/vfprintf-posix (Depends-on): Likewise.
61634         * modules/vsnprintf-posix (Depends-on): Likewise.
61635         * modules/vsprintf-posix (Depends-on): Likewise.
61636         * modules/vasnprintf (Files): Add lib/float+.h.
61637         * doc/functions/fprintf.texi: Update.
61638         * doc/functions/printf.texi: Update.
61639         * doc/functions/snprintf.texi: Update.
61640         * doc/functions/sprintf.texi: Update.
61641         * doc/functions/vfprintf.texi: Update.
61642         * doc/functions/vprintf.texi: Update.
61643         * doc/functions/vsnprintf.texi: Update.
61644         * doc/functions/vsprintf.texi: Update.
61645
61646 2007-05-18  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61649
61650 2007-05-18  Bruno Haible  <bruno@clisp.org>
61651
61652         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61653         for printing 64-bit integers. Needed for mingw.
61654
61655 2007-05-18  Bruno Haible  <bruno@clisp.org>
61656
61657         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61658         gl_FUNC_FREXPL_WORKS.
61659         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61660
61661 2007-05-18  Bruno Haible  <bruno@clisp.org>
61662
61663         * modules/frexpl-nolibm-tests: New file.
61664
61665         * modules/frexpl-nolibm: New file.
61666         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61667
61668 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61671         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61672         GCC 4.2, which otherwise issues a lot of warnings.
61673         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61674         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61675         Likewise.
61676         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61677         * modules/iconv_open (iconv.h): Likewise.
61678         * modules/locale (locale.h): Likewise.
61679         * modules/netinet_in (netinet/in.h): Likewise.
61680         * modules/sys_select (sys_select.h): Likewise.
61681         * modules/sys_socket (sys/socket.h): Likewise.
61682         * modules/sys_stat (sys/stat.h): Likewise.
61683         * modules/sysexits (sysexits.h): Likewise.
61684         * modules/unistd (unistd.h): Likewise.
61685
61686 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61687
61688         * modules/closein-tests (Makefile.am): Distribute
61689         `test-closein.sh'.
61690
61691 2007-05-17  Bruno Haible  <bruno@clisp.org>
61692
61693         * tests/test-printf-posix.output: Renamed from
61694         tests/test-fprintf-posix.out.
61695         * modules/fprintf-posix-tests: Update.
61696         * modules/printf-posix-tests: Update.
61697         * modules/vfprintf-posix-tests: Update.
61698         * modules/vprintf-posix-tests: Update.
61699         * tests/test-fprintf-posix.sh: Update.
61700         * tests/test-printf-posix.sh: Update.
61701         * tests/test-vfprintf-posix.sh: Update.
61702         * tests/test-vprintf-posix.sh: Update.
61703         Reported by Ralf Wildenhues.
61704
61705 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61706
61707         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61708         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61709         GCC 4.2, which otherwise issues a lot of warnings.
61710         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61711         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61712         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61713         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61714         it should no longer be needed.
61715         * lib/string_.h: Likewise.
61716         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61717         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61718         * modules/inttypes (inttypes.h): Likewise.
61719         * modules/math (math.h): Likewise.
61720         * modules/search (search.h): Likewise.
61721         * modules/signal (signal.h): Likewise.
61722         * modules/stdint (stdint.h): Likewise.
61723         * modules/stdio (stdio.h): Likewise.
61724         * modules/stdlib (stdlib.h): Likewise.
61725         * modules/string (string.h): Likewise.
61726         * modules/sys_time (sys/time.h): Likewise.
61727         * modules/time (time.h): Likewise.
61728         * modules/wchar (wchar.h): Likewise.
61729         * modules/wctype (wtype.h): Likewise.
61730
61731 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61732
61733         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61734
61735 2007-05-13  Bruno Haible  <bruno@clisp.org>
61736
61737         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61738         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61739         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61740         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61741         (gl_PREREQ_STRTOK_R): Don't require it here.
61742
61743 2007-05-13  Bruno Haible  <bruno@clisp.org>
61744
61745         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61746         when used in C++ mode.
61747
61748 2007-05-12  Bruno Haible  <bruno@clisp.org>
61749
61750         * lib/linebuffer.h: Tweak doc.
61751         * lib/linebuffer.c: Likewise.
61752
61753 2007-05-12  James Youngman  <jay@gnu.org>
61754
61755         * lib/linebuffer.c (readlinebuffer_delim): New function,
61756         like readlinebuffer, but use a caller-specified delimiter.
61757         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61758         as the delimiter.
61759         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61760
61761 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61762
61763         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61764         * modules/openat (Files): Remove openat-die.c.
61765         (Depends-on): Add openat-die.
61766         * modules/openat-die: New module.
61767
61768 2007-05-06  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61771         Update with info about Cygwin.
61772         * doc/functions/fprintf.texi: Update.
61773         * doc/functions/printf.texi: Update.
61774         * doc/functions/snprintf.texi: Update.
61775         * doc/functions/sprintf.texi: Update.
61776         * doc/functions/vfprintf.texi: Update.
61777         * doc/functions/vprintf.texi: Update.
61778         * doc/functions/vsnprintf.texi: Update.
61779         * doc/functions/vsprintf.texi: Update.
61780         Reported by Eric Blake.
61781
61782 2007-05-06  Bruno Haible  <bruno@clisp.org>
61783
61784         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61785         padding ourselves for the floating-point directives.
61786         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61787         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61788         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61789         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61790         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61791         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61793         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61794         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61795         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61796         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61798         * tests/test-snprintf-posix.h (test_function): Also check the width
61799         and some flags in the %f directive.
61800         * tests/test-sprintf-posix.h (test_function): Likewise.
61801         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61802         * tests/test-vasprintf-posix.c (test_function): Likewise.
61803         * doc/functions/fprintf.texi: Update.
61804         * doc/functions/printf.texi: Update.
61805         * doc/functions/snprintf.texi: Update.
61806         * doc/functions/sprintf.texi: Update.
61807         * doc/functions/vfprintf.texi: Update.
61808         * doc/functions/vprintf.texi: Update.
61809         * doc/functions/vsnprintf.texi: Update.
61810         * doc/functions/vsprintf.texi: Update.
61811
61812 2007-05-06  Bruno Haible  <bruno@clisp.org>
61813
61814         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61815         pass the ' flag character to sprintf or snprintf.
61816         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61817         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61819         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61820         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61821         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61822         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61823         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61824         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61825         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61827         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61828         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61829         flag.
61830         * tests/test-sprintf-posix.h (test_function): Likewise.
61831         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61832         * tests/test-vasprintf-posix.c (test_function): Likewise.
61833         * doc/functions/fprintf.texi: Update.
61834         * doc/functions/printf.texi: Update.
61835         * doc/functions/snprintf.texi: Update.
61836         * doc/functions/sprintf.texi: Update.
61837         * doc/functions/vfprintf.texi: Update.
61838         * doc/functions/vprintf.texi: Update.
61839         * doc/functions/vsnprintf.texi: Update.
61840         * doc/functions/vsprintf.texi: Update.
61841
61842 2007-05-01  Bruno Haible  <bruno@clisp.org>
61843
61844         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61845
61846 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61849         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61850
61851 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61854         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61855         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61856
61857 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61858
61859         * lib/argp-help.c (struct hol_entry): New member `ord'.
61860         (HOL_ENTRY_PTRCMP): Use ord for comparison
61861         (hol_sort): Initialize ord.
61862
61863 2007-05-01  Bruno Haible  <bruno@clisp.org>
61864
61865         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61866         Reported by Eric Blake.
61867         * doc/gnulib.texi (Function Substitutes): Update.
61868
61869 2007-05-01  Bruno Haible  <bruno@clisp.org>
61870
61871         * doc/functions.texi: Remove file, now redundant through
61872         doc/functions/*.texi.
61873
61874 2007-05-01  Bruno Haible  <bruno@clisp.org>
61875
61876         * modules/argp (Depends-on): Add sleep.
61877
61878 2007-05-01  Bruno Haible  <bruno@clisp.org>
61879
61880         * modules/sleep-tests: New file.
61881         * tests/test-sleep.c: New file.
61882
61883         * modules/sleep: New file.
61884         * lib/sleep.c: New file.
61885         * m4/sleep.m4: New file.
61886         * lib/unistd_.h (sleep): New declaration.
61887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61888         HAVE_SLEEP.
61889         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61890         * doc/functions/sleep.texi: Document the sleep module.
61891
61892 2007-05-01  Bruno Haible  <bruno@clisp.org>
61893
61894         * lib/sigprocmask.h: Remove file.
61895         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61896         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61897         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61898         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61899         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61900         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61901         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61902         HAVE_SIGSET_T as a shell variable.
61903         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61904         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61905         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61906         (Depends-on): Add signal. Remove verify.
61907         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61908         (Include): Mention <signal.h> instead of sigprocmask.h.
61909         * NEWS: Mention the change.
61910         * lib/fatal-signal.c: Don't include sigprocmask.h.
61911
61912 2007-05-01  Bruno Haible  <bruno@clisp.org>
61913
61914         * modules/signal: New file.
61915         * lib/signal_.h: New file.
61916         * m4/signal_h.m4: New file.
61917
61918 2007-05-01  Bruno Haible  <bruno@clisp.org>
61919
61920         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61921         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61922         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61923         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61924
61925 2007-05-01  Bruno Haible  <bruno@clisp.org>
61926
61927         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61928         configure time.
61929         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61930         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61931         * modules/sys_stat (Makefile.am): Substitute their values into
61932         sys/stat.h.
61933
61934 2007-05-01  Bruno Haible  <bruno@clisp.org>
61935
61936         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61937         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61938         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61939
61940 2007-05-01  Bruno Haible  <bruno@clisp.org>
61941
61942         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61943         'assert' module here.
61944
61945 2007-05-01  Bruno Haible  <bruno@clisp.org>
61946
61947         * doc/functions/*.texi: New files.
61948         * doc/functions/google-ranking.txt: New file.
61949         * doc/gnulib.texi (Function Substitutes): New chapter.
61950         (ctime, inet_ntoa): Remove sections.
61951         * doc/ctime.texi: Remove file.
61952         * doc/inet_ntoa.texi: Remove file.
61953         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61954         dependencies.
61955         (%.info): New rule, specifying a --reference-limit.
61956
61957 2007-05-01  Bruno Haible  <bruno@clisp.org>
61958
61959         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61960
61961 2007-05-01  Bruno Haible  <bruno@clisp.org>
61962
61963         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61964         the portability of 'mkdir' to mingw systems.
61965
61966 2007-05-01  Bruno Haible  <bruno@clisp.org>
61967
61968         * doc/headers/google-ranking.txt: New file.
61969
61970 2007-04-30  Eric Blake  <ebb9@byu.net>
61971
61972         Prefer fseeko to fseek.
61973         * modules/getpass (Depends-on): Add fseeko.
61974         * lib/getpass.c (getpass): Use fseeko, not fseek.
61975
61976 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61977
61978         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61979         assumes the sorting is stable, while most qsort implementations
61980         are not.  Use argument addresses to ensure they never compare as
61981         equal.
61982
61983         * tests/test-argp-2.sh (usage-indent test): Fix output
61984         (func_compare): Restore diff options
61985         * tests/test-argp.c: Restore #include "progname.h"
61986
61987 2007-04-29  Bruno Haible  <bruno@clisp.org>
61988
61989         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61990         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61991         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61992         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61993         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61994         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61995         (TESTS, check_PROGRAMS): Add test-snprintf.
61996         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61997         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61998         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61999         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62000         assertions that fail on HP-UX, OSF/1, or IRIX.
62001         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62002
62003 2007-04-29  Bruno Haible  <bruno@clisp.org>
62004
62005         * MODULES.html.sh (posix_functions): Remove 'contents'.
62006
62007 2007-04-29  Karl Berry  <karl@gnu.org>
62008
62009         * config/srclist.txt (gendocs_template_min): new entry.
62010
62011 2007-04-29  Bruno Haible  <bruno@clisp.org>
62012
62013         Work around fpurge bug on BSD systems.
62014         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62015         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62016         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62017         fpurge to rpl_fpurge if the system already has this function.
62018         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62019         the case where the system already has this function. Correct invariants
62020         on BSD systems.
62021         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62022         BSD systems.
62023
62024 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62025
62026         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62027         proposed by Sven Verdoolaege.
62028
62029         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62030         options.
62031         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62032         (usage and help tests): Update
62033
62034 2007-04-29  Bruno Haible  <bruno@clisp.org>
62035
62036         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62037         Print more information in case of failure. Disable a test on BeOS.
62038
62039 2007-04-29  Bruno Haible  <bruno@clisp.org>
62040
62041         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62042         This helps debugging on systems on which no gdb is available.
62043
62044 2007-04-29  Bruno Haible  <bruno@clisp.org>
62045
62046         * lib/freading.h: Improve comments.
62047         * lib/fwriting.h: Likewise.
62048         * tests/test-freading.c (main): Don't check freading immediately after
62049         repositioning. Needed for glibc.
62050
62051 2007-04-29  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/freading.c (freading): Trivial simplification.
62054
62055 2007-04-28  Bruno Haible  <bruno@clisp.org>
62056
62057         * tests/test-fwriting.c (main): Also test the interaction between
62058         fflush and fwriting.
62059         * modules/fwriting-tests (Depends-on): Add fflush.
62060
62061         * tests/test-freading.c (main): Also test the interaction between
62062         fflush and freading.
62063         * modules/freading-tests (Depends-on): Add fflush.
62064
62065 2007-04-28  Bruno Haible  <bruno@clisp.org>
62066
62067         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62068         fseeko and ftello.
62069         Suggested by Eric Blake.
62070
62071 2007-04-28  Jim Meyering  <jim@meyering.net>
62072
62073         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62074         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62075         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62076
62077 2007-04-27  Eric Blake  <ebb9@byu.net>
62078
62079         * doc/headers/assert.texi (assert.h): Document assert module use.
62080
62081 2007-04-27  Bruno Haible  <bruno@clisp.org>
62082
62083         * doc/headers/*.texi: New files.
62084         * doc/gnulib.texi (Header File Substitutes): New chapter.
62085         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62086         dependencies.
62087         (standards.info ,standards.html, standards.dvi): Update dependencies.
62088         (mostlyclean, clean): New targets.
62089
62090 2007-04-27  Bruno Haible  <bruno@clisp.org>
62091
62092         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62093         * modules/sysexits (Files, Makefile.am): Update.
62094
62095         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62096         * modules/sys_socket (Files, Makefile.am): Update.
62097
62098         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62099         * modules/sys_stat (Files, Makefile.am): Update.
62100
62101 2007-04-27  Eric Blake  <ebb9@byu.net>
62102
62103         * lib/freading.h: Improve comments.
62104         * lib/fwriting.h: Likewise.
62105         * lib/fflush.c: Likewise.
62106
62107         Fix closein for mingw.
62108         * modules/closein-tests: Add tests for closein.
62109         * tests/test-closein.c: New file.
62110         * tests/test-closein.sh: Likewise.
62111         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62112         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62113
62114 2007-04-27  Bruno Haible  <bruno@clisp.org>
62115
62116         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62117         version is < 6.
62118         * lib/math_.h [__DECC]: Likewise.
62119         * lib/stdio_.h [__DECC]: Likewise.
62120         * lib/stdlib_.h [__DECC]: Likewise.
62121         * lib/string_.h [__DECC]: Likewise.
62122         * lib/time_.h [__DECC]: Likewise.
62123         * lib/wchar_.h [__DECC]: Likewise.
62124         * lib/wctype_.h [__DECC]: Likewise.
62125
62126 2007-04-27  Bruno Haible  <bruno@clisp.org>
62127
62128         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62129
62130 2007-04-27  Bruno Haible  <bruno@clisp.org>
62131
62132         * lib/fflush.c: Add comments.
62133         * modules/fpurge-tests (Depends-on): Add fflush.
62134         * modules/freadable-tests (Depends-on): Likewise.
62135         * modules/fwritable-tests (Depends-on): Likewise.
62136
62137 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62138
62139         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62140         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62141         Report by Bruno Haible <bruno@clisp.org>.
62142
62143 2007-04-26  Eric Blake  <ebb9@byu.net>
62144
62145         Fix fflush on mingw.
62146         * modules/fflush (Depends-on): Add freading.
62147         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62148         but unread data.
62149
62150 2007-04-26  Eric Blake  <ebb9@byu.net>
62151         and Bruno Haible  <bruno@clisp.org>
62152
62153         Implement freading and fwriting.
62154         * lib/freading.c: New file.
62155         * lib/freading.h: Likewise.
62156         * m4/freading.m4: Likewise.
62157         * modules/freading: Likewise.
62158         * modules/freading-tests: Likewise.
62159         * tests/test-freading.c: Likewise.
62160         * lib/fwriting.c: New file.
62161         * lib/fwriting.h: Likewise.
62162         * m4/fwriting.m4: Likewise.
62163         * modules/fwriting: Likewise.
62164         * modules/fwriting-tests: Likewise.
62165         * tests/test-fwriting.c: Likewise.
62166         * MODULES.html.sh (File stream based Input/Output): Mention them.
62167
62168 2007-04-26  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62171         'long' when we assume it.
62172         Suggested by Eric Blake.
62173
62174 2007-04-26  Bruno Haible  <bruno@clisp.org>
62175
62176         Ensure fseeko, ftello are declared on glibc systems.
62177         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62178         * modules/fseeko (configure.ac-early): Likewise.
62179         * modules/ftello (configure.ac-early): Likewise.
62180         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62181         AC_FUNC_FSEEKO for this.
62182         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62183         (gl_CHECK_FSEEKO): Remove macro.
62184
62185 2007-04-26  Bruno Haible  <bruno@clisp.org>
62186
62187         * tests/test-fflush.c (main): Also check the ftell result after
62188         fflush and fseek/fseeko.
62189         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62190         file descriptor position cache in the stream.
62191         * lib/fseeko.c (rpl_fseeko): Likewise.
62192
62193 2007-04-26  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/fflush-tests (Depends-on): Add fseeko.
62196
62197 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62198             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62199
62200         * lib/argz_.h: ensure error_t definition is obtained in same
62201         mechanism system argz.h would have.
62202         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62203         argz facilities are known bad.  Err on the side of caution if
62204         cross-compiling.
62205
62206 2007-04-25  Eric Blake  <ebb9@byu.net>
62207
62208         * lib/fpurge.c (includes): Use stdlib.h for free.
62209         * tests/test-fflush.c (main): Also test fflush-fseeko.
62210
62211 2007-04-25  Bruno Haible  <bruno@clisp.org>
62212
62213         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62214         * lib/fseeko.c: New file.
62215         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62216         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62217         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62218         gl_FUNC_FSEEKO.
62219         (gl_FUNC_FSEEKO): Invoke it.
62220         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62221         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62222         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62223
62224 2007-04-25  Bruno Haible  <bruno@clisp.org>
62225
62226         * modules/fflush (Depends-on): Add ftello.
62227
62228 2007-04-25  Bruno Haible  <bruno@clisp.org>
62229
62230         * modules/ftello-tests: New file.
62231         * tests/test-ftello.c: New file.
62232
62233         * modules/ftello: New file.
62234         * m4/ftello.m4: New file.
62235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62236         HAVE_FTELLO.
62237         * lib/stdio_.h (ftello): New declaration.
62238         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62239         HAVE_FTELLO.
62240
62241 2007-04-25  Bruno Haible  <bruno@clisp.org>
62242
62243         * modules/fseeko-tests: New file.
62244         * tests/test-fseeko.c: New file.
62245
62246         * modules/fseeko: New file.
62247         * m4/fseeko.m4: New file.
62248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62249         HAVE_FSEEKO.
62250         * lib/stdio_.h (fseeko): New declaration.
62251         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62252         HAVE_FSEEKO.
62253
62254 2007-04-25  Bruno Haible  <bruno@clisp.org>
62255
62256         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62257
62258 2007-04-25  Bruno Haible  <bruno@clisp.org>
62259
62260         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62261         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62262         * tests/test-unistd.c: Likewise.
62263         * tests/test-fcntl.c: Likewise.
62264
62265 2007-04-23  Eric Blake  <ebb9@byu.net>
62266
62267         * lib/fflush.c: Fix missing include.
62268         Reported by Bruno Haible.
62269
62270 2007-04-23  Bruno Haible  <bruno@clisp.org>
62271
62272         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62273         Reported by Eric Blake.
62274
62275 2007-04-23  Bruno Haible  <bruno@clisp.org>
62276
62277         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62278
62279 2007-04-23  Bruno Haible  <bruno@clisp.org>
62280
62281         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62282
62283 2007-04-23  Bruno Haible  <bruno@clisp.org>
62284
62285         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62286         Needed on HP-UX 11.
62287
62288 2007-04-16  Eric Blake  <ebb9@byu.net>
62289
62290         Make fflush rely on fpurge.
62291         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62292         open coding all variants.
62293         * modules/fflush (Depends-on): Add fpurge and unistd.
62294         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62295         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62296
62297         Fix --with-tests compilation on cygwin.
62298         * modules/argmatch-tests (Makefile.am): List gnulib library first
62299         in LDADD.
62300         * modules/argp-tests (Makefile.am): Likewise.
62301         * modules/array-list-tests (Makefile.am): Likewise.
62302         * modules/array-oset-tests (Makefile.am): Likewise.
62303         * modules/avltree-list-tests (Makefile.am): Likewise.
62304         * modules/avltree-oset-tests (Makefile.am): Likewise.
62305         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62306         * modules/carray-list-tests (Makefile.am): Likewise.
62307         * modules/dirname-tests (Makefile.am): Likewise.
62308         * modules/frexp-tests (Makefile.am): Likewise.
62309         * modules/isnanl-tests (Makefile.am): Likewise.
62310         * modules/linked-list-tests (Makefile.am): Likewise.
62311         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62312         * modules/lock-tests (Makefile.am): Likewise.
62313         * modules/rbtree-list-tests (Makefile.am): Likewise.
62314         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62315         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62316         * modules/tls-tests (Makefile.am): Likewise.
62317         * modules/tsearch-tests (Makefile.am): Likewise.
62318         * modules/xvasprintf-tests (Makefile.am): Likewise.
62319
62320         Fix fpurge for cygwin.
62321         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62322         value.
62323         * modules/fpurge-tests (Depends-on): Clean up trash.
62324
62325 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62326
62327         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62328
62329         * m4/autobuild.m4: Re-indent.
62330
62331 2007-04-13  Bruno Haible  <bruno@clisp.org>
62332
62333         * modules/fpurge-tests: New file.
62334         * tests/test-fpurge.c: New file.
62335
62336         * modules/fpurge: New file.
62337         * lib/fpurge.h: New file.
62338         * lib/fpurge.c: New file.
62339         * m4/fpurge.m4: New file.
62340
62341 2007-04-13  Bruno Haible  <bruno@clisp.org>
62342
62343         * modules/fbufmode-tests: New file.
62344         * tests/test-fbufmode.c: New file.
62345
62346         * modules/fbufmode: New file.
62347         * lib/fbufmode.h: New file.
62348         * lib/fbufmode.c: New file.
62349         * m4/fbufmode.m4: New file.
62350
62351 2007-04-13  Bruno Haible  <bruno@clisp.org>
62352
62353         * modules/fwritable-tests: New file.
62354         * tests/test-fwritable.c: New file.
62355
62356         * modules/fwritable: New file.
62357         * lib/fwritable.h: New file.
62358         * lib/fwritable.c: New file.
62359         * m4/fwritable.m4: New file.
62360
62361 2007-04-13  Bruno Haible  <bruno@clisp.org>
62362
62363         * modules/freadable-tests: New file.
62364         * tests/test-freadable.c: New file.
62365
62366         * modules/freadable: New file.
62367         * lib/freadable.h: New file.
62368         * lib/freadable.c: New file.
62369         * m4/freadable.m4: New file.
62370
62371 2007-04-13  Bruno Haible  <bruno@clisp.org>
62372
62373         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62374         MOSTLYCLEANFILES.
62375
62376 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62377
62378         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62379         gzip bootstrap.conf to avoid dragging in i18n machinery.
62380         (gnulib_tool_option): Use it.
62381
62382 2007-04-13  Bruno Haible  <bruno@clisp.org>
62383
62384         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62385         %F directives.
62386         * tests/test-vasprintf-posix.c (test_function): Likewise.
62387         * tests/test-snprintf-posix.h (test_function): Likewise.
62388         * tests/test-sprintf-posix.h (test_function): Likewise.
62389         * tests/test-fprintf-posix.h (test_function): Likewise.
62390         * tests/test-printf-posix.h (test_function): Likewise.
62391         * tests/test-fprintf-posix.out: Likewise.
62392
62393 2007-04-13  Bruno Haible  <bruno@clisp.org>
62394
62395         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62396         * modules/tls-tests (configure.ac): Likewise.
62397         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62398
62399 2007-04-13  Bruno Haible  <bruno@clisp.org>
62400
62401         * lib/tls.c (glthread_tls_get): Fix return type.
62402         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62403
62404 2007-04-12  Eric Blake  <ebb9@byu.net>
62405
62406         * modules/gettime (Depends-on): Remove gettime.
62407         Reported by Dmitry V. Levin.
62408
62409 2007-04-12  Bruno Haible  <bruno@clisp.org>
62410
62411         * modules/fflush (Include): Mention <stdio.h>.
62412         * modules/strtoimax (Include): Mention <inttypes.h>.
62413         * modules/strtoumax (Include): Likewise.
62414
62415 2007-04-12  Eric Blake  <ebb9@byu.net>
62416
62417         * .cvsignore: New file.
62418         * .gitignore: Likewise.
62419
62420 2007-04-12  Bruno Haible  <bruno@clisp.org>
62421
62422         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62423         not before, since $(LDADD) often contains libgnu.a.
62424         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62425         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62426         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62427         Needed on Cygwin.
62428
62429 2007-04-12  Eric Blake  <ebb9@byu.net>
62430
62431         Work around glibc's failure to flush stdin on fclose.
62432         * lib/closein.c (close_stdin): Flush stdin before closing.
62433
62434         Work around glibc's failure to reset seekable stdin on exit.
62435         * modules/closein: New module.
62436         * lib/closein.c: New file.
62437         * lib/closein.h: Likewise.
62438         * m4/closein.m4: Likewise.
62439         * MODULES.html.sh (File stream based Input/Output): Document it.
62440
62441 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62442
62443         * gnulib-tool: Rename generated 'autobuild' script to
62444         'do-autobuild' in --create-megatestdir output.
62445
62446         * doc/gnulib.texi (Build robot for gnulib): Fix.
62447
62448 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62449
62450         * modules/sysexits (Depends-on): Add absolute-header.
62451
62452 2007-04-12  Eric Blake  <ebb9@byu.net>
62453
62454         No need to preserve errno on success.
62455         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62456         Reported by Bruno Haible.
62457
62458 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62459
62460         * MODULES.html.sh (Support for maintaining and releasing
62461         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62462
62463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62464
62465         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62466
62467 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62468
62469         * modules/autobuild: New module.
62470
62471         * m4/autobuild.m4: New file.
62472
62473 2007-04-11  Bruno Haible  <bruno@clisp.org>
62474
62475         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62476         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62478         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62479         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62480         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62481         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62482         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62483         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62484         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62485         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62486         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62487         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62488         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62489         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62490         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62492         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62493         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62494         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62495         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62496         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62497         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62498         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62499         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62500         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62501         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62502         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62503         Reported by Eric Blake.
62504
62505 2007-04-11  Bruno Haible  <bruno@clisp.org>
62506
62507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62508
62509 2007-04-10  Bruno Haible  <bruno@clisp.org>
62510
62511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62512         for NaN and Infinity. Needed on FreeBSD 6.1.
62513         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62514         regarding results for "%010a" of Infinity and NaN.
62515         * tests/test-vasprintf-posix.c (test_function): Likewise.
62516         * tests/test-snprintf-posix.h (test_function): Likewise.
62517         * tests/test-sprintf-posix.h (test_function): Likewise.
62518         * tests/test-fprintf-posix.h (test_function): Likewise.
62519         * tests/test-printf-posix.h (test_function): Likewise.
62520         * tests/test-fprintf-posix.out: Likewise.
62521
62522 2007-04-10  Bruno Haible  <bruno@clisp.org>
62523
62524         * modules/locale-tests: New file.
62525         * tests/test-locale.c: New file.
62526
62527         * modules/locale: New file.
62528         * lib/locale_.h: New file.
62529         * m4/locale_h.m4: New file.
62530
62531 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62532             Bruno Haible  <bruno@clisp.org>
62533
62534         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62535         be determined, test for availability of the copysignf, copysign,
62536         copysignl functions.
62537         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62538         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62539         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62540
62541 2007-04-09  Eric Blake  <ebb9@byu.net>
62542
62543         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62544         * modules/stdio (Makefile.am): Support fflush.
62545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62546         * modules/fflush: New file.
62547         * lib/fflush.c: Likewise.
62548         * m4/fflush.m4: Likewise.
62549         * modules/fflush-tests: New test.
62550         * tests/test-fflush.c: Likewise.
62551         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62552
62553 2007-04-06  Bruno Haible  <bruno@clisp.org>
62554
62555         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62556         (VASNPRINTF): Use signbit for faster determination whether to print a
62557         minus sign.
62558         * modules/vasnprintf (Files): Remove lib/float+.h.
62559         * modules/fprintf-posix (Depends-on): Add signbit.
62560         * modules/snprintf-posix (Depends-on): Likewise.
62561         * modules/sprintf-posix (Depends-on): Likewise.
62562         * modules/vasnprintf-posix (Depends-on): Likewise.
62563         * modules/vasprintf-posix (Depends-on): Likewise.
62564         * modules/vfprintf-posix (Depends-on): Likewise.
62565         * modules/vsnprintf-posix (Depends-on): Likewise.
62566         * modules/vsprintf-posix (Depends-on): Likewise.
62567
62568 2007-04-06  Bruno Haible  <bruno@clisp.org>
62569
62570         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62571         * tests/test-frexpl.c (main): Likewise.
62572         * tests/test-ldexpl.c (main): Likewise.
62573         * modules/frexp-tests (Depends-on): Add signbit.
62574         * modules/frexpl-tests (Depdends-on): Likewise.
62575         * modules/ldexpl-tests (Depdends-on): Likewise.
62576
62577 2007-04-06  Bruno Haible  <bruno@clisp.org>
62578
62579         * modules/signbit-tests: New file.
62580         * tests/test-signbit.c: New file.
62581
62582         * modules/signbit: New file.
62583         * lib/signbitf.c: New file.
62584         * lib/signbitd.c: New file.
62585         * lib/signbitl.c: New file.
62586         * m4/signbit.m4: New file.
62587         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62588         (signbit): New macro.
62589         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62590         REPLACE_SIGNBIT.
62591         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62592         REPLACE_FREXPL into math.h.
62593
62594 2007-04-06  Bruno Haible  <bruno@clisp.org>
62595
62596         * modules/isnanf-nolibm-tests: New file.
62597         * tests/test-isnanf.c: New file.
62598
62599         * modules/isnanf-nolibm: New file.
62600         * lib/isnanf.h: New file.
62601         * lib/isnanf.c: New file.
62602         * lib/isnan.c: Consider the USE_FLOAT macro.
62603         * m4/isnanf.m4: New file.
62604
62605 2007-04-06  Bruno Haible  <bruno@clisp.org>
62606
62607         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62608         (Link): New section.
62609
62610         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62611
62612 2007-04-06  Bruno Haible  <bruno@clisp.org>
62613
62614         Assume the 'long double' type.
62615         * m4/longdouble.m4: Remove file.
62616         * config/srclist.txt: Don't mention longdouble.m4.
62617         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62618         * lib/float+.h: Likewise.
62619         * lib/frexp.c: Likewise.
62620         * lib/printf-args.h: Likewise.
62621         * lib/printf-args.c: Likewise.
62622         * lib/printf-frexp.c: Likewise.
62623         * lib/printf-parse.c: Likewise.
62624         * lib/vasnprintf.c: Likewise.
62625         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62626         * m4/intl.m4: Likewise.
62627         * m4/isnanl.m4: Likewise.
62628         * m4/printf.m4: Likewise.
62629         * m4/printf-frexpl.m4: Likewise.
62630         * m4/vasnprintf.m4: Likewise.
62631         * modules/allocsa (Files): Remove m4/longdouble.m4.
62632         * modules/gettext (Files): Likewise.
62633         * modules/relocatable-prog-wrapper (Files): Likewise.
62634         * modules/vasnprintf (Files): Likewise.
62635         * modules/isnanl (Files): Likewise.
62636         (Include): Simplify.
62637         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62638         (Include): Simplify.
62639         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62640         (Include): Simplify.
62641         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62642         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62643         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62644         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62645         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62646         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62647         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62648         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62649         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62650         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62651         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62652         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62653         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62654         * tests/test-isnanl.c: Likewise.
62655         * tests/test-snprintf-posix.h: Likewise.
62656         * tests/test-sprintf-posix.h: Likewise.
62657         * tests/test-vasnprintf-posix.c: Likewise.
62658         * tests/test-vasnprintf-posix2.c: Likewise.
62659         * tests/test-vasprintf-posix.c: Likewise.
62660
62661 2007-04-06  Bruno Haible  <bruno@clisp.org>
62662
62663         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62664         * lib/math_.h [__DECC]: Include the overridden include file through
62665         #include_next, outside the double-inclusion guard.
62666         * lib/stdio_.h [__DECC]: Likewise.
62667         * lib/stdlib_.h [__DECC]: Likewise.
62668         * lib/string_.h [__DECC]: Likewise.
62669         * lib/time_.h [__DECC]: Likewise.
62670         * lib/wchar_.h [__DECC]: Likewise.
62671         * lib/wctype_.h [__DECC]: Likewise.
62672         * lib/inttypes_.h [__DECC]: Likewise.
62673         Reported by Albert Chin <china@thewrittenword.com> in
62674         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62675
62676 2007-04-04  Eric Blake  <ebb9@byu.net>
62677
62678         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62679         1.5.x.
62680
62681 2007-04-04  Bruno Haible  <bruno@clisp.org>
62682
62683         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62684         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62685
62686 2007-04-04  Bruno Haible  <bruno@clisp.org>
62687
62688         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62689         results for "%010a" of Infinity and NaN.
62690         * tests/test-vasprintf-posix.c (test_function): Likewise.
62691         * tests/test-snprintf-posix.h (test_function): Likewise.
62692         * tests/test-sprintf-posix.h (test_function): Likewise.
62693         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62694         * tests/test-printf-posix.h (test_function): Likewise.
62695         * tests/test-fprintf-posix.out: Update.
62696         Needed for FreeBSD 6.1.
62697
62698 2007-04-04  Bruno Haible  <bruno@clisp.org>
62699
62700         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62701         directly used by the gnulib modules nor by gnulib-tool.
62702
62703 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         * DEPENDENCIES: Give overall description of version dependency
62706         desirability.  Use more-typical names for apps.
62707         Add shell, coreutils, diffutils, grep, tar, gzip.
62708
62709 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62710
62711         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62712
62713 2007-04-04  Karl Berry  <karl@gnu.org>
62714
62715         * MODULES.html.sh (func_module): missing '.
62716
62717 2007-04-03  Bruno Haible  <bruno@clisp.org>
62718
62719         * modules/argmatch-tests (Makefile.am): New variable
62720         test_argmatch_LDADD.
62721         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62722         * modules/array-list-tests (Makefile.am): New variable
62723         test_array_list_LDADD.
62724         * modules/array-oset-tests (Makefile.am): New variable
62725         test_array_oset_LDADD.
62726         * modules/avltree-list-tests (Makefile.am): New variable
62727         test_avltree_list_LDADD.
62728         * modules/avltree-oset-tests (Makefile.am): New variable
62729         test_avltree_oset_LDADD.
62730         * modules/avltreehash-list-tests (Makefile.am): New variable
62731         test_avltreehash_list_LDADD.
62732         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62733         test_canonicalize_lgpl_LDADD.
62734         * modules/carray-list-tests (Makefile.am): New variable
62735         test_carray_list_LDADD.
62736         * modules/dirname-tests (Makefile.am): New variable
62737         test_dirname_LDADD.
62738         * modules/linked-list-tests (Makefile.am): New variable
62739         test_linked_list_LDADD.
62740         * modules/linkedhash-list-tests (Makefile.am): New variable
62741         test_linkedhash_list_LDADD.
62742         * modules/rbtree-list-tests (Makefile.am): New variable
62743         test_rbtree_list_LDADD.
62744         * modules/rbtree-oset-tests (Makefile.am): New variable
62745         test_rbtree_oset_LDADD.
62746         * modules/rbtreehash-list-tests (Makefile.am): New variable
62747         test_rbtreehash_list_LDADD.
62748         * modules/xvasprintf-tests (Makefile.am): New variable
62749         test_xvasprintf_LDADD.
62750         Reported by Eric Blake.
62751
62752 2007-04-03  Eric Blake  <ebb9@byu.net>
62753
62754         * DEPENDENCIES: Weaken m4 requirements.
62755
62756 2007-04-03  Bruno Haible  <bruno@clisp.org>
62757
62758         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62759         * modules/isnanl-tests (configure.ac): Likewise.
62760
62761 2007-04-03  Ben Pfaff  <blp@gnu.org>
62762
62763         * modules/iconv_open: Add $(srcdir)/ to source directory
62764         references in Makefile fragments that call gperf, to fix VPATH
62765         builds.
62766
62767 2007-04-03  Bruno Haible  <bruno@clisp.org>
62768
62769         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62770         * lib/ldexpl.c: Undo last change.
62771
62772 2007-04-03  Bruno Haible  <bruno@clisp.org>
62773
62774         * modules/printf-frexpl (Depends-on): Undo last change.
62775         (Files): Add m4/ldexpl.m4.
62776
62777 2007-04-03  Bruno Haible  <bruno@clisp.org>
62778
62779         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62780         * modules/isnanl (Link): New section.
62781
62782         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62783         * modules/frexp (Link): New section.
62784
62785         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62786         * modules/frexpl (Link): New section.
62787
62788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62789         * modules/ldexpl (Link): New section.
62790
62791 2007-04-03  Bruno Haible  <bruno@clisp.org>
62792
62793         * modules/TEMPLATE-EXTENDED: New file.
62794         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62795
62796 2007-04-03  Bruno Haible  <bruno@clisp.org>
62797
62798         * DEPENDENCIES: New file.
62799         Suggested by Simon Josefsson.
62800
62801 2007-04-03  Bruno Haible  <bruno@clisp.org>
62802
62803         * doc/gnulib.texi: Escape @.
62804
62805 2007-04-03  James Youngman  <jay@gnu.org>
62806         and Paul Eggert  <eggert@cs.ucla.edu>
62807
62808         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62809         birthtime on all systems that have birthtime, not just those which
62810         use st_birthtimensec rather than st_birthtim.  Putting zero in
62811         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62812         that the birth time is not available for files on an NFS mount.
62813
62814 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62815
62816         * modules/memxor: Move back from crypto/, suggested by Bruno.
62817         * modules/crypto/hmac-sha1: Fix memxor dependency.
62818
62819         * modules/crypto/gc: Moved from ../.
62820
62821 2007-04-02  Eric Blake  <ebb9@byu.net>
62822
62823         * lib/ldexpl.c (includes): Avoid libm.
62824
62825         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62826
62827 2007-04-02  Bruno Haible  <bruno@clisp.org>
62828
62829         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62830         on IRIX.
62831
62832 2007-04-02  Bruno Haible  <bruno@clisp.org>
62833
62834         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62835         x86 or x86_64 platforms running MacOS X.
62836         Reported by Ryan Schmidt <@ryandesign.com>.
62837
62838 2007-04-02  Bruno Haible  <bruno@clisp.org>
62839
62840         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62841         i386.
62842
62843 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62844
62845         * modules/crypto/arcfour: Moved from ../.
62846         * modules/crypto/arcfour-tests: Moved from ../.
62847         * modules/crypto/arctwo: Moved from ../.
62848         * modules/crypto/arctwo-tests: Moved from ../.
62849         * modules/crypto/des: Moved from ../.
62850         * modules/crypto/des-tests: Moved from ../.
62851         * modules/crypto/gc-arcfour: Moved from ../.
62852         * modules/crypto/gc-arcfour-tests: Moved from ../.
62853         * modules/crypto/gc-arctwo: Moved from ../.
62854         * modules/crypto/gc-arctwo-tests: Moved from ../.
62855         * modules/crypto/gc-des: Moved from ../.
62856         * modules/crypto/gc-des-tests: Moved from ../.
62857         * modules/crypto/gc-hmac-md5: Moved from ../.
62858         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62859         * modules/crypto/gc-hmac-sha1: Moved from ../.
62860         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62861         * modules/crypto/gc-md2: Moved from ../.
62862         * modules/crypto/gc-md2-tests: Moved from ../.
62863         * modules/crypto/gc-md4: Moved from ../.
62864         * modules/crypto/gc-md4-tests: Moved from ../.
62865         * modules/crypto/gc-md5: Moved from ../.
62866         * modules/crypto/gc-md5-tests: Moved from ../.
62867         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62868         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62869         * modules/crypto/gc-random: Moved from ../.
62870         * modules/crypto/gc-rijndael: Moved from ../.
62871         * modules/crypto/gc-rijndael-tests: Moved from ../.
62872         * modules/crypto/gc-sha1: Moved from ../.
62873         * modules/crypto/gc-sha1-tests: Moved from ../.
62874         * modules/crypto/gc-tests: Moved from ../.
62875         * modules/crypto/hmac-md5: Moved from ../.
62876         * modules/crypto/hmac-md5-tests: Moved from ../.
62877         * modules/crypto/hmac-sha1: Moved from ../.
62878         * modules/crypto/hmac-sha1-tests: Moved from ../.
62879         * modules/crypto/md2: Moved from ../.
62880         * modules/crypto/md2-tests: Moved from ../.
62881         * modules/crypto/md4: Moved from ../.
62882         * modules/crypto/md4-tests: Moved from ../.
62883         * modules/crypto/md5: Moved from ../.
62884         * modules/crypto/md5-tests: Moved from ../.
62885         * modules/crypto/memxor: Moved from ../.
62886         * modules/crypto/rijndael: Moved from ../.
62887         * modules/crypto/rijndael-tests: Moved from ../.
62888         * modules/crypto/sha1: Moved from ../.
62889
62890 2007-03-30  James Youngman  <jay@gnu.org>
62891
62892         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62893         rename() to change the ctime of a file (because ctime is unaffected
62894         by rename on jfs2 on AIX 5.1).
62895         (main): Start by doing cleanup, in case a previous run failed leaving
62896         test files behind.
62897
62898 2007-03-31  Bruno Haible  <bruno@clisp.org>
62899
62900         Support old proprietary implementations of iconv.
62901         * modules/iconv_open: New file.
62902         * lib/iconv_.h: New file.
62903         * m4/iconv_h.m4: New file.
62904         * lib/iconv_open.c: New file.
62905         * lib/iconv_open-aix.gperf: New file.
62906         * lib/iconv_open-hpux.gperf: New file.
62907         * lib/iconv_open-irix.gperf: New file.
62908         * lib/iconv_open-osf.gperf: New file.
62909         * m4/iconv_open.m4: New file.
62910         * modules/linebreak (Depends-on): Add iconv_open.
62911         * modules/striconv (Depends-on): Likewise.
62912         * modules/striconveh (Depends-on): Likewise.
62913         * modules/unicodeio (Depends-on): Likewise.
62914         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62915         (iconv_t)(-1).
62916         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62917         conversion if cd is (iconv_t)(-1).
62918         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62919         is not possible.
62920
62921 2007-03-31  Bruno Haible  <bruno@clisp.org>
62922
62923         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62924         work on Solaris either. Protect also second use of "autodetect_jp".
62925
62926 2007-03-31  Bruno Haible  <bruno@clisp.org>
62927
62928         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62929         the function is not present.
62930
62931 2007-03-31  Bruno Haible  <bruno@clisp.org>
62932
62933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62934         the function is not present.
62935
62936 2007-03-31  Bruno Haible  <bruno@clisp.org>
62937
62938         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62939         a bug in HP-UX iconv_open().
62940
62941 2007-03-31  Bruno Haible  <bruno@clisp.org>
62942
62943         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62944         (Mathematics <math.h>): New section, add fpieee.
62945         (Input/output <stdio.h>): Add fseterr.
62946         (Mathematics <math.h>): New section, add printf-frexp.
62947         (Container data structures): Add sublist.
62948         (Core language properties): Add fpucw, inline.
62949         (Functions for greatest-width integer types <inttypes.h>): Add
62950         imaxabs, imaxdiv, inttypes.
62951         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62952         isnanl-nolibm, ldexp.
62953         (Mathematics <math.h>): New section, add printf-frexpl.
62954         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62955         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62956         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62957         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62958         (Unicode string functions): Add unistr/u*-mbtoucr.
62959         (Java): Add javacomp-script, javaexec-script.
62960         (C#): Add csharpcomp-script, csharpexec-script.
62961         (Support for building libraries and executables): Add havelib,
62962         relocatable-*.
62963         (Support for maintaining and releasing projects): Renamed from
62964         'Support for maintaining and release projects'. Add announce-gen.
62965
62966 2007-03-31  Bruno Haible  <bruno@clisp.org>
62967
62968         * README: Talk primarily about git.
62969         (git and CVS): Renamed from CVS.
62970         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62971         gnulib is available through git.
62972         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62973
62974 2007-03-30  Bruno Haible  <bruno@clisp.org>
62975
62976         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62977         * lib/poll_.h: Likewise.
62978         * lib/stat_.h: Likewise.
62979         * lib/sys_time_.h: Likewise.
62980         * lib/sysexit_.h: Likewise.
62981         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62982         * lib/stdbool_.h: Likewise.
62983         * lib/byteswap_.h: Add double-inclusion guard.
62984
62985 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62986
62987         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62988
62989 2007-03-30  Karl Berry  <karl@gnu.org>
62990
62991         * config/srclist-update: double space after USA in the license
62992         substitution, since that's how it's usually (?) written.
62993
62994 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62995
62996         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62997         reported by Bruno Haible.
62998
62999 2007-03-29  Bruno Haible  <bruno@clisp.org>
63000
63001         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63002         a bug in AIX iconv().
63003
63004 2007-03-29  Bruno Haible  <bruno@clisp.org>
63005
63006         * modules/ldexpl-tests: New file.
63007         * tests/test-ldexpl.c: New file.
63008
63009 2007-03-29  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/ldexpl.c: Include fpucw.h.
63012         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63013         multiplication.
63014         * modules/ldexpl (Depends-on): Add fpucw.
63015
63016 2007-03-29  Bruno Haible  <bruno@clisp.org>
63017
63018         * modules/ldexpl: New file.
63019         * m4/ldexpl.m4: New file.
63020         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63021         set.
63022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63023         REPLACE_LDEXPL.
63024         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63025         REPLACE_LDEXPL.
63026         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63027         gl_FUNC_LDEXPL_WORKS.
63028         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63029         * modules/mathl (Files): Remove lib/ldexpl.c.
63030         (Depends-on): Add ldexpl.
63031
63032 2007-03-29  Bruno Haible  <bruno@clisp.org>
63033
63034         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63035
63036 2007-03-29  Bruno Haible  <bruno@clisp.org>
63037
63038         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63039         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63040         and possibly also HP-UX.
63041         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63042         work on AIX, IRIX, HP-UX, OSF/1.
63043         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63044         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63045         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63046         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63047         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63048         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63049
63050 2007-03-29  Bruno Haible  <bruno@clisp.org>
63051
63052         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63053
63054 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63055
63056         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63057         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63058
63059 2007-03-29  Eric Blake  <ebb9@byu.net>
63060
63061         * lib/acl-internal.h: Remove redundant include.
63062         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63063         Cygwin when a file is locked.
63064
63065 2007-03-29  Bruno Haible  <bruno@clisp.org>
63066
63067         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63068         file.
63069         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63070
63071 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63072
63073         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63074         try to remove a parent directory if the child couldn't be removed
63075         (except for the first rmdir, which could fail because the child
63076         doesn't exist).  Problem reported by Jeff Blaine in
63077         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63078
63079 2007-03-28  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/striconveh.c (utf8conv_carefully): New function.
63082         (mem_cd_iconveh_internal): Invoke it.
63083
63084 2007-03-28  Bruno Haible  <bruno@clisp.org>
63085
63086         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63087         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63088         input.
63089         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63090         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63091         unistr/u8-uctomb.
63092
63093 2007-03-28  Bruno Haible  <bruno@clisp.org>
63094
63095         * modules/unistr/u8-mbtoucr: New file.
63096         * lib/unistr/u8-mbtoucr.c: New file.
63097         * modules/unistr/u16-mbtoucr: New file.
63098         * lib/unistr/u16-mbtoucr.c: New file.
63099         * modules/unistr/u16-mbtoucr: New file.
63100         * lib/unistr/u16-mbtoucr.c: New file.
63101         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63102
63103 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63104             Bruno Haible  <bruno@clisp.org>
63105
63106         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63107         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63108         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63109
63110         * m4/stdio_h.m4: Add stubs for vasprintf too.
63111
63112         * modules/stdio: Support vasprintf in sed command.
63113
63114         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63115         vasprintf.h.  Add stdio module indicator.
63116
63117         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63118         vasprintf.h.
63119
63120         * lib/vasprintf.h: File removed.
63121
63122         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63123         * lib/vasprintf.c: Ditto.
63124         * lib/xvasprintf.c: Ditto.
63125         * tests/test-vasprintf-posix.c: Ditto.
63126         * tests/test-vasprintf.c: Ditto.
63127
63128 2007-03-27  Bruno Haible  <bruno@clisp.org>
63129
63130         Make vasnprintf multithread-safe.
63131         * lib/vasnprintf.c (decimal_point_char): New function.
63132         (VASNPRINTF): Use it.
63133         Suggested by Simon Josefsson.
63134
63135 2007-03-27  Eric Blake  <ebb9@byu.net>
63136
63137         Support sub-second birthtime on cygwin.
63138         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63139         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63140         (get_stat_birthtime): Also work with st_birthtim.
63141
63142 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63143
63144         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63145         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63146         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63147         (get_stat_birthtime_ns): Simplify compile-time tests.
63148         (get_stat_birthtime): Change the API to look like
63149         get_stat_mtime etc., except return a negative tv_nsec on error.
63150         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63151         Don't check for "spare" fields.
63152         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63153         or for struct stat.st_birthtime, as these tests aren't used.
63154         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63155
63156 2007-03-27  Bruno Haible  <bruno@clisp.org>
63157
63158         * lib/stat-time.h: Include <sys/stat.h>.
63159
63160 2007-03-27  James Youngman  <jay@gnu.org>
63161
63162         * lib/stat-time.h (get_stat_birthtime): New function for
63163           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63164         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63165           and its variants.
63166         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63167         * modules/stat-time-test: New file.
63168         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63169
63170 2007-03-26  Bruno Haible  <bruno@clisp.org>
63171
63172         Better support of signalling NaNs.
63173         * lib/atanl.c: Include isnanl.h.
63174         (atanl): Perform test for NaN at the beginning of the function and
63175         through a call to isnanl.
63176         * lib/cosl.c: Include isnanl.h.
63177         (cosl): Perform test for NaN at the beginning of the function and
63178         through a call to isnanl.
63179         * lib/ldexpl.c: Include isnanl.h.
63180         (ldexpl): Perform test for NaN through a call to isnanl.
63181         * lib/logl.c: Include isnanl.h.
63182         (logl): Perform test for NaN at the beginning of the function and
63183         through a call to isnanl.
63184         * lib/sinl.c: Include isnanl.h.
63185         (sinl): Perform test for NaN at the beginning of the function and
63186         through a call to isnanl.
63187         * lib/sqrtl.c: Include isnanl.h.
63188         (sqrtl): Perform test for NaN at the beginning of the function and
63189         through a call to isnanl.
63190         * lib/tanl.c: Include isnanl.h.
63191         (tanl): Perform test for NaN at the beginning of the function and
63192         through a call to isnanl.
63193         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63194         * modules/mathl (Depends-on): Add isnanl.
63195
63196 2007-03-26  Eric Blake  <ebb9@byu.net>
63197
63198         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63199         regression in logic sense of previous patch.
63200
63201 2007-03-26  Bruno Haible  <bruno@clisp.org>
63202
63203         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63204         unportable shell command "if ! ...".
63205         Reported by Ralf Wildenhues.
63206
63207 2007-03-25  Bruno Haible  <bruno@clisp.org>
63208
63209         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63210         <sysexits.h> file, and only add EX_CONFIG.
63211         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63212         absolute file name and whether it is sufficient. Substitute also
63213         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63214         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63215         ABSOLUTE_SYSEXITS_H into sysexits.h.
63216
63217 2007-03-25  Bruno Haible  <bruno@clisp.org>
63218
63219         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63220         hints is NULL.
63221
63222 2007-03-25  Bruno Haible  <bruno@clisp.org>
63223
63224         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63225         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63226
63227 2007-03-25  Bruno Haible  <bruno@clisp.org>
63228
63229         * lib/vasnprintf.c: Include langinfo.h.
63230         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63231         multithread-safe.
63232         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63234         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63235         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63236         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63237         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63238         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63239         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63240         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63241         Reported by Simon Josefsson.
63242
63243 2007-03-25  Bruno Haible  <bruno@clisp.org>
63244
63245         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63246         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63247         * modules/vasnprintf (Depends-on): Add stdint.
63248
63249 2007-03-25  Bruno Haible  <bruno@clisp.org>
63250
63251         * modules/fpieee: New file.
63252         * m4/fpieee.m4: New file.
63253         * modules/isnan-nolibm (Depends-on): Add fpieee.
63254         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63255         * modules/isnanl (Depends-on): Add fpieee.
63256
63257 2007-03-25  Bruno Haible  <bruno@clisp.org>
63258
63259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63260
63261 2007-03-25  Bruno Haible  <bruno@clisp.org>
63262
63263         Avoid test failures on IRIX 6.5.
63264         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63265         (main): Use it.
63266         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63267         macros.
63268         (main): Use them.
63269
63270 2007-03-25  Bruno Haible  <bruno@clisp.org>
63271
63272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63273         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63274         exists but doesn't work.
63275         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63276         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63278         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63279         math.h.
63280
63281 2007-03-25  Bruno Haible  <bruno@clisp.org>
63282
63283         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63284         returns inf. Needed on IRIX 6.5.
63285
63286 2007-03-25  Bruno Haible  <bruno@clisp.org>
63287
63288         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63289         (main): Use isnanl instead of x != x idiom.
63290         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63291
63292         * tests/test-frexp.c: Include isnan.h.
63293         (main): Use isnan instead of x != x idiom.
63294         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63295
63296 2007-03-25  Bruno Haible  <bruno@clisp.org>
63297
63298         * tests/test-frexp.c (NaN): New function/macro.
63299         (main): Use it instead of 0.0 / 0.0.
63300         * tests/test-isnan.c (NaN): New function/macro.
63301         (main): Use it instead of 0.0 / 0.0.
63302         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63303         (test_function): Use it instead of 0.0 / 0.0.
63304         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63305         (test_function): Use it instead of 0.0 / 0.0.
63306         * tests/test-snprintf-posix.h (NaN): New function/macro.
63307         (test_function): Use it instead of 0.0 / 0.0.
63308         * tests/test-sprintf-posix.h (NaN): New function/macro.
63309         (test_function): Use it instead of 0.0 / 0.0.
63310         * tests/test-fprintf-posix.h (NaN): New function/macro.
63311         (test_function): Use it instead of 0.0 / 0.0.
63312         * tests/test-printf-posix.h (NaN): New function/macro.
63313         (test_function): Use it instead of 0.0 / 0.0.
63314
63315         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63316
63317 2007-03-25  Bruno Haible  <bruno@clisp.org>
63318
63319         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63320
63321 2007-03-25  Bruno Haible  <bruno@clisp.org>
63322
63323         * lib/regexec.c (merge_state_with_log): Make static.
63324
63325 2007-03-25  Bruno Haible  <bruno@clisp.org>
63326
63327         * lib/trigl.c (kernel_rem_pio2): Make static.
63328
63329 2007-03-25  Bruno Haible  <bruno@clisp.org>
63330
63331         * lib/sincosl.c (sincosl_table): Make static.
63332
63333 2007-03-25  Bruno Haible  <bruno@clisp.org>
63334
63335         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63336         if the compiler does not support C99.
63337
63338 2007-03-25  Bruno Haible  <bruno@clisp.org>
63339
63340         * modules/time (Makefile.am): Ensure all rule action lines start with a
63341         tab.
63342
63343 2007-03-24  Bruno Haible  <bruno@clisp.org>
63344
63345         * modules/tsearch-tests: New file.
63346         * tests/test-tsearch.sh: New file.
63347         * tests/test-tsearch.c: New file, mostly copied from glibc.
63348
63349         * modules/search-tests: New file.
63350         * tests/test-search.c: New file.
63351
63352         * modules/search: New file.
63353         * lib/search_.h: New file, incorporating lib/tsearch.h.
63354         * m4/search_h.m4: New file.
63355         * lib/tsearch.h: Remove file.
63356         * lib/tsearch.c: Include search.h instead of tsearch.h.
63357         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63358         HAVE_TSEARCH.
63359         * modules/tsearch (Files): Remove lib/tsearch.h.
63360         (Depends-on): Add search.
63361         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63362         (Include): Change tsearch.h into search.h.
63363
63364 2007-03-24  Bruno Haible  <bruno@clisp.org>
63365
63366         * modules/fpucw: New file.
63367         * lib/fpucw.h: New file.
63368         * lib/frexp.c: Include fpucw.h.
63369         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63370         (FUNC): Use them.
63371         * lib/printf-frexp.c: Include fpucw.h.
63372         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63373         (FUNC): Use them.
63374         * lib/vasnprintf.c: Include fpucw.h.
63375         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63376         'long double' calculations.
63377         * tests/test-frexpl.c: Include fpucw.h.
63378         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63379         * tests/test-printf-frexpl.c: Include fpucw.h.
63380         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63381         * modules/frexpl (Depends-on): Add fpucw.
63382         * modules/printf-frexpl (Depends-on): Likewise.
63383         * modules/fprintf-posix (Depends-on): Likewise.
63384         * modules/snprintf-posix (Depends-on): Likewise.
63385         * modules/sprintf-posix (Depends-on): Likewise.
63386         * modules/vasnprintf-posix (Depends-on): Likewise.
63387         * modules/vasprintf-posix (Depends-on): Likewise.
63388         * modules/vfprintf-posix (Depends-on): Likewise.
63389         * modules/vsnprintf-posix (Depends-on): Likewise.
63390         * modules/vsprintf-posix (Depends-on): Likewise.
63391         * modules/frexpl-tests (Depends-on): Likewise.
63392         * modules/printf-frexpl-tests (Depends-on): Likewise.
63393
63394 2007-03-24  Bruno Haible  <bruno@clisp.org>
63395
63396         * lib/float+.h: New file.
63397         * lib/isnan.c: Include float+.h.
63398         (SIZE): New macro.
63399         (FUNC): Compare only SIZE bytes of the value.
63400         * lib/vasnprintf.c: Include float+.h.
63401         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63402         SIZEOF_LDBL or SIZEOF_DBL bytes.
63403         * modules/isnan-nolibm (Files): Add lib/float+.h.
63404         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63405         * modules/isnanl (Files): Add lib/float+.h.
63406         * modules/vasnprintf (Files): Add lib/float+.h.
63407
63408 2007-03-24  Bruno Haible  <bruno@clisp.org>
63409
63410         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63411         include isnanl-nolibm.h.
63412
63413 2007-03-24  Bruno Haible  <bruno@clisp.org>
63414
63415         * tests/test-read-file.c (main): Don't produce spurious output for
63416         expected situations. Make the test fail if it encountered unexpected
63417         results.
63418
63419 2007-03-24  Bruno Haible  <bruno@clisp.org>
63420
63421         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63422         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63423
63424 2007-03-24  Bruno Haible  <bruno@clisp.org>
63425
63426         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63427
63428 2007-03-24  Bruno Haible  <bruno@clisp.org>
63429
63430         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63431         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63432
63433         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63434         * modules/utf8-ucs4: Turn into a symbolic link to module
63435         unistr/u8-mbtouc.
63436
63437         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63438         utf8-ucs4-unsafe.
63439         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63440         unistr/u8-mbtouc-unsafe.
63441
63442         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63443         * modules/utf16-ucs4: Turn into a symbolic link to module
63444         unistr/u16-mbtouc.
63445
63446         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63447         utf16-ucs4-unsafe.
63448         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63449         unistr/u16-mbtouc-unsafe.
63450
63451         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63452         * modules/ucs4-utf8: Turn into a symbolic link to module
63453         unistr/u8-ubtomb.
63454
63455         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63456         * modules/ucs4-utf16: Turn into a symbolic link to module
63457         unistr/u16-ubtomb.
63458
63459 2007-03-24  Bruno Haible  <bruno@clisp.org>
63460
63461         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63462         Enable the function only if HAVE_INLINE.
63463         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63464         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63465         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63466         Enable the function only if HAVE_INLINE.
63467         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63468         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63469         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63470         Enable the function only if HAVE_INLINE.
63471         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63472         Enable the function only if HAVE_INLINE.
63473         * modules/utf8-ucs4: Update.
63474         * modules/utf8-ucs4-unsafe: Update.
63475         * modules/utf16-ucs4: Update.
63476         * modules/utf16-ucs4-unsafe: Update.
63477         * modules/ucs4-utf8: Update.
63478         * modules/ucs4-utf16: Update.
63479
63480 2007-03-24  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/utf8-ucs4.h: Remove file.
63483         * lib/utf8-ucs4-unsafe.h: Remove file.
63484         * lib/utf16-ucs4.h: Remove file.
63485         * lib/utf16-ucs4-unsafe.h: Remove file.
63486         * lib/ucs4-utf8.h: Remove file.
63487         * lib/ucs4-utf16.h: Remove file.
63488         * lib/unistr.h: Include their previous contents.
63489         * m4/utf-ucs4.m4: Remove file.
63490         * m4/ucs4-utf.m4: Remove file.
63491         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63492         (Depends-on): Add unistr/base.
63493         (configure.ac): Remove gl_UTF_UCS4.
63494         (Makefile.am): Update.
63495         (Include): Change to unistr.h.
63496         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63497         (Depends-on): Add unistr/base.
63498         (configure.ac): Remove gl_UTF_UCS4.
63499         (Makefile.am): Update.
63500         (Include): Change to unistr.h.
63501         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63502         (Depends-on): Add unistr/base.
63503         (configure.ac): Remove gl_UTF_UCS4.
63504         (Makefile.am): Update.
63505         (Include): Change to unistr.h.
63506         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63507         (Depends-on): Add unistr/base.
63508         (configure.ac): Remove gl_UTF_UCS4.
63509         (Makefile.am): Update.
63510         (Include): Change to unistr.h.
63511         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63512         (Depends-on): Add unistr/base.
63513         (configure.ac): Remove gl_UCS4_UTF.
63514         (Makefile.am): Update.
63515         (Include): Change to unistr.h.
63516         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63517         (Depends-on): Add unistr/base.
63518         (configure.ac): Remove gl_UCS4_UTF.
63519         (Makefile.am): Update.
63520         (Include): Change to unistr.h.
63521         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63522         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63523         utf8-ucs4-unsafe.h.
63524         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63525         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63526         utf16-ucs4-unsafe.h.
63527         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63528         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63529         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63530         * lib/unistr/u8-strchr.c: Likewise.
63531         * lib/unistr/u8-strrchr.c: Likewise.
63532         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63533         * lib/unistr/u16-strchr.c: Likewise.
63534         * lib/unistr/u16-strrchr.c: Likewise.
63535         * lib/striconveh.c: Update.
63536         * lib/linebreak.c: Update.
63537
63538 2007-03-24  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63541         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63542
63543 2007-03-22  Bruno Haible  <bruno@clisp.org>
63544
63545         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63546
63547 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63548
63549         * MODULES.html.sh (File system functions): New module write-any-file.
63550         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63551         * m4/write-any-file.m4: New files.
63552
63553 2007-03-23  Eric Blake  <ebb9@byu.net>
63554
63555         * gnulib-tool: Rearrange space-tab sequences, since some editors
63556         like to eat them.
63557
63558 2007-03-23  Eric Blake  <ebb9@byu.net>
63559
63560         * lib/version-etc.c (version_etc_va): Update license wording to
63561         be more concise.  Recommended by Richard Stallman.
63562
63563 2007-03-22  Bruno Haible  <bruno@clisp.org>
63564
63565         * lib/poll.c (MSG_PEEK): New fallback definition.
63566
63567 2007-03-22  Bruno Haible  <bruno@clisp.org>
63568
63569         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63570         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63571         (main): Update.
63572         Fixes a compilation error on BeOS.
63573
63574 2007-03-22  Bruno Haible  <bruno@clisp.org>
63575
63576         * modules/frexpl-tests: New file.
63577         * tests/test-frexpl.c: New file.
63578
63579         * modules/frexpl: New file.
63580         * m4/frexpl.m4: New file.
63581         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63582         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63583         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63584         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63585         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63586         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63587
63588 2007-03-22  Bruno Haible  <bruno@clisp.org>
63589
63590         * lib/frexpl.c: Share code with lib/frexp.c.
63591         * modules/mathl (Files): Add lib/frexp.c.
63592         (Depends-on): Add isnanl-nolibm.
63593
63594 2007-03-22  Bruno Haible  <bruno@clisp.org>
63595
63596         * modules/printf-frexp (Files): Add m4/frexp.m4.
63597         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63598         only if the found frexp function actually works.
63599
63600 2007-03-22  Bruno Haible  <bruno@clisp.org>
63601
63602         * lib/frexp.c: Remove older implementation that uses divisions.
63603
63604 2007-03-21  Bruno Haible  <bruno@clisp.org>
63605
63606         * modules/frexp-tests: New file.
63607         * tests/test-frexp.c: New file.
63608
63609         * modules/frexp: New file.
63610         * lib/frexp.c: New file.
63611         * m4/frexp.m4: New file.
63612         * lib/math_.h (frexp): New declaration.
63613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63614         REPLACE_FREXP.
63615         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63616
63617 2007-03-21  Bruno Haible  <bruno@clisp.org>
63618
63619         * modules/isnanl-tests: New file.
63620         * tests/test-isnanl.c: New file.
63621
63622         * modules/isnanl: New file.
63623         * lib/isnanl.h: New file.
63624         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63625         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63626         gl_FUNC_ISNANL_WORKS.
63627         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63628         New macros.
63629
63630 2007-03-21  Bruno Haible  <bruno@clisp.org>
63631
63632         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63633         lib/isnanl.h.
63634         (Include): Update.
63635         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63636         * lib/vasnprintf.c: Update.
63637         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63638         tests/test-isnanl.h, remove tests/test-isnanl.c.
63639         (Makefile.am): Update.
63640         * tests/test-isnanl-nolibm.c: New file.
63641         * tests/test-isnanl.h: New file.
63642         * tests/test-isnanl.c: Remove file.
63643
63644 2007-03-21  Jim Meyering  <jim@meyering.net>
63645
63646         When trying to open ".", treat ESTALE like EACCES.
63647         * lib/savewd.c (savewd_save): Resort to forking not just upon
63648         failure with EACCES, but also when errno is ESTALE.
63649
63650 2007-03-20  Bruno Haible  <bruno@clisp.org>
63651
63652         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63653         Needed on AIX 5.1. Reported by Matthew Woehlke.
63654
63655 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63656
63657         Suggestions by Bruno Haible:
63658         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63659         our own.
63660         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63661         * modules/acl (Depends-on): Add gettext.
63662
63663 2007-03-19  Bruno Haible  <bruno@clisp.org>
63664
63665         * modules/iconvme: Remove file.
63666         * lib/iconvme.h: Remove file.
63667         * lib/iconvme.c: Remove file.
63668         * m4/iconvme.m4: Remove file.
63669
63670 2007-03-19  Bruno Haible  <bruno@clisp.org>
63671
63672         * doc/relocatable-maint.texi: Break long shell script line.
63673         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63674
63675 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63676
63677         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63678         handle file_has_acl.
63679         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63680         * lib/acl.c: Move header inclusions and related macro defns into
63681         lib/acl-internal.h.
63682         (S_ISLNK): Remove defn, since that's now done for us.
63683         (file_has_acl): Move to lib/file-has-acl.c.
63684         Call acl_trivial if available.  This is the crucial part of the fix.
63685         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63686         shared within the library.  Rewrite a bit, partly to make it compatible
63687         with the GNU coding style.
63688         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63689         Remove unnecessary double-quotes.
63690         Don't test for acl_to_text; the build will catch that.
63691         Replace acl_entries if it doesn't exist and it is needed.
63692         Check for -lsec and acl_trivial (as used on Solaris 10).
63693         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63694         lib/file-has-acl.c.
63695         (Depends-on): Add sys_stat, for S_ISLNK.
63696
63697 2007-03-19  Ben Pfaff  <blp@gnu.org>
63698
63699         * doc/gnulib.texi: Fix typos.
63700         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63701
63702 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63703
63704         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63705         If size is zero here, buf must be zero.
63706
63707 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63708
63709         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63710         <bruno@clisp.org>.
63711
63712 2007-03-18  Bruno Haible  <bruno@clisp.org>
63713
63714         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63715         Suggested by Eric Blake.
63716
63717 2007-03-18  Ben Pfaff  <blp@gnu.org>
63718
63719         * doc/relocatable.texi: Recommend using as prefix a directory
63720         that does not exist and will never be created.  Based on
63721         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63722         and others.
63723
63724 2007-03-17  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/fchownat.c: Include lchown.h.
63727
63728 2007-03-17  Bruno Haible  <bruno@clisp.org>
63729
63730         Fix endless loop when the given allocated size was > INT_MAX.
63731         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63732         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63733         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63734         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63735         * lib/sprintf.c (sprintf): Likewise.
63736
63737 2007-03-17  Bruno Haible  <bruno@clisp.org>
63738
63739         * tests/test-argp-2.sh (func_compare): Output a context diff.
63740
63741 2007-03-17  Bruno Haible  <bruno@clisp.org>
63742
63743         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63744         locale's decimal-point character.
63745
63746 2007-03-17  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63749         before comparing it. Needed because on some platforms (e.g. x86) a
63750         'long double' occupies less bytes than sizeof (long double).
63751
63752 2007-03-17  Bruno Haible  <bruno@clisp.org>
63753
63754         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63755         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63756         * tests/test-getaddrinfo.c (simple): Likewise.
63757         * tests/test-read-file.c (main): Likewise.
63758
63759 2007-03-17  Bruno Haible  <bruno@clisp.org>
63760
63761         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63762
63763 2007-03-17  Bruno Haible  <bruno@clisp.org>
63764
63765         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63766         unused variable.
63767
63768 2007-03-17  Bruno Haible  <bruno@clisp.org>
63769
63770         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63771         * tests/test-c-strncasecmp.c: Likewise.
63772
63773 2007-03-17  Bruno Haible  <bruno@clisp.org>
63774
63775         * modules/stdlib (Depends-on): Add unistd.
63776         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63777         Needed for MacOS X 10.3.
63778
63779 2007-03-17  Bruno Haible  <bruno@clisp.org>
63780
63781         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63782
63783 2007-03-17  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63786
63787 2007-03-17  Bruno Haible  <bruno@clisp.org>
63788
63789         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63790         to reflect files copied from gnulib (with or without modifications).
63791         Suggested by Jim Meyering.
63792
63793 2007-03-17  Eric Blake  <ebb9@byu.net>
63794
63795         * NEWS: Document stdlib change from 2007-02-18.
63796
63797 2007-03-17  Jim Meyering  <jim@meyering.net>
63798
63799         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63800         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63801         someone uses a name containing shell meta-characters.
63802         Reported by Alfred M. Szmidt.
63803
63804         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63805
63806 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63807
63808         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63809         and copy gettext configuration files only if configure.ac contains
63810         a use of AM_GNU_GETTEXT_VERSION.
63811
63812 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63813
63814         * build-aux/bootstrap (gnulib_name): New variable.
63815         (gnulib_tool_options): Use it.
63816
63817 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63818
63819         * tests/test-des.c: Use new namespace.
63820
63821 2007-03-15  Bruno Haible  <bruno@clisp.org>
63822
63823         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63824         Reported by James Youngman <jay@gnu.org>.
63825
63826 2007-03-15  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63829         declared prototype. Needed with cc on OSF/1 5.1.
63830
63831 2007-03-15  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63834         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63835         (struct gl_list_implementation): Add dispose_fn argument to the
63836         'create_empty', 'create' methods.
63837         (struct gl_list_impl_base): Add field 'dispose_fn'.
63838         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63839         argument.
63840         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63841         dispose_fn argument.
63842         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63843         dispose_fn on the dropped values.
63844         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63845         dispose_fn argument.
63846         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63847         dropped values.
63848         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63849         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63850         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63851         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63852         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63853         argument.
63854         (gl_tree_list_free): Call dispose_fn on the dropped values.
63855         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63856         the dropped values.
63857         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63858         Add dispose_fn argument.
63859         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63860         Call dispose_fn on the dropped values.
63861         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63862         Add dispose_fn argument.
63863         (gl_sublist_create): Initialize the 'dispose_fn' field.
63864         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63865         * tests/test-array_list.c (main): Update.
63866         * tests/test-carray_list.c (main): Update.
63867         * tests/test-avltree_list.c (main): Update.
63868         * tests/test-rbtree_list.c (main): Update.
63869         * tests/test-avltreehash_list.c (main): Update.
63870         * tests/test-rbtreehash_list.c (main): Update.
63871         * tests/test-linked_list.c (main): Update.
63872         * tests/test-linkedhash_list.c (main): Update.
63873         * tests/test-array_oset.c (main): Update.
63874
63875 2007-03-15  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63878         (gl_oset_create_empty): Add dispose_fn argument.
63879         (struct gl_oset_implementation): Add dispose_fn argument to
63880         'create_empty' method.
63881         (struct gl_oset_impl_base): Add dispose_fn field.
63882         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63883         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63884         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63885         values.
63886         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63887         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63888         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63889         dropped value.
63890         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63891         dropped value.
63892         * tests/test-array_oset.c (main): Update.
63893         * tests/test-avltree_oset.c (main): Update.
63894         * tests/test-rbtree_oset.c (main): Update.
63895         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63896
63897 2007-03-13  Bruno Haible  <bruno@clisp.org>
63898
63899         * tests/test-stdbool.c (i): Update after last patch.
63900
63901 2007-03-12  Bruno Haible  <bruno@clisp.org>
63902
63903         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63904         the iswprint macro. Needed on Solaris 2.5.1.
63905
63906 2007-03-12  Bruno Haible  <bruno@clisp.org>
63907
63908         * tests/test-printf-frexp.c (main): Declare x as volatile.
63909
63910 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63911
63912         * doc/gnulib.texi (Build robot for gnulib): New section.
63913
63914 2007-03-12  Jim Meyering  <jim@meyering.net>
63915
63916         * build-aux/bootstrap: New file.
63917         * build-aux/bootstrap.conf: New file, from coreutils.
63918
63919 2007-03-11  Bruno Haible  <bruno@clisp.org>
63920
63921         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63922
63923 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63924
63925         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63926         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63927         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63928
63929 2007-03-11  Bruno Haible  <bruno@clisp.org>
63930
63931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63932         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63933
63934 2007-03-11  Bruno Haible  <bruno@clisp.org>
63935
63936         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63937         formula. Needed for SunPRO C 5.0.
63938
63939 2007-03-11  Bruno Haible  <bruno@clisp.org>
63940
63941         * modules/long-options (Depends-on): Add getopt.
63942
63943 2007-03-11  Bruno Haible  <bruno@clisp.org>
63944
63945         * modules/modechange (Depends-on): Add stdbool.
63946
63947 2007-03-11  Bruno Haible  <bruno@clisp.org>
63948
63949         * modules/i-ring (Depends-on): Add stdbool.
63950
63951 2007-03-11  Bruno Haible  <bruno@clisp.org>
63952
63953         * modules/gc-des (Depends-on): Add stdbool.
63954
63955 2007-03-11  Bruno Haible  <bruno@clisp.org>
63956
63957         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63958
63959 2007-03-11  Bruno Haible  <bruno@clisp.org>
63960
63961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63962
63963 2007-03-11  Bruno Haible  <bruno@clisp.org>
63964
63965         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63966
63967 2007-03-11  Bruno Haible  <bruno@clisp.org>
63968
63969         * lib/vasnprintf.c (sprintf): Undefine.
63970
63971 2007-03-11  Bruno Haible  <bruno@clisp.org>
63972
63973         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63974         initializers in SunPRO C and Compaq C compilers.
63975
63976 2007-03-11  Bruno Haible  <bruno@clisp.org>
63977
63978         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63979         decrementing code ANSI C compliant.
63980
63981 2007-03-11  Bruno Haible  <bruno@clisp.org>
63982
63983         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63984         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63985
63986 2007-03-11  Bruno Haible  <bruno@clisp.org>
63987
63988         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63989         <stdbool.h> substitute doesn't pass.
63990
63991 2007-03-11  Bruno Haible  <bruno@clisp.org>
63992
63993         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63994
63995 2007-03-11  Bruno Haible  <bruno@clisp.org>
63996
63997         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63998         script, for submission to autobuild.josefsson.org.
63999
64000 2007-03-10  Bruno Haible  <bruno@clisp.org>
64001
64002         * modules/canonicalize-lgpl-tests: New file.
64003         * tests/test-canonicalize-lgpl.sh: New file.
64004         * tests/test-canonicalize-lgpl.c: New file.
64005
64006         * modules/c-strcase-tests: New file.
64007         * tests/test-c-strcase.sh: New file.
64008         * tests/test-c-strcasecmp.c: New file.
64009         * tests/test-c-strncasecmp.c: New file.
64010
64011         * modules/atexit-tests: New file.
64012         * tests/test-atexit.sh: New file.
64013         * tests/test-atexit.c: New file.
64014
64015 2007-03-10  Bruno Haible  <bruno@clisp.org>
64016
64017         * tests/test-binary-io.sh: Use temporary filenames that are not so
64018         likely to clash with those of other tests (in a parallel make).
64019         * tests/test-binary-io.c: Likewise.
64020
64021 2007-03-10  Bruno Haible  <bruno@clisp.org>
64022
64023         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64024         fallback; use #error instead.
64025         Suggested by Simon Josefsson.
64026
64027 2007-03-10  Bruno Haible  <bruno@clisp.org>
64028
64029         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64030         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64031         first and the last.
64032
64033 2007-03-10  Bruno Haible  <bruno@clisp.org>
64034
64035         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64036
64037 2007-03-10  Bruno Haible  <bruno@clisp.org>
64038
64039         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64040         "make distcheck".
64041         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64042         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64043         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64044
64045 2007-03-10  Bruno Haible  <bruno@clisp.org>
64046
64047         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64048         variable.
64049         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64050         variable.
64051
64052 2007-03-09  Eric Blake  <ebb9@byu.net>
64053         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64054
64055         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64056         types are not being provided by gnulib.
64057         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64058         types are supported.
64059
64060 2007-03-10  Bruno Haible  <bruno@clisp.org>
64061
64062         * lib/stdio_.h (__attribute__): New macro.
64063         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64064         vsprintf): Specify __attribute__ __format__ for GCC.
64065         Suggested by Eric Blake.
64066
64067 2007-03-09  Bruno Haible  <bruno@clisp.org>
64068
64069         * modules/printf-posix-tests: New file.
64070         * tests/test-printf-posix.sh: New file.
64071         * tests/test-printf-posix.c: New file.
64072
64073         * modules/printf-posix: New file.
64074         * lib/printf.c: New file.
64075         * m4/printf-posix-rpl.m4: New file.
64076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64077         REPLACE_PRINTF.
64078         * lib/stdio_.h (printf): New declaration.
64079         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64080         ____strfmon____): New macros.
64081         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64082         REPLACE_PRINTF.
64083
64084 2007-03-09  Bruno Haible  <bruno@clisp.org>
64085
64086         * tests/test-vasnprintf-posix2.sh: New file.
64087         * tests/test-vasnprintf-posix2.c: New file.
64088         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64089         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64090         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64091
64092         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64093         a locale dependent decimal point, rather than always '.'.
64094
64095 2007-03-09  Eric Blake  <ebb9@byu.net>
64096
64097         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64098         spite of platforms like Tandem/NSK that define it to -1.
64099
64100 2007-03-08  Bruno Haible  <bruno@clisp.org>
64101
64102         * modules/vprintf-posix-tests: New file.
64103         * tests/test-vprintf-posix.sh: New file.
64104         * tests/test-vprintf-posix.c: New file.
64105         * tests/test-printf-posix.h: New file.
64106
64107         * modules/vprintf-posix: New file.
64108         * lib/vprintf.c: New file.
64109         * m4/vprintf-posix.m4: New file.
64110         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64111         REPLACE_VPRINTF.
64112         * lib/stdio_.h (vprintf): New declaration.
64113         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64114         REPLACE_VPRINTF.
64115
64116 2007-03-08  Bruno Haible  <bruno@clisp.org>
64117
64118         * modules/fprintf-posix-tests: New file.
64119         * tests/test-fprintf-posix.sh: New file.
64120         * tests/test-fprintf-posix.c: New file.
64121
64122         * modules/fprintf-posix: New file.
64123         * lib/fprintf.c: New file.
64124         * m4/fprintf-posix.m4: New file.
64125         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64126         REPLACE_FPRINTF.
64127         * lib/stdio_.h (fprintf): New declaration.
64128         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64129         REPLACE_FPRINTF.
64130
64131 2007-03-08  Bruno Haible  <bruno@clisp.org>
64132
64133         * modules/vfprintf-posix-tests: New file.
64134         * tests/test-vfprintf-posix.sh: New file.
64135         * tests/test-vfprintf-posix.c: New file.
64136         * tests/test-fprintf-posix.h: New file.
64137         * tests/test-fprintf-posix.out: New file.
64138
64139         * modules/vfprintf-posix: New file.
64140         * lib/vfprintf.c: New file.
64141         * m4/vfprintf-posix.m4: New file.
64142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64143         REPLACE_VFPRINTF.
64144         * lib/stdio_.h (vfprintf): New declaration.
64145         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64146         REPLACE_VFPRINTF.
64147
64148 2007-03-08  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64151
64152 2007-03-08  Bruno Haible  <bruno@clisp.org>
64153
64154         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64155         instead of 'expr' invocations.
64156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64159         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64160         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64161         Suggested by Paul Eggert.
64162
64163 2007-03-08  Bruno Haible  <bruno@clisp.org>
64164
64165         * modules/fseterr-tests: New file.
64166         * tests/test-fseterr.c: New file.
64167
64168         * modules/fseterr: New file.
64169         * lib/fseterr.h: New file.
64170         * lib/fseterr.c: New file.
64171
64172 2007-03-08  Bruno Haible  <bruno@clisp.org>
64173
64174         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64175         * lib/getopt_.h: Likewise.
64176         * lib/mbswidth.h: Likewise.
64177         * lib/setenv.h: Likewise.
64178         * lib/vasnprintf.h: Likewise.
64179         * lib/vasprintf.h: Likewise.
64180         * lib/verror.h: Likewise.
64181         * lib/xsetenv.h: Likewise.
64182         * lib/xvasprintf.h: Likewise.
64183
64184 2007-03-08  Jim Meyering  <jim@meyering.net>
64185
64186         * users.txt: Add parted.
64187
64188         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64189
64190 2007-03-07  Bruno Haible  <bruno@clisp.org>
64191
64192         * m4/printf.m4: Make the shell script snippets copy&pastable.
64193
64194 2007-03-02  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/netinet_in_.h: New file.
64197         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64198         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64199         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64200         (Depends-on): Add absolute-header.
64201         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64202         into netinet/in.h.
64203
64204 2007-03-03  Bruno Haible  <bruno@clisp.org>
64205
64206         * lib/sys_select_.h: New file.
64207         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64208         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64209         * modules/sys_select (Files): Add lib/sys_select_.h.
64210         (Depends-on): Add absolute-header.
64211         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64212         into sys/select.h.
64213
64214 2007-03-02  Bruno Haible  <bruno@clisp.org>
64215
64216         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64217         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64218         values.
64219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64220         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64221         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64222         * modules/sys_socket (Depends-on): Add absolute-header.
64223         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64224         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64225         (Include): Remove requirement of inclusion of <sys/types.h>.
64226
64227 2007-03-02  Bruno Haible  <bruno@clisp.org>
64228
64229         * lib/byteswap_.h (bswap_32): Fix formula.
64230
64231 2007-03-06  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/sprintf-posix-tests: New file.
64234         * tests/test-sprintf-posix.c: New file.
64235
64236         * modules/sprintf-posix: New file.
64237         * lib/sprintf.c: New file.
64238         * m4/sprintf-posix.m4: New file.
64239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64240         REPLACE_SPRINTF.
64241         * lib/stdio_.h (sprintf): New declaration.
64242         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64243         REPLACE_SPRINTF.
64244
64245 2007-03-06  Bruno Haible  <bruno@clisp.org>
64246
64247         * modules/vsprintf-posix-tests: New file.
64248         * tests/test-vsprintf-posix.c: New file.
64249         * tests/test-sprintf-posix.h: New file.
64250
64251         * modules/vsprintf-posix: New file.
64252         * lib/vsprintf.c: New file.
64253         * m4/vsprintf-posix.m4: New file.
64254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64255         REPLACE_VSPRINTF.
64256         * lib/stdio_.h (vsprintf): New declaration.
64257         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64258         REPLACE_VSPRINTF.
64259
64260 2007-03-06  Bruno Haible  <bruno@clisp.org>
64261
64262         * modules/vsnprintf (Depend-on): Remove minmax.
64263
64264 2007-03-06  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/snprintf-posix-tests: New file.
64267         * tests/test-snprintf-posix.c: New file.
64268
64269         * modules/snprintf-posix: New file.
64270         * m4/snprintf-posix.m4: New file.
64271         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64272         gl_FUNC_SNPRINTF.
64273         (gl_FUNC_SNPRINTF): Invoke it.
64274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64275         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64276         is set.
64277         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64278
64279 2007-03-06  Bruno Haible  <bruno@clisp.org>
64280
64281         * modules/vsnprintf-posix-tests: New file.
64282         * tests/test-vsnprintf-posix.c: New file.
64283         * tests/test-snprintf-posix.h: New file.
64284
64285         * modules/vsnprintf-posix: New file.
64286         * m4/vsnprintf-posix.m4: New file.
64287         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64288         gl_FUNC_VSNPRINTF.
64289         (gl_FUNC_VSNPRINTF): Invoke it.
64290         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64291         * lib/stdio_.h (vsnprintf): Define as a replacement if
64292         REPLACE_VSNPRINTF is set.
64293         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64294
64295 2007-03-06  Bruno Haible  <bruno@clisp.org>
64296
64297         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64298         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64299
64300 2007-03-06  Bruno Haible  <bruno@clisp.org>
64301
64302         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64303         (asinl): Declare also if HAVE_DECL_ASINL is set.
64304         (atanl): Declare also if HAVE_DECL_ATANL is set.
64305         (ceill): Declare also if HAVE_DECL_CEILL is set.
64306         (cosl): Declare also if HAVE_DECL_COSL is set.
64307         (expl): Declare also if HAVE_DECL_EXPL is set.
64308         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64309         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64310         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64311         (logl): Declare also if HAVE_DECL_LOGL is set.
64312         (sinl): Declare also if HAVE_DECL_SINL is set.
64313         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64314         (tanl): Declare also if HAVE_DECL_TANL is set.
64315         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64317         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64318         declaration of frexpl, ldexpl.
64319         * modules/printf-frexpl (Depends-on): Add math.
64320         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64321
64322 2007-03-05  Bruno Haible  <bruno@clisp.org>
64323
64324         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64325         frexpl and ldexpl are declared.
64326         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64327
64328 2007-03-05  Bruno Haible  <bruno@clisp.org>
64329
64330         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64331         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64332
64333 2007-03-05  Bruno Haible  <bruno@clisp.org>
64334
64335         * lib/stdio_.h: Include <stddef.h>.
64336
64337 2007-03-05  Bruno Haible  <bruno@clisp.org>
64338
64339         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64340
64341 2007-03-05  Bruno Haible  <bruno@clisp.org>
64342
64343         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64344         NetBSD 4, from Ralf Wildenhues.
64345
64346 2007-03-04  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/vasprintf.h: Update #if logic for the case when the functions
64349         exist but are overridden.
64350
64351 2007-03-04  Bruno Haible  <bruno@clisp.org>
64352
64353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64354         implementations: glibc-2.4 and MacOS X 10.3.
64355         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64356         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64357         * tests/test-vasprintf-posix.c (test_function): Likewise.
64358
64359 2007-03-04  Bruno Haible  <bruno@clisp.org>
64360
64361         * modules/vasprintf-posix-tests: New file.
64362         * tests/test-vasprintf-posix.c: New file.
64363
64364         * modules/vasprintf-posix: New file.
64365         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64366         defined.
64367         * m4/vasprintf-posix.m4: New file.
64368         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64369         gl_FUNC_VASPRINTF.
64370         (gl_FUNC_VASPRINTF): Invoke it.
64371         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64372         here.
64373         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64374
64375 2007-03-04  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64378         REPLACE_GETTIMEOFDAY.
64379         * modules/sys_time (Makefile.am): Likewise.
64380         * m4/sys_time_h.m4: Likewise.
64381         * m4/gettimeofday.m4: Likewise.
64382
64383 2007-03-04  Bruno Haible  <bruno@clisp.org>
64384
64385         * modules/vasnprintf-posix-tests: New file.
64386         * tests/test-vasnprintf-posix.c: New file.
64387
64388         * modules/vasnprintf-posix: New file.
64389         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64390         printf-frexpl.h.
64391         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64392         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64393         REPLACE_VASNPRINTF is defined.
64394         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64395         gl_FUNC_VASNPRINTF.
64396         (gl_FUNC_VASNPRINTF): Invoke it.
64397         * m4/vasnprintf-posix.m4: New file.
64398         * m4/printf.m4: New file.
64399
64400 2007-03-04  Bruno Haible  <bruno@clisp.org>
64401
64402         Compile progreloc.c only if --enable-relocatable is specified.
64403         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64404         if --enable-relocatable was specified.
64405         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64406         lib_SOURCES.
64407
64408 2007-03-04  Jim Meyering  <jim@meyering.net>
64409
64410         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64411         Use it consistently, rather than enumerating errno constants.
64412
64413 2007-03-04  Bruno Haible  <bruno@clisp.org>
64414
64415         * modules/xvasprintf-tests: New file.
64416         * tests/test-xvasprintf.c: New file.
64417
64418         * modules/vasprintf-tests: New file.
64419         * tests/test-vasprintf.c: New file.
64420
64421         * modules/vasnprintf-tests: New file.
64422         * tests/test-vasnprintf.c: New file.
64423
64424         * modules/vsnprintf-tests: New file.
64425         * tests/test-vsnprintf.c: New file.
64426
64427         * modules/snprintf-tests: New file.
64428         * tests/test-snprintf.c: New file.
64429
64430 2007-03-04  Bruno Haible  <bruno@clisp.org>
64431
64432         Compile relocatable.c only if --enable-relocatable is specified.
64433         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64434         gl_RELOCATABLE_LIBRARY.
64435         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64436         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64437         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64438         gl_RELOCATABLE_LIBRARY.
64439         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64440         (Makefile.am): Remove lib_SOURCES.
64441         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64442         gl_RELOCATABLE_LIBRARY.
64443         (Makefile.am): Remove lib_SOURCES.
64444         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64445         always.
64446         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64447         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64448
64449 2007-03-04  Bruno Haible  <bruno@clisp.org>
64450
64451         * modules/argmatch-tests: New file.
64452         * tests/test-argmatch.c: New file.
64453
64454         * tests/test-allocsa.c (main): Halve the number of loop runs.
64455
64456         * modules/alloca-opt-tests: New file.
64457         * tests/test-alloca-opt.c: New file.
64458
64459 2007-03-04  Jim Meyering  <jim@meyering.net>
64460
64461         Work around difference between Linux ACLs and Solaris 10 ZFS.
64462         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64463         for EINVAL.
64464
64465 2007-03-03  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/relocatable-prog (Depends-on): Add back progreloc's
64468         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64469
64470 2007-03-03  Bruno Haible  <bruno@clisp.org>
64471
64472         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64473         * modules/relocatable-lib: New file.
64474
64475 2007-03-03  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/relocatable-prog: Renamed from modules/relocatable.
64478         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64479
64480 2007-03-03  Bruno Haible  <bruno@clisp.org>
64481
64482         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64483         m4/relocatable-lib.m4.
64484         (Depends-on): Remove 'relocatable'.
64485         (configure.ac): Add gl_RELOCATABLE_NOP.
64486
64487 2007-03-03  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/relocatable-prog-wrapper: New file.
64490         * modules/relocatable (Depends-on): Add it. Remove all other
64491         dependencies except progname.
64492         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64493
64494         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64495         (gl_FUNC_STRERROR): Nop.
64496         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64497
64498         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64499         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64500
64501         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64502         (gl_FUNC_READLINK): Update.
64503
64504         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64505
64506 2007-03-03  Bruno Haible  <bruno@clisp.org>
64507
64508         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64509         * modules/xreadlink (Depends-on): Add unistd.
64510         * modules/xreadlink-with-size (Depends-on): Likewise.
64511
64512 2007-03-03  Bruno Haible  <bruno@clisp.org>
64513
64514         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64515         extracted from gt_FUNC_SETENV.
64516         (gt_FUNC_SETENV): Remove macro.
64517         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64518         remove gt_FUNC_SETENV.
64519
64520 2007-03-03  Bruno Haible  <bruno@clisp.org>
64521
64522         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64523         ENABLE_RELOCATABLE here.
64524         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64525
64526 2007-03-03  Bruno Haible  <bruno@clisp.org>
64527
64528         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64529         * tests/test-rbtreehash_list.c: Include progname.h.
64530         (main): Call set_program_name.
64531
64532         * modules/rbtree-oset-tests (Depends-on): Add progname.
64533         * tests/test-rbtree_oset.c: Include progname.h.
64534         (main): Call set_program_name.
64535
64536         * modules/rbtree-list-tests (Depends-on): Add progname.
64537         * tests/test-rbtree_list.c: Include progname.h.
64538         (main): Call set_program_name.
64539
64540         * modules/linked-list-tests (Depends-on): Add progname.
64541         * tests/test-linked_list.c: Include progname.h.
64542         (main): Call set_program_name.
64543
64544 2007-03-03  Bruno Haible  <bruno@clisp.org>
64545
64546         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64547         All uses of __restrict changed to _Restrict_.
64548         * lib/glob_.h (__restrict): Remove macro.
64549
64550 2007-03-02  Bruno Haible  <bruno@clisp.org>
64551
64552         * modules/gettext (configure.ac): Require gettext infrastructure
64553         from version 0.16.1.
64554
64555 2007-03-02  Bruno Haible  <bruno@clisp.org>
64556
64557         * modules/linkedhash-list-tests (Depends-on): Add progname.
64558         * tests/test-linkedhash_list.c: Include progname.h.
64559         (main): Call set_program_name.
64560
64561         * modules/carray-list-tests (Depends-on): Add progname.
64562         * tests/test-carray_list.c: Include progname.h.
64563         (main): Call set_program_name.
64564
64565         * modules/avltreehash-list-tests (Depends-on): Add progname.
64566         * tests/test-avltreehash_list.c: Include progname.h.
64567         (main): Call set_program_name.
64568
64569         * modules/avltree-oset-tests (Depends-on): Add progname.
64570         * tests/test-avltree_oset.c: Include progname.h.
64571         (main): Call set_program_name.
64572
64573         * modules/avltree-list-tests (Depends-on): Add progname.
64574         * tests/test-avltree_list.c: Include progname.h.
64575         (main): Call set_program_name.
64576
64577         * modules/array-oset-tests (Depends-on): Add progname.
64578         * tests/test-array_oset.c: Include progname.h.
64579         (main): Call set_program_name.
64580
64581         * modules/array-list-tests (Depends-on): Add progname.
64582         * tests/test-array_list.c: Include progname.h.
64583         (main): Call set_program_name.
64584
64585         * modules/argp-tests (Depends-on): Add progname.
64586         * tests/test-argp.c: Include argp.h first. Include progname.h.
64587         (main): Call set_program_name.
64588
64589 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64590
64591         * doc/gnulib-tool.texi (Initial import): Reword description of
64592         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64593         limited effect even if defined after the first system include.
64594
64595 2007-03-01  Bruno Haible  <bruno@clisp.org>
64596
64597         * build-aux/config.libpath: Update to libtool-1.5.22.
64598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64599
64600 2007-03-01  Bruno Haible  <bruno@clisp.org>
64601
64602         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64603         foo_CFLAGS.
64604         Reported by Ralf Wildenhues.
64605
64606 2007-03-01  Bruno Haible  <bruno@clisp.org>
64607
64608         * build-aux/install-reloc: Remove object files left over by some
64609         compilers.
64610         Reported by Ralf Wildenhues.
64611
64612 2007-03-01  Bruno Haible  <bruno@clisp.org>
64613
64614         * build-aux/install-reloc: Break long lines.
64615
64616 2007-03-01  Bruno Haible  <bruno@clisp.org>
64617
64618         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64619         Reported by Ralf Wildenhues.
64620
64621 2007-03-01  Bruno Haible  <bruno@clisp.org>
64622
64623         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64624         include ordering constraints.
64625
64626 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64627
64628         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64629         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64630         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64631         as another example.
64632         * lib/time_.h: Fix misspelling.
64633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64634         Require gl_HEADER_TIME_H_DEFAULTS.
64635         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64636         * m4/time_r.m4 (gl_TIME_R): Likewise.
64637         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64638
64639 2007-03-01  Bruno Haible  <bruno@clisp.org>
64640
64641         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64642         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64643
64644 2007-03-01  Jim Meyering  <jim@meyering.net>
64645
64646         * modules/xreadlink (Maintainer): Add my name.
64647         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64648
64649 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64650             Bruno Haible  <bruno@clisp.org>
64651
64652         * build-aux/install-reloc: Compile also c-ctype.c.
64653         * build-aux/relocatable.sh.in: New file.
64654         * doc/relocatable.texi: New file.
64655         * doc/relocatable-maint.texi: New file.
64656         * doc/gnulib.texi: Include relocatable-maint.texi.
64657         * lib/progreloc.c: Include unistd.h unconditionally.
64658         * lib/relocwrapper.c: Include unistd.h unconditionally.
64659         Include c-ctype.h.
64660         (add_dotbin): Use c_tolower.
64661         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64662         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64663         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64664         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64665         to m4/relocatable-lib.m4.
64666         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64667         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64668         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64669         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64670         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64671         * modules/relocatable: New file.
64672         * modules/relocatable-lib: New file.
64673         * modules/relocatable-script: New file.
64674
64675 2007-02-28  Bruno Haible  <bruno@clisp.org>
64676
64677         Import --enable-relocatable infrastructure.
64678         * build-aux/config.libpath: New file, from GNU gettext.
64679         * build-aux/install-reloc: New file, from GNU gettext.
64680         * build-aux/reloc-ldflags: New file, from GNU gettext.
64681         * lib/relocatable.h: New file, from GNU gettext.
64682         * lib/relocatable.c: New file, from GNU gettext.
64683         * lib/relocwrapper.c: New file, from GNU gettext.
64684         * m4/relocatable.m4: New file, from GNU gettext.
64685
64686 2007-02-28  Bruno Haible  <bruno@clisp.org>
64687
64688         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64689
64690         * modules/xreadlink: New file, from GNU gettext with modifications.
64691         * lib/xreadlink.c: New file, from GNU gettext.
64692         * lib/xreadlink.h: Add comments.
64693         (xreadlink): New declaration.
64694
64695         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64696         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64697         lib/xreadlink-with-size.c.
64698         (configure.ac): Remove gl_XREADLINK invocation.
64699         (Makefile.am): Augment lib_SOURCES.
64700         * m4/xreadlink.m4: Remove file.
64701         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64702         (xreadlink_with_size): Renamed from xreadink.
64703         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64704         * modules/canonicalize (Depends-on): Replace xreadlink with
64705         xreadlink-with-size.
64706         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64707
64708 2007-02-25  Jim Meyering  <jim@meyering.net>
64709
64710         * build-aux/announce-gen: When complaining about excess arguments,
64711         list them.
64712
64713 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64714
64715         * README: Document signed integer overflow situation more
64716         accurately.
64717
64718 2007-02-25  Bruno Haible  <bruno@clisp.org>
64719
64720         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64721         'a' or 'A' conversion.
64722
64723 2007-02-25  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/filename: Renamed from modules/pathname.
64726         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64727         lib/concatpath.c with lib/concat-filename.c.
64728         (Makefile.am): Update.
64729         (Include): Replace pathname.h with filename.h.
64730         * lib/filename.h: Renamed from lib/pathname.h.
64731         (concatenated_filename): Renamed from concatenated_pathname.
64732         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64733         (concatenated_filename): Renamed from concatenated_pathname.
64734         * lib/findprog.c: Include filename.h instead of pathname.h.
64735         (find_in_path): Update.
64736         * lib/javacomp.c: Include filename.h instead of pathname.h.
64737         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64738         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64739         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64740         is_oldgcj_14_13_usable, is_javac_usable): Update.
64741         * lib/javaexec.c: Include filename.h instead of pathname.h.
64742         (execute_java_class): Update.
64743         * modules/findprog: Update.
64744         * modules/javacomp: Update.
64745         * modules/javaexec: Update.
64746         * MODULES.html.sh (File system functions): Add 'filename', remove
64747         'pathname'.
64748
64749 2007-02-25  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/printf-frexpl-tests: New file.
64752         * tests/test-printf-frexpl.c: New file.
64753
64754         * modules/printf-frexpl: New file.
64755         * lib/printf-frexpl.h: New file.
64756         * lib/printf-frexpl.c: New file.
64757         * m4/printf-frexpl.m4: New file.
64758
64759 2007-02-25  Bruno Haible  <bruno@clisp.org>
64760
64761         * modules/printf-frexp-tests: New file.
64762         * tests/test-printf-frexp.c: New file.
64763
64764         * modules/printf-frexp: New file.
64765         * lib/printf-frexp.h: New file.
64766         * lib/printf-frexp.c: New file.
64767         * m4/printf-frexp.m4: New file.
64768
64769 2007-02-25  Bruno Haible  <bruno@clisp.org>
64770
64771         Assume automake >= 1.10 for the tests.
64772         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64773         * modules/arctwo-tests: Likewise.
64774         * modules/argp-tests: Likewise.
64775         * modules/avltree-list-tests: Likewise.
64776         * modules/avltree-oset-tests: Likewise.
64777         * modules/avltreehash-list-tests: Likewise.
64778         * modules/carray-list-tests: Likewise.
64779         * modules/crc-tests: Likewise.
64780         * modules/des-tests: Likewise.
64781         * modules/gc-arcfour-tests: Likewise.
64782         * modules/gc-arctwo-tests: Likewise.
64783         * modules/gc-des-tests: Likewise.
64784         * modules/gc-hmac-md5-tests: Likewise.
64785         * modules/gc-hmac-sha1-tests: Likewise.
64786         * modules/gc-md2-tests: Likewise.
64787         * modules/gc-md4-tests: Likewise.
64788         * modules/gc-md5-tests: Likewise.
64789         * modules/gc-pbkdf2-sha1-tests: Likewise.
64790         * modules/gc-rijndael-tests: Likewise.
64791         * modules/gc-sha1-tests: Likewise.
64792         * modules/gc-tests: Likewise.
64793         * modules/getaddrinfo-tests: Likewise.
64794         * modules/hmac-md5-tests: Likewise.
64795         * modules/hmac-sha1-tests: Likewise.
64796         * modules/linked-list-tests: Likewise.
64797         * modules/linkedhash-list-tests: Likewise.
64798         * modules/lock-tests: Likewise.
64799         * modules/md2-tests: Likewise.
64800         * modules/md4-tests: Likewise.
64801         * modules/md5-tests: Likewise.
64802         * modules/rbtree-list-tests: Likewise.
64803         * modules/rbtree-oset-tests: Likewise.
64804         * modules/rbtreehash-list-tests: Likewise.
64805         * modules/read-file-tests: Likewise.
64806         * modules/rijndael-tests: Likewise.
64807         * modules/stdint-tests: Likewise.
64808         * modules/tls-tests: Likewise.
64809
64810 2007-02-24  Bruno Haible  <bruno@clisp.org>
64811
64812         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64813         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64814         function; instead check whether isnan with a double argument links.
64815         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64816         function; instead check whether isnan with a 'long double' argument
64817         links.
64818         Reported by Eric Blake <ebb9@byu.net>.
64819
64820 2007-02-24  Bruno Haible  <bruno@clisp.org>
64821
64822         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64823         defined.
64824         * lib/isnanl.c: Remove all code. Just include isnan.c.
64825         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64826
64827 2007-02-25  Jim Meyering  <jim@meyering.net>
64828
64829         Avoid conflicting types for 'unsetenv' on FreeBSD.
64830         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64831         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64832         in stdlib.h.
64833
64834 2007-02-24  Bruno Haible  <bruno@clisp.org>
64835
64836         * modules/isnanl-nolibm-tests: New file.
64837         * tests/test-isnanl.c: New file.
64838
64839         * modules/isnanl-nolibm: New file.
64840         * lib/isnanl.h: New file.
64841         * lib/isnanl.c: New file.
64842         * m4/isnanl.m4: New file.
64843
64844 2007-02-24  Bruno Haible  <bruno@clisp.org>
64845
64846         * modules/isnan-nolibm-tests: New file.
64847         * tests/test-isnan.c: New file.
64848
64849         * modules/isnan-nolibm: New file.
64850         * lib/isnan.h: New file.
64851         * lib/isnan.c: New file.
64852         * m4/isnan.m4: New file.
64853
64854 2007-02-24  Bruno Haible  <bruno@clisp.org>
64855
64856         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64857         assume that an exponent fits in 20 bits.
64858
64859 2007-02-24  Jim Meyering  <jim@meyering.net>
64860
64861         * m4/regex.m4: Update the description of the configure-time option,
64862         --without-included-regex, to state accurately what the defaults are,
64863         and perhaps to give people an idea why using this option is risky.
64864
64865 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64868         loops on small arguments.  This attempts to avoid the problem
64869         Bruno Haible reported for AIX 4.3.2 in
64870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64871
64872 2007-02-23  Bruno Haible  <bruno@clisp.org>
64873
64874         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64875         Needed for help2man.
64876
64877 2007-02-23  Karl Berry  <karl@gnu.org>
64878
64879         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64880         exists, foo.h should be cvs-ignored, not committed.
64881
64882 2007-02-23  Eric Blake  <ebb9@byu.net>
64883
64884         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64885         * lib/stat-time.h (includes): Likewise.
64886         * lib/utimecmp.c (includes): Likewise.
64887         * lib/utimens.h (includes): Likewise.
64888         * lib/getdate.y (includes): Also include "timespec.h" for use
64889         internal to the module.
64890         * modules/utimens (Depends-on): Revert yesterday's patch.
64891         * modules/nanosleep (Depends-on): Add missing dependency.
64892
64893 2007-02-22  Bruno Haible  <bruno@clisp.org>
64894
64895         * lib/glob.c: Don't include getlogin_r.h.
64896
64897 2007-02-22  Jim Meyering  <jim@meyering.net>
64898
64899         * modules/utimens (Depends-on): Add timespec, required for
64900         utimens.h's inclusion of timespec.h.
64901
64902 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64903
64904         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64905         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64906         Schwab in
64907         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64908         I'll try to think of a better way to fix the Solaris problem.
64909
64910         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64911         like glibc; on Solaris 10, it fails with errno == EINVAL.
64912         POSIX says the behavior is unspecified if the first argument is NULL,
64913         so play it safe and never pass NULL to the system getcwd.
64914
64915 2007-02-21  Jim Meyering  <jim@meyering.net>
64916
64917         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64918         of gettimeofday.  It would conflict with the one now always
64919         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64920         an IRIX 6.5 build failure.
64921
64922 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64923
64924         Minor fixups to port to Solaris 10 with Sun C 5.8.
64925         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64926         * modules/getcwd (Depends-on): Add dirfd.
64927         * lib/putenv.c (putenv): #undef it.
64928         (rpl_putenv): New decl.
64929         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64930
64931 2007-02-20  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/stdio-tests: New file.
64934         * tests/test-stdio.c: New file.
64935
64936         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64937         (Depends-on): Add stdio.
64938         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64939         (Include): Use <stdio.h> instead of vsnprintf.h.
64940         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64941         HAVE_DECL_VSNPRINTF.
64942         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64943
64944         * modules/snprintf (Files): Remove lib/snprintf.h.
64945         (Depends-on): Add stdio.
64946         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64947         (Include): Use <stdio.h> instead of snprintf.h.
64948         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64949         HAVE_DECL_SNPRINTF.
64950         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64951         * lib/getaddrinfo.c: Likewise.
64952
64953         * modules/stdio: New file.
64954         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64955         * lib/snprintf.h: Remove file.
64956         * lib/vsnprintf.h: Remove file.
64957         * lib/.cppi-disable: Remove snprintf.h.
64958         * m4/stdio_h.m4: New file.
64959         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64960
64961 2007-02-20  Jim Meyering  <jim@meyering.net>
64962
64963         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64964         used by e.g., mingw.  From Bruno Haible.
64965
64966 2007-02-19  Bruno Haible  <bruno@clisp.org>
64967
64968         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64969         warnings.
64970         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64971
64972 2007-02-19  Bruno Haible  <bruno@clisp.org>
64973
64974         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64975         from mingw users.
64976
64977 2007-02-19  Bruno Haible  <bruno@clisp.org>
64978
64979         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64980         warnings.
64981         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64982
64983 2007-02-19  Jim Meyering  <jim@meyering.net>
64984
64985         Don't use FD after a successful "fdopendir (fd)".
64986         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64987         Reset it by calling dirfd on the just-obtained DIR*.
64988
64989         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64990         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64991
64992 2007-02-18  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/readlink.c: Include <unistd.h>.
64995         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64996         HAVE_READLINK.
64997         * modules/readlink (Depends-on): Add unistd.
64998         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64999         (Include): Add <unistd.h>.
65000
65001         * lib/getlogin_r.h: Remove file.
65002         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65003         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65004         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65005         HAVE_DECL_GETLOGIN_R.
65006         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65007         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65008         (Include): Use <unistd.h> instead of getlogin_r.h.
65009
65010         * lib/getcwd.h: Remove file.
65011         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65012         * lib/xgetcwd.c: Likewise.
65013         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65014         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65015         * modules/getcwd (Files): Remove lib/getcwd.h.
65016         (Depends-on): Add unistd.
65017         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65018         (Include): Use <unistd.h> instad of getcwd.h.
65019
65020         * lib/ftruncate.c: Include <unistd.h> first.
65021         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65022         Set HAVE_FTRUNCATE.
65023         * modules/ftruncate (Depends-on): Add unistd.
65024         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65025
65026         * lib/fchdir.c: Include <unistd.h> first.
65027         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65029         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65030         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65031         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65032
65033         * lib/dup2.c: Include <unistd.h> first.
65034         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65035         HAVE_DUP2.
65036         * modules/dup2 (Depends-on): Add unistd.
65037         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65038
65039         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65040         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65041         REPLACE_CHOWN. Don't define chown as a macro here.
65042         * modules/chown (Depends-on): Add unistd.
65043         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65044
65045         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65046         Add definition for GL_LINK_WARNING.
65047         (chown, dup2): New declarations.
65048         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65049         link warning.
65050         (ftruncate): New declaration.
65051         (getcwd): New declaration, taken from old getcwd.h.
65052         (getlogin_r): New declaration, taken from old getlogin_r.h.
65053         (readlink): New declaration.
65054         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65055         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65056         (gl_PREREQ_UNISTD): Remove macro.
65057         (gl_UNISTD_MODULE_INDICATOR): New macro.
65058         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65059         many new variables. Don't set UNISTD_H.
65060         * modules/unistd (Description): Change.
65061         (Depends-on): Add link-warning.
65062         (configure.ac): Update.
65063         (Makefile.am): Create unistd.h always. Substitute many new variables
65064         into it.
65065
65066 2007-02-18  Bruno Haible  <bruno@clisp.org>
65067
65068         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65069         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65070         HAVE_GETSUBOPT.
65071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65072         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65073         * lib/getsubopt.h: Remove file.
65074         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65075         (Depends-on): Add stdlib.
65076         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65077         (Includes): Use <stdlib.h> instead of getsubopt.h.
65078         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65079         Set HAVE_GETSUBOPT.
65080         * lib/getsubopt.c: Don't include getsubopt.h.
65081
65082 2007-02-18  Bruno Haible  <bruno@clisp.org>
65083
65084         * modules/fchdir (Depends-on): Add dup2.
65085
65086 2007-02-18  Bruno Haible  <bruno@clisp.org>
65087
65088         * lib/stdlib_.h: Handle glibc's special invocation convention
65089         specially.
65090
65091 2007-02-18  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/stdlib-tests: New file.
65094         * tests/test-stdlib.c: New file.
65095
65096         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65097         (Depends-on): Add stdlib.
65098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65099         (Includes): Use <stdlib.h> instead of mkstemp.h.
65100         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65101         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65102         * lib/mkstemp.c: Don't include mkstemp.h.
65103         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65104         * lib/stdlib--.h: Don't include mkstemp.h.
65105
65106         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65107         (Depends-on): Add stdlib.
65108         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65109         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65110         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65111         HAVE_MKDTEMP.
65112         * lib/mkdtemp.c: Don't include mkdtemp.h.
65113         * lib/clean-temp.c: Don't include mkdtemp.h.
65114
65115         * modules/exit (Files): Remove lib/exit.h.
65116         (Depends-on): Add stdlib.
65117         (Makefile.am): Remove lib_SOURCES.
65118         (Include): Use <stdlib.h> instead of exit.h.
65119         * lib/argmatch.c: Don't include exit.h.
65120         * lib/execute.c: Likewise.
65121         * lib/pagealign_alloc.c: Likewise.
65122         * lib/pipe.c: Likewise.
65123         * lib/wait-process.c: Likewise.
65124         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65125         * lib/exitfail.c: Likewise.
65126         * lib/savewd.c: Likewise.
65127         * lib/xsetenv.c: Likewise.
65128
65129         * modules/stdlib: New file.
65130         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65131         and extra comments about mkstemp().
65132         * lib/exit.h: Remove file.
65133         * lib/mkdtemp.h: Remove file.
65134         * lib/mkstemp.h: Remove file.
65135         * m4/stdlib_h.m4: New file.
65136         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65137
65138 2007-02-18  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/math-tests: New file.
65141         * tests/test-math.c: New file.
65142
65143         * modules/math: New file.
65144         * modules/mathl (Files): Remove lib/mathl.h.
65145         (Depends-on): Add math.
65146         (Makefile.am): Don't mention mathl.h.
65147         (Include): Use <math.h> instead of mathl.h.
65148         * lib/math_.h: New file.
65149         * lib/mathl.h: Remove file.
65150         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65151         mathl.h.
65152         * lib/asinl.c: Likewise.
65153         * lib/atanl.c: Likewise.
65154         * lib/ceill.c: Likewise.
65155         * lib/cosl.c: Likewise.
65156         * lib/expl.c: Likewise.
65157         * lib/floorl.c: Likewise.
65158         * lib/frexpl.c: Likewise.
65159         * lib/ldexpl.c: Likewise.
65160         * lib/logl.c: Likewise.
65161         * lib/sincosl.c: Likewise.
65162         * lib/sinl.c: Likewise.
65163         * lib/sqrtl.c: Likewise.
65164         * lib/tanl.c: Likewise.
65165         * lib/trigl.c: Likewise.
65166         * m4/math_h.m4: New file.
65167         * MODULES.html.sh (Mathematics): Add math.
65168
65169 2007-02-17  Bruno Haible  <bruno@clisp.org>
65170
65171         * modules/wctype-tests: New file.
65172         * tests/test-wctype.c: New file.
65173
65174         * modules/wchar-tests: New file.
65175         * tests/test-wchar.c: New file.
65176
65177         * modules/unistd-tests: New file.
65178         * tests/test-unistd.c: New file.
65179
65180         * modules/time-tests: New file.
65181         * tests/test-time.c: New file.
65182
65183         * modules/sysexits-tests: New file.
65184         * tests/test-sysexits.c: New file.
65185
65186         * modules/sys_time-tests: New file.
65187         * tests/test-sys_time.c: New file.
65188
65189         * modules/sys_stat-tests: New file.
65190         * tests/test-sys_stat.c: New file.
65191
65192         * modules/sys_socket-tests: New file.
65193         * tests/test-sys_socket.c: New file.
65194
65195         * modules/sys_select-tests: New file.
65196         * tests/test-sys_select.c: New file.
65197
65198         * modules/string-tests: New file.
65199         * tests/test-string.c: New file.
65200
65201         * modules/stdbool-tests: New file.
65202         * tests/test-stdbool.c: New file.
65203
65204         * modules/netinet_in-tests: New file.
65205         * tests/test-netinet_in.c: New file.
65206
65207         * modules/inttypes-tests: New file.
65208         * tests/test-inttypes.c: New file.
65209
65210         * modules/fcntl-tests: New file.
65211         * tests/test-fcntl.c: New file.
65212
65213         * modules/byteswap-tests: New file.
65214         * tests/test-byteswap.c: New file.
65215
65216         * modules/arpa_inet-tests: New file.
65217         * tests/test-arpa_inet.c: New file.
65218
65219 2007-02-17  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65222         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65223         if the corresponding module is not enabled. Emit link warnings if
65224         the function is used nevertheless.
65225         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65226         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65227         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65228         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65229         * modules/inttypes (Depends-on): Add link-warning.
65230         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65231         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65232         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65233         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65234         * modules/imaxdiv (configure.ac): Likewise.
65235         * modules/strtoimax (configure.ac): Likewise.
65236         * modules/strtoumax (configure.ac): Likewise.
65237
65238 2007-02-17  Bruno Haible  <bruno@clisp.org>
65239
65240         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65241         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65242         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65243         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65244
65245 2007-02-17  Bruno Haible  <bruno@clisp.org>
65246
65247         * modules/link-warning: New file.
65248         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65249         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65250         * modules/string (Depends-on): Add link-warning.
65251         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65252         string.h.
65253         * MODULES.html.sh (Support for building libraries and executables): Add
65254         link-warning.
65255
65256 2007-02-17  Bruno Haible  <bruno@clisp.org>
65257
65258         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65259         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65260         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65261         long lines.
65262
65263 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65264             Bruno Haible  <bruno@clisp.org>
65265
65266         * modules/tmpfile: New file.
65267         * lib/tmpfile.c: New file.
65268         * m4/tmpfile.m4: New file.
65269         * MODULES.html.sh (func_all_modules): New section "Input/output".
65270
65271 2007-02-15  Bruno Haible  <bruno@clisp.org>
65272
65273         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65274         (supports_delete_on_close): New function.
65275         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65276
65277 2007-02-14  Bruno Haible  <bruno@clisp.org>
65278
65279         * modules/mbspcasecmp-tests: New file.
65280         * tests/test-mbspcasecmp.sh: New file.
65281         * tests/test-mbspcasecmp.c: New file.
65282
65283         New module mbspcasecmp.
65284         * modules/mbspcasecmp: New file.
65285         * lib/mbspcasecmp.c: New file.
65286         * lib/string_.h (strncasecmp): Change warning message.
65287         (mbspcasecmp): New declaration.
65288         * m4/mbspcasecmp.m4: New file.
65289         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65290         GNULIB_MBSPCASECMP.
65291         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65292         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65293
65294 2007-02-14  Bruno Haible  <bruno@clisp.org>
65295
65296         * modules/mbsncasecmp-tests: New file.
65297         * tests/test-mbsncasecmp.sh: New file.
65298         * tests/test-mbsncasecmp.c: New file.
65299
65300         New module mbsncasecmp.
65301         * modules/mbsncasecmp: New file.
65302         * lib/mbsncasecmp.c: New file.
65303         * lib/string_.h (mbsncasecmp): New declaration.
65304         * m4/mbsncasecmp.m4: New file.
65305         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65306         GNULIB_MBSNCASECMP.
65307         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65308         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65309
65310 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65311
65312         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65313         Verify that it doesn't overlap with our flags.
65314         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65315         do not have the desired effect in multibyte locales; instead, use
65316         mbscasecmp.
65317         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65318         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65319         we don't require GNU fnmatch ourselves (if our users require it, they
65320         should do so explicitly).
65321
65322         Fix regex code so it doesn't rely on strcasecmp.
65323         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65324         Otherwise, include gnulib's langinfo.h.
65325         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65326         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65327         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65328         * modules/regex (FILES): Remove m4/codeset.m4.
65329         (Depends-on): Add localcharset.  Remove strcase.
65330
65331 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65332
65333         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65334         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65335
65336 2007-02-13  Bruno Haible  <bruno@clisp.org>
65337
65338         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65339         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65340
65341 2007-02-12  Bruno Haible  <bruno@clisp.org>
65342
65343         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65344         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65345         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65346         time warning rather than a link error.
65347
65348 2007-02-12  Bruno Haible  <bruno@clisp.org>
65349
65350         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65351         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65352         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65353
65354 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65357         args, not 2.
65358
65359 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65360
65361         New module 'time', so that apps can include <time.h> as per
65362         POSIX and GNU instead of separate include files like time_r.h
65363         and timegm.h.  This implementation tries out a simpler approach
65364         for replacing decls in standard include files (as compared to
65365         the string module), somewhat as an experiment.
65366
65367         * config/srclist.txt: Comment out mktime.c for now.
65368         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65369         since it doesn't apply any more.  Use generic wording instead.
65370         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65371         'time'.
65372         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65373         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65374         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65375         Don't include <sys/types.h>; no longer needed since we assume C89.
65376         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65377         * lib/strftime.c: Likewise.
65378         * lib/time_r.c: Likewise.
65379         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65380         * lib/nanosleep.c: Include <time.h> first, to check interface.
65381         * lib/strptime.c: Likewise.
65382         * lib/time_r.c: Likewise.
65383         * lib/timegm.c: Likewise.
65384         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65385         needed.
65386         * lib/timegm.c: Don't include timegm.h; no longer needed.
65387         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65388         time.h now handles any problems in that area.
65389         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65390         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65391         that time.h defines struct timespec.
65392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65393         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65394         handles that.
65395         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65396         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65397         needed.  Set REPLACE_LOCALTIME.
65398         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65399         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65400         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65401         nanosleep; time_h.m4 now does that.  Don't require
65402         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65403         module handles this now.
65404         * modules/getdate (Depends-on): Remove timespec.  Add time.
65405         * modules/nanosleep (Depends-on): Likewise.
65406         * modules/stat-time (Depends-on): Likewise.
65407         * modules/nanosleep (Include): Include time.h, not timespec.h.
65408         * modules/strptime (Files): Remove lib/strptime.h.
65409         (Depends-on): Add extensions, time.
65410         (Include): Include time.h, not strptime.h.
65411         * modules/time_r (Files): Remove lib/time_r.h.
65412         (Depends-on): Add time.
65413         (Include): Include time.h, not time_r.h.
65414         * modules/timegm: Likewise.
65415         * modules/timespec (Description): Now does timespec-related decls
65416         of our own, instead of struct timespec itself.
65417         (Depends-on): Add time; remove extensions.
65418         (Maintainer): Add self.
65419         * modules/utimecmp (Depends-on): Add time; remove timespec.
65420         * modules/utimens (Depends-on): Likewise.
65421         * modules/xnanosleep (Depends-on): Likewise.
65422
65423 2007-02-11  Bruno Haible  <bruno@clisp.org>
65424
65425         * lib/c-strstr.c: Include allocsa.h.
65426         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65427         * lib/c-strcasestr.c: Include allocsa.h.
65428         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65429         * lib/strcasestr.c: Include allocsa.h.
65430         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65431         * lib/mbsstr.c: Include allocsa.h.
65432         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65433         allocsa/freesa instead of malloc/free.
65434         * lib/mbscasestr.c: Include allocsa.h.
65435         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65436         allocsa/freesa instead of malloc/free.
65437         * modules/c-strstr (Depends-on): Add allocsa.
65438         * modules/c-strcasestr (Depends-on): Likewise.
65439         * modules/strcasestr (Depends-on): Likewise.
65440         * modules/mbsstr (Depends-on): Likewise.
65441         * modules/mbscasestr (Depends-on): Likewise.
65442
65443 2007-02-11  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65446
65447         * modules/mbsspn-tests: New file.
65448         * tests/test-mbsspn.sh: New file.
65449         * tests/test-mbsspn.c: New file.
65450
65451 2007-02-11  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65454
65455         * modules/mbspbrk-tests: New file.
65456         * tests/test-mbspbrk.sh: New file.
65457         * tests/test-mbspbrk.c: New file.
65458
65459 2007-02-11  Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65462         unneeded cast.
65463
65464         * modules/mbscspn-tests: New file.
65465         * tests/test-mbscspn.sh: New file.
65466         * tests/test-mbscspn.c: New file.
65467
65468 2007-02-11  Bruno Haible  <bruno@clisp.org>
65469
65470         * modules/mbscasecmp-tests: New file.
65471         * tests/test-mbscasecmp.sh: New file.
65472         * tests/test-mbscasecmp.c: New file.
65473
65474 2007-02-11  Bruno Haible  <bruno@clisp.org>
65475
65476         Ensure O(n) worst-case complexity of mbscasestr.
65477         * lib/mbscasestr.c: Include stdbool.h.
65478         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65479         functions.
65480         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65481         the bookkeeping indicates that it's worth it.
65482         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65483
65484         * modules/mbscasestr-tests: New file.
65485         * tests/test-mbscasestr1.c: New file.
65486         * tests/test-mbscasestr2.sh: New file.
65487         * tests/test-mbscasestr2.c: New file.
65488         * tests/test-mbscasestr3.sh: New file.
65489         * tests/test-mbscasestr3.c: New file.
65490         * tests/test-mbscasestr4.sh: New file.
65491         * tests/test-mbscasestr4.c: New file.
65492         * m4/locale-tr.m4: New file.
65493
65494 2007-02-11  Bruno Haible  <bruno@clisp.org>
65495
65496         Ensure O(n) worst-case complexity of mbsstr.
65497         * lib/mbsstr.c: Include stdbool.h.
65498         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65499         functions.
65500         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65501         bookkeeping indicates that it's worth it.
65502         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65503
65504         * modules/mbsstr-tests: New file.
65505         * tests/test-mbsstr1.c: New file.
65506         * tests/test-mbsstr2.sh: New file.
65507         * tests/test-mbsstr2.c: New file.
65508         * tests/test-mbsstr3.sh: New file.
65509         * tests/test-mbsstr3.c: New file.
65510         * m4/locale-fr.m4: New file.
65511
65512 2007-02-11  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/mbsrchr.c (mbsrchr): Fix bug.
65515
65516         * modules/mbsrchr-tests: New file.
65517         * tests/test-mbsrchr.sh: New file.
65518         * tests/test-mbsrchr.c: New file.
65519
65520 2007-02-11  Bruno Haible  <bruno@clisp.org>
65521
65522         * lib/mbschr.c (mbschr): Fix bug.
65523
65524         * modules/mbschr-tests: New file.
65525         * tests/test-mbschr.sh: New file.
65526         * tests/test-mbschr.c: New file.
65527         * m4/locale-zh.m4: New file.
65528
65529 2007-02-11  Bruno Haible  <bruno@clisp.org>
65530
65531         Support for copying multibyte string iterators.
65532         * lib/mbiter.h: Include <string.h>.
65533         (mbiter_multi_copy): New function.
65534         (mbi_copy): New macro.
65535         * lib/mbuiter.h: Include <string.h>.
65536         (mbuiter_multi_copy): New function.
65537         (mbui_copy): New macro.
65538
65539 2007-02-11  Bruno Haible  <bruno@clisp.org>
65540
65541         New module mbslen.
65542         * modules/mbslen: New file.
65543         * lib/mbslen.c: New file.
65544         * lib/string_.h (mbslen): New declaration.
65545         * m4/mbslen.m4: New file.
65546         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65547         GNULIB_MBSLEN.
65548         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65549         * MODULES.html.sh (Internationalization functions): Add mbslen.
65550
65551 2007-02-11  Bruno Haible  <bruno@clisp.org>
65552
65553         Ensure O(n) worst-case complexity of strcasestr substitute.
65554         * lib/strcasestr.c: Include stdbool.h.
65555         (knuth_morris_pratt): New function.
65556         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65557         bookkeeping indicates that it's worth it.
65558         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65559
65560         * modules/strcasestr-tests: New file.
65561         * tests/test-strcasestr.c: New file.
65562
65563 2007-02-11  Bruno Haible  <bruno@clisp.org>
65564
65565         Ensure O(n) worst-case complexity of c_strcasestr.
65566         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65567         (knuth_morris_pratt): New function.
65568         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65569         the bookkeeping indicates that it's worth it.
65570         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65571
65572         * modules/c-strcasestr-tests: New file.
65573         * tests/test-c-strcasestr.c: New file.
65574
65575 2007-02-11  Bruno Haible  <bruno@clisp.org>
65576
65577         Ensure O(n) worst-case complexity of c_strstr.
65578         * lib/c-strstr.c: Include stdbool.h, string.h.
65579         (knuth_morris_pratt): New function.
65580         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65581         bookkeeping indicates that it's worth it.
65582         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65583
65584         * lib/c-strstr.c: Complete rewrite for maintainability.
65585
65586         * modules/c-strstr-tests: New file.
65587         * tests/test-c-strstr.c: New file.
65588
65589 2007-02-11  Bruno Haible  <bruno@clisp.org>
65590
65591         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65592         5.2.1 and earlier, whereby \055 was treated just like the range
65593         delimiter '-'.
65594         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65595
65596 2007-02-08  Bruno Haible  <bruno@clisp.org>
65597
65598         * modules/regex (Depends-on): Add stdbool.
65599         Reported by Dalibor Topic <robilad@kaffe.org>.
65600
65601 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65604         Prefer returning from main to exiting from it.
65605         Remove unnecessary parens after sizeof.
65606
65607 2007-02-05  Bruno Haible  <bruno@clisp.org>
65608
65609         New module mbssep.
65610         * modules/mbssep: New file.
65611         * lib/mbssep.c: New file.
65612         * lib/string_.h (strsep): Add a conditional link warning.
65613         (mbssep): New declaration.
65614         * m4/mbssep.m4: New file.
65615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65616         GNULIB_MBSSEP.
65617         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65618         * MODULES.html.sh (Internationalization functions): Add mbssep.
65619
65620 2007-02-05  Bruno Haible  <bruno@clisp.org>
65621
65622         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65623         Optimize search in case of 1 delimiter.
65624
65625 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65626
65627         * lib/acl.h: Include sys/types.h before sys/acl.h.
65628
65629 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65630
65631         Merge upstream fix for glibc bugzilla #3957:
65632
65633         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65634
65635         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65636         bit for RE_HAT_LISTS_NOT_NEWLINE.
65637         (build_charclass_op): Remove bogus comment.
65638
65639 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65640
65641         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65642
65643 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65644
65645         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65646         * lib/memmem.c [!defined _LIBC]: Include config.h.
65647
65648 2007-02-04  Bruno Haible  <bruno@clisp.org>
65649
65650         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65651         warning message.
65652
65653 2007-02-04  Bruno Haible  <bruno@clisp.org>
65654
65655         New module mbstok_r.
65656         * modules/mbstok_r: New file.
65657         * lib/mbstok_r.c: New file.
65658         * lib/string_.h (strtok_r): Change argument names to match the
65659         comments. Add a conditional link warning.
65660         (mbstok_r): New declaration.
65661         * m4/mbstok_r.m4: New file.
65662         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65663         GNULIB_MBSTOK_R.
65664         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65665         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65666
65667 2007-02-04  Bruno Haible  <bruno@clisp.org>
65668
65669         New module mbsspn.
65670         * modules/mbsspn: New file.
65671         * lib/mbsspn.c: New file.
65672         * lib/string_.h (strspn): Add a conditional link warning.
65673         (mbsspn): New declaration.
65674         * m4/mbsspn.m4: New file.
65675         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65676         GNULIB_MBSSPN.
65677         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65678         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65679
65680 2007-02-04  Bruno Haible  <bruno@clisp.org>
65681
65682         New module mbspbrk.
65683         * modules/mbspbrk: New file.
65684         * lib/mbspbrk.c: New file.
65685         * lib/string_.h (strpbrk): Add a conditional link warning.
65686         (mbspbrk): New declaration.
65687         * m4/mbspbrk.m4: New file.
65688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65689         GNULIB_MBSPBRK.
65690         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65691         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65692
65693 2007-02-04  Bruno Haible  <bruno@clisp.org>
65694
65695         New module mbscspn.
65696         * modules/mbscspn: New file.
65697         * lib/mbscspn.c: New file.
65698         * lib/string_.h (strcspn): Add a conditional link warning.
65699         (mbscspn): New declaration.
65700         * m4/mbscspn.m4: New file.
65701         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65702         GNULIB_MBSCSPN.
65703         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65704         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65705
65706 2007-02-04  Bruno Haible  <bruno@clisp.org>
65707
65708         New module mbscasestr, reduced goal of strcasestr.
65709         * modules/mbscasestr: New file.
65710         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65711         (mbscasestr): Renamed from strcasestr.
65712         * lib/strcasestr.c: Don't include mbuiter.h.
65713         (strcasestr): Remove support for multibyte locales.
65714         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65715         Change the conditional link warning.
65716         (mbscasestr): New declaration.
65717         * m4/mbscasestr.m4: New file.
65718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65719         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65720         REPLACE_STRCASESTR.
65721         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65723         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65724         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65725         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65726         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65727         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65728         (Depends-on): Remove mbuiter.
65729         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65730
65731 2007-02-04  Bruno Haible  <bruno@clisp.org>
65732
65733         Simplify handling of strncasecmp.
65734         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65735         the conditional link warning.
65736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65737         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65738         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65739         * modules/strcase (configure.ac): Don't invoke
65740         gl_STRING_MODULE_INDICATOR.
65741         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65742
65743 2007-02-04  Bruno Haible  <bruno@clisp.org>
65744
65745         New module mbscasecmp, reduced goal of strcasecmp.
65746         * modules/mbscasecmp: New file.
65747         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65748         (mbscasecmp): Renamed from strcasecmp.
65749         * lib/strcasecmp.c: Don't include mbuiter.h.
65750         (strcasecmp): Remove support for multibyte locales.
65751         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65752         Change the conditional link warning.
65753         (mbscasecmp): New declaration.
65754         * m4/mbscasecmp.m4: New file.
65755         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65756         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65757         REPLACE_STRCASECMP.
65758         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65760         GNULIB_MBSCASECMP.
65761         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65762         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65763         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65764         (Depends-on): Remove mbuiter.
65765         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65766
65767 2007-02-04  Bruno Haible  <bruno@clisp.org>
65768
65769         New module mbsstr. Remove module strstr.
65770         * modules/mbsstr: New file.
65771         * modules/strstr: Remove file.
65772         * lib/mbsstr.c: Renamed from lib/strstr.c.
65773         (mbsstr): Renamed from strstr.
65774         * lib/string_.h (strstr): Remove declaration. Change the conditional
65775         link warning.
65776         (mbsstr): New declaration.
65777         * m4/mbsstr.m4: New file.
65778         * m4/strstr.m4: Remove file.
65779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65780         REPLACE_STRSTR.
65781         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65782         Don't initialize GNULIB_STRSTR.
65783         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65784         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65785         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65786         (Support for systems lacking ANSI C 89): Remove strstr.
65787
65788 2007-02-04  Bruno Haible  <bruno@clisp.org>
65789
65790         New module mbsrchr.
65791         * modules/mbsrchr: New file.
65792         * lib/mbsrchr.c: New file.
65793         * lib/string_.h (strrchr): Add a conditional link warning.
65794         (mbsrchr): New declaration.
65795         * m4/mbsrchr.m4: New file.
65796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65797         GNULIB_MBSRCHR.
65798         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65799         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65800
65801 2007-02-04  Bruno Haible  <bruno@clisp.org>
65802
65803         New module mbschr.
65804         * modules/mbschr: New file.
65805         * lib/mbschr.c: New file.
65806         * lib/string_.h (strchr): Add a conditional link warning.
65807         (mbschr): New declaration.
65808         * m4/mbschr.m4: New file.
65809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65810         GNULIB_MBSCHR.
65811         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65812         * MODULES.html.sh (Internationalization functions): Add mbschr.
65813
65814 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65815
65816         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65817
65818         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65819
65820 2007-02-04  Bruno Haible  <bruno@clisp.org>
65821
65822         New module description section 'configure.ac-early'.
65823         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65824         (func_get_autoconf_early_snippet): New function.
65825         (func_import, func_create_testdir): Use it. Remove special cases for
65826         modules 'extensions' and 'lock'.
65827         * modules/extensions (configure.ac-early): Require
65828         gl_USE_SYSTEM_EXTENSIONS.
65829         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65830
65831 2007-02-04  Bruno Haible  <bruno@clisp.org>
65832
65833         Make use of gcj-4.3's -fsource and -ftarget option.
65834         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65835         and if so try the options -fsource and -ftarget.
65836         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65837         source_version, ftarget_option, target_version arguments.
65838         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65839         (is_envjavac_oldgcj_14_14_usable): Renamed from
65840         is_envjavac_gcj_14_14_usable.
65841         (is_envjavac_oldgcj_14_13_usable): Renamed from
65842         is_envjavac_gcj_14_13_usable.
65843         (is_gcj_present): Update.
65844         (is_gcj_43, is_gcj43_usable): New functions.
65845         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65846         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65847         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65848         try the options -fsource and -ftarget.
65849
65850 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65851
65852         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65853         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65854         larger value.
65855
65856 2007-02-03  Jim Meyering  <jim@meyering.net>
65857
65858         Give tools a better chance to allocate space for very large buffers.
65859         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65860
65861         Make pwd and readlink work also when run with an unreadable parent dir
65862         on systems with openat support.
65863         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65864         provided getcwd function, even when we have openat support.
65865         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65866
65867 2007-02-02  Bruno Haible  <bruno@clisp.org>
65868
65869         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65870         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65871         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65872         portability problems if one of these functions is only used on specific
65873         platforms.
65874         Reported by Paul Eggert.
65875
65876 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65877
65878         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65879         is causing more trouble than it's curing.
65880         * lib/regex_internal.h (__mempcpy): Remove.
65881         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65882         (and make the code a tad smaller to boot).
65883         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65884
65885 2007-02-02  Jim Meyering  <jim@meyering.net>
65886
65887         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65888         section, not in the Makefile.am: one.
65889
65890 2007-02-02  Eric Blake  <ebb9@byu.net>
65891
65892         * lib/strchrnul.c: Always include config.h first.
65893
65894         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65895         gnulib strstr is not necessary here.
65896
65897 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65898
65899         * m4/socklen.m4: Fix typo.
65900
65901 2007-02-02  Eric Blake  <ebb9@byu.net>
65902
65903         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65904         * modules/netinet_in (Makefile.am): Likewise.
65905
65906 2007-02-01  Bruno Haible  <bruno@clisp.org>
65907
65908         * lib/string_.h (GL_LINK_WARNING): New macro.
65909         (strcasecmp, strstr, strcasestr): If provided by the system,
65910         conditionally define as a macro that leads to a warning instead of to
65911         an error.
65912         (strncasecmp): Conditionally define as a macro that leads to a warning.
65913
65914 2007-02-01  Karl Berry  <karl@gnu.org>
65915
65916         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65917
65918 2007-02-01  Bruno Haible  <bruno@clisp.org>
65919
65920         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65921         renamings.
65922
65923 2007-02-01  Eric Blake  <ebb9@byu.net>
65924
65925         * modules/regex (Depends-on): Revert dependence on mempcpy.
65926         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65927         module's definition of mempcpy.
65928         Reported by Paul Eggert.
65929
65930 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65931
65932         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65933         the symbol XYZ before redefining it.  This fixes a problem with
65934         programs that don't use XYZ, when compiled on systems that define
65935         XYZ to something else.
65936
65937 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65938
65939         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65940         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65941         writeable to group or other and (2) is intended to have a special
65942         mode bit that is set or cleared.  In such a case, the directory
65943         should be neither group- nor other-writeable until the special
65944         mode bits are right.
65945
65946 2007-01-31  Eric Blake  <ebb9@byu.net>
65947
65948         * modules/mountlist (Depends-on): Add strstr.
65949
65950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65951         bug.
65952         * modules/string (Makefile.am): Remove redundant replacement.
65953         * modules/regex (Depends-on): Add mempcpy.
65954
65955 2007-01-31  Bruno Haible  <bruno@clisp.org>
65956
65957         New module description field 'Link'.
65958         * gnulib-tool (func_usage): Document --extract-link-directive.
65959         (sed_extract_prog): Recognize 'Link' directive.
65960         (func_get_link_directive): New function.
65961         (func_import): Show summary of link directives.
65962         Handle --extract-link-directive option.
65963         * modules/acl (Link): New section.
65964         * modules/clock-time (Link): New section.
65965         * modules/euidaccess (Link): New section.
65966         * modules/gettext (Link): New section.
65967         * modules/iconv (Link): New section.
65968         * modules/lock (Link): New section.
65969         * modules/nanosleep (Link): New section.
65970         * modules/readline (Link): New section.
65971
65972 2007-01-27  Bruno Haible  <bruno@clisp.org>
65973
65974         Enforce the use of gnulib modules for unportable <string.h> functions.
65975         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65976         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65977         (gl_HEADER_STRING_H_BODY): Require it.
65978         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65979         the symbol XYZ to one that gives a link error.
65980         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65981         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65982         * modules/mempcpy (configure.ac): Likewise.
65983         * modules/memrchr (configure.ac): Likewise.
65984         * modules/stpcpy (configure.ac): Likewise.
65985         * modules/stpncpy (configure.ac): Likewise.
65986         * modules/strcase (configure.ac): Likewise.
65987         * modules/strcasestr (configure.ac): Likewise.
65988         * modules/strchrnul (configure.ac): Likewise.
65989         * modules/strdup (configure.ac): Likewise.
65990         * modules/strndup (configure.ac): Likewise.
65991         * modules/strnlen (configure.ac): Likewise.
65992         * modules/strpbrk (configure.ac): Likewise.
65993         * modules/strsep (configure.ac): Likewise.
65994         * modules/strstr (configure.ac): Likewise.
65995         * modules/strtok_r (configure.ac): Likewise.
65996
65997 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65998
65999         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66000
66001 2007-01-30  Jim Meyering  <jim@meyering.net>
66002
66003         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66004
66005 2007-01-29  Bruno Haible  <bruno@clisp.org>
66006
66007         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66008         * lib/execute.c: Likewise.
66009         * lib/pipe.c: Likewise.
66010         * lib/printf-args.h: Likewise.
66011         * lib/printf-args.c: Likewise.
66012         * lib/printf-parse.c: Likewise.
66013         * lib/vasnprintf.c: Likewise.
66014
66015 2007-01-29  Eric Blake  <ebb9@byu.net>
66016
66017         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66018         declaration.
66019
66020 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66021
66022         * lib/strptime.h (strptime): Use 'restrict' for args where
66023         POSIX requires this.
66024         * lib/strptime.c (strptime): Likewise.
66025         Change license notice from LGPL to GPL, since gnulib-tool will
66026         change this as needed.
66027         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66028         defined.
66029         Include "strptime.h" first, to check interface.
66030         Do not #undef _LIBC and _NL_CURRENT.
66031         Do not include <stdlib.h>; no longer needed.
66032         Include "time_r.h" and declare ptime_locale_status
66033         only if _LIBC is not defined.
66034         (__P): Remove unused macro.
66035         (match_string): Bring back glibc version, but use it only if _LIBC
66036         is defined.
66037         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66038         Remove unnecessary assertion and abort() call.
66039         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66040         * m4/strptime.m4: Fix serial number comment.
66041         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66042         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66043         (Depends-on): Add time_r.
66044
66045 2007-01-29  Bruno Haible  <bruno@clisp.org>
66046
66047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66048         strptime.
66049         * modules/strptime (Depends-on): Add stdbool.
66050         * lib/strptime.h: Include <time.h> always. Add comments.
66051
66052 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66053
66054         * modules/strptime: New file.
66055         * lib/strptime.h: New file.
66056         * lib/strptime.c: New file.
66057         * m4/strptime.m4: New file.
66058
66059 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * MODULES.html.sh: New module mpsort.
66062         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66063
66064         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66065         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66066         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66067         All uses changed.
66068         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66069         All uses changed.
66070         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66071         to _Restrict_.
66072         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66073         the parameter matches the prototype.
66074
66075 2007-01-28  Jim Meyering  <jim@meyering.net>
66076
66077         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66078         sys/time.h here, reverting that part of the previous patch:
66079         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66080
66081 2007-01-28  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66084         value of $(SYS_TIME_H).
66085         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66086         remove it conditionally, too. [added by Jim Meyering]
66087         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66088         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66089         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66090         GETTIMEOFDAY_REPLACEMENT to 1.
66091
66092 2007-01-28  Bruno Haible  <bruno@clisp.org>
66093
66094         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66095         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66097         Set UNISTD_H instead of UNISTD_H2.
66098         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66099
66100 2007-01-28  Bruno Haible  <bruno@clisp.org>
66101
66102         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66103         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66104
66105 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66106
66107         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66108         (func_create_testdir): Ensure C locale for `grep' and `tr'
66109         character ranges.
66110         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66111         ACLOCAL_AMFLAGS parsing state machine.
66112
66113 2007-01-27  Bruno Haible  <bruno@clisp.org>
66114
66115         * modules/unistr/base: Update.
66116
66117 2007-01-27  Bruno Haible  <bruno@clisp.org>
66118
66119         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66120         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66121         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66122         modules/unistr/u32-mbtouc.
66123         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66124         * lib/unistr.h: Update.
66125         * lib/linebreak.c: Update.
66126         * modules/unistr/u32-mbtouc: Renamed from
66127         modules/unistr/u32-mbtouc-safe.
66128         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66129         * lib/unistr.h: Update.
66130         * lib/unistr/u32-to-u8.c: Update.
66131         * lib/unistr/u32-to-u16.c: Update.
66132
66133 2007-01-27  Bruno Haible  <bruno@clisp.org>
66134
66135         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66136         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66137         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66138         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66139         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66140         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66141         modules/unistr/u16-mbtouc.
66142         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66143         * lib/unistr.h: Update.
66144         * lib/linebreak.c: Update.
66145         * modules/linebreak: Update.
66146         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66147         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66148         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66149         * modules/unistr/u16-mbtouc: Renamed from
66150         modules/unistr/u16-mbtouc-safe.
66151         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66152         * lib/unistr.h: Update.
66153         * lib/unistr/u16-to-u8.c: Update.
66154         * modules/unistr/u16-to-u8: Update.
66155         * lib/unistr/u16-to-u32.c: Update.
66156         * modules/unistr/u16-to-u32: Update.
66157
66158 2007-01-27  Bruno Haible  <bruno@clisp.org>
66159
66160         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66161         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66162         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66163         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66164         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66165         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66166         modules/unistr/u8-mbtouc.
66167         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66168         * lib/unistr.h: Update.
66169         * lib/striconveh.c: Update.
66170         * modules/striconveh: Update.
66171         * lib/linebreak.c: Update.
66172         * modules/linebreak: Update.
66173         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66174         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66175         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66176         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66177         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66178         * lib/unistr.h: Update.
66179         * lib/striconveh.c: Update.
66180         * modules/striconveh: Update.
66181         * lib/unistr/u8-to-u16.c: Update.
66182         * modules/unistr/u8-to-u16: Update.
66183         * lib/unistr/u8-to-u32.c: Update.
66184         * modules/unistr/u8-to-u32: Update.
66185
66186 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66187
66188         Sync from Libtool.
66189         * lib/argz.c: Do not include strings.h nor memory.h, include
66190         string.h unconditionally.  Patch by Simon Josefsson.
66191
66192 2007-01-27  Bruno Haible  <bruno@clisp.org>
66193
66194         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66195         from gl_HEADER_STRING_H_BODY.
66196         (gl_HEADER_STRING_H_BODY): Require it.
66197         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66198         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66199         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66200         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66202         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66204         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66205         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66206         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66207         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66208         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66209         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66210         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66211         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66212
66213 2007-01-27  Bruno Haible  <bruno@clisp.org>
66214
66215         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66216         check_PROGRAMS into noinst_PROGRAMS.
66217         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66218         check_PROGRAMS in this case.
66219         (func_import): Set for_test to false.
66220         (func_create_testdir): Set for_test to true.
66221
66222 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66223             Bruno Haible  <bruno@clisp.org>
66224
66225         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66226         (Depends-on): Add string.
66227         (Includes): Use <string.h> instead of strcasestr.h.
66228         * modules/string (Makefile.am): Also substitute the value of
66229         REPLACE_STRCASESTR.
66230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66231         assume strcasestr is declared in <string.h> not <strings.h>. Also
66232         set REPLACE_STRCASESTR.
66233         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66234         REPLACE_STRCASESTR.
66235         * lib/strcasestr.h: Remove file.
66236         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66237         * lib/string_.h (strcasestr): New declaration.
66238
66239 2007-01-27  Bruno Haible  <bruno@clisp.org>
66240
66241         * lib/string_.h: Use 'extern'.
66242
66243 2007-01-27  Jim Meyering  <jim@meyering.net>
66244
66245         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66246         of set-but-not-used local, "q".
66247
66248         * lib/mempcpy.c: Include <config.h> before <string.h>.
66249         This fixes a compilation error on HP-UX, due to the system's
66250         "restrict"-using mempcpy prototype.
66251
66252 2007-01-26  Bruno Haible  <bruno@clisp.org>
66253
66254         Small optimization.
66255         * lib/javacomp.c: Include c-strstr.h.
66256          (is_envjavac_gcj): Use c_strstr instead of strstr.
66257         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66258
66259 2007-01-26  Bruno Haible  <bruno@clisp.org>
66260
66261         * MODULES.html.sh (Unicode string functions): Add the new modules.
66262
66263         * modules/uniconv/u32-strconv-to-locale: New file.
66264         * lib/uniconv/u32-strconv-to-locale.c: New file.
66265
66266         * modules/uniconv/u16-strconv-to-locale: New file.
66267         * lib/uniconv/u16-strconv-to-locale.c: New file.
66268
66269         * modules/uniconv/u8-strconv-to-locale: New file.
66270         * lib/uniconv/u8-strconv-to-locale.c: New file.
66271
66272         * modules/uniconv/u32-strconv-from-locale: New file.
66273         * lib/uniconv/u32-strconv-from-locale.c: New file.
66274
66275         * modules/uniconv/u16-strconv-from-locale: New file.
66276         * lib/uniconv/u16-strconv-from-locale.c: New file.
66277
66278         * modules/uniconv/u8-strconv-from-locale: New file.
66279         * lib/uniconv/u8-strconv-from-locale.c: New file.
66280
66281         * modules/uniconv/u32-strconv-to-enc: New file.
66282         * lib/uniconv/u32-strconv-to-enc.c: New file.
66283         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66284         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66285
66286         * modules/uniconv/u16-strconv-to-enc: New file.
66287         * lib/uniconv/u16-strconv-to-enc.c: New file.
66288         * lib/uniconv/u-strconv-to-enc.h: New file.
66289         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66290         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66291
66292         * modules/uniconv/u8-strconv-to-enc: New file.
66293         * lib/uniconv/u8-strconv-to-enc.c: New file.
66294         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66295         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66296
66297         * modules/uniconv/u32-strconv-from-enc: New file.
66298         * lib/uniconv/u32-strconv-from-enc.c: New file.
66299         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66300         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66301
66302         * modules/uniconv/u16-strconv-from-enc: New file.
66303         * lib/uniconv/u16-strconv-from-enc.c: New file.
66304         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66305         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66306
66307         * modules/uniconv/u8-strconv-from-enc: New file.
66308         * lib/uniconv/u8-strconv-from-enc.c: New file.
66309         * lib/uniconv/u-strconv-from-enc.h: New file.
66310         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66311         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66312
66313         * modules/uniconv/u32-conv-from-enc: New file.
66314         * lib/uniconv/u32-conv-from-enc.c: New file.
66315         * modules/uniconv/u32-conv-from-enc-tests: New file.
66316         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66317
66318         * modules/uniconv/u16-conv-from-enc: New file.
66319         * lib/uniconv/u16-conv-from-enc.c: New file.
66320         * lib/uniconv/u-conv-from-enc.h: New file.
66321         * modules/uniconv/u16-conv-from-enc-tests: New file.
66322         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66323
66324         * modules/uniconv/u8-conv-from-enc: New file.
66325         * lib/uniconv/u8-conv-from-enc.c: New file.
66326         * modules/uniconv/u8-conv-from-enc-tests: New file.
66327         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66328
66329         * modules/uniconv/base: New file.
66330         * lib/uniconv.h: New file.
66331
66332 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66333
66334         * doc/gnulib-tool.texi (Initial import): Update to match current
66335         behavior with strdup module.
66336         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66337         * lib/memmem.h: Remove; all uses removed.  This is now done
66338         by <string.h>.
66339         * lib/mempcpy.h: Likewise.
66340         * lib/memrchr.h: Likewise.
66341         * lib/stpcpy.h: Likewise.
66342         * lib/stpncpy.h: Likewise.
66343         * lib/strcase.h: Likewise.
66344         * lib/strchrnul.h: Likewise.
66345         * lib/strdup.h: Likewise.
66346         * lib/strndup.h: Likewise.
66347         * lib/strnlen.h: Likewise.
66348         * lib/strpbrk.h: Likewise.
66349         * lib/strsep.h: Likewise.
66350         * lib/strstr.h: Likewise.
66351         * lib/strtok_r.h: Likewise.
66352         * lib/string_.h: New file.
66353         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66354         Rely on <string.h> instead.
66355         * lib/canon-host.c: Likewise.
66356         * lib/chdir-long.c: Likewise.
66357         * lib/concatpath.c: Likewise.
66358         * lib/exclude.c: Likewise.
66359         * lib/fchdir.c: Likewise.
66360         * lib/getaddrinfo.c: Likewise.
66361         * lib/getcwd.c: Likewise.
66362         * lib/getsubopt.c: Likewise.
66363         * lib/glob.c: Likewise.
66364         * lib/hard-locale.c: Likewise.
66365         * lib/iconvme.c: Likewise.
66366         * lib/javacomp.c: Likewise.
66367         * lib/mempcpy.c: Likewise.
66368         * lib/memrchr.c: Likewise.
66369         * lib/regex_internal.h: Likewise.
66370         * lib/stpncpy.c: Likewise.
66371         * lib/strcasecmp.c: Likewise.
66372         * lib/strchrnul.c: Likewise.
66373         * lib/strdup.c: Likewise.
66374         * lib/striconv.c: Likewise.
66375         * lib/striconveh.c: Likewise.
66376         * lib/striconveha.c: Likewise.
66377         * lib/strncasecmp.c: Likewise.
66378         * lib/strndup.c: Likewise.
66379         * lib/strnlen.c: Likewise.
66380         * lib/strsep.c: Likewise.
66381         * lib/strstr.c: Likewise.
66382         * lib/strtok_r.c: Likewise.
66383         * lib/userspec.c: Likewise.
66384         * lib/w32spawn.h: Likewise.
66385         * lib/xstrndup.c: Likewise.
66386         * lib/mountlist.c (strstr): Remove decl.
66387         * m4/string_h.m4: New file.
66388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66392         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66393         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66394         Set REPLACE_STRCASECMP if necessary.
66395         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66396         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66397         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66398         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66399         HAVE_DECL_STRDUP if necessary.
66400         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66401         since gl_FUNC_STRNDUP does that now.
66402         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66403         Check for decl here...
66404         (gl_PREREQ_STRNLEN): ... not here.
66405         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66406         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66407         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66408         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66409         necessary.
66410         * modules/string: New file.
66411         * modules/memmem (Files): Remove special-purpose include file.
66412         (Depends-on): Add string.
66413         (Include): Include <string.h>, not the removed file.
66414         * modules/mempcpy: Likewise.
66415         * modules/memrchr: Likewise.
66416         * modules/stpcpy: Likewise.
66417         * modules/stpncpy: Likewise.
66418         * modules/strcase: Likewise.
66419         * modules/strchrnul: Likewise.
66420         * modules/strdup: Likewise.
66421         * modules/strndup: Likewise.
66422         * modules/strnlen: Likewise.
66423         * modules/strpbrk: Likewise.
66424         * modules/strsep: Likewise.
66425         * modules/strstr: Likewise.
66426         * modules/strtok_r: Likewise.
66427         * tests/test-dirname.c: Don't include "strdup.h", since
66428         <string.h> now suffices.
66429         * tests/test-memmem.c: Don't include "memmem.h", since
66430         <string.h> now suffices.
66431
66432 2007-01-25  Bruno Haible  <bruno@clisp.org>
66433
66434         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66435         *resultp is 0.
66436
66437         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66438         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66439         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66440         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66441
66442         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66443         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66444         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66445         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66446         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66447         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66448
66449 2007-01-24  Bruno Haible  <bruno@clisp.org>
66450
66451         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66453         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66454         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66455         gl_FUNC_FTS_CORE.
66456         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66457         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66458         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66459         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66460         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66461         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66462         gl_FUNC_FCHOWNAT.
66463         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66464         gl_FUNC_STRFTIME.
66465         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66466         Reported by Ralf Wildenhues.
66467
66468 2007-01-24  Bruno Haible  <bruno@clisp.org>
66469
66470         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66471         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66472         gl_GETADDRINFO.
66473         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66474         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66475         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66476
66477 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66478
66479         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66480         Don't use 'exit'; just return from 'main'.
66481         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66482
66483         * lib/fnmatch_.h: Readjust white space and comments to match
66484         glibc, to avoid spurious diffs.
66485
66486 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66487
66488         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66489         2004-12-01 change by Jakub Jelinek, since this code won't compile
66490         if !LIBC.  Problem reported by Bob Proulx.
66491
66492 2007-01-23  Bruno Haible  <bruno@clisp.org>
66493
66494         * lib/striconveh.c: Include c-strcaseeq.h.
66495         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66496         * modules/striconveh (Depends-on): Add c-strcaseeq.
66497
66498 2007-01-23  Bruno Haible  <bruno@clisp.org>
66499
66500         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66501
66502         * modules/c-strcaseeq: New file.
66503         * lib/c-strcaseeq.h: New file.
66504
66505         * modules/streq: New file.
66506         * lib/streq.h: New file.
66507
66508 2007-01-23  Bruno Haible  <bruno@clisp.org>
66509
66510         * modules/striconveha-tests: New file.
66511         * tests/test-striconveha.c: New file.
66512
66513         * lib/striconveha.h: Include <stdbool.h>.
66514         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66515         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66516         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66517         (mem_iconveha): New function.
66518         (str_iconveha_notranslit): Renamed from str_iconveha.
66519         (str_iconveha): New function.
66520         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66521         c-strcase.
66522
66523 2007-01-23  Bruno Haible  <bruno@clisp.org>
66524
66525         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66526         encodings without forgiving before trying any encoding with handler.
66527         (str_iconveha): Try all encodings without forgiving before trying any
66528         encoding with handler.
66529
66530 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66531
66532         Import the following changes from libc.
66533
66534         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66535
66536         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66537
66538         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66539
66540         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66541         normal_bracket label.
66542
66543         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66544
66545         [BZ #361]
66546         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66547         to normal_bracket after fetching the next character.
66548
66549 2007-01-22  Bruno Haible  <bruno@clisp.org>
66550
66551         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66552         argument.
66553         * lib/striconveh.c (iconv_carefully_1): New function.
66554         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66555         argument.
66556         (str_cd_iconveh): Update.
66557         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66558         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66559         * tests/test-striconveh.c (MAGIC): New macro.
66560         (new_offsets): New function.
66561         (main): Test call with and without offsets.
66562
66563 2007-01-22  Bruno Haible  <bruno@clisp.org>
66564
66565         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66566         * modules/sys_select (Makefile.am): Likewise.
66567         * modules/sys_socket (Makefile.am): Likewise.
66568         * modules/sys_time (Makefile.am): Likewise.
66569
66570 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66571
66572         * modules/gettimeofday (License): Change from GPL to LGPL, since
66573         gettimeofday is a library function.
66574
66575 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66576
66577         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66578
66579 2007-01-21  Bruno Haible  <bruno@clisp.org>
66580
66581         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66582
66583 2007-01-21  Bruno Haible  <bruno@clisp.org>
66584
66585         * modules/striconveha: New file.
66586         * lib/striconveha.h: New file.
66587         * lib/striconveha.c: New file.
66588         * MODULES.html.sh (Internationalization functions): Add striconveha.
66589         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66590         string.
66591         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66592
66593 2007-01-21  Bruno Haible  <bruno@clisp.org>
66594
66595         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66596         * lib/striconveh.c (str_iconveh): Likewise.
66597
66598 2007-01-21  Bruno Haible  <bruno@clisp.org>
66599
66600         * lib/striconveh.h (mem_iconveh): New declaration.
66601         * lib/striconveh.c (mem_iconveh): New function.
66602         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66603
66604 2007-01-21  Bruno Haible  <bruno@clisp.org>
66605
66606         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66607
66608         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66609         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66610         original result buffer.
66611         (str_cd_iconveh): Update.
66612         * tests/test-striconveh.c (main): Update.
66613
66614         * lib/striconv.h (mem_cd_iconv): Change specification.
66615         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66616         result buffer.
66617         (str_cd_iconv): Update.
66618         * tests/test-striconv.c (main): Update.
66619
66620 2007-01-21  Bruno Haible  <bruno@clisp.org>
66621
66622         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66623
66624 2007-01-20  Jim Meyering  <jim@meyering.net>
66625
66626         * lib/userspec.c (parse_with_separator): If a user or group string
66627         starts with "+", skip the corresponding name-to-ID look-up, since
66628         such a look-up must fail: user and group names may not include "+".
66629
66630 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66631
66632         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66633         since we now assume the sys_time module.
66634         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66635         check for sys/time.h; no longer needed.
66636         * modules/poll (Depends-on): Depend on sys_time.
66637
66638 2007-01-18  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66641         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66642
66643         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66644         gettimeofday.
66645
66646         * tests/test-gettimeofday.c: Include <time.h>.
66647         (dummy): Remove variable.
66648
66649         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66650         gl_HEADER_SYS_TIME_H.
66651         (gl_HEADER_SYS_TIME_H): New macro.
66652
66653         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66654         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66655         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66656         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66657         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66658         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66659         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66660         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66661         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66662         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66663         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66664
66665         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66666         last change; it caused a compilation error when cross-compiling to
66667         Cygwin.
66668
66669 2007-01-18  Jim Meyering  <jim@meyering.net>
66670
66671         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66672         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66673         than the race-prone "test -d sys || mkdir sys".
66674         (configure.ac): Use AC_PROG_MKDIR_P.
66675         * modules/sys_select: Likewise.
66676         * modules/sys_socket: Likewise.
66677         * modules/sys_time: Likewise.
66678
66679 2007-01-18  Eric Blake  <ebb9@byu.net>
66680
66681         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66682         replace gettimeofday.
66683         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66684         name, to avoid infinite recursion.
66685
66686 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66687
66688         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66689         module sys_time.
66690         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66691         assume timespec.h defines struct timeval.
66692         * lib/settime.c: Likewise.
66693         * lib/utimens.c: Likewise.
66694         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66695         since we now assume the gettimeofday module.
66696         * lib/tempname.c (__gen_tempname): Likewise.
66697         * lib/gettimeofday.h: Remove.
66698         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66699         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66700         Include <time.h>, for 'time()'.
66701         (localtime_buffer_addr): Also use this workaround if
66702         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66703         to simplify the uses.  All uses changed.
66704         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66705         that #undef is inside {}, and 'const' follows type name consistently.
66706         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66707         (gettimeofday): Do not use the maximum possible value for
66708         tv->tv_usec, since that might break usages other than ls.c.
66709         Instead, we'll leave ls.c alone.  This undoes today's patch
66710         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66711         we've never observed the problem but might as well keep the
66712         canary.
66713         * lib/nanosleep.c: Include timespec.h first, for interface check.
66714         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66715         now assume the sys_time module.
66716         * lib/tempname.c: Likewise.
66717         * lib/timespec.h: Likewise.
66718         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66719         needed.
66720         * lib/strftime.c: Likewise.
66721         * lib/timespec.h: Likewise.
66722         * lib/posixtm.c: Include posixtm.h first, for interface check.
66723         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66724         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66725         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66726         * lib/sys_time_.h: New file.
66727         * lib/timespec.h (struct timespec): Use long int, not long.
66728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66729         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66730         Remove obsolescent call to AC_HEADER_TIME.
66731         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66732         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66733         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66734         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66735         Likewise.
66736         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66737         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66738         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66739         into the sys_time module.  Check for gettimeofday just once.
66740         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66741         for gettimeofday signature to just check the signature.  Merely
66742         compile it, since linking doesn't test signature.  Improve test for
66743         whether gettimeofday.o is actually needed.
66744         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66745         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66746         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66747         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66748         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66749         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66750         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66751         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66752         than worrying about sys/time.h.
66753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66754         Don't bother worrying about TIME_WITH_SYS_TIME.
66755         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66756         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66757         * m4/sys_time_h.m4: New file.
66758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66759         Don't include sys/time.h.  Return from main rather than exiting.
66760         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66761         all uses changed.
66762         * modules/gethrxtime (Depends-on): Add sys_time.
66763         * modules/gettime (Depends-on): Likewise.
66764         * modules/gettimeofday (Depends-on): Likewise.
66765         * modules/nanosleep (Depends-on): Likewise.
66766         * modules/settime (Depends-on): Likewise.
66767         * modules/tempname (Depends-on): Likewise.
66768         * modules/utimens (Depends-on): Likewise.
66769         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66770         (Include): Change back to <sys/time.h>.
66771         (Maintainer): Add self.
66772         * modules/sys_time: New file.
66773         * modules/tempname (Depends-on): Add gettimeofday.
66774         * tests/test-gettimeofday.c: Include <sys/time.h>
66775         rather than gettimeofday.h.
66776
66777 2007-01-17  Bruno Haible  <bruno@clisp.org>
66778
66779         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66780         the license default to GPL.
66781         (func_create_testdir): Don't complain if a module is LGPL and its
66782         tests module depends on GPLed modules.
66783
66784 2007-01-17  Bruno Haible  <bruno@clisp.org>
66785
66786         * lib/gettimeofday.c (gettimeofday): Add code for the case
66787         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66788         maximum possible value for tv->tv_usec, rather than the minimum one.
66789
66790 2005-10-08  Martin Lambers  <marlam@marlam.de>
66791 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66792 2007-01-16  Bruno Haible  <bruno@clisp.org>
66793
66794         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66795         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66796         gl_FUNC_GETTIMEOFDAY.
66797         (Include): Add gettimeofday.h.
66798         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66799         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66800         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66801         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66802         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66803         * lib/gettimeofday.h: New file.
66804         * lib/gettimeofday.c: Include <sys/timeb.h>.
66805         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66806         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66807         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66808         fall back on time().
66809
66810         * tests/test-gettimeofday.c: New file.
66811         * modules/gettimeofday-tests: New file.
66812
66813 2007-01-16  Eric Blake  <ebb9@byu.net>
66814
66815         * modules/fnmatch (Depends-on): Depend on wchar.
66816         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66817         * m4/fnmatch.m4: Likewise.
66818         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66819         * m4/mbchar.m4: Likewise.
66820         * modules/mbswidth (Depends-on): Depend on wchar.
66821         * lib/mbswidth.c: Assume <wchar.h>.
66822         * m4/mbswidth.m4: Likewise.
66823         * modules/quotearg (Depends-on): Depend on wchar.
66824         * lib/quotearg.c: Assume <wchar.h>.
66825         * m4/quotearg.m4: Likewise.
66826         * modules/regex (Depends-on): Depend on wchar.
66827         * lib/regex_internal.h: Assume <wchar.h>.
66828         * m4/regex.m4: Likewise.
66829         * modules/stdint (Depends-on): Depend on wchar.
66830         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66831         * m4/stdint.m4: Likewise.
66832         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66833         * modules/strftime (Depends-on): Depend on wchar.
66834         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66835         * modules/strtol (Depends-on): Depend on wchar.
66836         * lib/strtol.c: Assume <wchar.h>.
66837         * modules/wcwidth (Depends-on): Depend on wchar.
66838         * lib/wcwidth.h: Assume <wchar.h>.
66839         * m4/wcwidth.m4: Likewise.
66840
66841 2007-01-16  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/csharpexec-script: New, created from...
66844         * modules/csharpexec: ... this.
66845
66846 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66847
66848         * modules/javaexec-script: New, created from...
66849         * modules/javaexec: ... this.
66850
66851 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66852
66853         * modules/poll (Dependencies): Add sys_select.
66854
66855 2007-01-15  Jim Meyering  <jim@meyering.net>
66856
66857         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66858         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66859         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66860         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66861
66862 2007-01-15  Bruno Haible  <bruno@clisp.org>
66863
66864         * modules/striconveh: New file.
66865         * lib/striconveh.h: New file.
66866         * lib/striconveh.c: New file.
66867         * MODULES.html.sh (Internationalization functions): Add striconveh.
66868
66869         * modules/striconveh-tests: New file.
66870         * tests/test-striconveh.c: New file.
66871
66872 2007-01-15  Bruno Haible  <bruno@clisp.org>
66873
66874         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66875         not from GNU libiconv or GNU libc.
66876
66877 2007-01-15  Bruno Haible  <bruno@clisp.org>
66878
66879         * doc/gnulib-intro.texi (Copyright): Explain the different license
66880         terms for module descriptions, autoconf macros, tests, documentation.
66881
66882 2007-01-14  Bruno Haible  <bruno@clisp.org>
66883
66884         * modules/striconv-tests: New file.
66885         * tests/test-striconv.c: New file.
66886
66887 2007-01-14  Bruno Haible  <bruno@clisp.org>
66888
66889         * modules/iconv-tests: New file.
66890         * tests/test-iconv.c: New file.
66891
66892 2007-01-14  Bruno Haible  <bruno@clisp.org>
66893
66894         * gnulib-tool (func_get_license): For test modules, use the license of
66895         the main module.
66896
66897 2007-01-14  Bruno Haible  <bruno@clisp.org>
66898
66899         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66900         if iconv is found to exist.
66901
66902 2007-01-14  Bruno Haible  <bruno@clisp.org>
66903
66904         * modules/c-ctype-tests: New file.
66905         * tests/test-c-ctype.c: New file.
66906
66907 2007-01-14  Bruno Haible  <bruno@clisp.org>
66908
66909         * modules/binary-io-tests: New file.
66910         * tests/test-binary-io.sh: New file.
66911         * tests/test-binary-io.c: New file.
66912
66913 2007-01-14  Bruno Haible  <bruno@clisp.org>
66914
66915         * modules/array-oset-tests: New file.
66916         * tests/test-array_oset.c: New file.
66917
66918 2007-01-14  Bruno Haible  <bruno@clisp.org>
66919
66920         * modules/array-list-tests: New file.
66921         * tests/test-array_list.c: New file.
66922
66923 2007-01-14  Bruno Haible  <bruno@clisp.org>
66924
66925         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66926         and make.
66927         Reported by Simon Josefsson in
66928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66929
66930 2007-01-14  Bruno Haible  <bruno@clisp.org>
66931
66932         * modules/allocsa-tests: New file.
66933         * tests/test-allocsa.c: New file.
66934
66935 2007-01-14  Bruno Haible  <bruno@clisp.org>
66936
66937         * modules/fchdir (Depends-on): Add absolute-header.
66938         * modules/unistd (Depends-on): Likewise.
66939
66940 2006-12-30  Bruno Haible  <bruno@clisp.org>
66941
66942         * modules/fchdir: New file.
66943         * modules/unistd (Files): Add lib/unistd_.h.
66944         (Makefile.am): Generate unistd.h from unistd_.h.
66945         * lib/fchdir.c: New file.
66946         * lib/dirent_.h: New file.
66947         * lib/unistd_.h: New file.
66948         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66949         * m4/fchdir.m4: New file.
66950         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66951         (gl_HEADER_UNISTD): Invoke it.
66952         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66953         function.
66954         * lib/backupfile.c (opendir, closedir): Undefine.
66955         * lib/chown.c (open, close): Undefine.
66956         * lib/clean-temp.c (open, close): Undefine.
66957         * lib/copy-file.c (open, close): Undefine.
66958         * lib/execute.c (open, close): Undefine.
66959         * lib/fsusage.c (open, close): Undefine.
66960         * lib/gc-gnulib.c (open, close): Undefine.
66961         * lib/getcwd.c (opendir, closedir): Undefine.
66962         * lib/glob.c (opendir, closedir): Undefine.
66963         * lib/javacomp.c (open, close): Undefine.
66964         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66965         * lib/openat-proc.c (open, close): Undefine.
66966         * lib/pagealign_alloc.c (open, close): Undefine.
66967         * lib/pipe.c (open, close): Undefine.
66968         * lib/progreloc.c (open, close): Undefine.
66969         * lib/savedir.c (opendir, closedir): Undefine.
66970         * lib/utime.c (open, close): Undefine.
66971         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66972
66973 2007-01-10  Bruno Haible  <bruno@clisp.org>
66974
66975         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66976
66977 2007-01-12  Eric Blake  <ebb9@byu.net>
66978
66979         Provide a robust <wchar.h>.  Further simplifications are now
66980         possible in other modules, but not included here.
66981         * modules/wchar: New module.
66982         * m4/wchar.m4: New file.
66983         * lib/wchar_.h: Likewise.
66984         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66985         of the new module.
66986         * MODULES.html.sh (Extended multibyte and wide character utilities):
66987         New section.
66988
66989 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66990
66991         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66992         to a reasonable default for memory allocation.
66993         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66994         file system that reports garbage st_size values for symlinks.
66995         Problem reported by Liyang Hu.
66996
66997 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66998
66999         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67000         Emacs .#* auto-save files).
67001
67002 2007-01-11  Bruno Haible  <bruno@clisp.org>
67003
67004         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67005         directory.
67006
67007 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67008
67009         Use @...@ consistently in lib/wctype_.h.
67010         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67011         on it being set to 1 or 0.
67012         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67013         go back to AC_SUBSTing it.
67014         * modules/wctype (Makefile.am): Undo previous change.
67015
67016 2007-01-10  Eric Blake  <ebb9@byu.net>
67017
67018         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67019         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67020         * modules/wctype (Makefile.am): Likewise.
67021         Reported by Chris McGuire.
67022
67023 2007-01-10  Jim Meyering  <jim@meyering.net>
67024
67025         fts.c: a small readability/maintainability improvement
67026         * lib/fts.c (fts_read): Make this code slightly more readable and
67027         maintainable by hoisting the "sp->fts_cur = p" assignments to
67028         immediately follow the statements that set P.  Derived from
67029         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67030
67031 2007-01-10  Eric Blake  <ebb9@byu.net>
67032
67033         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67034         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67036         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67037         Reported by Chris McGuire.
67038
67039 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67040
67041         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67042         in sed script.
67043
67044 2007-01-09  Bruno Haible  <bruno@clisp.org>
67045
67046         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67047         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67048         variables.
67049         (func_module): Use them.
67050
67051 2007-01-09  Bruno Haible  <bruno@clisp.org>
67052
67053         * modules/unistr/base: New file.
67054         * lib/unistr.h: New file.
67055
67056         * modules/unistr/u8-to-u16: New file.
67057         * lib/unistr/u8-to-u16.c: New file.
67058
67059         * modules/unistr/u8-to-u32: New file.
67060         * lib/unistr/u8-to-u32.c: New file.
67061
67062         * modules/unistr/u16-to-u8: New file.
67063         * lib/unistr/u16-to-u8.c: New file.
67064
67065         * modules/unistr/u16-to-u32: New file.
67066         * lib/unistr/u16-to-u32.c: New file.
67067
67068         * modules/unistr/u32-to-u8: New file.
67069         * lib/unistr/u32-to-u8.c: New file.
67070
67071         * modules/unistr/u32-to-u16: New file.
67072         * lib/unistr/u32-to-u16.c: New file.
67073
67074         * modules/unistr/u8-check: New file.
67075         * modules/unistr/u16-check: New file.
67076         * modules/unistr/u32-check: New file.
67077         * lib/unistr/u8-check.c: New file.
67078         * lib/unistr/u16-check.c: New file.
67079         * lib/unistr/u32-check.c: New file.
67080
67081         * modules/unistr/u8-chr: New file.
67082         * modules/unistr/u16-chr: New file.
67083         * modules/unistr/u32-chr: New file.
67084         * lib/unistr/u8-chr.c: New file.
67085         * lib/unistr/u16-chr.c: New file.
67086         * lib/unistr/u32-chr.c: New file.
67087
67088         * modules/unistr/u8-cmp: New file.
67089         * modules/unistr/u16-cmp: New file.
67090         * modules/unistr/u32-cmp: New file.
67091         * lib/unistr/u8-cmp.c: New file.
67092         * lib/unistr/u16-cmp.c: New file.
67093         * lib/unistr/u32-cmp.c: New file.
67094
67095         * modules/unistr/u8-cpy: New file.
67096         * modules/unistr/u16-cpy: New file.
67097         * modules/unistr/u32-cpy: New file.
67098         * lib/unistr/u8-cpy.c: New file.
67099         * lib/unistr/u16-cpy.c: New file.
67100         * lib/unistr/u32-cpy.c: New file.
67101         * lib/unistr/u-cpy.h: New file.
67102
67103         * modules/unistr/u8-cpy-alloc: New file.
67104         * modules/unistr/u16-cpy-alloc: New file.
67105         * modules/unistr/u32-cpy-alloc: New file.
67106         * lib/unistr/u8-cpy-alloc.c: New file.
67107         * lib/unistr/u16-cpy-alloc.c: New file.
67108         * lib/unistr/u32-cpy-alloc.c: New file.
67109         * lib/unistr/u-cpy-alloc.h: New file.
67110
67111         * modules/unistr/u8-endswith: New file.
67112         * modules/unistr/u16-endswith: New file.
67113         * modules/unistr/u32-endswith: New file.
67114         * lib/unistr/u8-endswith.c: New file.
67115         * lib/unistr/u16-endswith.c: New file.
67116         * lib/unistr/u32-endswith.c: New file.
67117         * lib/unistr/u-endswith.h: New file.
67118
67119         * modules/unistr/u8-mblen: New file.
67120         * modules/unistr/u16-mblen: New file.
67121         * modules/unistr/u32-mblen: New file.
67122         * lib/unistr/u8-mblen.c: New file.
67123         * lib/unistr/u16-mblen.c: New file.
67124         * lib/unistr/u32-mblen.c: New file.
67125
67126         * modules/unistr/u8-mbtouc: New file.
67127         * modules/unistr/u16-mbtouc: New file.
67128         * modules/unistr/u32-mbtouc: New file.
67129         * lib/unistr/u8-mbtouc.c: New file.
67130         * lib/unistr/u16-mbtouc.c: New file.
67131         * lib/unistr/u32-mbtouc.c: New file.
67132
67133         * modules/unistr/u8-mbtouc-safe: New file.
67134         * modules/unistr/u16-mbtouc-safe: New file.
67135         * modules/unistr/u32-mbtouc-safe: New file.
67136         * lib/unistr/u8-mbtouc-safe.c: New file.
67137         * lib/unistr/u16-mbtouc-safe.c: New file.
67138         * lib/unistr/u32-mbtouc-safe.c: New file.
67139
67140         * modules/unistr/u8-move: New file.
67141         * modules/unistr/u16-move: New file.
67142         * modules/unistr/u32-move: New file.
67143         * lib/unistr/u8-move.c: New file.
67144         * lib/unistr/u16-move.c: New file.
67145         * lib/unistr/u32-move.c: New file.
67146         * lib/unistr/u-move.h: New file.
67147
67148         * modules/unistr/u8-next: New file.
67149         * modules/unistr/u16-next: New file.
67150         * modules/unistr/u32-next: New file.
67151         * lib/unistr/u8-next.c: New file.
67152         * lib/unistr/u16-next.c: New file.
67153         * lib/unistr/u32-next.c: New file.
67154
67155         * modules/unistr/u8-prev: New file.
67156         * modules/unistr/u16-prev: New file.
67157         * modules/unistr/u32-prev: New file.
67158         * lib/unistr/u8-prev.c: New file.
67159         * lib/unistr/u16-prev.c: New file.
67160         * lib/unistr/u32-prev.c: New file.
67161
67162         * modules/unistr/u8-set: New file.
67163         * modules/unistr/u16-set: New file.
67164         * modules/unistr/u32-set: New file.
67165         * lib/unistr/u8-set.c: New file.
67166         * lib/unistr/u16-set.c: New file.
67167         * lib/unistr/u32-set.c: New file.
67168         * lib/unistr/u-set.h: New file.
67169
67170         * modules/unistr/u8-startswith: New file.
67171         * modules/unistr/u16-startswith: New file.
67172         * modules/unistr/u32-startswith: New file.
67173         * lib/unistr/u8-startswith.c: New file.
67174         * lib/unistr/u16-startswith.c: New file.
67175         * lib/unistr/u32-startswith.c: New file.
67176         * lib/unistr/u-startswith.h: New file.
67177
67178         * modules/unistr/u8-stpcpy: New file.
67179         * modules/unistr/u16-stpcpy: New file.
67180         * modules/unistr/u32-stpcpy: New file.
67181         * lib/unistr/u8-stpcpy.c: New file.
67182         * lib/unistr/u16-stpcpy.c: New file.
67183         * lib/unistr/u32-stpcpy.c: New file.
67184         * lib/unistr/u-stpcpy.h: New file.
67185
67186         * modules/unistr/u8-stpncpy: New file.
67187         * modules/unistr/u16-stpncpy: New file.
67188         * modules/unistr/u32-stpncpy: New file.
67189         * lib/unistr/u8-stpncpy.c: New file.
67190         * lib/unistr/u16-stpncpy.c: New file.
67191         * lib/unistr/u32-stpncpy.c: New file.
67192         * lib/unistr/u-stpncpy.h: New file.
67193
67194         * modules/unistr/u8-strcat: New file.
67195         * modules/unistr/u16-strcat: New file.
67196         * modules/unistr/u32-strcat: New file.
67197         * lib/unistr/u8-strcat.c: New file.
67198         * lib/unistr/u16-strcat.c: New file.
67199         * lib/unistr/u32-strcat.c: New file.
67200         * lib/unistr/u-strcat.h: New file.
67201
67202         * modules/unistr/u8-strchr: New file.
67203         * modules/unistr/u16-strchr: New file.
67204         * modules/unistr/u32-strchr: New file.
67205         * lib/unistr/u8-strchr.c: New file.
67206         * lib/unistr/u16-strchr.c: New file.
67207         * lib/unistr/u32-strchr.c: New file.
67208
67209         * modules/unistr/u8-strcmp: New file.
67210         * modules/unistr/u16-strcmp: New file.
67211         * modules/unistr/u32-strcmp: New file.
67212         * lib/unistr/u8-strcmp.c: New file.
67213         * lib/unistr/u16-strcmp.c: New file.
67214         * lib/unistr/u32-strcmp.c: New file.
67215
67216         * modules/unistr/u8-strcpy: New file.
67217         * modules/unistr/u16-strcpy: New file.
67218         * modules/unistr/u32-strcpy: New file.
67219         * lib/unistr/u8-strcpy.c: New file.
67220         * lib/unistr/u16-strcpy.c: New file.
67221         * lib/unistr/u32-strcpy.c: New file.
67222         * lib/unistr/u-strcpy.h: New file.
67223
67224         * modules/unistr/u8-strcspn: New file.
67225         * modules/unistr/u16-strcspn: New file.
67226         * modules/unistr/u32-strcspn: New file.
67227         * lib/unistr/u8-strcspn.c: New file.
67228         * lib/unistr/u16-strcspn.c: New file.
67229         * lib/unistr/u32-strcspn.c: New file.
67230         * lib/unistr/u-strcspn.h: New file.
67231
67232         * modules/unistr/u8-strdup: New file.
67233         * modules/unistr/u16-strdup: New file.
67234         * modules/unistr/u32-strdup: New file.
67235         * lib/unistr/u8-strdup.c: New file.
67236         * lib/unistr/u16-strdup.c: New file.
67237         * lib/unistr/u32-strdup.c: New file.
67238         * lib/unistr/u-strdup.h: New file.
67239
67240         * modules/unistr/u8-strlen: New file.
67241         * modules/unistr/u16-strlen: New file.
67242         * modules/unistr/u32-strlen: New file.
67243         * lib/unistr/u8-strlen.c: New file.
67244         * lib/unistr/u16-strlen.c: New file.
67245         * lib/unistr/u32-strlen.c: New file.
67246         * lib/unistr/u-strlen.h: New file.
67247
67248         * modules/unistr/u8-strmblen: New file.
67249         * modules/unistr/u16-strmblen: New file.
67250         * modules/unistr/u32-strmblen: New file.
67251         * lib/unistr/u8-strmblen.c: New file.
67252         * lib/unistr/u16-strmblen.c: New file.
67253         * lib/unistr/u32-strmblen.c: New file.
67254
67255         * modules/unistr/u8-strmbtouc: New file.
67256         * modules/unistr/u16-strmbtouc: New file.
67257         * modules/unistr/u32-strmbtouc: New file.
67258         * lib/unistr/u8-strmbtouc.c: New file.
67259         * lib/unistr/u16-strmbtouc.c: New file.
67260         * lib/unistr/u32-strmbtouc.c: New file.
67261
67262         * modules/unistr/u8-strncat: New file.
67263         * modules/unistr/u16-strncat: New file.
67264         * modules/unistr/u32-strncat: New file.
67265         * lib/unistr/u8-strncat.c: New file.
67266         * lib/unistr/u16-strncat.c: New file.
67267         * lib/unistr/u32-strncat.c: New file.
67268         * lib/unistr/u-strncat.h: New file.
67269
67270         * modules/unistr/u8-strncmp: New file.
67271         * modules/unistr/u16-strncmp: New file.
67272         * modules/unistr/u32-strncmp: New file.
67273         * lib/unistr/u8-strncmp.c: New file.
67274         * lib/unistr/u16-strncmp.c: New file.
67275         * lib/unistr/u32-strncmp.c: New file.
67276
67277         * modules/unistr/u8-strncpy: New file.
67278         * modules/unistr/u16-strncpy: New file.
67279         * modules/unistr/u32-strncpy: New file.
67280         * lib/unistr/u8-strncpy.c: New file.
67281         * lib/unistr/u16-strncpy.c: New file.
67282         * lib/unistr/u32-strncpy.c: New file.
67283         * lib/unistr/u-strncpy.h: New file.
67284
67285         * modules/unistr/u8-strnlen: New file.
67286         * modules/unistr/u16-strnlen: New file.
67287         * modules/unistr/u32-strnlen: New file.
67288         * lib/unistr/u8-strnlen.c: New file.
67289         * lib/unistr/u16-strnlen.c: New file.
67290         * lib/unistr/u32-strnlen.c: New file.
67291         * lib/unistr/u-strnlen.h: New file.
67292
67293         * modules/unistr/u8-strpbrk: New file.
67294         * modules/unistr/u16-strpbrk: New file.
67295         * modules/unistr/u32-strpbrk: New file.
67296         * lib/unistr/u8-strpbrk.c: New file.
67297         * lib/unistr/u16-strpbrk.c: New file.
67298         * lib/unistr/u32-strpbrk.c: New file.
67299         * lib/unistr/u-strpbrk.h: New file.
67300
67301         * modules/unistr/u8-strrchr: New file.
67302         * modules/unistr/u16-strrchr: New file.
67303         * modules/unistr/u32-strrchr: New file.
67304         * lib/unistr/u8-strrchr.c: New file.
67305         * lib/unistr/u16-strrchr.c: New file.
67306         * lib/unistr/u32-strrchr.c: New file.
67307
67308         * modules/unistr/u8-strspn: New file.
67309         * modules/unistr/u16-strspn: New file.
67310         * modules/unistr/u32-strspn: New file.
67311         * lib/unistr/u8-strspn.c: New file.
67312         * lib/unistr/u16-strspn.c: New file.
67313         * lib/unistr/u32-strspn.c: New file.
67314         * lib/unistr/u-strspn.h: New file.
67315
67316         * modules/unistr/u8-strstr: New file.
67317         * modules/unistr/u16-strstr: New file.
67318         * modules/unistr/u32-strstr: New file.
67319         * lib/unistr/u8-strstr.c: New file.
67320         * lib/unistr/u16-strstr.c: New file.
67321         * lib/unistr/u32-strstr.c: New file.
67322         * lib/unistr/u-strstr.h: New file.
67323
67324         * modules/unistr/u8-strtok: New file.
67325         * modules/unistr/u16-strtok: New file.
67326         * modules/unistr/u32-strtok: New file.
67327         * lib/unistr/u8-strtok.c: New file.
67328         * lib/unistr/u16-strtok.c: New file.
67329         * lib/unistr/u32-strtok.c: New file.
67330         * lib/unistr/u-strtok.h: New file.
67331
67332         * modules/unistr/u8-uctomb: New file.
67333         * modules/unistr/u16-uctomb: New file.
67334         * modules/unistr/u32-uctomb: New file.
67335         * lib/unistr/u8-uctomb.c: New file.
67336         * lib/unistr/u16-uctomb.c: New file.
67337         * lib/unistr/u32-uctomb.c: New file.
67338
67339         * MODULES.html.sh (Unicode string functions): Add the new modules.
67340
67341 2007-01-08  Bruno Haible  <bruno@clisp.org>
67342
67343         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67344         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67345         subdirectories.
67346
67347 2007-01-08  Karl Berry  <karl@gnu.org>
67348
67349         * doc/error.texi: mention that main() fns must set program_name
67350         when progname is used.
67351
67352 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67353
67354         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67355         WCTYPE_H is empty, for the benefit of builds from non-distclean
67356         directories.  Problem reported by Eric Blake in
67357         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67358
67359 2007-01-08  Bruno Haible  <bruno@clisp.org>
67360
67361         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67362         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67363         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67364         PROVIDE_CANONICALIZE_FILENAME_MODE.
67365         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67366
67367 2007-01-08  Bruno Haible  <bruno@clisp.org>
67368
67369         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67370         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67371         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67372         * lib/fts.c: Likewise.
67373         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67374
67375 2006-12-25  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/utf8-ucs4-safe: New file.
67378         * lib/utf8-ucs4-safe.h: New file.
67379         * lib/unistr/utf8-ucs4-safe.c: New file.
67380
67381         * modules/utf16-ucs4-safe: New file.
67382         * lib/utf16-ucs4-safe.h: New file.
67383         * lib/unistr/utf16-ucs4-safe.c: New file.
67384
67385         * MODULES.html.sh (Unicode string functions): Add the new modules.
67386
67387 2007-01-08  Bruno Haible  <bruno@clisp.org>
67388
67389         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67390         (Depends-on): Add unitypes.
67391         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67392         (u8_mbtouc_aux): Move out to separate file.
67393         (u8_mbtouc): Use ucs4_t, uint8_t types.
67394         * lib/unistr/utf8-ucs4.c: New file.
67395
67396         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67397         (Depends-on): Add unitypes.
67398         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67399         (u16_mbtouc_aux): Move out to separate file.
67400         (u16_mbtouc): Use ucs4_t, uint16_t types.
67401         * lib/unistr/utf16-ucs4.c: New file.
67402
67403         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67404         (Depends-on): Add unitypes.
67405         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67406         (u8_uctomb_aux): Move out to separate file.
67407         (u8_uctomb): Use ucs4_t, uint8_t types.
67408         * lib/unistr/ucs4-utf8.c: New file.
67409
67410         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67411         (Depends-on): Add unitypes.
67412         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67413         (u16_uctomb_aux): Move out to separate file.
67414         (u16_uctomb): Use ucs4_t, uint16_t types.
67415         * lib/unistr/ucs4-utf16.c: New file.
67416
67417 2006-12-25  Bruno Haible  <bruno@clisp.org>
67418
67419         * modules/unitypes: New file.
67420         * lib/unitypes.h: New file.
67421         * MODULES.html.sh (func_all_modules): New section "Unicode string
67422         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67423         this section. Add unitypes.
67424
67425 2007-01-08  Bruno Haible  <bruno@clisp.org>
67426
67427         Avoid variable names that conflict with those from libtool.
67428         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67429         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67430         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67431         library_names_spec to acl_library_names_spec, hardcode_* to
67432         acl_hardcode_*.
67433         Reported by Ralf Wildenhues.
67434
67435 2007-01-08  Bruno Haible  <bruno@clisp.org>
67436
67437         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67438         definition.
67439         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67440         definition.
67441         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67442         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67443         definition.
67444         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67445         definition.
67446         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67447         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67448         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67449         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67450         definition.
67451         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67452         definition.
67453         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67454         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67455         GC_USE_<algorithm>.
67456         * lib/gc-libgcrypt.c: Likewise.
67457         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67458         * modules/gc-arctwo (configure.ac): Likewise.
67459         * modules/gc-des (configure.ac): Likewise.
67460         * modules/gc-hmac-md5 (configure.ac): Likewise.
67461         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67462         * modules/gc-md2 (configure.ac): Likewise.
67463         * modules/gc-md4 (configure.ac): Likewise.
67464         * modules/gc-md5 (configure.ac): Likewise.
67465         * modules/gc-random (configure.ac): Likewise.
67466         * modules/gc-rijndael (configure.ac): Likewise.
67467         * modules/gc-sha1 (configure.ac): Likewise.
67468
67469 2007-01-08  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67472         macro definition.
67473         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67474         definition.
67475         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67476         definition.
67477         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67478         * modules/fcntl-safer (configure.ac): Likewise.
67479         * modules/fopen-safer (configure.ac): Likewise.
67480         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67481         GNULIB_FWRITEERROR macro definition.
67482
67483 2007-01-08  Bruno Haible  <bruno@clisp.org>
67484
67485         * m4/gnulib-common.m4: New file.
67486         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67487         (func_get_filelist): Add m4/gnulib-common.m4.
67488
67489 2007-01-08  Bruno Haible  <bruno@clisp.org>
67490
67491         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67492         command.
67493
67494 2007-01-08  Jim Meyering  <jim@meyering.net>
67495
67496         Use a more robust test for a "can't happen" condition.
67497         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67498         narrowed the st_size value.  Presuming the "can't happen" condition
67499         is true, that narrowing could conceivably convert an invalid st_size
67500         value into a valid one.  Instead, use a change based on Matthew
67501         Woehlke's original patch.
67502
67503         Slight readability improvement: use an assert-like macro
67504         in place of literal "abort ()" uses.
67505         * lib/fts.c (fts_assert): Define.
67506         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67507         Use this macro instead of a bare 'abort'.
67508
67509 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67512         simply work around them.
67513         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67514         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67515         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67516         declaring.
67517         Don't bother to define as macros, since the standard doesn't require it.
67518         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67519         longer worry about IRIX 5.3.
67520         (HAVE_WCTYPE_CTMP_BUG): Remove.
67521
67522 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67523
67524         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67525         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67526         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67527         Problems reported by Georg Schwarz for IRIX 5.3.
67528
67529         * gnulib-tool (autoconf_minversion): Take the maximum version number
67530         found, not the minimum.  Problem reported by James Youngman.
67531
67532 2007-01-03  Karl Berry  <karl@gnu.org>
67533
67534         * doc/error.texi: new file, explaining interaction with progname.
67535         * doc/gnulib.texi: include it.  Update copyright.
67536
67537 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67538
67539         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67540         AC_CANONICAL_HOST, to improve autobuild outputs.
67541
67542 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67543             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67544
67545         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67546         sockets, server sockets, and other file descriptors.  Count errors
67547         to compute the return value.  Reorder the code a bit to be easier
67548         to follow.  Don't set event bits that were not requested (except
67549         POLLERR and POLLHUP).
67550
67551 2007-01-01  Bruno Haible  <bruno@clisp.org>
67552
67553         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67554
67555 2007-01-03  Jim Meyering  <jim@meyering.net>
67556
67557         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67558
67559 2007-01-02  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/settime (Include): Require timespec.h.
67562         * modules/nanosleep (Include): Likewise.
67563
67564 2007-01-01  Bruno Haible  <bruno@clisp.org>
67565
67566         * gnulib-tool (func_emit_copyright_notice): Bump year.
67567         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67568
67569 2007-01-01  Bruno Haible  <bruno@clisp.org>
67570
67571         Improve support for OpenBSD.
67572         * build-aux/config.rpath (libname_spec): Export.
67573         (library_names_spec): New variable. Export.
67574         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67575         library_names_spec from the config.rpath output. Locate shared library
67576         through the name pattern in library_names_spec.
67577
67578 2007-01-01  Eric Blake  <ebb9@byu.net>
67579
67580         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67581
67582 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67583
67584         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67585         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67586         assume the C locale, and avoid an "eval" that could cause trouble.
67587         Problem with SORT reported by Bob Proulx.
67588
67589         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67590         Define.  Trivial patch from Henning Nielsen Lund, originally
67591         sent to bug-grep@gnu.org today.
67592
67593 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67594
67595         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67596         struct stat.  Problem reported by Henning Nielsen Lund.
67597         * lib/acl.c: Include acl.h first, to check interface.  Don't
67598         bother to include sys/types.h and sys/stat.h again.
67599
67600 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         Import the following change from libc; problem reported by
67603         Sven Verdoolaege.
67604
67605         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67606
67607         [BZ #1373]
67608         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67609
67610 2006-12-28  Jim Meyering  <jim@meyering.net>
67611
67612         * build-aux/announce-gen: Do not assume that the package
67613         builds any of tar.gz, tar.bz2, and .xdelta files.
67614         Suggestion from Simon Josefsson.
67615
67616 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67617
67618         * modules/announce-gen: New file.
67619
67620 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67621
67622         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67623         handles its gotchas now.
67624         * lib/mbswidth.c: Likewise.
67625         * lib/wcwidth.h: Likewise.
67626         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67627         and iswcntrl; the wctype module does this stuff now.
67628         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67629         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67630         * modules/mbchar (Depends-on): Add wctype.
67631         * modules/mbswidth (Depends-on): Likewise.
67632         * modules/wcwidth (Depends-on): Likewise.
67633
67634 2006-12-27  Eric Blake  <ebb9@byu.net>
67635
67636         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67637         module uses more than what <wctype.h> is required to provide.
67638
67639 2006-12-26  Eric Blake  <ebb9@byu.net>
67640
67641         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67642
67643 2006-12-26  Eric Blake  <ebb9@byu.net>
67644
67645         * modules/absolute-header: New module.
67646         * modules/fcntl (Depends-on): Depend on it.
67647         * modules/inttypes (Depends-on): Likewise.
67648         * modules/stdint (Depends-on): Likewise.
67649         * modules/sys_stat (Depends-on): Likewise.
67650         * modules/wctype (Depends-on): Likewise.
67651         * MODULES.html.sh (Support for building libraries and
67652         executables): Document it.
67653
67654 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67655
67656         * gnulib-tool (SED): Remove, undoing previous change.
67657         The problem was that it broke coreutils on Solaris, because
67658         "sed --posix" leaked into a makefile.
67659         (sed): New alias, if 'alias' and GNU sed.
67660
67661 2006-12-24  Jim Meyering  <jim@meyering.net>
67662
67663         Work around an fchownat bug in glibc-2.4:
67664         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67665         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67666         in spite of the -P option.
67667         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67668         New macros.
67669         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67670         * modules/openat (Files): Add lib/fchownat.c.
67671         * lib/openat.c (fchownat): Don't define here.  Move to...
67672         * lib/fchownat.c: ...this new file.
67673
67674 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67675
67676         Fix bug reported by Bruno Haible in
67677         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67678         where quotearg.c didn't compile on Mac OS X 10.2 because it
67679         lacks <wchar.h> and wint_t.
67680         * lib/wctype_.h (__wctype_wint_t): New type.
67681         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67682         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67683         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67684         Arg is now of type __wctype_wint_t, not wint_t.
67685         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67686         substitute HAVE_WINT_T.
67687         * modules/wctype (Files): Add m4/wint_t.m4.
67688         (wctype.h): Substitute HAVE_WINT_T.
67689
67690 2006-12-23  Bruno Haible  <bruno@clisp.org>
67691
67692         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67693
67694 2006-12-23  Bruno Haible  <bruno@clisp.org>
67695
67696         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67697         S_ISLNK.
67698         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67699         mingw.
67700
67701 2006-12-22  Bruno Haible  <bruno@clisp.org>
67702
67703         * lib/copy-file.c: Include acl.h.
67704         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67705         Close the file descriptors only after being done with copy_acl.
67706         * modules/copy-file (Depends-on): Add acl.
67707
67708 2006-12-22  Bruno Haible  <bruno@clisp.org>
67709
67710         * gnulib-tool (SED): New variable.
67711         Use $SED instead of sed everywhere.
67712
67713 2006-12-22  Bruno Haible  <bruno@clisp.org>
67714
67715         * modules/no-c++: New file.
67716         * m4/no-c++.m4: New file.
67717         * MODULES.html.sh (Support for building libraries and executables):
67718         Add no-c++.
67719
67720 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67723         Include <limits.h>, and use its INT_MAX to rewrite the
67724         j loop so that it does not overflow 'int'.  Problem reported by
67725         Ralf Wildenhues in
67726         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67727         Play it safe by shifting left by 1 rather than multiplying by 2,
67728         as GCC is less likely to optimize this away when the value
67729         is signed (when it assumes overflow leads to undefined behavior).
67730         Also, don't assume time_t uses two's complement.
67731
67732 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67733
67734         * MODULES.html.sh: New module wctype.
67735         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67736         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67737         <wctype.h>, since the new wctype module should fix this.
67738         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67739         the wctype module should arrange for it.
67740         * lib/regex_internal.h: Likewise.
67741         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67742         since the wctype module should handle this now.
67743         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67744         * modules/fnmatch (Depends-on): Add wctype.
67745         * modules/quotearg (Depends-on): Likewise.
67746         * modules/regex (Depends-on): Likewise.
67747
67748 2006-12-19  Bruno Haible  <bruno@clisp.org>
67749
67750         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67751         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67752
67753 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67754
67755         * modules/savewd (Depends-on): Fix dependency on fcntl.
67756
67757 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67758
67759         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67760         conforms to C99, rather than relying on the user's environment
67761         setting of STDINT_H.
67762
67763 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67764         and Eric Blake  <ebb9@byu.net>
67765
67766         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67767         This is more consistent with the other defines here.
67768         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67769         Port to z/OS.  Problem reported by Paul Gilmartin.
67770         Change local vars to use gl_ prefix rather than ac_.
67771         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67772         with other defines.
67773         * modules/double-slash-root: New module.
67774         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67775         (Depends-on): Add double-slash-root.
67776         * MODULES.html.sh (File system functions): Mention new module.
67777
67778 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67781         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67782         This is for the benefit of gzip, which doesn't do i18n.
67783
67784 2006-12-12  Jim Meyering  <jim@meyering.net>
67785
67786         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67787         Reported by Andreas Schwab <schwab@suse.de>.
67788
67789 2006-12-12  Bruno Haible  <bruno@clisp.org>
67790
67791         Merge these changes.
67792         2006-09-05  Bruno Haible  <bruno@clisp.org>
67793         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67794         iconv_alloc succeeded.
67795         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67796         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67797         test for " && dest " at the end - dest is always != NULL there. Call
67798         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67799         with 2xNULL arguments, also to flush the state storage. Handle the
67800         IRIX iconv behaviour. Realloc the final result, to throw away unused
67801         memory.
67802
67803 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67804
67805         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67806         and fchmodat unconditionally, since glibc 2.4 has them.
67807         Problem reported by Arkadiusz Miskiewicz.
67808
67809 2006-12-10  Bruno Haible  <bruno@clisp.org>
67810
67811         * gnulib-tool (func_import): Show the include files only for those
67812         modules that are copied and specified.
67813         Reported by Karl Berry.
67814
67815 2006-12-08  Jim Meyering  <jim@meyering.net>
67816
67817         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67818         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67819
67820         * build-aux/announce-gen: Add two new options, both optional:
67821         --bootstrap-tools=TOOL_LIST
67822               a comma-separated list of tools, e.g.,
67823               autoconf,automake,bison,gnulib
67824         --gnulib-snapshot-date=DATE
67825               if gnulib is in the bootstrap tool list,
67826               then report this as the snapshot date.
67827               If not specified, use the current date/time.
67828               If you specify a date here, be sure it's UTC.
67829
67830 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67831
67832         * tests/test-argp-2.sh: Fix test to match actual output.
67833         (func_compare): Fix sed script to be portable.
67834
67835 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67836
67837         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67838         workaround for this case.  It is not autoconfigured now; offhand
67839         it's hard to see how to autoconfigure it.
67840
67841 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67842
67843         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67844         a directory that is about to be chowned.  Such a directory's
67845         initial file permissions should permit the owner only and this
67846         should not be changed until after the chown, since the group and
67847         other bits would be incorrect if they granted permission before
67848         the chown.
67849
67850         Fix porting problem for iswctype reported by Georg Schwarz in:
67851         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67852         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67853         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67854         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67855         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67856
67857 2006-12-03  Jim Meyering  <jim@meyering.net>
67858
67859         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67860         p->fts_statp may not yet be defined.
67861         (fts_read): Instead, set it in the caller, once p->fts_statp is
67862         sure to be defined, and corresponds to a top-level directory.
67863         This bug made du -x fail.  Here's the coreutils test case:
67864         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67865         Reported by Mike Frysinger.
67866
67867 2006-12-01  Jim Meyering  <jim@meyering.net>
67868
67869         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67870         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67871         Reported by Simon Josefsson.
67872
67873 2006-11-30  Jim Meyering  <jim@meyering.net>
67874
67875         * m4/warning.m4: Use the all-permissive copyright notice
67876         recommended by RMS (rather than LGPL).
67877         * m4/vararrays.m4: Likewise.
67878         * m4/flexmember.m4: Likewise.
67879
67880 2006-11-29  Bruno Haible  <bruno@clisp.org>
67881
67882         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67883         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67884         using +=.
67885         Reported by Simon Josefsson <simon@josefsson.org>.
67886
67887 2006-11-28  James Youngman <jay@gnu.org>
67888
67889         * README: Advise users that they might find the bug-gnulib@gnu.org
67890         and autotools-announce@gnu.org mailing lists useful.
67891
67892 2006-11-28  Bruno Haible  <bruno@clisp.org>
67893
67894         * m4/ptrdiff_max.m4: Remove file.
67895
67896 2006-11-21  Bruno Haible  <bruno@clisp.org>
67897
67898         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67899         _AC_COMPUTE_INT.
67900         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67901         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67902         _AC_COMPUTE_INT.
67903         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67904         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67905         _AC_COMPUTE_INT.
67906         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67907
67908 2006-11-28  Jim Meyering  <jim@meyering.net>
67909
67910         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67911         warning from "gcc -Wshadow" about shadowing the builtin.
67912
67913 2006-11-27  Bruno Haible  <bruno@clisp.org>
67914
67915         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67916         _AC_COMPUTE_INT.
67917         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67918
67919 2006-11-27  Bruno Haible  <bruno@clisp.org>
67920             Paul Eggert  <eggert@cs.ucla.edu>
67921
67922         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67923
67924 2006-11-26  Bruno Haible  <bruno@clisp.org>
67925
67926         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67927         noinst_LTLIBRARIES.
67928
67929 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67930             Bruno Haible  <bruno@clisp.org>
67931
67932         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67933         if compiling with "gcc -ansi".
67934
67935 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67936
67937         Fix some incompatibilities with gcc -ansi -pedantic.
67938         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67939         if compiling pedantically with GCC, unless it's C99 or later.
67940         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67941         it mishandles gcc -ansi -pedantic as well.
67942         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67943         if gcc -pedantic.
67944         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67945         initializers for struct if -pedantic, unless it's C99 or later.
67946
67947 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67948
67949         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67950         Don't close an fd more than once. Identical atimes indicate
67951         success, not failure.
67952
67953 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67954
67955         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67956
67957 2006-11-23  Jim Meyering  <jim@meyering.net>
67958
67959         * build-aux/announce-gen: New file.  From coreutils.
67960
67961 2006-11-22  Jim Meyering  <jim@meyering.net>
67962
67963         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67964         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67965         (fts_read): Use a temporary to narrow the overused st_size member
67966         before using it in a switch statement.  Reported by Matthew Woehlke.
67967
67968         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67970
67971 2006-11-20  Bruno Haible  <bruno@clisp.org>
67972
67973         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67974         changequote instead of pairs of brackets.
67975         Reported by Andreas Schwab <schwab@suse.de>.
67976
67977 2006-11-21  Jim Meyering  <jim@meyering.net>
67978
67979         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67980         so as to remain compatible with older compilers.
67981         Patch from Michael Deutschmann.
67982
67983 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67984
67985         * MODULES.html.sh (File system functions): Add openat.
67986
67987         * lib/openat.h (rpl_fstatat): New macro, if
67988         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67989         (fstatat): Define to rpl_fstatat under the same conditions,
67990         unless COMPILING_FSTATAT.
67991         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67992         seems to have the bug.
67993         * lib/fstatat.c: New file.
67994         * modules/openat (Files): Add it.
67995
67996 2006-11-20  Bruno Haible  <bruno@clisp.org>
67997
67998         * Makefile: New file.
67999
68000 2006-11-20  Jim Meyering  <jim@meyering.net>
68001
68002         The beginnings of syntax-related checks for gnulib.
68003         * lib/Makefile: New file.
68004         * lib/t-idcache: New script.  Ensure that the two halves of
68005         idcache.c stay in sync.
68006
68007         * lib/idcache.c: Adjust comments in user- and group- portions to
68008         be more accurate, and to be consistent with one another.
68009
68010 2006-11-20  Jim Meyering  <jim@meyering.net>
68011
68012         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68013         continue using the flexible array member (thus, this module performs
68014         half as many malloc calls), with the addition that...
68015         (getgroup, getuser): Consistently record a non-match via an empty
68016         "name" string, and map an empty string match to a NULL return value.
68017         * modules/idcache (Depends-on): Re-add flexmember.
68018
68019         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68020         (getuidbyname, getgroup, getgidbyname): Likewise.
68021
68022         Use cleaner syntax: NULL rather than 0.
68023         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68024
68025 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68026
68027         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68028         It mishandled the case where the group was missing.
68029         Problem reported by Greg Schafer.
68030         * modules/idcache: Likewise.
68031
68032 2006-11-18  Jim Meyering  <jim@meyering.net>
68033
68034         * check-module (%exempt_header): Add exception for some
68035         conditionally-included headers.
68036
68037         * modules/i-ring (Depends-on): Add verify.
68038         (License): Change to LGPL.
68039
68040 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68043         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68044         and inttostr.h.  Use snprintf rather than uinttostr, so that
68045         LGPLed code doesn't depend on GPLed.
68046
68047 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68048
68049         * modules/inline (License): Change from GPL to LGPL.
68050
68051 2006-11-17  Jim Meyering  <jim@meyering.net>
68052
68053         * modules/d-type (License): Switch to LGPL.
68054
68055 2006-11-15  Bruno Haible  <bruno@clisp.org>
68056
68057         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68058
68059 2006-11-15  Eric Blake  <ebb9@byu.net>
68060
68061         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68062         the module dependency.
68063
68064 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68065             Bruno Haible  <bruno@clisp.org>
68066
68067         * gnulib-tool (func_create_testdir): Add license consistency check.
68068
68069 2006-11-15  Eric Blake  <ebb9@byu.net>
68070
68071         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68072         random "(cached)" in configure output.
68073
68074 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68075
68076         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68077         test for conforming inttypes.h is both announced and cached.
68078
68079         * MODULES.html.sh (seen_modules, seen_files): New variables.
68080         (func_module): Rewrite to use a few less gnulib-tool and sed
68081         invocations.  Avoid a couple of quadratic algorithms for ...
68082         (missed_modules, missed_files): ... these, with ...
68083         (func_append, func_tmpdir): ... these new functions, from
68084         gnulib-tool.  Analogously, install traps for cleanup.
68085
68086         * tests/test-gc.c (main): Remove unused variables.
68087         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68088
68089 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68090
68091         * modules/inttostr (License): Change to LGPL.
68092
68093 2006-11-14  Eric Blake  <ebb9@byu.net>
68094
68095         * modules/tempname (License): Change to LGPL.
68096
68097 2006-11-14  Eric Blake  <ebb9@byu.net>
68098
68099         * doc/functions.texi (Function Portability): *printf functions on
68100         Cygwin now understand all POSIX size specifiers.
68101
68102 2006-11-14  Bruno Haible  <bruno@clisp.org>
68103
68104         * modules/c-ctype (License): Change to LGPL.
68105
68106 2006-11-12  Bruno Haible  <bruno@clisp.org>
68107
68108         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68109         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68110         for GNOME libraries, for which the include files are installed in
68111         subdirectories of $prefix/include.
68112
68113 2006-11-12  Bruno Haible  <bruno@clisp.org>
68114
68115         * m4/lib-link.m4: Require at least autoconf-2.54.
68116         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68117         name to underscores for the --with option.
68118
68119 2006-11-13  Bruno Haible  <bruno@clisp.org>
68120
68121         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68122         the tests directory.
68123         Reported by Ralf Wildenhues.
68124
68125 2006-11-13  Bruno Haible  <bruno@clisp.org>
68126
68127         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68128         (func_emit_initmacro_end): Undo the override here.
68129         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68130         Works around the famous automake error in coreutils.
68131
68132 2006-11-13  Eric Blake  <ebb9@byu.net>
68133
68134         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68135         element, not its node.
68136
68137 2006-11-12  Bruno Haible  <bruno@clisp.org>
68138
68139         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68140         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68141
68142 2006-11-12  Bruno Haible  <bruno@clisp.org>
68143
68144         * gnulib-tool: New option --local-symlink.
68145         (func_usage): Document it.
68146         (lsymbolic): New variable.
68147         (func_import, func_create_testdir): If --symlink was not specified,
68148         test whether --local-symlink was specified and the file comes from
68149         the local_gnulib_dir.
68150
68151 2006-11-12  Bruno Haible  <bruno@clisp.org>
68152
68153         * gnulib-tool (func_ln): New function.
68154         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68155
68156 2006-11-12  Bruno Haible  <bruno@clisp.org>
68157
68158         Finish support for source files in subdirectories.
68159         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68160         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68161         AUTOMAKE_OPTIONS.
68162         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68163
68164 2006-11-12  Bruno Haible  <bruno@clisp.org>
68165
68166         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68167         EXTRA_lib_SOURCES augmentation.
68168         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68169
68170 2006-11-12  Jim Meyering  <jim@meyering.net>
68171
68172         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68173         file descriptors.  This also averts a failure on systems with
68174         native openat support when a traversed directory lacks "x" access.
68175         * lib/fts_.h: Include "i-ring.h"
68176         (struct FTS) [fts_fd_ring]: New member.
68177         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68178         (FCHDIR): Add parentheses.
68179         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68180         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68181         When descending, rather than simply closing the previous
68182         fts_cwd_fd value, push that file descriptor onto the ring.
68183         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68184         (fts_open): Initialize the new fd_ring member.
68185         (fts_close): Clear the ring.
68186         (fts_safe_changedir): When possible, use our new fd_ring to skip
68187         the diropen and fstat and dev/ino comparison that would normally
68188         accompany a virtual `chdir ("..")'.
68189
68190         * modules/fts (Depends-on): Add i-ring.
68191         * modules/i-ring: New module.
68192         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68193         * m4/i-ring.m4: New file.
68194
68195 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68196
68197         * gnulib-tool (func_create_testdir): Fix replacement of
68198         `build-aux' in configure.ac.  Run autotools in gltests
68199         subdirectory.
68200         (func_create_testdir, func_create_megatestdir, test): There is
68201         no need for '--force' in most autotool invocations in a new
68202         tree.  Actually fail the whole test if any of the tools, or the
68203         configure or make stages fail.
68204
68205         Sync from Automake.
68206         * build-aux/gnupload: Revert last change.  Add pointer to upload
68207         instructions of the GNU Maintenance Instructions.
68208         Suggestion by Karl Berry.
68209
68210 2006-11-10  Jim Meyering  <jim@meyering.net>
68211
68212         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68213
68214 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68215
68216         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68217         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68218         (bind_textdomain_codeset) [! ENABLE_NLS]:
68219         Evaluate all the arguments.  That way, callers get compatible behavior
68220         if the arguments have side effects.  Also, it avoids some GCC
68221         diagnostics in some cases; Joel E. Denny reported problems when Bison
68222         was configured with --enable-gcc-warnigs.
68223
68224 2006-11-10  Jim Meyering  <jim@meyering.net>
68225
68226         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68227         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68228         account.
68229
68230 2006-11-10  Jim Meyering  <jim@meyering.net>
68231
68232         * modules/inline: New file/module.
68233         * modules/xalloc (Files): Remove m4/inline.m4.
68234         (Depends-on): Add inline, instead.
68235         * modules/oset: Likewise.
68236         * modules/list: Likewise.
68237
68238 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68239
68240         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68241         Problem reported by Matthew Woehlke.
68242
68243 2006-11-09  Bruno Haible  <bruno@clisp.org>
68244
68245         * lib/tempname.c (gen_tempname): Remove variant that invokes
68246         __gen_tempname.
68247         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68248         __gen_tempname.
68249
68250 2006-11-08  Bruno Haible  <bruno@clisp.org>
68251
68252         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68253         to 'yes' instead of 'cross-compiling'.
68254
68255 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68256
68257         * lib/quotearg.h (quotearg_free): New decl.
68258         * lib/quotearg.c (quotearg_free): New function.
68259         (slot0, nslots, slotvec0, slotvec):
68260         Now file-scope so that quotearg_free can get at them.
68261
68262 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68263
68264         Sync from Automake.
68265         * build-aux/gnupload: Add missing 'gnu' to example URL.
68266         Report by Karl Berry.
68267
68268 2006-11-08  Bruno Haible  <bruno@clisp.org>
68269
68270         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68271         Suggested by Paul Eggert.
68272
68273 2006-11-08  Jim Meyering  <jim@meyering.net>
68274
68275         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68276         It's already included if !_LIBC.
68277         (fts_safe_changedir): Add a comment.
68278
68279 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68280
68281         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68282         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68283         Matthew Woehlke.
68284
68285         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68286         definitions up, to avoid colliding with change below.
68287         (static_inline) [HAVE_INLINE]: New macro.
68288         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68289         Provide extern decls when !HAVE_INLINE.  Do not define unless
68290         static_inline is defined, either by us or by xmalloc.c.  Use
68291         static_inline rather than static inline.
68292         (XCALLOC): Optimize sizeof(T) = 1 case.
68293         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68294
68295 2006-11-07  Bruno Haible  <bruno@clisp.org>
68296
68297         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68298         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68299         AC_C_INLINE.
68300         * modules/xalloc (Files): Add m4/inline.m4.
68301
68302 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68303
68304         * README: Fix typo.
68305         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68306         (Miscellanous Notes): ...from this.
68307
68308 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68309
68310         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68311         Mention that offsetof should be used instead of sizeof.
68312         From Bruno Haible.
68313
68314 2006-11-07  Bruno Haible  <bruno@clisp.org>
68315
68316         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68317
68318 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68319
68320         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68321         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68322         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68323         (gl_tree_add_before, gl_tree_add_after):
68324         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68325         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68326         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68327         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68328         (gl_linked_add_after, gl_linked_add_at): Likewise.
68329         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68330         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68331         (gl_tree_add_before, gl_tree_add_after): Likewise.
68332         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68333         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68334         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68335
68336 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68337
68338         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68339
68340 2006-11-06  Bruno Haible  <bruno@clisp.org>
68341
68342         * m4/inline.m4: New file.
68343         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68344         * modules/list (Files): Add m4/inline.m4.
68345         * modules/oset (Files): Likewise.
68346
68347 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68348
68349         * lib/idcache.c: Include <stddef.h>, for offsetof.
68350         (struct userid.name): Change from char * to a flexible array member.
68351         All uses changed.
68352         * modules/idcache (Depends-on): Add flexmember.
68353
68354         * MODULES.html.sh (Core language properties): New module flexmember.
68355         * modules/flexmember, m4/flexmember.m4: New files.
68356
68357         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68358         inline functions that are identical with the old xnmalloc_inline,
68359         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68360         that we can avoid some unnecessary integer multiplications and
68361         divisions in the common case where the element size is known at
68362         compile time.
68363         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68364         needed.
68365         (xnboundedmalloc): Remove.
68366         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68367         arguments, for consistency with rest of this header.
68368         (xcharalloc): Rewrite using XNMALLOC.
68369         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68370         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68371         versions have been moved to lib/xalloc.h and renamed to be the
68372         non-*_inline versions.
68373         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68374         and xnrealloc functions, since those functions are now inline and
68375         now call us.
68376         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68377         renaming described above.
68378         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68379         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68380         captures the dependency in AC_C_INLINE.
68381
68382         New module canonicalize-lgpl, proposed by Charles Wilson in
68383         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68384         with a few small changes afterwards.
68385         * MODULES.html.sh (File system functions): New module
68386         canonicalize-lgpl.
68387         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68388         and canonicalize_file_name.
68389         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68390         * modules/canonicalize-lgpl: New files.
68391
68392 2006-11-05  Bruno Haible  <bruno@clisp.org>
68393
68394         * gnulib-tool (func_import, func_create_testdir): Create directories
68395         also for files in subdirectories of lib/.
68396
68397 2006-11-05  Bruno Haible  <bruno@clisp.org>
68398
68399         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68400         ANSI C compliant.
68401
68402 2006-11-03  Bruno Haible  <bruno@clisp.org>
68403
68404         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68406         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68407         (xnboundedmalloc): New inline function.
68408         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68409         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68410         xmalloc.
68411         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68412         xmalloc.
68413         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68414         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68415         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68416         xmalloc.
68417         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68418         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68419         xmalloc.
68420         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68421         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68422         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68423         xmalloc.
68424         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68425         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68426         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68427         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68428         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68429         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68430         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68431
68432 2006-11-03  Bruno Haible  <bruno@clisp.org>
68433
68434         * lib/c-ctype.h [C++]: Define functions without name mangling.
68435         * lib/fwriteerror.h [C++]: Likewise.
68436         * lib/gcd.h [C++]: Likewise.
68437         * lib/linebreak.h [C++]: Likewise.
68438
68439 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68442         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68443         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68445         Check for functions and headers just once.
68446         Check for declaration of canonicalize_file_name.
68447         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68448
68449 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68450
68451         * gnulib-tool (func_import): Fix typo in actioncmd.
68452
68453 2006-11-02  Bruno Haible  <bruno@clisp.org>
68454
68455         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68456         newline sequence in the Makefile.am snippet as a space, like "make"
68457         does.
68458         Reported by Roger Persson <perrog@gmail.com>.
68459
68460 2006-11-01  Bruno Haible  <bruno@clisp.org>
68461
68462         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68463         already declared in <string.h>.
68464         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68465
68466 2006-11-01  Bruno Haible  <bruno@clisp.org>
68467
68468         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68469         * lib/strcase.h: Include <string.h>.
68470         (strcasecmp): Define to rpl_strcasecmp here.
68471
68472 2006-11-01  Bruno Haible  <bruno@clisp.org>
68473
68474         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68475
68476 2006-11-01  Eric Blake  <ebb9@byu.net>
68477
68478         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68479
68480         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68481
68482 2006-10-29  Bruno Haible  <bruno@clisp.org>
68483
68484         Make it compile in C++ mode.
68485         * lib/full-write.c (full_rw): Add a cast.
68486
68487 2006-11-01  Bruno Haible  <bruno@clisp.org>
68488
68489         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68490         be POSIX compliant.
68491         Reported by Roger Persson <perrog@gmail.com>.
68492
68493 2006-11-01  Eric Blake  <ebb9@byu.net>
68494
68495         * lib/getopt_.h: Fix comments.
68496
68497 2006-10-31  Eric Blake  <ebb9@byu.net>
68498
68499         * modules/tmpdir (Depends-on): Add sys_stat.
68500         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68501         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68502         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68503         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68504         tempname.
68505
68506 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68507
68508         Avoid some C++ diagnostics reported by Bruno Haible.
68509         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68510         xmalloc.
68511         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68512         (struct slotvec): Move to top level.
68513         (quotearg_n_options): Rewrite to avoid xmalloc.
68514         * lib/xalloc.h (xcharalloc): New function.
68515         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68516         [defined __cplusplus]: Add function template that provides result
68517         type propagation.  This part of the change is from Bruno Haible.
68518
68519 2006-10-29  Bruno Haible  <bruno@clisp.org>
68520
68521         Make it compile in C++ mode.
68522         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68523         * lib/strnlen1.c (strnlen1): Cast memchr result.
68524         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68525         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68526         (create_temp_dir): Rename local variable 'template'.
68527         (compile_csharp_using_sscli): Add cast.
68528         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68529         * lib/findprog.c (find_in_path): Likewise.
68530         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68531         * lib/wait-process.c (register_slave_subprocess): Likewise.
68532
68533 2006-10-22  Bruno Haible  <bruno@clisp.org>
68534
68535         * modules/tsearch: New file.
68536         * lib/tsearch.h: New file.
68537         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68538         * m4/tsearch.m4: New file.
68539         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68540
68541 2006-10-29  Eric Blake  <ebb9@byu.net>
68542
68543         * lib/arcfour.c: Assume config.h.
68544         * lib/arctwo.c: Likewise.
68545         * lib/base64.c: Likewise.
68546         * lib/check-version.c: Likewise.
68547         * lib/crc.c: Likewise.
68548         * lib/des.c: Likewise.
68549         * lib/gc-gnulib.c: Likewise.
68550         * lib/gc-libgcrypt.c: Likewise.
68551         * lib/gc-pbkdf2-sha1.c: Likewise.
68552         * lib/getaddrinfo.c: Likewise.
68553         * lib/getdelim.c: Likewise.
68554         * lib/getline.c: Likewise.
68555         * lib/hmac-md5.c: Likewise.
68556         * lib/hmac-sha1.c: Likewise.
68557         * lib/iconvme.c: Likewise.
68558         * lib/md2.c: Likewise.
68559         * lib/md4.c: Likewise.
68560         * lib/memxor.c: Likewise.
68561         * lib/read-file.c: Likewise.
68562         * lib/readline.c: Likewise.
68563         * lib/rijndael-alg-fst.c: Likewise.
68564         * lib/rijndael-api-fst.c: Likewise.
68565         * lib/xgetdomainname.c: Likewise.
68566
68567 2006-10-28  Eric Blake  <ebb9@byu.net>
68568
68569         * lib/xstrndup.c: Assume config.h.
68570
68571 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68572
68573         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68574         stat-macros.h is now for our own macros, whereas stat_h is for
68575         macros in the <sys/stat.h> name space.
68576         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68577         (STAT_MACROS_H): Remove.
68578         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68579         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68580         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68581         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68582         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68583         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68584         Move these macros to ...
68585         * lib/stat_.h: here.  Don't include stat-macros.h.
68586         * lib/canonicalize.c: Don't include stat-macros.h.
68587         * lib/chown.c: Likewise.
68588         * lib/euidaccess.c: Likewise.
68589         * lib/file-type.c: Likewise.
68590         * lib/filemode.c: Likewise.
68591         * lib/glob.c: Likewise.
68592         * lib/isapipe.c: Likewise.
68593         * lib/lchown.c: Likewise.
68594         * lib/lstat.c: Likewise.
68595         * lib/mkdir-p.c: Likewise.
68596         * lib/rmdir.c: Likewise.
68597         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68599         unless mkdir isn't declared, to speed up 'configure'.
68600         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68601         would define all the S_* symbols.
68602         * modules/canonicalize (Depends-on):
68603         Depend on sys_stat, not stat-macros.
68604         * modules/chown: Likewise.
68605         * modules/euidaccess: Likewise.
68606         * modules/filemode: Likewise.
68607         * modules/file-type: Likewise.
68608         * modules/glob: Likewise.
68609         * modules/isapipe: Likewise.
68610         * modules/lchown: Likewise.
68611         * modules/lstat: Likewise.
68612         * modules/mkancesdirs: Likewise.
68613         * modules/rmdir: Likewise.
68614         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68615         * modules/modechange: Likewise.
68616         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68617         (configure.ac): Remove gl_STAT_MACROS.
68618         * modules/sys_stat (Depends-on): Remove stat-macros.
68619
68620 2006-10-27  Bruno Haible  <bruno@clisp.org>
68621
68622         * m4/signed.m4: Remove file.
68623         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68624         invocation.
68625         * modules/vasnprintf (Files): Remove m4/signed.m4.
68626
68627 2006-10-27  Bruno Haible  <bruno@clisp.org>
68628
68629         Update to GNU gettext 0.16.
68630         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68631         m4/inttypes-h.m4, m4/signed.m4.
68632         * m4/gettext.m4: Update to GNU gettext 0.16.
68633         * m4/intl.m4: New file, from GNU gettext.
68634         * m4/intldir.m4: New file, from GNU gettext.
68635         * config/srclist.txt: Update
68636
68637 2006-10-27  Eric Blake  <ebb9@byu.net>
68638
68639         * MODULES.html.sh: Document tempname.
68640         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68641         dependencies.
68642         (Files): Move lib/tempname.c...
68643         * modules/tempname: ...to this new module.
68644         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68645         (gl_PREREQ_TEMPNAME): Move...
68646         * m4/tempname.m4: ...to this new file.
68647         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68648         * modules/sys_stat (Depends-on): Add stat-macros.
68649         * lib/stat_.h (includes): Pick up stat macros.
68650         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68651         if stat macros are broken.
68652         * lib/tempname.c (includes): No need to include "stat-macros.h".
68653         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68654         (direxists, __path_search) [!_LIBC]: Don't compile these in
68655         gnulib; the tmpdir module covers that.
68656         * lib/tempname.h: New file.
68657
68658 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68659
68660         * COPYING: Explain how gnulib-tool converts licence headers.
68661         Almost all wording by Eric Blake.
68662
68663 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68664
68665         * lib/mbchar.h (is_basic_table): Make read-only.
68666         * lib/mbchar.c (is_basic_table): Likewise.
68667         Reported by John Darrington.
68668
68669 2006-10-25  Bruno Haible  <bruno@clisp.org>
68670
68671         * lib/progname.h (set_program_name): Undefine before defining.
68672
68673 2006-10-25  Bruno Haible  <bruno@clisp.org>
68674
68675         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68676         false for non-gcc C++ compilers.
68677         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68678
68679 2006-10-24  Bruno Haible  <bruno@clisp.org>
68680
68681         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68682         iconv implementations like Irix iconv.
68683
68684 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68685
68686         * modules/vararrays: New file.
68687         * m4/vararrays.m4: New file, taken from diffutils.
68688         * MODULES.html.sh: New module vararrays.
68689
68690 2006-10-24  Karl Berry  <karl@gnu.org>
68691
68692         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68693         Don't call GNU Unix.
68694
68695 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68696
68697         * users.txt: Add Libtool.
68698
68699         Sync from Libtool:
68700
68701         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68704         to gnulib's policy of including config.h unconditionally.
68705
68706 2006-10-24  Bruno Haible  <bruno@clisp.org>
68707
68708         * modules/wcwidth (Files): Add m4/wint_t.m4.
68709         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68710         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68711
68712 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68715         to pacify GCC with some -W flags enabled.  Problem reported by
68716         Bruno Haible.
68717
68718 2006-10-24  Jim Meyering  <jim@meyering.net>
68719
68720         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68721         Reported by Karl Berry.
68722
68723 2006-10-23  Bruno Haible  <bruno@clisp.org>
68724
68725         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68726
68727 2006-10-24  Bruno Haible  <bruno@clisp.org>
68728
68729         * lib/gl_list.h: Use C comment style, not C++ comment style.
68730
68731 2006-10-23  Eric Blake  <ebb9@byu.net>
68732
68733         * lib/getaddrinfo.c (includes): Add missing include.
68734
68735 2006-10-23  Bruno Haible  <bruno@clisp.org>
68736             Paul Eggert  <eggert@cs.ucla.edu>
68737
68738         Ability to rename obstack_free.
68739         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68740         obstack_free.
68741         (obstack_free): Invoke the __obstack_free macro.
68742         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68743
68744 2006-10-23  Bruno Haible  <bruno@clisp.org>
68745             Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68748         __argc, __argv from the declaration. (They are defined as macros on
68749         mingw.)
68750
68751 2006-10-22  Bruno Haible  <bruno@clisp.org>
68752
68753         * doc/gnulib-intro.texi: New file.
68754         * doc/gnulib.texi: Include it.
68755
68756 2006-10-21  Bruno Haible  <bruno@clisp.org>
68757
68758         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68759         "Introduction", "Miscellanous Notes", "Particular Modules".
68760
68761 2006-10-21  Bruno Haible  <bruno@clisp.org>
68762
68763         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68764         Change mostlyclean-local rule to avoid sh syntax error from bash
68765         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68766
68767 2006-10-23  Jim Meyering  <jim@meyering.net>
68768
68769         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68770         in place of snprintf.
68771
68772         * modules/inttostr (Files): Add lib/uinttostr.c.
68773         * lib/uinttostr.c (inttostr): New file/function.
68774         * lib/inttostr.h (uinttostr): Declare.
68775         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68776         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68777         Add uinttostr.
68778         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68779
68780 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68781
68782         * lib/canonicalize.c (ELOOP): Define if not already defined.
68783         Problem reported by Bruno Haible in
68784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68785
68786 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68789         Problem reported by Perry Smith and Ville Laurikari.
68790
68791         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68792         uses.
68793
68794 2006-10-19  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68797         for mingw.
68798
68799 2006-10-19  Bruno Haible  <bruno@clisp.org>
68800
68801         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68802         Needed for mingw.
68803
68804 2006-10-19  Bruno Haible  <bruno@clisp.org>
68805
68806         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68807
68808 2006-10-19  Bruno Haible  <bruno@clisp.org>
68809
68810         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68811         it.
68812
68813 2006-10-19  Bruno Haible  <bruno@clisp.org>
68814
68815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68816         invocation.
68817
68818 2006-10-19  Bruno Haible  <bruno@clisp.org>
68819
68820         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68821         mountlist by default.
68822
68823 2006-10-16  Bruno Haible  <bruno@clisp.org>
68824
68825         * lib/c-strstr.c: Include c-strstr.h.
68826
68827 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68828
68829         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68830         in a slash.
68831
68832 2006-10-18  Bruno Haible  <bruno@clisp.org>
68833
68834         * lib/lock.h [C++]: Wrap definitions in extern "C".
68835
68836 2006-10-18  Bruno Haible  <bruno@clisp.org>
68837
68838         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68839         gl_LIBOBJS list.
68840
68841 2006-10-18  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68844
68845 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68846
68847         * lib/xstrtol.h: Include gettext.h.
68848         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68849         Problem reported by Eric Blake.
68850         * modules/xstrtol (Depends-on): Add gettext-h.
68851
68852 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68853
68854         * lib/strftime.c (advance): New macro.
68855         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68856         incomplete type, so you can't add 0 to it.  Problem and patch
68857         reported by Eelco Dolstra for dietlibc.
68858
68859 2006-10-18  Jim Meyering  <jim@meyering.net>
68860
68861         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68862         type for a local, and rename it: s/up/user_proc/.
68863
68864 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68865
68866         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68867         READ_UTMP_USER_PROCESS.
68868         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68869
68870 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68873         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68874
68875 2006-10-17  Eric Blake  <ebb9@byu.net>
68876
68877         * lib/sigprocmask.c (sigprocmask): Fix typo.
68878
68879         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68880
68881         * modules/clean-temp (Makefile.am): Don't add to make output...
68882         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68883         config.h.
68884
68885 2006-10-17  Bruno Haible  <bruno@clisp.org>
68886
68887         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68888         differently if DEFAULT_TEXT_DOMAIN is set.
68889
68890 2006-10-16  Bruno Haible  <bruno@clisp.org>
68891
68892         * lib/clean-temp.c: Include fwriteerror.h.
68893
68894 2006-10-16  Bruno Haible  <bruno@clisp.org>
68895
68896         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68897
68898 2006-10-16  Bruno Haible  <bruno@clisp.org>
68899
68900         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68901         * lib/sigprocmask.h: Include <sys/types.h>.
68902         (sigset_t): Use the system's definition if present.
68903
68904 2006-10-17  Eric Blake  <ebb9@byu.net>
68905
68906         * lib/xvasprintf.c (includes): Assume config.h.
68907         * lib/xasprintf.c (includes): Likewise.
68908
68909 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68912         at least as wide as intmax_t.
68913
68914 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68915
68916         (Imported from Automake.)
68917         * build-aux/gnupload: Update to version 1.1 of directive file.
68918
68919 2006-10-16  Eric Blake  <ebb9@byu.net>
68920
68921         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68922         match Automake 1.10a.
68923
68924 2006-10-14  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/sigprocmask: New file.
68927         * lib/sigprocmask.h: New file.
68928         * lib/sigprocmask.c: New file.
68929         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68930         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68931         request sigprocmask.o.
68932         (gl_PREREQ_SIGPROCMASK): New macro.
68933         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68934         (Depends-on): Add sigprocmask.
68935         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68936         gt_SIGNALBLOCKING. Test for 'raise' only once.
68937         * lib/fatal-signal.c: Include sigprocmask.h.
68938         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68939         unblock_fatal_signals): Define always.
68940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68941         sigprocmask.
68942
68943 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         Sync from Automake.
68946         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68947         which incorrectly sets the mode of an existing destination
68948         directory.  In some cases the unpatched install-sh could do the
68949         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68950         system.  We hope this is rare in practice, but it's clearly worth
68951         fixing.  Problem reported by Alex Unleashed in
68952         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68953         Also, don't bother to check for -m bugs unless we're using -m;
68954         suggested by Stepan Kasal.
68955
68956 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68957
68958         Sync from Automake.
68959         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68960         `-c' flag, so they appear at the same position as in %FASTDEP%
68961         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68962         which ignores unknown options only after the first non-option.
68963         Bug report against M4 by Nelson H. F. Beebe.
68964
68965 2006-10-13  Jim Meyering  <jim@meyering.net>
68966
68967         Fix a bug in yesterday's change.
68968         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68969         p->fts_statp->st_dev would be used uninitialized.
68970         Ensures that we always call fts_stat on the very first entry.
68971         Miklos Szeredi reported that find -xdev stopped working.
68972
68973 2006-10-12  Bruno Haible  <bruno@clisp.org>
68974
68975         * gnulib-tool (func_get_automake_snippet): Append an automatically
68976         computed EXTRA_DIST augmentation.
68977         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68978         * modules/alloca-opt (Makefile.am): Likewise.
68979         * modules/allocsa (Makefile.am): Likewise.
68980         * modules/arcfour (Makefile.am): Likewise.
68981         * modules/arctwo (Makefile.am): Likewise.
68982         * modules/argmatch (Makefile.am): Likewise.
68983         * modules/argz (Makefile.am): Likewise.
68984         * modules/atexit (Makefile.am): Likewise.
68985         * modules/backupfile (Makefile.am): Likewise.
68986         * modules/byteswap (Makefile.am): Likewise.
68987         * modules/c-strtod (Makefile.am): Likewise.
68988         * modules/c-strtold (Makefile.am): Likewise.
68989         * modules/calloc (Makefile.am): Likewise.
68990         * modules/canon-host (Makefile.am): Likewise.
68991         * modules/canonicalize (Makefile.am): Likewise.
68992         * modules/chdir-long (Makefile.am): Likewise.
68993         * modules/chdir-safer (Makefile.am): Likewise.
68994         * modules/check-version (Makefile.am): Likewise.
68995         * modules/chown (Makefile.am): Likewise.
68996         * modules/cloexec (Makefile.am): Likewise.
68997         * modules/close-stream (Makefile.am): Likewise.
68998         * modules/closeout (Makefile.am): Likewise.
68999         * modules/crc (Makefile.am): Likewise.
69000         * modules/csharpexec (Makefile.am): Likewise.
69001         * modules/cycle-check (Makefile.am): Likewise.
69002         * modules/des (Makefile.am): Likewise.
69003         * modules/dev-ino (Makefile.am): Likewise.
69004         * modules/dirfd (Makefile.am): Likewise.
69005         * modules/dirname (Makefile.am): Likewise.
69006         * modules/dup2 (Makefile.am): Likewise.
69007         * modules/eealloc (Makefile.am): Likewise.
69008         * modules/error (Makefile.am): Likewise.
69009         * modules/euidaccess (Makefile.am): Likewise.
69010         * modules/exclude (Makefile.am): Likewise.
69011         * modules/exitfail (Makefile.am): Likewise.
69012         * modules/fcntl-safer (Makefile.am): Likewise.
69013         * modules/fcntl (Makefile.am): Likewise.
69014         * modules/file-type (Makefile.am): Likewise.
69015         * modules/fileblocks (Makefile.am): Likewise.
69016         * modules/filemode (Makefile.am): Likewise.
69017         * modules/filenamecat (Makefile.am): Likewise.
69018         * modules/fnmatch (Makefile.am): Likewise.
69019         * modules/fopen-safer (Makefile.am): Likewise.
69020         * modules/fpending (Makefile.am): Likewise.
69021         * modules/fprintftime (Makefile.am): Likewise.
69022         * modules/free (Makefile.am): Likewise.
69023         * modules/fsusage (Makefile.am): Likewise.
69024         * modules/ftruncate (Makefile.am): Likewise.
69025         * modules/fts (Makefile.am): Likewise.
69026         * modules/gc-arcfour (Makefile.am): Likewise.
69027         * modules/gc-des (Makefile.am): Likewise.
69028         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69029         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69030         * modules/gc-md4 (Makefile.am): Likewise.
69031         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69032         * modules/gc-sha1 (Makefile.am): Likewise.
69033         * modules/gc (Makefile.am): Likewise.
69034         * modules/getaddrinfo (Makefile.am): Likewise.
69035         * modules/getcwd (Makefile.am): Likewise.
69036         * modules/getdelim (Makefile.am): Likewise.
69037         * modules/getdomainname (Makefile.am): Likewise.
69038         * modules/getgroups (Makefile.am): Likewise.
69039         * modules/gethostname (Makefile.am): Likewise.
69040         * modules/gethrxtime (Makefile.am): Likewise.
69041         * modules/getline (Makefile.am): Likewise.
69042         * modules/getloadavg (Makefile.am): Likewise.
69043         * modules/getlogin_r (Makefile.am): Likewise.
69044         * modules/getndelim2 (Makefile.am): Likewise.
69045         * modules/getopt (Makefile.am): Likewise.
69046         * modules/getpagesize (Makefile.am): Likewise.
69047         * modules/getpass-gnu (Makefile.am): Likewise.
69048         * modules/getpass (Makefile.am): Likewise.
69049         * modules/getsubopt (Makefile.am): Likewise.
69050         * modules/gettime (Makefile.am): Likewise.
69051         * modules/gettimeofday (Makefile.am): Likewise.
69052         * modules/getugroups (Makefile.am): Likewise.
69053         * modules/getusershell (Makefile.am): Likewise.
69054         * modules/glob (Makefile.am): Likewise.
69055         * modules/group-member (Makefile.am): Likewise.
69056         * modules/hard-locale (Makefile.am): Likewise.
69057         * modules/hash (Makefile.am): Likewise.
69058         * modules/hmac-md5 (Makefile.am): Likewise.
69059         * modules/hmac-sha1 (Makefile.am): Likewise.
69060         * modules/human (Makefile.am): Likewise.
69061         * modules/idcache (Makefile.am): Likewise.
69062         * modules/imaxabs (Makefile.am): Likewise.
69063         * modules/imaxdiv (Makefile.am): Likewise.
69064         * modules/inet_ntop (Makefile.am): Likewise.
69065         * modules/inet_pton (Makefile.am): Likewise.
69066         * modules/intprops (Makefile.am): Likewise.
69067         * modules/inttostr (Makefile.am): Likewise.
69068         * modules/inttypes (Makefile.am): Likewise.
69069         * modules/isapipe (Makefile.am): Likewise.
69070         * modules/javaversion (Makefile.am): Likewise.
69071         * modules/lchmod (Makefile.am): Likewise.
69072         * modules/lchown (Makefile.am): Likewise.
69073         * modules/localcharset (Makefile.am): Likewise.
69074         * modules/long-options (Makefile.am): Likewise.
69075         * modules/lstat (Makefile.am): Likewise.
69076         * modules/malloc (Makefile.am): Likewise.
69077         * modules/mathl (Makefile.am): Likewise.
69078         * modules/mbchar (Makefile.am): Likewise.
69079         * modules/md2 (Makefile.am): Likewise.
69080         * modules/md4 (Makefile.am): Likewise.
69081         * modules/md5 (Makefile.am): Likewise.
69082         * modules/memcasecmp (Makefile.am): Likewise.
69083         * modules/memchr (Makefile.am): Likewise.
69084         * modules/memcmp (Makefile.am): Likewise.
69085         * modules/memcoll (Makefile.am): Likewise.
69086         * modules/memcpy (Makefile.am): Likewise.
69087         * modules/memmem (Makefile.am): Likewise.
69088         * modules/memmove (Makefile.am): Likewise.
69089         * modules/mempcpy (Makefile.am): Likewise.
69090         * modules/memrchr (Makefile.am): Likewise.
69091         * modules/memset (Makefile.am): Likewise.
69092         * modules/memxor (Makefile.am): Likewise.
69093         * modules/mkancesdirs (Makefile.am): Likewise.
69094         * modules/mkdir-p (Makefile.am): Likewise.
69095         * modules/mkdir (Makefile.am): Likewise.
69096         * modules/mkdtemp (Makefile.am): Likewise.
69097         * modules/mkstemp (Makefile.am): Likewise.
69098         * modules/mktime (Makefile.am): Likewise.
69099         * modules/modechange (Makefile.am): Likewise.
69100         * modules/mountlist (Makefile.am): Likewise.
69101         * modules/nanosleep (Makefile.am): Likewise.
69102         * modules/obstack (Makefile.am): Likewise.
69103         * modules/openat (Makefile.am): Likewise.
69104         * modules/pagealign_alloc (Makefile.am): Likewise.
69105         * modules/pathmax (Makefile.am): Likewise.
69106         * modules/physmem (Makefile.am): Likewise.
69107         * modules/poll (Makefile.am): Likewise.
69108         * modules/posixtm (Makefile.am): Likewise.
69109         * modules/posixver (Makefile.am): Likewise.
69110         * modules/putenv (Makefile.am): Likewise.
69111         * modules/quote (Makefile.am): Likewise.
69112         * modules/quotearg (Makefile.am): Likewise.
69113         * modules/raise (Makefile.am): Likewise.
69114         * modules/read-file (Makefile.am): Likewise.
69115         * modules/readline (Makefile.am): Likewise.
69116         * modules/readlink (Makefile.am): Likewise.
69117         * modules/readtokens (Makefile.am): Likewise.
69118         * modules/readutmp (Makefile.am): Likewise.
69119         * modules/realloc (Makefile.am): Likewise.
69120         * modules/regex (Makefile.am): Likewise.
69121         * modules/rename-dest-slash (Makefile.am): Likewise.
69122         * modules/rename (Makefile.am): Likewise.
69123         * modules/rijndael (Makefile.am): Likewise.
69124         * modules/rmdir (Makefile.am): Likewise.
69125         * modules/rpmatch (Makefile.am): Likewise.
69126         * modules/safe-read (Makefile.am): Likewise.
69127         * modules/safe-write (Makefile.am): Likewise.
69128         * modules/same-inode (Makefile.am): Likewise.
69129         * modules/same (Makefile.am): Likewise.
69130         * modules/save-cwd (Makefile.am): Likewise.
69131         * modules/savedir (Makefile.am): Likewise.
69132         * modules/setenv (Makefile.am): Likewise.
69133         * modules/settime (Makefile.am): Likewise.
69134         * modules/sha1 (Makefile.am): Likewise.
69135         * modules/sig2str (Makefile.am): Likewise.
69136         * modules/snprintf (Makefile.am): Likewise.
69137         * modules/stat-macros (Makefile.am): Likewise.
69138         * modules/stat-time (Makefile.am): Likewise.
69139         * modules/stdbool (Makefile.am): Likewise.
69140         * modules/stdint (Makefile.am): Likewise.
69141         * modules/stdlib-safer (Makefile.am): Likewise.
69142         * modules/stpcpy (Makefile.am): Likewise.
69143         * modules/stpncpy (Makefile.am): Likewise.
69144         * modules/strcase (Makefile.am): Likewise.
69145         * modules/strcasestr (Makefile.am): Likewise.
69146         * modules/strchrnul (Makefile.am): Likewise.
69147         * modules/strcspn (Makefile.am): Likewise.
69148         * modules/strdup (Makefile.am): Likewise.
69149         * modules/strerror (Makefile.am): Likewise.
69150         * modules/strftime (Makefile.am): Likewise.
69151         * modules/strndup (Makefile.am): Likewise.
69152         * modules/strnlen (Makefile.am): Likewise.
69153         * modules/strpbrk (Makefile.am): Likewise.
69154         * modules/strsep (Makefile.am): Likewise.
69155         * modules/strstr (Makefile.am): Likewise.
69156         * modules/strtod (Makefile.am): Likewise.
69157         * modules/strtoimax (Makefile.am): Likewise.
69158         * modules/strtok_r (Makefile.am): Likewise.
69159         * modules/strtol (Makefile.am): Likewise.
69160         * modules/strtoll (Makefile.am): Likewise.
69161         * modules/strtoul (Makefile.am): Likewise.
69162         * modules/strtoull (Makefile.am): Likewise.
69163         * modules/strtoumax (Makefile.am): Likewise.
69164         * modules/strverscmp (Makefile.am): Likewise.
69165         * modules/sys_socket (Makefile.am): Likewise.
69166         * modules/sys_stat (Makefile.am): Likewise.
69167         * modules/sysexits (Makefile.am): Likewise.
69168         * modules/time_r (Makefile.am): Likewise.
69169         * modules/timegm (Makefile.am): Likewise.
69170         * modules/timespec (Makefile.am): Likewise.
69171         * modules/tmpfile-safer (Makefile.am): Likewise.
69172         * modules/trim (Makefile.am): Likewise.
69173         * modules/unistd-safer (Makefile.am): Likewise.
69174         * modules/unlinkdir (Makefile.am): Likewise.
69175         * modules/unlocked-io (Makefile.am): Likewise.
69176         * modules/userspec (Makefile.am): Likewise.
69177         * modules/utime (Makefile.am): Likewise.
69178         * modules/utimecmp (Makefile.am): Likewise.
69179         * modules/utimens (Makefile.am): Likewise.
69180         * modules/vasnprintf (Makefile.am): Likewise.
69181         * modules/vasprintf (Makefile.am): Likewise.
69182         * modules/vsnprintf (Makefile.am): Likewise.
69183         * modules/xalloc (Makefile.am): Likewise.
69184         * modules/xgetcwd (Makefile.am): Likewise.
69185         * modules/xnanosleep (Makefile.am): Likewise.
69186         * modules/xreadlink (Makefile.am): Likewise.
69187         * modules/xstrtod (Makefile.am): Likewise.
69188         * modules/xstrtol (Makefile.am): Likewise.
69189         * modules/xstrtold (Makefile.am): Likewise.
69190         * modules/yesno (Makefile.am): Likewise.
69191         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69192
69193 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69194
69195         * modules/error (Makefile.am): Distribute files through
69196         EXTRA_DIST, not lib_SOURCES.
69197
69198 2006-10-12  Eric Blake  <ebb9@byu.net>
69199
69200         * modules/error (Makefile.am): Distribute files in /lib.
69201         * modules/obstack (Makefile.am): Likewise.
69202
69203 2006-10-12  Bruno Haible  <bruno@clisp.org>
69204
69205         * modules/acl (Makefile.am): Distribute all files in lib/ through
69206         EXTRA_DIST.
69207         * modules/arcfour (Makefile.am): Likewise.
69208         * modules/arctwo (Makefile.am): Likewise.
69209         * modules/argmatch (Makefile.am): Likewise.
69210         * modules/argz (Makefile.am): Likewise.
69211         * modules/atexit (Makefile.am): Likewise.
69212         * modules/backupfile (Makefile.am): Likewise.
69213         * modules/c-strtod (Makefile.am): Likewise.
69214         * modules/c-strtold (Makefile.am): Likewise.
69215         * modules/calloc (Makefile.am): Likewise.
69216         * modules/canon-host (Makefile.am): Likewise.
69217         * modules/canonicalize (Makefile.am): Likewise.
69218         * modules/chdir-long (Makefile.am): Likewise.
69219         * modules/chdir-safer (Makefile.am): Likewise.
69220         * modules/check-version (Makefile.am): Likewise.
69221         * modules/chown (Makefile.am): Likewise.
69222         * modules/cloexec (Makefile.am): Likewise.
69223         * modules/close-stream (Makefile.am): Likewise.
69224         * modules/closeout (Makefile.am): Likewise.
69225         * modules/crc (Makefile.am): Likewise.
69226         * modules/cycle-check (Makefile.am): Likewise.
69227         * modules/des (Makefile.am): Likewise.
69228         * modules/dirfd (Makefile.am): Likewise.
69229         * modules/dirname (Makefile.am): Likewise.
69230         * modules/dup2 (Makefile.am): Likewise.
69231         * modules/euidaccess (Makefile.am): Likewise.
69232         * modules/exclude (Makefile.am): Likewise.
69233         * modules/exitfail (Makefile.am): Likewise.
69234         * modules/fcntl-safer (Makefile.am): Likewise.
69235         * modules/file-type (Makefile.am): Likewise.
69236         * modules/fileblocks (Makefile.am): Likewise.
69237         * modules/filemode (Makefile.am): Likewise.
69238         * modules/filenamecat (Makefile.am): Likewise.
69239         * modules/fnmatch (Makefile.am): Likewise.
69240         * modules/fopen-safer (Makefile.am): Likewise.
69241         * modules/fpending (Makefile.am): Likewise.
69242         * modules/fprintftime (Makefile.am): Likewise.
69243         * modules/free (Makefile.am): Likewise.
69244         * modules/fsusage (Makefile.am): Likewise.
69245         * modules/ftruncate (Makefile.am): Likewise.
69246         * modules/fts (Makefile.am): Likewise.
69247         * modules/gc (Makefile.am): Likewise.
69248         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69249         * modules/getaddrinfo (Makefile.am): Likewise.
69250         * modules/getcwd (Makefile.am): Likewise.
69251         * modules/getdelim (Makefile.am): Likewise.
69252         * modules/getdomainname (Makefile.am): Likewise.
69253         * modules/getgroups (Makefile.am): Likewise.
69254         * modules/gethostname (Makefile.am): Likewise.
69255         * modules/gethrxtime (Makefile.am): Likewise.
69256         * modules/getline (Makefile.am): Likewise.
69257         * modules/getloadavg (Makefile.am): Likewise.
69258         * modules/getlogin_r (Makefile.am): Likewise.
69259         * modules/getopt (Makefile.am): Likewise.
69260         * modules/getpass (Makefile.am): Likewise.
69261         * modules/getpass-gnu (Makefile.am): Likewise.
69262         * modules/getsubopt (Makefile.am): Likewise.
69263         * modules/gettime (Makefile.am): Likewise.
69264         * modules/gettimeofday (Makefile.am): Likewise.
69265         * modules/getugroups (Makefile.am): Likewise.
69266         * modules/getusershell (Makefile.am): Likewise.
69267         * modules/glob (Makefile.am): Likewise.
69268         * modules/group-member (Makefile.am): Likewise.
69269         * modules/hard-locale (Makefile.am): Likewise.
69270         * modules/hash (Makefile.am): Likewise.
69271         * modules/hmac-md5 (Makefile.am): Likewise.
69272         * modules/hmac-sha1 (Makefile.am): Likewise.
69273         * modules/human (Makefile.am): Likewise.
69274         * modules/idcache (Makefile.am): Likewise.
69275         * modules/imaxabs (Makefile.am): Likewise.
69276         * modules/imaxdiv (Makefile.am): Likewise.
69277         * modules/inet_ntop (Makefile.am): Likewise.
69278         * modules/inet_pton (Makefile.am): Likewise.
69279         * modules/inttostr (Makefile.am): Likewise.
69280         * modules/isapipe (Makefile.am): Likewise.
69281         * modules/lchown (Makefile.am): Likewise.
69282         * modules/long-options (Makefile.am): Likewise.
69283         * modules/lstat (Makefile.am): Likewise.
69284         * modules/malloc (Makefile.am): Likewise.
69285         * modules/mathl (Makefile.am): Likewise.
69286         * modules/mbchar (Makefile.am): Likewise.
69287         * modules/md2 (Makefile.am): Likewise.
69288         * modules/md4 (Makefile.am): Likewise.
69289         * modules/md5 (Makefile.am): Likewise.
69290         * modules/memcasecmp (Makefile.am): Likewise.
69291         * modules/memchr (Makefile.am): Likewise.
69292         * modules/memcmp (Makefile.am): Likewise.
69293         * modules/memcoll (Makefile.am): Likewise.
69294         * modules/memcpy (Makefile.am): Likewise.
69295         * modules/memmem (Makefile.am): Likewise.
69296         * modules/memmove (Makefile.am): Likewise.
69297         * modules/mempcpy (Makefile.am): Likewise.
69298         * modules/memrchr (Makefile.am): Likewise.
69299         * modules/memset (Makefile.am): Likewise.
69300         * modules/memxor (Makefile.am): Likewise.
69301         * modules/mkancesdirs (Makefile.am): Likewise.
69302         * modules/mkdir (Makefile.am): Likewise.
69303         * modules/mkdir-p (Makefile.am): Likewise.
69304         * modules/mkdtemp (Makefile.am): Likewise.
69305         * modules/mkstemp (Makefile.am): Likewise.
69306         * modules/mktime (Makefile.am): Likewise.
69307         * modules/modechange (Makefile.am): Likewise.
69308         * modules/mountlist (Makefile.am): Likewise.
69309         * modules/nanosleep (Makefile.am): Likewise.
69310         * modules/openat (Makefile.am): Likewise.
69311         * modules/pagealign_alloc (Makefile.am): Likewise.
69312         * modules/physmem (Makefile.am): Likewise.
69313         * modules/poll (Makefile.am): Likewise.
69314         * modules/posixtm (Makefile.am): Likewise.
69315         * modules/posixver (Makefile.am): Likewise.
69316         * modules/putenv (Makefile.am): Likewise.
69317         * modules/quote (Makefile.am): Likewise.
69318         * modules/quotearg (Makefile.am): Likewise.
69319         * modules/raise (Makefile.am): Likewise.
69320         * modules/read-file (Makefile.am): Likewise.
69321         * modules/readline (Makefile.am): Likewise.
69322         * modules/readlink (Makefile.am): Likewise.
69323         * modules/readtokens (Makefile.am): Likewise.
69324         * modules/readutmp (Makefile.am): Likewise.
69325         * modules/realloc (Makefile.am): Likewise.
69326         * modules/regex (Makefile.am): Likewise.
69327         * modules/rename (Makefile.am): Likewise.
69328         * modules/rename-dest-slash (Makefile.am): Likewise.
69329         * modules/rijndael (Makefile.am): Likewise.
69330         * modules/rmdir (Makefile.am): Likewise.
69331         * modules/rpmatch (Makefile.am): Likewise.
69332         * modules/safe-read (Makefile.am): Likewise.
69333         * modules/safe-write (Makefile.am): Likewise.
69334         * modules/same (Makefile.am): Likewise.
69335         * modules/save-cwd (Makefile.am): Likewise.
69336         * modules/savedir (Makefile.am): Likewise.
69337         * modules/setenv (Makefile.am): Likewise.
69338         * modules/settime (Makefile.am): Likewise.
69339         * modules/sha1 (Makefile.am): Likewise.
69340         * modules/sig2str (Makefile.am): Likewise.
69341         * modules/snprintf (Makefile.am): Likewise.
69342         * modules/stdlib-safer (Makefile.am): Likewise.
69343         * modules/stpcpy (Makefile.am): Likewise.
69344         * modules/stpncpy (Makefile.am): Likewise.
69345         * modules/strcase (Makefile.am): Likewise.
69346         * modules/strcasestr (Makefile.am): Likewise.
69347         * modules/strchrnul (Makefile.am): Likewise.
69348         * modules/strcspn (Makefile.am): Likewise.
69349         * modules/strdup (Makefile.am): Likewise.
69350         * modules/strerror (Makefile.am): Likewise.
69351         * modules/strftime (Makefile.am): Likewise.
69352         * modules/strndup (Makefile.am): Likewise.
69353         * modules/strnlen (Makefile.am): Likewise.
69354         * modules/strpbrk (Makefile.am): Likewise.
69355         * modules/strsep (Makefile.am): Likewise.
69356         * modules/strstr (Makefile.am): Likewise.
69357         * modules/strtod (Makefile.am): Likewise.
69358         * modules/strtoimax (Makefile.am): Likewise.
69359         * modules/strtok_r (Makefile.am): Likewise.
69360         * modules/strtol (Makefile.am): Likewise.
69361         * modules/strtoll (Makefile.am): Likewise.
69362         * modules/strtoul (Makefile.am): Likewise.
69363         * modules/strtoull (Makefile.am): Likewise.
69364         * modules/strtoumax (Makefile.am): Likewise.
69365         * modules/strverscmp (Makefile.am): Likewise.
69366         * modules/time_r (Makefile.am): Likewise.
69367         * modules/timegm (Makefile.am): Likewise.
69368         * modules/tmpfile-safer (Makefile.am): Likewise.
69369         * modules/unistd-safer (Makefile.am): Likewise.
69370         * modules/unlinkdir (Makefile.am): Likewise.
69371         * modules/userspec (Makefile.am): Likewise.
69372         * modules/utime (Makefile.am): Likewise.
69373         * modules/utimecmp (Makefile.am): Likewise.
69374         * modules/utimens (Makefile.am): Likewise.
69375         * modules/vasnprintf (Makefile.am): Likewise.
69376         * modules/vasprintf (Makefile.am): Likewise.
69377         * modules/vsnprintf (Makefile.am): Likewise.
69378         * modules/xalloc (Makefile.am): Likewise.
69379         * modules/xgetcwd (Makefile.am): Likewise.
69380         * modules/xnanosleep (Makefile.am): Likewise.
69381         * modules/xreadlink (Makefile.am): Likewise.
69382         * modules/xstrtod (Makefile.am): Likewise.
69383         * modules/xstrtol (Makefile.am): Likewise.
69384         * modules/xstrtold (Makefile.am): Likewise.
69385         * modules/yesno (Makefile.am): Likewise.
69386
69387 2006-10-12  Jim Meyering  <jim@meyering.net>
69388
69389         * m4/getloadavg.m4: Revert the change below.
69390
69391         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69392         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69393         fail with a symlink, which is what coreutils' ./bootstrap now
69394         creates by default.
69395
69396 2006-10-12  Bruno Haible  <bruno@clisp.org>
69397
69398         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69399         mingw.
69400         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69401         MSVC and mingw explicitly.
69402
69403 2006-10-11  Simon Josefsson  <jas@extundo.com>
69404             Bruno Haible  <bruno@clisp.org>
69405
69406         Add support for multiple gnulib-tool invocations in the scope of a
69407         single configure.ac file.
69408         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69409         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69410         with the same contents as the _LIBADD variable.
69411         (func_emit_initmacro_start, func_emit_initmacro_end,
69412         func_emit_initmacro_done): New functions.
69413         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69414         gl_LIBOBJS and gl_LTLIBOBJS.
69415
69416 2006-10-11  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69419         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69420         autoreconf. Instead, invoke autopoint explicitly but move back the
69421         *.m4 files from gnulib.
69422
69423 2006-10-11  Bruno Haible  <bruno@clisp.org>
69424
69425         * gnulib-tool (func_usage): Make module names after --create-testdir
69426         optional.
69427         (func_create_testdir): If no module was specified, use nearly all
69428         modules.
69429
69430 2006-10-12  Jim Meyering  <jim@meyering.net>
69431
69432         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69433         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69434         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69435         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69436         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69437         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69438         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69439         (fts_set_stat_required): New function.
69440         (fts_open): Defer the calls to fts_stat, if possible or requested.
69441         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69442         into fts_stat itself.
69443         (fts_read): Perform any required (deferred) fts_stat call.
69444         (fts_build): Likewise, for the directory we're about to open and read.
69445         In the readdir loop, carefully decide whether each entry will require
69446         an eventual call to fts_stat, using dirent.d_type info if available.
69447         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69448         a command line argument into this function.  Update all callers.
69449         Map a return value of FTS_DOT to FTS_D for a command line argument.
69450         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69451         Thanks to Miklos Szeredi for his tenacity and for the initial
69452         bug report about "find" failing on a FUSE-based file system.
69453
69454         * lib/fts.c (fts_open): Use consistent indentation.
69455
69456 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69457
69458         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69459         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69460         reported by Jim Meyering.  All uses of cache variables renamed
69461         to match Autoconf's.
69462         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69463         the other one.
69464
69465         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69466         Fix misspelling in diagnostic.
69467
69468 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69471         defined.  Problem reported by Matthew Woehlke.
69472
69473         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69474         Add support for Tandem NonStop R series.
69475         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69476         Use new macro.
69477
69478         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69479         (has_trailing_slash): Omit size arg; all callers changed.
69480         Omit 'inline', since it doesn't help performance and we'd
69481         need to configure it.
69482         Don't count //, ///, etc. as having a trailing slash.
69483         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69484         (rpl_rename_dest_slash): On failure, use rename's errno rather
69485         than (in some cases) an incorrect or junk errno.
69486         Simplify code by removing need to compute length; this does
69487         cause it to make two passes instead of one over the file name,
69488         but it's worth it.
69489
69490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69491         change, since Autoconf's version may no longer be appropriate now
69492         that we are using CVS Autoconf's version.  Add support for Tandem.
69493
69494 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69495             Bruno Haible  <bruno@clisp.org>
69496
69497         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69498         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69499         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69500         gl_AC_TYPE_LONG_LONG.
69501
69502         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69503         instead of HAVE_LONG_LONG.
69504         * lib/printf-args.c (printf_fetchargs): Likewise.
69505         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69506         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69507         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69508         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69509         gl_AC_TYPE_LONG_LONG.
69510
69511 2006-10-11  Bruno Haible  <bruno@clisp.org>
69512
69513         * m4/longlong.m4: Add comments.
69514         * m4/ulonglong.m4: Likewise.
69515
69516 2006-10-10  Bruno Haible  <bruno@clisp.org>
69517
69518         Make it possible to #define stpcpy, strdup to aliases.
69519         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69520         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69521
69522 2006-10-10  Bruno Haible  <bruno@clisp.org>
69523
69524         Make it possible to #define gcd to an alias.
69525         * lib/gcd.c: Include config.h.
69526
69527 2006-10-10  Bruno Haible  <bruno@clisp.org>
69528
69529         Make it possible to #define c_isascii to an alias.
69530         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69531         defined. Undefine the macros before defining them, to avoid gcc
69532         warnings.
69533         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69534         define NO_C_CTYPE_MACROS early.
69535
69536 2006-10-10  Bruno Haible  <bruno@clisp.org>
69537
69538         Make it possible to #define set_program_name to an alias.
69539         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69540         ENABLE_RELOCATABLE early.
69541
69542 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69543
69544         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69545         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69546         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69547         More generally, don't assume that 64-bit signed int is available
69548         if unsigned int is, and vice versa.
69549         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69550         unsigned symbols, not on their signed counterparts.
69551         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69552         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69553         (UINT64_C, UINTMAX_C):
69554         Likewise.
69555         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69556         unsigned counterparts.
69557         (Have_long_long, Unsigned): New macros.
69558         (Int): Renamed from INT.
69559         (strtoimax): Use the new macros.
69560         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69561         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69562         * modules/inttypes (inttypes.h): Substitute
69563         HAVE_UNSIGNED_LONG_LONG_INT.
69564         * modules/stdint (stdint.h): Likewise.
69565         (Files): Add m4/ulonglong.m4.
69566
69567 2006-10-10  Bruno Haible  <bruno@clisp.org>
69568
69569         Fix a gcc -Wshadow warning.
69570         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69571         to 'bucket'.
69572         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69573         gl_linked_indexof_from_to): Likewise.
69574         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69575         Likewise.
69576         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69577         Likewise.
69578         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69579         Reported by Eric Blake.
69580
69581 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69582
69583         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69584         for NetBSD.  Problem reported by Bruno Haible.
69585
69586 2006-10-09  Jim Meyering  <jim@meyering.net>
69587
69588         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69589         Patch from Bruno Haible.
69590
69591 2006-10-09  Jim Meyering  <jim@meyering.net>
69592
69593         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69594         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69595         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69596
69597 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69598
69599         Don't include <config.h> twice; this doesn't work in some cases,
69600         e.g., when config.h has "#define intmax_t long long int" and
69601         we include <config.h>, <inttypes.h>, <config.h> in that order.
69602         Problem reported by Matthew Woehlke in:
69603         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69604         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69605         * lib/fts-cycle.c: Don't include config.h.
69606         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69607         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69608         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69609         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69610         inttypes.h.
69611         * lib/xstrtoumax.c: Likewise.
69612         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69613         __strtol and the like, so that this module is more like its siblings.
69614         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69615         Remove; no longer needed now that we assume gnulib inttypes.h.
69616
69617 2006-10-08  Bruno Haible  <bruno@clisp.org>
69618
69619         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69620         option.
69621
69622 2006-10-07  Jim Meyering  <jim@meyering.net>
69623
69624         * modules/inttypes (inttypes.h): Revert what seems to have been
69625         an inadvertent part of today's change: use "|", not "/" in the
69626         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69627
69628 2006-10-07  Bruno Haible  <bruno@clisp.org>
69629
69630         * modules/sublist: New file.
69631
69632 2006-10-07  Bruno Haible  <bruno@clisp.org>
69633
69634         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69635         * modules/argz (argz.h): Likewise.
69636         * modules/arpa_inet (arpa/inet.h): Likewise.
69637         * modules/byteswap (byteswap.h): Likewise.
69638         * modules/configmake (configmake.h): Likewise.
69639         * modules/fcntl (fcntl.h): Likewise.
69640         * modules/fnmatch (fnmatch.h): Likewise.
69641         * modules/getopt (getopt.h): Likewise.
69642         * modules/glob (glob.h): Likewise.
69643         * modules/inttypes (inttypes.h): Likewise.
69644         * modules/netinet_in (netinet/in.h): Likewise.
69645         * modules/poll (poll.h): Likewise.
69646         * modules/stdbool (stdbool.h): Likewise.
69647         * modules/stdint (stdint.h): Likewise.
69648         * modules/sys_select (sys/select.h): Likewise.
69649         * modules/sys_socket (sys/socket.h): Likewise.
69650         * modules/sys_stat (sys/stat.h): Likewise.
69651         * modules/sysexits (sysexits.h): Likewise.
69652         * modules/unistd (unistd.h): Likewise.
69653         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69654         Add a "DO NOT EDIT" comment to the generated file.
69655         (func_import): Likewise for gnulib-comp.m4.
69656
69657 2006-10-07  Bruno Haible  <bruno@clisp.org>
69658
69659         * lib/gl_sublist.h: New file.
69660         * lib/gl_sublist.c: New file.
69661
69662 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69663
69664         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69665         name (relative to the original working directory) and the file
69666         name component (relative to the temporary working directory).  All
69667         callers changed.
69668         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69669         * lib/mkdir-p.c (make_dir_parents): Likewise.
69670         * lib/mkdir-p.h (make_dir_parents): Likewise.
69671
69672 2006-10-06  Eric Blake  <ebb9@byu.net>
69673
69674         Define several macros for use by the clean-temp module.
69675         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69676         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69677         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69678
69679         * lib/clean-temp.h (close_stream_temp): New declaration.
69680         * lib/clean-temp.c (includes): Pull in headers according to what
69681         other modules are in use.
69682         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69683
69684 2006-10-06  Bruno Haible  <bruno@clisp.org>
69685
69686         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69687         instead of fopen, fwriteerror.
69688
69689 2006-10-06  Bruno Haible  <bruno@clisp.org>
69690
69691         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69692         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69693         int.
69694         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69695         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69696         Return an error indicator.
69697         Suggested by Eric Blake.
69698
69699 2006-10-06  Bruno Haible  <bruno@clisp.org>
69700
69701         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69702         Reported by Eric Blake.
69703
69704 2006-10-06  Bruno Haible  <bruno@clisp.org>
69705
69706         * modules/closeout (Description): Mention stderr too.
69707
69708 2006-10-06  Bruno Haible  <bruno@clisp.org>
69709         and Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * lib/closeout.c (close_stdout): Also close stderr.
69712         * lib/closeout.h: Update comment.
69713
69714 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69715
69716         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69717         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69718         * lib/dirchownmod.c: Include lchown.h.
69719         * lib/lchown.c: Don't include files that lchown.h now includes.
69720         Don't declare chown, since lchown.h now does that.
69721         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69722         (lchown): Define to rpl_chown if lchown is declared but
69723         does not exist.  Declare using a prototype if lchown is not
69724         declared.  Add a copyright notice.
69725         * lib/mkstemp.h: Include <unistd.h>.
69726         * lib/openat.c: Include lchown.h.
69727
69728         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69729         we now test for that separately.
69730         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69731         rather than O_NOFOLLOW, when testing whether it's possible to
69732         avoid a race condition reliably.
69733         * lib/savewd.c (savewd_chdir): Likewise.
69734
69735         Remove macros that are no longer needed now that stdint.h is
69736         reliable.
69737         * lib/fsusage.c (UINTMAX_MAX): Remove.
69738         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69739         * lib/utimecmp.c (SIZE_MAX): Remove.
69740
69741         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69742
69743         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69744         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69745         O_NOATIME works.
69746
69747 2006-10-05  Bruno Haible  <bruno@clisp.org>
69748
69749         * lib/gl_list.h (gl_sortedlist_search_from_to,
69750         gl_sortedlist_indexof_from_to): New declarations.
69751         (gl_list_implementation): New fields sortedlist_search_from_to,
69752         sortedlist_indexof_from_to.
69753         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69754         inline functions.
69755         * lib/gl_list.c (gl_sortedlist_search_from_to,
69756         gl_sortedlist_indexof_from_to): New functions.
69757         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69758         function.
69759         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69760         (gl_array_sortedlist_search_from_to): New function.
69761         (gl_array_list_implementation): Update.
69762         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69763         function.
69764         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69765         (gl_carray_sortedlist_search_from_to): New function.
69766         (gl_carray_list_implementation): Update.
69767         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69768         gl_linked_sortedlist_indexof_from_to): New functions.
69769         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69770         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69771         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69772         gl_tree_sortedlist_indexof_from_to): New functions.
69773         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69774         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69775         Update.
69776         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69777         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69778         Update.
69779
69780 2006-10-05  Bruno Haible  <bruno@clisp.org>
69781
69782         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69783         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69784         (struct gl_list_implementation): Add fields search_from_to,
69785         indexof_from_to. Remove fields search, indexof.
69786         (gl_list_search): Use the search_from_to method.
69787         (gl_list_search_from, gl_list_search_from_to): New functions.
69788         (gl_list_indexof): Use the indexof_from_to method.
69789         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69790         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69791         (gl_list_search_from, gl_list_search_from_to): New functions.
69792         (gl_list_indexof): Use the indexof_from_to method.
69793         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69794         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69795         gl_array_indexof. Add start_index, end_index arguments.
69796         (gl_array_search_from_to): Renamed from gl_array_search. Add
69797         start_index, end_index arguments.
69798         (gl_array_remove, gl_array_list_implementation): Update.
69799         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69800         gl_carray_indexof. Add start_index, end_index arguments.
69801         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69802         start_index, end_index arguments.
69803         (gl_carray_remove, gl_carray_list_implementation): Update.
69804         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69805         gl_linked_search. Add start_index, end_index arguments.
69806         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69807         start_index, end_index arguments.
69808         (gl_linked_remove): Update.
69809         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69810         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69811         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69812         field to 'size_t'.
69813         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69814         gl_tree_search. Add start_index, end_index arguments.
69815         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69816         start_index, end_index arguments.
69817         (gl_tree_remove): Update.
69818         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69819         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69820         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69821         function.
69822         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69823         gl_tree_search. Add start_index, end_index arguments.
69824         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69825         start_index, end_index arguments.
69826         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69827         Update.
69828         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69829
69830 2006-10-05  Bruno Haible  <bruno@clisp.org>
69831
69832         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69833
69834         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69835         fwriteerror_temp): New declarations.
69836         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69837         (descriptors): New variable.
69838         (cleanup): First, close the descriptors.
69839         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69840         fclose_temp, fwriteerror_temp): New functions.
69841
69842 2006-10-04  Jim Meyering  <jim@meyering.net>
69843
69844         * lib/fts.c (fts_open): Tiny comment change.
69845
69846 2006-10-04  Bruno Haible  <bruno@clisp.org>
69847
69848         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69849         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69850         gl_LOCK_BODY.
69851         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69852         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69853         gl_LOCK_EARLY_BODY.
69854         (gl_LOCK): Require gl_LOCK_BODY.
69855
69856 2006-10-04  Bruno Haible  <bruno@clisp.org>
69857
69858         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69859         (gl_oset_search_atleast): New declaration.
69860         (struct gl_oset_implementation): Add field 'search_atleast'.
69861         (gl_oset_search_atleast): New inline function.
69862         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69863         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69864         (gl_array_oset_implementation): Update.
69865         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69866         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69867         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69868
69869 2006-10-04  Bruno Haible  <bruno@clisp.org>
69870
69871         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69872
69873 2006-10-03  Bruno Haible  <bruno@clisp.org>
69874
69875         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69876         from gl_avltreehash_list_implementation.
69877
69878 2006-10-03  Bruno Haible  <bruno@clisp.org>
69879
69880         * lib/gl_oset.c (gl_oset_add): Fix return type.
69881
69882 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69883
69884         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69885
69886 2006-10-02  Eric Blake  <ebb9@byu.net>
69887
69888         * modules/strnlen (Depends-on): Add extensions.
69889
69890 2006-10-02  Eric Blake  <ebb9@byu.net>
69891
69892         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69893         definition in 2.60+.
69894
69895 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69896
69897         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69898         checks.
69899
69900 2006-10-02  Bruno Haible  <bruno@clisp.org>
69901
69902         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69903         to the AUTOMAKE_OPTIONS.
69904         Reported by Jim Meyering.
69905
69906 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69907
69908         Work around bug in Solaris 10 /proc file system:
69909         /proc/self/fd/NNN/.. isn't the parent directory of
69910         the directory whose file descriptor is NNN.  This needs to
69911         be worked around at run time, not compile time, since a
69912         program might be built on Solaris 8, where things work, and
69913         run on Solaris 10.
69914         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69915         to use the following interface instead:
69916         (OPENAT_BUFFER_SIZE): New macro.
69917         (openat_proc_name): New function.
69918         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69919         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69920         Likewise.
69921         * lib/openat-proc.c: New file.
69922         * modules/openat (Files): Add lib/openat-proc.c.
69923         (Depends-on): Add same-inode, stdbool.
69924         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69925
69926 2006-09-29  Bruno Haible  <bruno@clisp.org>
69927
69928         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69929         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69930         argument. Set stdout_closed before testing for ferror, not after.
69931         (fwriteerror, fwriteerror_no_ebadf): New functions.
69932
69933 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69934
69935         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69936
69937 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69938
69939         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69940         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69941
69942 2006-09-28  Jim Meyering  <jim@meyering.net>
69943
69944         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69945         Include <unistd.h>.
69946
69947 2006-09-28  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69950         * modules/linkedhash-list (Depends-on): Likewise.
69951         * modules/rbtreehash-list (Depends-on): Likewise.
69952
69953 2006-09-28  Bruno Haible  <bruno@clisp.org>
69954
69955         * lib/strndup.h: Simplify the redefinition of strndup.
69956         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69957         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69958
69959 2006-09-28  Bruno Haible  <bruno@clisp.org>
69960
69961         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69962         * lib/gl_linkedhash_list.c: Likewise.
69963         * lib/gl_rbtreehash_list.c: Likewise.
69964
69965 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69966
69967         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69968         getaddrinfo.
69969
69970         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69971         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69972         it causes <stdio_ext.h> to cause a compile-time error.
69973         Problem reported by Nelson H. F. Beebe.
69974         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69975         of HAVE_DECL___PENDING.
69976
69977         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69978         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69979         declaration.
69980
69981 2006-09-27  Jim Meyering  <jim@meyering.net>
69982
69983         This file could end up with a definition for a function
69984         named __strndup, rather than rpl_strndup on a system with
69985         incomplete weak_alias support.
69986         * lib/strndup.c (strndup): Rename from __strndup.
69987         Remove #defines that used to map __strndup to strndup.
69988         Don't use K&R prototypes.
69989         Remove LIBC-related code, since this file is not sync'd with glibc.
69990         * lib/strndup.h: Revamp, accordingly.
69991         * m4/strndup.m4: Modernize.
69992
69993 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69994
69995         * modules/savewd (Depends-on): Add 'raise'.
69996         * lib/savewd.c: Include <signal.h>, for 'raise'.
69997
69998 2006-09-26  Jim Meyering  <jim@meyering.net>
69999
70000         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70001         when we detect Darwin 8.7.0's acl_get_file bug.
70002         Rearrange to perform the new (below) run-test while $LIBS
70003         contains any acl-related library.  Set USE_ACL at the end.
70004         (gl_ACL_GET_FILE): New function.
70005
70006 2006-09-26  Eric Blake  <ebb9@byu.net>
70007
70008         * lib/verror.c: Include <config.h> unconditionally.
70009
70010 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * modules/clock-time (Maintainer): Add self.
70013         * modules/getlogin_r (Depends-on): Add extensions.
70014
70015 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70016
70017         * modules/clock-time: New module.
70018         * modules/nanosleep (Depends-on): Add clock-time.
70019         * modules/gethrxtime (Depends-on): Likewise.
70020         * modules/gettime (Depends-on): Likewise.
70021         * modules/settime (Depends-on): Likewise.
70022
70023         * modules/fts-lgpl: Depend on openat.
70024         * modules/mkancesdirs: Depend on savewd.
70025         * modules/mkdir-p: Likewise.
70026
70027 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70028
70029         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70030
70031         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70032         `gl_have_arbitrary_file_name_length_limit' to
70033         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70034         actually works between configure runs.
70035
70036 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70037             Bruno Haible  <bruno@clisp.org>
70038
70039         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70040
70041 2006-09-25  Jim Meyering  <jim@meyering.net>
70042
70043         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70044         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70045
70046 2006-09-25  Eric Blake  <ebb9@byu.net>
70047
70048         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70049         exec's in 2006-09-18 patch when shuffling fds.
70050
70051 2006-09-25  Bruno Haible  <bruno@clisp.org>
70052
70053         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70054         Reported by Jim Meyering.
70055
70056 2006-09-24  Jim Meyering  <jim@meyering.net>
70057
70058         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70059         compare a pointer against a literal "0".  That caused failures with
70060         at least HP-UX's hpcc.
70061
70062 2006-09-22  Simon Josefsson  <jas@extundo.com>
70063
70064         * modules/gc-sha1:
70065         * modules/gc-md4:
70066         * modules/gc-hmac-sha1:
70067         * modules/gc-hmac-md5:
70068         * modules/gc-des:
70069         * modules/gc-arcfour: Distribute more files.
70070
70071 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70072
70073         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70074         (gl_linked_iterator_from_to): Initialize struct completely.
70075         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70076         (gl_tree_iterator_from_to): Likewise
70077         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70078         * lib/gl_array_list.c [lint] (gl_array_iterator)
70079         (gl_array_iterator_from_to): Likewise.
70080         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70081         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70082         (gl_carray_iterator_from_to): Likewise.
70083
70084         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70085         * lib/md4.c (md4_process_block): Remove unused variable.
70086         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70087         parentheses for clarity.
70088
70089 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70090
70091         * modules/bison-i18n (Depends-on): Add gettext.
70092
70093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70094
70095         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70096         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70097         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70098         also add missing comma that caused broken test.
70099         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70100         stdlib.h, for `abort'.
70101         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70102         variables.
70103         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70104         include unistd.h if present, for `rmdir'.
70105         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70106         variables.
70107         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70108         in the process include standard headers for prototypes.
70109         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70110         gets declared on GNU/Linux.
70111         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70112         unistd.h, for `rmdir'.
70113         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70114
70115         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70116         always true.
70117         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70118
70119         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70120
70121 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70122
70123         * gnulib-tool (func_version): Create output all at once.  This
70124         may help avoid triggering unnecessary SIGPIPEs, and at any
70125         rate it doesn't hurt.
70126
70127 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70128             Bruno Haible  <bruno@clisp.org>
70129
70130         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70131         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70132         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70133
70134         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70135         (gl_FUNC_VASPRINTF): Invoke it.
70136
70137 2006-09-22  Bruno Haible  <bruno@clisp.org>
70138
70139         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70140         getloadavg.c as first argument.
70141
70142 2006-09-22  Bruno Haible  <bruno@clisp.org>
70143
70144         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70145         at the beginning of the gl_INIT macro.
70146         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70147         gl_GETLOADAVG.
70148
70149 2006-09-22  Bruno Haible  <bruno@clisp.org>
70150
70151         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70152         module.
70153         Suggested by Ralf Wildenhues.
70154
70155 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70156
70157         Import this patch from libc:
70158
70159         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70160
70161         * lib/regex_internal.c (re_string_reconstruct): Handle
70162         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70163         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70164         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70165         re_string_context_at.
70166
70167         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70168         now requires it.
70169         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70170         gl_REGEX now does it for us.
70171         (gl_REGEX): Add test taken from
70172         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70173
70174         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70175         Check that large offsets work.  Modernize Autoconf usages.
70176         Prefer "yes" to mean a good thing rather than a bad.
70177         Don't put "#define mkstemp" in config.h, as this might interfere
70178         with standard system headers that "#define mkstemp mkstemp64".
70179
70180         * modules/mkstemp (Depends-on): Add extensions, so that
70181         mkstemp is visible on some platforms.
70182         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70183         (Include): Change to "mkstemp.h" from <stdlib.h>.
70184         (Files): Add mkstemp.h.
70185
70186         * lib/mkstemp.h: New file, since some standard headers
70187         #define mkstemp.
70188         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70189         Include "mkstemp.h".
70190         Make the _LIBC code resemble glibc original more,
70191         e.g., use K&R style.
70192         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70193         (mkstemp): Remove, since mkstemp.h does this for us.
70194         * lib/stdlib--.h: Include mkstemp.h.
70195
70196         Import this patch from libc:
70197
70198         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70199
70200         * lib/tempname.c (__gen_tempname): Change attempts_min
70201         into a macro.  Use preprocessor to decide how to initialize
70202         attempts [Coverity CID 67].
70203
70204 2006-09-20  Bruno Haible  <bruno@clisp.org>
70205
70206         * lib/mkdtemp.c: Import from libc.
70207         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70208                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70209                 attempts_min into a macro.  Use preprocessor to decide how to
70210                 initialize attempts [Coverity CID 67].
70211         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70212                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70213                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70214
70215 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70216
70217         * gnulib-tool (func_exit): New function, to allow to pass the
70218         exit status portably through the trap.  Use everywhere.
70219         (--help, --version): Signal a write error.
70220         (trap): catch SIGPIPE, for write errors.
70221         Exit at the end of the trap, with the correct exit status.
70222
70223 2006-09-19  Karl Berry  <karl@gnu.org>
70224
70225         * doc/gnulib.texi: note about the license texinfo files.
70226
70227 2006-09-19  Eric Blake  <ebb9@byu.net>
70228
70229         * gnulib-tool: Avoid space-tab.
70230
70231 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70232
70233         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70234         that prevented coreutils 6.1 from building.  Problem reported
70235         by Petter Reinholdtsen.
70236
70237 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * gnulib-tool (avoidlist): Fix typo that broke options like
70240         --avoid=lock that are used by coreutils bootstrap.
70241
70242 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70243
70244         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70245         more systematically.
70246
70247 2006-09-18  Jim Meyering  <jim@meyering.net>
70248
70249         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70250
70251 2006-09-18  Bruno Haible  <bruno@clisp.org>
70252
70253         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70254
70255 2006-09-18  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70258         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70259         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70260         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70261         * m4/gettext.m4: Require autoconf >= 2.52.
70262         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70263         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70264         of gl_cv_header_inttypes_h.
70265
70266 2006-09-18  Bruno Haible  <bruno@clisp.org>
70267
70268         * lib/javaversion.c: Include configmake.h.
70269
70270 2006-09-18  Bruno Haible  <bruno@clisp.org>
70271
70272         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70273         avoid that the while loops be executed in a subshell.
70274
70275 2006-09-18  Bruno Haible  <bruno@clisp.org>
70276
70277         * MODULES.html.sh (func_module): Break long lines.
70278         Suggested by Bruce Korb <bkorb@gnu.org>.
70279
70280 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70281
70282         Speed up by a factor of 1.12.
70283         * gnulib-tool (nl): New variable.
70284         (func_import): Rewrite include directive extraction to only read each
70285         directive once.
70286
70287 2006-09-17  Bruno Haible  <bruno@clisp.org>
70288
70289         * modules/javaversion (Makefile.am): Remove DEFS setting.
70290         (Depends-on): Add configmake, for PKGDATADIR definition.
70291
70292 2006-09-17  Bruno Haible  <bruno@clisp.org>
70293
70294         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70295
70296 2006-09-17  Bruno Haible  <bruno@clisp.org>
70297
70298         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70299         (func_modules_transitive_closure, func_modules_add_dummy,
70300         func_modules_to_filelist, func_import, func_create_testdir,
70301         func_create_megatestdir, ...): Use it wherever possible.
70302         Suggested by Ralf Wildenhues.
70303
70304 2006-09-16  Karl Berry  <karl@gnu.org>
70305
70306         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70307         to avoid sectioning errors.
70308         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70309         [ifinfo]: blank line after @center-ed titles.
70310         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70311         Spell FSF address consistently with others.
70312         (These changes approved by rms.)
70313
70314 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70315
70316         Speed up by a factor of 1.61.
70317         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70318         already checked module names again.
70319
70320 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70321
70322         Speed up by a factor of 1.13.
70323         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70324         for new_files, and the input to func_add_or_update.
70325
70326 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70327
70328         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70329         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70330
70331 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70332
70333         * modules/mkancesdirs (Depends-on): Add fcntl.
70334         * modules/savewd: New file.
70335         * MODULES.html.sh (File system functions): Add savewd.
70336
70337         * modules/configmake (Makefile.am): Add support for the
70338         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70339
70340 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70341
70342         * m4/savewd.m4: New file.
70343
70344 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70345
70346         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70347         (dirchownmod): New arg FD.  All callers changed.
70348         Use FD rather than opening the directory ourself, as opening is
70349         now the caller's responsibility.
70350         * lib/dirchownmod.h: Likewise.
70351         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70352         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70353         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70354         (test_dir): Remove.
70355         (mkancesdirs): Return length of prefix of FILE that has already
70356         been made, or -2 if there is a child doing the work.  Redo
70357         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70358         ".", and treat ".." specially since it might stray back into
70359         already-created areas.  Use a subprocess if necessary.  New arg
70360         WD; all users changed.  MAKE_DIR function should now return 1
70361         if it creates a directory that is not readable.  Return -2 if
70362         a child process is spun off.
70363         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70364         Adjust signature to match code.
70365         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70366         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70367         all users changed.
70368         * lib/savewd.c, lib/savewd.h: New files.
70369
70370 2006-09-15  Jim Meyering  <jim@meyering.net>
70371
70372         * modules/rename-dest-slash: New module.
70373         * MODULES.html.sh (posix_compat): Add it here.
70374
70375         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70376
70377 2006-09-15  Jim Meyering  <jim@meyering.net>
70378
70379         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70380         file.
70381
70382         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70383
70384 2006-09-15  Jim Meyering  <jim@meyering.net>
70385
70386         * lib/rename-dest-slash.c (has_trailing_slash): Use
70387         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70388         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70389         test before testing whether SRC is a directory.
70390         Suggestions from Bruno Haible.
70391
70392         Avoid a warning about an unused variable.
70393         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70394         into the #ifdef block where it's used.
70395
70396         * lib/rename-dest-slash.c: New file.
70397
70398 2006-09-14  Bruno Haible  <bruno@clisp.org>
70399
70400         * lib/allocsa.c: Include <config.h> unconditionally.
70401         * lib/asnprintf.c: Likewise.
70402         * lib/asprintf.c: Likewise.
70403         * lib/c-strcasecmp.c: Likewise.
70404         * lib/c-strcasestr.c: Likewise.
70405         * lib/c-strncasecmp.c: Likewise.
70406         * lib/c-strstr.c: Likewise.
70407         * lib/classpath.c: Likewise.
70408         * lib/clean-temp.c: Likewise.
70409         * lib/concatpath.c: Likewise.
70410         * lib/copy-file.c: Likewise.
70411         * lib/csharpcomp.c: Likewise.
70412         * lib/csharpexec.c: Likewise.
70413         * lib/execute.c: Likewise.
70414         * lib/fatal-signal.c: Likewise.
70415         * lib/findprog.c: Likewise.
70416         * lib/fwriteerror.c: Likewise.
70417         * lib/gl_array_list.c: Likewise.
70418         * lib/gl_array_oset.c: Likewise.
70419         * lib/gl_avltree_list.c: Likewise.
70420         * lib/gl_avltree_oset.c: Likewise.
70421         * lib/gl_avltreehash_list.c: Likewise.
70422         * lib/gl_carray_list.c: Likewise.
70423         * lib/gl_linked_list.c: Likewise.
70424         * lib/gl_linkedhash_list.c: Likewise.
70425         * lib/gl_list.c: Likewise.
70426         * lib/gl_oset.c: Likewise.
70427         * lib/gl_rbtree_list.c: Likewise.
70428         * lib/gl_rbtree_oset.c: Likewise.
70429         * lib/gl_rbtreehash_list.c: Likewise.
70430         * lib/imaxabs.c: Likewise.
70431         * lib/imaxdiv.c: Likewise.
70432         * lib/javacomp.c: Likewise.
70433         * lib/javaexec.c: Likewise.
70434         * lib/javaversion.c: Likewise.
70435         * lib/linebreak.c: Likewise.
70436         * lib/localcharset.c: Likewise.
70437         * lib/lock.c: Likewise.
70438         * lib/mbchar.c: Likewise.
70439         * lib/mbswidth.c: Likewise.
70440         * lib/mkdtemp.c: Likewise.
70441         * lib/pipe.c: Likewise.
70442         * lib/printf-args.c: Likewise.
70443         * lib/printf-parse.c: Likewise.
70444         * lib/progname.c: Likewise.
70445         * lib/progreloc.c: Likewise.
70446         * lib/readlink.c: Likewise.
70447         * lib/sh-quote.c: Likewise.
70448         * lib/stpcpy.c: Likewise.
70449         * lib/stpncpy.c: Likewise.
70450         * lib/strcasecmp.c: Likewise.
70451         * lib/strcasestr.c: Likewise.
70452         * lib/strcspn.c: Likewise.
70453         * lib/striconv.c: Likewise.
70454         * lib/strncasecmp.c: Likewise.
70455         * lib/strnlen1.c: Likewise.
70456         * lib/strstr.c: Likewise.
70457         * lib/strtok_r.c: Likewise.
70458         * lib/tls.c: Likewise.
70459         * lib/tmpdir.c: Likewise.
70460         * lib/unicodeio.c: Likewise.
70461         * lib/unsetenv.c: Likewise.
70462         * lib/vasnprintf.c: Likewise.
70463         * lib/vasprintf.c: Likewise.
70464         * lib/wait-process.c: Likewise.
70465         * lib/xallocsa.c: Likewise.
70466         * lib/xsetenv.c: Likewise.
70467         * lib/xstriconv.c: Likewise.
70468
70469 2006-09-13  Simon Josefsson  <jas@extundo.com>
70470
70471         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70472         that internally, suggested by Ralf Wildenhues
70473         <Ralf.Wildenhues@gmx.de>.
70474
70475 2006-09-13  Simon Josefsson  <jas@extundo.com>
70476
70477         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70478         @LIBOBJS@.
70479         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70480
70481 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70484         longer worry about uses that don't define HAVE_CONFIG_H.
70485         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70486         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70487         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70488         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70489         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70490         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70491         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70492         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70493         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70494         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70495         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70496         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70497         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70498         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70499         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70500         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70501         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70502         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70503         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70504         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70505         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70506         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70507         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70508         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70509         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70510         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70511         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70512         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70513         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70514         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70515         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70516         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70517         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70518         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70519         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70520         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70521         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70522         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70523         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70524         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70525         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70526         Likewise.
70527
70528 2006-09-13  Eric Blake  <ebb9@byu.net>
70529
70530         * lib/getopt.c: Fix typo in last commit.
70531
70532 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70533
70534         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70535         dgettext.
70536
70537 2006-09-12  Jim Meyering  <jim@meyering.net>
70538
70539         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70540         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70541         Reported by Nelson H. F. Beebe.
70542
70543 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70544
70545         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70546         program_invocation_name and program_invocation_short_name are
70547         initialized.
70548         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70549         and program_invocation_short_name to argp.h, so they are visible
70550         to user programs.
70551         * lib/argp.h: Likewise
70552
70553 2006-09-10  Bruno Haible  <bruno@clisp.org>
70554
70555         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70556         m4/inttypes_h.m4, m4/uintmax_t.m4.
70557
70558 2006-09-10  Bruno Haible  <bruno@clisp.org>
70559
70560         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70561         gl_AC_TYPE_UINTMAX_T.
70562
70563 2006-09-10  Bruno Haible  <bruno@clisp.org>
70564
70565         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70566
70567 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70568
70569         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70570         convention.  Text proposed by Bruno Haible.
70571         (struct argp_option): Document the use of N_() wrappers.
70572
70573         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70574         '\v', and translate the two parts separately, instead of feeding
70575         the whole string to gettext.  This allows to exclude
70576         '\v' from the strings visible to the translator by writing doc
70577         strings as N_("..") "\v" N_("..").
70578
70579 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70580
70581         * config/srclist.txt: Undo latest change; the bug was fixed.
70582
70583 2006-09-09  Bruno Haible  <bruno@clisp.org>
70584
70585         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70586         assignments if building a library without libtool.
70587         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70588         in func_emit_lib_Makefile_am.
70589         (func_import): When building a static library libfoo.a, arrange to
70590         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70591         (func_create_testdir): Likewise.
70592         * modules/gc (configure.ac, Makefile.am): If building statically,
70593         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70594         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70595         * modules/striconv (configure.ac, Makefile.am): Likewise.
70596         Based on a suggestion by Ralf Wildenhues.
70597
70598 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70599
70600         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70601         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70602         Also:
70603
70604         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70605         Add year_2050_test to catch glibc bug 2821
70606         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70607
70608         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70609         Prefer #ifdef to #if.
70610
70611         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70612         Return from 'main' instead of calling 'exit'.
70613
70614 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70615
70616         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70617         returned the maximum time_t value rather than (time_t) -1.
70618         Problem originally reported by William Bardwell
70619         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70620
70621         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70622         Moved to here ...
70623         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70624         ... from here.
70625
70626 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70629         2821 is fixed.
70630
70631 2006-09-08  Jim Meyering  <jim@meyering.net>
70632
70633         Don't make generated files read-only.  That would bother too many
70634         people.  However, do retain the ability to work when targets are
70635         read-only: remove the destination and temporary files before writing
70636         them (when generated via sed or echo), or by using the -f option for
70637         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70638         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70639         * modules/byteswap, modules/configmake, modules/fcntl:
70640         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70641         * modules/localcharset, modules/netinet_in, modules/poll:
70642         * modules/stdbool, modules/stdint, modules/sys_select:
70643         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70644
70645 2006-09-08  Jim Meyering  <jim@meyering.net>
70646
70647         Avoid new build failure on FreeBSD 6.0.
70648         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70649         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70650         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70651
70652 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70653
70654         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70655
70656 2006-09-07  Jim Meyering  <jim@meyering.net>
70657
70658         Fix global typo in last change: use chmod u-w, not chmod u-x.
70659         Spotted by Paul Eggert and Bruce Korb.
70660         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70661         * modules/byteswap, modules/configmake, modules/fcntl:
70662         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70663         * modules/localcharset, modules/netinet_in, modules/poll:
70664         * modules/stdbool, modules/stdint, modules/sys_select:
70665         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70666
70667 2006-09-06  Jim Meyering  <jim@meyering.net>
70668
70669         Make generated files be read-only.
70670         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70671         Ensure that each generated file is now read-only.
70672         * modules/argz: Likewise.
70673         * modules/arpa_inet: Likewise.
70674         * modules/byteswap: Likewise.
70675         * modules/configmake: Likewise.
70676         * modules/fcntl: Likewise.
70677         * modules/fnmatch: Likewise.
70678         * modules/getopt: Likewise.
70679         * modules/glob: Likewise.
70680         * modules/inttypes: Likewise.
70681         * modules/netinet_in: Likewise.
70682         * modules/poll: Likewise.
70683         * modules/stdbool: Likewise.
70684         * modules/stdint: Likewise.
70685         * modules/sys_select: Likewise.
70686         * modules/sys_socket: Likewise.
70687         * modules/sys_stat: Likewise.
70688         * modules/sysexits: Likewise.
70689         * modules/localcharset: Same as above, but continue using temporary
70690         file named "t-$@" (why different?) rather than the "$@-t" used
70691         everywhere else.
70692
70693         * modules/sysexits (Makefile.am): Replace literal occurrences
70694         of "sysexit.h" more readable, and more consistent, "$@".
70695
70696 2006-09-06  Bruno Haible  <bruno@clisp.org>
70697
70698         * modules/striconv: New file.
70699         * modules/xstriconv: New file.
70700         * MODULES.html.sh (Internationalization functions): Add striconv,
70701         xstriconv.
70702
70703 2006-09-06  Bruno Haible  <bruno@clisp.org>
70704
70705         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70706         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70707         not using libtool correctly.
70708
70709 2006-09-06  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/striconv.h: New file.
70712         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70713         iconvstring.c.
70714         * lib/xstriconv.h: New file.
70715         * lib/xstriconv.c: New file.
70716
70717 2006-09-06  Bruno Haible  <bruno@clisp.org>
70718
70719         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70720         lib_..._LDFLAGS.
70721
70722 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70723
70724         * lib/argz_.h: Sync from Libtool.
70725
70726         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70727                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70728
70729         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70730
70731 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70732
70733         * modules/trim: New file.
70734
70735 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70736
70737         * lib/trim.h: New file.
70738         * lib/trim.c: New file.
70739
70740 2006-09-05  Bruno Haible  <bruno@clisp.org>
70741
70742         * MODULES.html.sh (String handling): Add trim.
70743
70744 2006-09-04  Karl Berry  <karl@gnu.org>
70745
70746         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70747         until next release.
70748
70749 2006-09-03  Bruno Haible  <bruno@clisp.org>
70750
70751         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70752         correctly.
70753
70754 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70755
70756         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70757         not gl_GETLOADAVG.  Omit unneeded semicolons.
70758         Problems reported by Ralf Wildenhues in
70759         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70760         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70761         at the end, which is the usual gnulib style.
70762
70763         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70764         of doing all the work ourselves.
70765         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70766         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70767
70768 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70769
70770         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70771         Problem reported by Ralf Wildenhues in
70772         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70773
70774         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70775         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70776
70777 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70778
70779         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70780         yesterday's patch by changing test -n to test -z.
70781
70782 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70785         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70786         the former is now obsolescent.
70787
70788         * modules/chdir-long (Depends-on): Add fcntl.
70789
70790 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70791
70792         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70793         obsolescent, and programs should use gnulib instead.
70794         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70795         but with prefixes changed.
70796
70797 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70800         or stdbool.h, because they might not exist while configuring.
70801
70802         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70803         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70804         does that for us.
70805         (O_DIRECTORY): Remove.
70806
70807 2006-08-31  Eric Blake  <ebb9@byu.net>
70808
70809         * gnulib-tool: Don't let emacs change spaces to TAB.
70810
70811 2006-08-31  Bruno Haible  <bruno@clisp.org>
70812
70813         * gnulib-tool: When calling func_import more than once, do it in a
70814         subshell.
70815         Reported by Eric Blake <ebb9@byu.net>.
70816
70817 2006-08-31  Bruno Haible  <bruno@clisp.org>
70818
70819         * gnulib-tool (nl): Remove variable.
70820         (sed_transform_lib_file): Use more robust test for config-h module.
70821         (func_import): Fix typo in 2006-08-25 patch.
70822
70823 2006-08-31  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70826         specified, augment Makefile.am variables instead of assigning them.
70827
70828 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         Work around a bug in both the Linux and SunOS 64-bit kernels:
70831         nanosleep mishandles sleeps for longer than 2**31 seconds.
70832         Problem reported by Frank v Waveren in
70833         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70834         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70835         Check for nanosleep bug.
70836         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70837
70838 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70839
70840         Work around a bug in both the Linux and SunOS 64-bit kernels:
70841         nanosleep mishandles sleeps for longer than 2**31 seconds.
70842         Problem reported by Frank v Waveren in
70843         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70844         * lib/nanosleep.c (BILLION): New constant.
70845         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70846         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70847         implementation.
70848
70849 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70850
70851         * modules/nanosleep (Depends-on): Add gettime.
70852
70853 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70854         and Simon Josefsson  <jas@extundo.com>
70855         and Oskar Liljeblad  <oskar@osk.mine.nu>
70856
70857         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70858         * gnulib-tool (func_import): New license type 'unmodifiable license
70859         text'.
70860         * modules/fdl: Use it.  Longer description.
70861         * module/gpl, module/lgpl: New files.
70862
70863 2006-08-30  Jim Meyering  <jim@meyering.net>
70864
70865         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70866         shadowing the parameter.
70867
70868 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70869
70870         Sync from Libtool:
70871
70872         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70873
70874         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70875         sharing with gnulib.  Report by Eric Blake.
70876
70877 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * modules/isapipe: New file.
70880         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70881
70882 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         * modules/configmake (Makefile.am): Add a comment, and omit
70885         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70886         by Bruno Haible.
70887
70888 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70889
70890         * m4/isapipe.m4: New file.
70891
70892 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70893
70894         * lib/isapipe.c, lib/isapipe.h: New files.
70895
70896 2006-08-29  Jim Meyering  <jim@meyering.net>
70897
70898         * modules/configmake (Makefile.am): Make configmake.h depend on
70899         Makefile.  Otherwise, a stale configmake.h could hang around.
70900
70901 2006-08-29  Eric Blake  <ebb9@byu.net>
70902
70903         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70904         resolution of upstream bug 3044.
70905
70906 2006-08-29  Bruno Haible  <bruno@clisp.org>
70907
70908         * modules/localcharset (Depends-on): Add configmake.
70909         (Makefile.am): Remove setting of LIBDIR through DEFS.
70910
70911 2006-08-29  Bruno Haible  <bruno@clisp.org>
70912
70913         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70914         defined.
70915
70916 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * modules/fcntl: New file.
70919         * modules/chdir-safer (Depends-on): Add fcntl.
70920         * modules/fts: Likewise.
70921         * modules/mkdir-p: Likewise.
70922
70923         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70924         This undoes the most recent change, since we're now addressing the
70925         problem in a different way.
70926
70927         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70928         into output, since the output might be called Makefile.am even
70929         if $makefile_name is something different.
70930         (func_import): Use $makefile_am rather than
70931         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70932         empty.
70933
70934         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70935
70936 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70939         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70940         recent change to stdint.m4, since we're now addressing the problem in a
70941         different way.
70942
70943 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70944
70945         * m4/fcntl_h.m4: New file.
70946
70947 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70948
70949         * lib/fcntl_.h: New file.
70950         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70951         the fcntl module.
70952         * lib/dirchownmod.c: Likewise.
70953         * lib/fts.c: Likewise.
70954
70955         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70956         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70957         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70958         just before including <inttypes.h>, to avoid circular inclusion.
70959
70960 2006-08-28  Jim Meyering  <jim@meyering.net>
70961
70962         * doc/visibility.texi: Actually read and correct the grammar of the
70963         sentence affected by yesterday's change.
70964
70965 2006-08-28  Eric Blake  <ebb9@byu.net>
70966
70967         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70968         needs wrapper.
70969
70970 2006-08-28  Eric Blake  <ebb9@byu.net>
70971
70972         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70973
70974 2006-08-28  Eric Blake  <ebb9@byu.net>
70975
70976         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70977
70978 2006-08-28  Bruno Haible  <bruno@clisp.org>
70979
70980         * modules/c-strstr: New file, from GNU gettext.
70981         * MODULES.html.sh (String handling): Add c-strstr.
70982
70983 2006-08-28  Bruno Haible  <bruno@clisp.org>
70984
70985         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70986         macros.
70987         Reported by Eric Blake.
70988
70989 2006-08-28  Bruno Haible  <bruno@clisp.org>
70990
70991         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70992         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70993         * lib/vasprintf.c: Include errno.h, limits.h.
70994         (EOVERFLOW): New fallback definition.
70995         (vasprintf): Test here whether the string length is > INT_MAX.
70996         * lib/vsnprintf.c: Include errno.h, limits.h.
70997         (EOVERFLOW): New fallback definition.
70998         (vsnprintf): Fix bug when generated string was too long for the buffer.
70999         Test here whether the string length is > INT_MAX.
71000
71001 2006-08-28  Bruno Haible  <bruno@clisp.org>
71002
71003         * lib/inttypes_.h (SCNX*): Remove definitions.
71004         Reported by Eric Blake.
71005
71006 2006-08-28  Bruno Haible  <bruno@clisp.org>
71007
71008         * lib/c-strstr.h: New file, from GNU gettext.
71009         * lib/c-strstr.c: New file, from GNU gettext.
71010
71011 2006-08-28  Bruno Haible  <bruno@clisp.org>
71012
71013         * gnulib-tool: Reorder some statements.
71014
71015 2006-08-28  Bruno Haible  <bruno@clisp.org>
71016
71017         * gnulib-tool: New option --makefile-name.
71018         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71019         $makefile_name.
71020         (func_import): Write $makefile_name to the cache file, and read it from
71021         there unless explicitly specified. Use $makefile_name as file name
71022         instead of Makefile.am. Adjust the recommendations accordingly.
71023
71024 2006-08-28  Bruno Haible  <bruno@clisp.org>
71025
71026         * gnulib-tool (func_verify_module): Check against misapplying patch.
71027
71028 2006-08-28  Bruno Haible  <bruno@clisp.org>
71029
71030         * gnulib-tool (func_relativize, func_relconcat): New functions.
71031         Give an error if --local-dir is given with --update.
71032         Remove trailing slashes from $local_gnulib_dir.
71033         (func_import): Store the relativized $local_gnulib_dir in
71034         gnulib-cache.m4, and read it from there if not specified explicitly.
71035
71036 2006-08-28  Bruno Haible  <bruno@clisp.org>
71037
71038         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71039         is the current directory. Respect also $local_gnulib_dir.
71040
71041 2006-08-28  Bruno Haible  <bruno@clisp.org>
71042             Simon Josefsson  <jas@extundo.com>
71043
71044         BeOS portability.
71045         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71046
71047 2006-08-27  Jim Meyering  <jim@meyering.net>
71048
71049         * doc/visibility.texi: Remove duplicate word: "pointer".
71050
71051 2006-08-26  Bruno Haible  <bruno@clisp.org>
71052
71053         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71054         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71055         (Makefile.am): Create inttypes.h from inttypes_.h.
71056         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71057
71058         * modules/imaxabs: New file.
71059
71060         * modules/imaxdiv: New file.
71061
71062 2006-08-26  Bruno Haible  <bruno@clisp.org>
71063
71064         * m4/inttypes.m4: New file.
71065         * m4/_inttypes_h.m4: Remove file.
71066         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71067         PRI_MACROS_BROKEN.
71068         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71069
71070         * m4/imaxabs.m4: New file.
71071
71072         * m4/imaxdiv.m4: New file.
71073
71074 2006-08-26  Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/inttypes_.h: New file.
71077         * lib/inttypes.h: Remove file.
71078         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71079
71080         * lib/imaxabs.c: New file.
71081
71082         * lib/imaxdiv.c: New file.
71083
71084 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         New config-h module, so that "make" output needn't be cluttered
71087         by -DHAVE_CONFIG_H.
71088         * MODULES.html.sh (Support for building libraries and executables):
71089         Add config-h.
71090         * modules/config-h: New file.
71091         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71092         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71093         the config-h module is used.
71094
71095         New configmake module, so that "make" output needn't be cluttered
71096         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71097         * MODULES.html.sh (Support for building libraries and executables):
71098         Add configmake.
71099         * modules/configmake: New file.
71100
71101 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71102
71103         * m4/config-h.m4: New file.
71104
71105 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71106
71107         * config/srclist.txt: Add elisp-comp.
71108
71109 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * MODULES.html.sh (Support for building libraries and executables):
71112         Add elisp-comp.
71113         * build-aux/elisp-comp: New file.
71114         * modules/elisp-comp: New file.
71115
71116 2006-08-24  Bruno Haible  <bruno@clisp.org>
71117
71118         * gnulib-tool (func_create_testdir): Use non-default values of
71119         sourcebase and m4base.
71120
71121 2006-08-24  Bruno Haible  <bruno@clisp.org>
71122
71123         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71124         HTML structure.
71125
71126 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71127
71128         * modules/openat (Depends-on): Add lchown.
71129
71130 2006-08-23  Bruno Haible  <bruno@clisp.org>
71131
71132         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71133         of gl_LOCK_EARLY instead of gl_LOCK.
71134
71135 2006-08-23  Bruno Haible  <bruno@clisp.org>
71136
71137         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71138         on OSF/1 to no.
71139         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71140
71141 2006-08-23  Bruno Haible  <bruno@clisp.org>
71142
71143         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71144         as unusable.
71145
71146         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71147         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71148         (gl_LOCK): New macro.
71149
71150 2006-08-22  Simon Josefsson  <jas@extundo.com>
71151
71152         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71153         to md5 module.
71154
71155 2006-08-22  Simon Josefsson  <jas@extundo.com>
71156
71157         * MODULES.html.sh: Add "Support for maintaining and release
71158         projects".
71159
71160         * build-aux/gnupload: New file, from coreutils.
71161
71162 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71163
71164         Avoid the need for AC_LIBSOURCES in m4 macros.
71165         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71166         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71167         * modules/check-version (EXTRA_DIST): Add check-version.h.
71168         * modules/crc (EXTRA_DIST): Add crc.h.
71169         * modules/des (EXTRA_DIST): Add des.h.
71170         * modules/gc (EXTRA_DIST): Add gc.h.
71171         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71172         * modules/getline (EXTRA_DIST): Add getline.h.
71173         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71174         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71175         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71176         * modules/md2 (EXTRA_DIST): Add md2.h.
71177         * modules/md4 (EXTRA_DIST): Add md4.h.
71178         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71179         * modules/read-file (EXTRA_DIST): Add read-file.h.
71180         * modules/readline (EXTRA_DIST): Add readline.h.
71181         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71182         rijndael-api-fst.h.
71183
71184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71185
71186         * m4/rijndael.m4 (gl_ARCFOUR):
71187         * m4/arctwo.m4 (gl_ARCTWO):
71188         * m4/check-version.m4 (gl_CHECK_VERSION):
71189         * m4/crc.m4 (gl_CRC):
71190         * m4/des.m4 (gl_DES):
71191         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71192         * m4/gc.m4 (gl_GC):
71193         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71194         * m4/getline.m4 (gl_FUNC_GETLINE):
71195         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71196         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71197         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71198         * m4/md2.m4 (gl_MD2):
71199         * m4/md4.m4 (gl_MD4):
71200         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71201         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71202         * m4/readline.m4 (gl_FUNC_READLINE):
71203         * m4/rijndael.m4 (gl_RIJNDAEL):
71204         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71205         to get the necessary .h files and whatnot.
71206
71207 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71210         gnulib rather than the other way around.
71211         * config/srclistvars.sh (COREUTILS): Remove.
71212
71213 2006-08-22  Jim Meyering  <jim@meyering.net>
71214
71215         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71216
71217         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71218
71219 2006-08-22  Eric Blake  <ebb9@byu.net>
71220
71221         * modules/regexprops-generic: New file.
71222         * MODULES.html.sh (Support for building documentation): List it.
71223
71224 2006-08-22  Eric Blake  <ebb9@byu.net>
71225
71226         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71227         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71228         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71229         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71230
71231 2006-08-22  Bruno Haible  <bruno@clisp.org>
71232
71233         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71234         and lib_LTLIBRARIES like the other lib_* variables.
71235
71236 2006-08-22  Bruno Haible  <bruno@clisp.org>
71237
71238         * build-aux/x-to-1.in: New file, from GNU gettext.
71239
71240 2006-08-22  Bruno Haible  <bruno@clisp.org>
71241
71242         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71243         <utmpx.h> exists.
71244
71245 2006-08-22  Bruno Haible  <bruno@clisp.org>
71246
71247         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71248         <utmpx.h> exists.
71249
71250 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71251
71252         BeOS portability.
71253         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71254         exist.
71255         Problem reported by Bruno Haible.
71256
71257 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         Avoid the need for AC_LIBSOURCES in m4 macros.
71260         * modules/acl (EXTRA_DIST): Add acl.h.
71261         * modules/argmatch (Files): Add m4/argmatch.m4.
71262         (configure.ac): Add gl_ARGMATCH.
71263         (EXTRA_DIST): Renamed from lib_SOURCES, for
71264         consistency with the other modules.  Remove argmatch.c.
71265         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71266         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71267         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71268         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71269         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71270         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71271         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71272         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71273         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71274         * modules/closeout (EXTRA_DIST): Add closeout.h.
71275         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71276         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71277         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71278         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71279         dirname.h; remove basename.c and stripslash.c.
71280         * modules/exclude (EXTRA_DIST): Add exclude.h.
71281         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71282         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71283         * modules/file-type (EXTRA_DIST): Add file-type.h.
71284         * modules/filemode (EXTRA_DIST): Add filemode.h.
71285         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71286         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71287         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71288         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71289         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71290         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71291         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71292         * modules/getdate (EXTRA_DIST): Add getdate.c.
71293         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71294         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71295         * modules/getpass (EXTRA_DIST): Add getpass.h.
71296         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71297         * modules/group-member (EXTRA_DIST): Add group-member.h.
71298         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71299         * modules/hash (EXTRA_DIST): Add hash.h.
71300         * modules/human (EXTRA_DIST): Add human.h.
71301         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71302         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71303         * modules/lchown (EXTRA_DIST): Add lchown.h.
71304         * modules/long-options (EXTRA_DIST): Add long-options.h.
71305         * modules/lstat (EXTRA_DIST): Add lstat.h.
71306         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71307         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71308         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71309         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71310         * modules/memxor (EXTRA_DIST): Add memxor.h.
71311         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71312         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71313         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71314         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71315         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71316         * modules/physmem (EXTRA_DIST): Add physmem.h.
71317         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71318         * modules/posixver (EXTRA_DIST): Add posixver.h.
71319         * modules/quote (EXTRA_DIST): Add quote.h.
71320         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71321         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71322         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71323         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71324         regex_internal.h regexec.c.
71325         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71326         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71327         * modules/same (EXTRA_DIST): Add same.h.
71328         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71329         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71330         * modules/savedir (EXTRA_DIST): Add savedir.h.
71331         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71332         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71333         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71334         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71335         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71336         * modules/strdup (EXTRA_DIST): Add strdup.h.
71337         * modules/strftime (EXTRA_DIST): Add strftime.h.
71338         * modules/strndup (EXTRA_DIST): Add strndup.h.
71339         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71340         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71341         * modules/time_r (EXTRA_DIST): Add time_r.h.
71342         * modules/timespec (EXTRA_DIST): Add timespec.h.
71343         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71344         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71345         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71346         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71347         * modules/userspec (EXTRA_DIST): Add userspec.h.
71348         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71349         * modules/utimens (EXTRA_DIST): Add utimens.h.
71350         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71351         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71352         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71353         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71354         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71355         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71356         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71357         * modules/yesno (EXTRA_DIST): Add yesno.h.
71358
71359 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71360
71361         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71362
71363         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71364         * m4/dev-ino.m4, same-inode.m4: Remove.
71365
71366         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71367         * m4/acl.m4 (AC_FUNC_ACL):
71368         * m4/backupfile.m4 (gl_BACKUPFILE):
71369         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71370         * m4/canon-host.m4 (gl_CANON_HOST):
71371         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71373         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71374         * m4/cloexec.m4 (gl_CLOEXEC):
71375         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71376         * m4/closeout.m4 (gl_CLOSEOUT):
71377         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71378         * m4/dirname.m4 (gl_DIRNAME):
71379         * m4/exclude.m4 (gl_EXCLUDE):
71380         * m4/exitfail.m4 (gl_EXITFAIL):
71381         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71382         * m4/file-type.m4 (gl_FILE_TYPE):
71383         * m4/filemode.m4 (gl_FILEMODE):
71384         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71385         * m4/fpending.m4 (gl_FUNC_FPENDING):
71386         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71387         * m4/fts.m4 (gl_FUNC_FTS):
71388         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71389         * m4/getdate.m4 (gl_GETDATE):
71390         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71391         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71392         * m4/getpass.m4 (gl_FUNC_GETPASS):
71393         * m4/gettime.m4 (gl_GETTIME):
71394         * m4/getugroups.m4 (gl_GETUGROUPS):
71395         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71396         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71397         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71398         * m4/hash.m4 (gl_HASH):
71399         * m4/idcache.m4 (gl_IDCACHE):
71400         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71401         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71402         * m4/long-options.m4 (gl_LONG_OPTIONS):
71403         * m4/lstat.m4 (gl_FUNC_LSTAT):
71404         * m4/md5.m4 (gl_MD5):
71405         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71406         * m4/memcoll.m4 (gl_MEMCOLL):
71407         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71408         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71409         * m4/memxor.m4 (gl_MEMXOR):
71410         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71411         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71412         * m4/modechange.m4 (gl_MODECHANGE):
71413         * m4/mountlist.m4 (gl_MOUNTLIST):
71414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71415         * m4/openat.m4 (gl_FUNC_OPENAT):
71416         * m4/pathmax.m4 (gl_PATHMAX):
71417         * m4/physmem.m4 (gl_PHYSMEM):
71418         * m4/posixtm.m4 (gl_POSIXTM):
71419         * m4/posixver.m4 (gl_POSIXVER):
71420         * m4/quote.m4 (gl_QUOTE):
71421         * m4/quotearg.m4 (gl_QUOTEARG):
71422         * m4/readtokens.m4 (gl_READTOKENS):
71423         * m4/readutmp.m4 (gl_READUTMP):
71424         * m4/regex.m4 (gl_REGEX):
71425         * m4/safe-read.m4 (gl_SAFE_READ):
71426         * m4/safe-write.m4 (gl_SAFE_WRITE):
71427         * m4/same.m4 (gl_SAME):
71428         * m4/save-cwd.m4 (gl_SAVE_CWD):
71429         * m4/savedir.m4 (gl_SAVEDIR):
71430         * m4/settime.m4 (gl_SETTIME):
71431         * m4/sha1.m4 (gl_SHA1):
71432         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71433         * m4/stat-macros.m4 (gl_STAT_MACROS):
71434         * m4/stat-time.m4 (gl_STAT_TIME):
71435         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71436         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71437         * m4/strdup.m4 (gl_FUNC_STRDUP):
71438         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71439         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71440         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71441         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71442         * m4/time_r.m4 (gl_TIME_R):
71443         * m4/timespec.m4 (gl_TIMESPEC):
71444         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71445         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71446         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71447         * m4/userspec.m4 (gl_USERSPEC):
71448         * m4/utimecmp.m4 (gl_UTIMECMP):
71449         * m4/utimens.m4 (gl_UTIMENS):
71450         * m4/xalloc.m4 (gl_XALLOC):
71451         * m4/xgetcwd.m4 (gl_XGETCWD):
71452         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71453         * m4/xreadlink.m4 (gl_XREADLINK):
71454         * m4/xstrtod.m4 (gl_XSTRTOD):
71455         * m4/yesno.m4 (gl_YESNO):
71456         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71457         to get the necessary .h files and whatnot.
71458
71459 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71460             Bruno Haible  <bruno@clisp.org>
71461
71462         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71463         /bin/sh understanding of '!' conditional negation.
71464
71465 2006-08-21  Jim Meyering  <jim@meyering.net>
71466
71467         * modules/openat (Depends-on): Really alphabetize.
71468
71469         * modules/acl (Depends-on): Add error and quote.
71470
71471         * check-module (find_included_lib_files): Add at-func.c to the
71472         ok-to-include-more-than-once white list.
71473
71474         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71475
71476 2006-08-21  Bruno Haible  <bruno@clisp.org>
71477
71478         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71479         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71480         Reported by Martin Lambers <marlam@marlam.de>.
71481
71482 2006-08-21  Bruno Haible  <bruno@clisp.org>
71483
71484         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71485         specify an installation location, don't emit a noinst_LIBRARIES or
71486         noinst_LTLIBRARIES assignment.
71487
71488 2006-08-21  Bruno Haible  <bruno@clisp.org>
71489
71490         BeOS portability.
71491         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71492         BeOS has mbrtowc() but no <wctype.h>.
71493
71494 2006-08-21  Bruno Haible  <bruno@clisp.org>
71495
71496         BeOS portability.
71497         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71498         exist.
71499
71500 2006-08-21  Bruno Haible  <bruno@clisp.org>
71501
71502         BeOS portability.
71503         * lib/mbchar.h: Include <wctype.h> only if it exists.
71504
71505 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71506
71507         Remove files that are no longer needed by their respective modules.
71508         * m4/obstack.m4: Remove.
71509         * m4/strerror_r.m4: Remove.
71510         * m4/uint32_t.m4: Remove.
71511         * m4/uintptr_t.m4: Remove.
71512         * m4/ullong_max.m4: Remove.
71513         * m4/xstrtoimax.m4: Remove.
71514         * m4/xstrtoumax.m4: Remove.
71515
71516         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71517         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71518         dependencies now capture this.
71519
71520         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71521         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71522         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71523         * m4/human.m4 (gl_HUMAN): Likewise.
71524         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71525         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71526
71527         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71528
71529         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71530         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71531         stdint.
71532         * m4/human.m4 (gl_HUMAN): Likewise.
71533         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71534         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71535         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71536         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71537         * m4/xstrtol (gl_XSTRTOL): Likewise.
71538
71539         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71540         AC_TYPE_LONG_LONG_INT.
71541         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71542         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71543         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71544         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71545
71546         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71547         on stdbool.
71548
71549         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71550         (gl_PREREQ_XSTRTOUL): Remove.
71551
71552         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71553
71554         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71555         mode.
71556
71557 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71558
71559         Add and change modules to make it easier for coreutils to use
71560         gnulib-tool.
71561         * modules/backupfile (Files): Remove m4/d-ino.m4.
71562         (Depends-on): Add d-ino.
71563         * modules/cycle-check (Depends-on): Add stdint.
71564         (lib_SOURCES): Add cycle-check.h.
71565         * modules/d-ino: New module.
71566         * modules/d-type: New module.
71567         * modules/error (Files): Remove m4/strerror_r.m4.
71568         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71569         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71570         m4/inttypes_h.m4, m4/uintmax_t.m4.
71571         (Depends-on): Add stdint.
71572         (lib_SOURCES): Add fsusage.h.
71573         * modules/getcwd (Files): Remove d-ino.m4.
71574         (Depends-on): Add d-ino.
71575         * modules/getndelim2 (Depends-on): Add stdint.
71576         * modules/glob (Files): Remove m4/d-type.m4.
71577         (Depends-on): Add d-type.
71578         * modules/host-os: New module.
71579         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71580         m4/inttypes_h.m4, m4/uintmax_t.m4.
71581         * Depends-on: Add stdint.
71582         (lib_SOURCES): Add human.h.
71583         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71584         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71585         m4/uintmax_t.m4, m4/ulonglong.m4.
71586         (Depends-on): Add stdint.
71587         (EXTRA_DIST): Add inttostr.h.
71588         * modules/lchmod: New module.
71589         * modules/link-follow: New module.
71590         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71591         (Depends-on): Add lchmod.
71592         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71593         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71594         (Depends-on): Add stdint.
71595         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71596         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71597         (Depends-on): Add stdint.
71598         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71599         * modules/perl: New module.
71600         * modules/regex (Depends-on): Add stdint.
71601         * modules/rmdir-errno: New module.
71602         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71603         m4/intmax_t.m4.
71604         (Depends-on): Add stdint.
71605         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71606         m4/uintmax_t.m4.
71607         (Depends-on): Add stdint.
71608         * modules/unlink-busy: New module.
71609         * modules/utimecmp (Depends-on): Add stdint.
71610         * modules/uptime: New module.
71611         * modules/winsz-ioctl: New module.
71612         * modules/winsz-termios: New module.
71613         * modules/xnanosleep (Depends-on): Add nanosleep.
71614         * modules/ullong_max: Remove.
71615         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71616         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71617         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71618         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71619         (Depends-on): Add inttypes.
71620         (lib_SOURCES): Add xstrtol.h.
71621         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71622         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71623         * MODULES.html.sh: Move 'assert' into the assert section.
71624         Move 'dummy' into the linking section.
71625         Remove ullong_max.
71626         Add section for compatibility checks for POSIX:2001 functions,
71627         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71628         winsz-ioctl, and winsz-termios into it.
71629         Add lchmod.
71630         Add top-level Misc section and put host-os, perl, and uptime
71631         into it.
71632
71633 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71634
71635         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71636         now assume the stdint module.  Do not include inttypes.h.
71637         * lib/fsusage.h: Likewise.
71638         * lib/getndelim2.c: Likewise.
71639         * lib/human.h: Likewise.
71640         * lib/inttostr.h: Likewise.
71641         * lib/obstack.c: Likewise.
71642         * lib/regex_internal.h: Likewise.
71643         * lib/tempname.c: Likewise.
71644         * lib/utimecmp.c: Likewise.
71645         * lib/xstrtol.h: Likewise.
71646
71647         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71648
71649         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71650         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71651         * lib/xtime.h: Likewise.
71652
71653 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71654
71655         * modules/openat (Files): Add lib/fchmodat.c.
71656         Fixes problem reported by Jay Youngman.
71657
71658 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71661         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71662
71663 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71664             Bruno Haible  <bruno@clisp.org>
71665
71666         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71667         and is a script that invokes bison. Tighten the code. Add comments.
71668
71669 2006-08-18  Jim Meyering  <jim@meyering.net>
71670
71671         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71672         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71673         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71674         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71675
71676 2006-08-18  Bruno Haible  <bruno@clisp.org>
71677
71678         * modules/bison-i18n: New file.
71679         * MODULES.html.sh (Internationalization functions): Add it.
71680
71681 2006-08-18  Bruno Haible  <bruno@clisp.org>
71682
71683         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71684         sys/statvfs.h. When getmntinfo was found, check its declaration and
71685         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71686
71687 2006-08-18  Bruno Haible  <bruno@clisp.org>
71688
71689         * m4/bison-i18n.m4: New file, from bison.
71690
71691 2006-08-18  Bruno Haible  <bruno@clisp.org>
71692
71693         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71694         (ME_DUMMY): Treat "kernfs" as a dummy.
71695         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71696
71697 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71698
71699         Update from coreutils.
71700
71701         2006-08-15  Jim Meyering  <jim@meyering.net>
71702
71703         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71704
71705         2006-01-17  Jim Meyering  <jim@meyering.net>
71706
71707         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71708
71709         2006-01-11  Jim Meyering  <jim@meyering.net>
71710
71711         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71712         Check for the lchmod function.
71713
71714 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71715
71716         Update from coreutils.
71717
71718         * lib/__fpending.h: Add copyright notice.
71719         * lib/fprintftime.h: Likewise.
71720         * lib/savedir.c: Use (C) in copyright notice.
71721         * lib/savedir.h: Likewise.
71722
71723         2006-08-15  Jim Meyering  <jim@meyering.net>
71724
71725         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71726         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71727         in support of the EXPECTED_ERRNO macro.
71728         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71729         definitions.  Instead, define the appropriate symbols and include
71730         "at-func.c".
71731         * lib/mkdirat.c (mkdirat): Likewise.
71732         * lib/fchmodat.c (fchmodat): Likewise.
71733         (ENOSYS): Remove definition.
71734         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71735         it.  Don't include "unistd--.h" -- it wasn't ever used.
71736
71737         2006-01-17  Jim Meyering  <jim@meyering.net>
71738
71739         Rewrite fts.c not to change the current working directory,
71740         by using openat, fstatat, fdopendir, etc..
71741
71742         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71743         (HAVE_OPENAT_SUPPORT): Define.
71744         [_LIBC] (fchdir): Don't undef or define; no longer used.
71745         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71746         Now, this `function' always succeeds, and consumes its file descriptor
71747         parameter -- so callers must not close such FDs.  Update callers.
71748         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71749         (diropen): Add parameter, SP.  Adjust all callers.
71750         Implement using diropen_fd, rather than open.
71751         (fts_open): Initialize new member, fts_cwd_fd.
71752         Remove fts_rft-setting code.
71753         (fts_close): Close fts_cwd_fd, if necessary.
71754         (__opendir2): Define in terms of opendir or opendirat,
71755         depending on whether the FST_NOCHDIR flag is set.
71756         (fts_build): Since fts_safe_changedir consumes its FD, and since
71757         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71758         and close the dup'd file descriptor upon failure.
71759         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71760         (fts_safe_changedir): Tweak semantics to reflect that this function
71761         now calls cwd_advance_fd and hence consumes its FD argument.
71762         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71763         [struct FTS] (fts_rft): Remove now-unused member.
71764         [struct FTS] (fts_cycle.state): Improve comment.
71765
71766         * lib/openat.c (openat_needs_fchdir): New function.
71767         * lib/openat.h (openat_needs_fchdir): Declare it.
71768
71769 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71770
71771         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71772         Problem and fix reported by Pádraig Brady in
71773         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71774
71775 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71776
71777         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71778
71779 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71780
71781         * lib/memcoll.c (memcoll): Optimize for the common case where the
71782         arguments are bytewise equal.
71783
71784 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         * doc/regexprops-generic.texi: Add a copyright notice.
71787
71788 2006-08-15  Bruno Haible  <bruno@clisp.org>
71789
71790         * modules/tmpdir (License): Change to LGPL.
71791
71792 2006-08-15  Bruno Haible  <bruno@clisp.org>
71793
71794         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71795         module.
71796
71797 2006-08-14  Simon Josefsson  <jas@extundo.com>
71798
71799         * config/srclist.txt: Add gnupload.
71800
71801 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71802
71803         Change copyright notice from LGPL 2 to GPL 2, since that's the
71804         standard form used in the gnulib repository.
71805         * tests/test-lock.c: Likewise.
71806         * tests/test-stdint.c: Likewise.
71807         * tests/test-tls.c: Likewise.
71808
71809         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71810         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71811         Add copyright notice.
71812
71813         * check-module: Add copyright notice.  Output a copyright
71814         notice if "--version" is specified.
71815         * modules/COPYING: New file.
71816         * tests/test-getaddrinfo.c: Add copyright notice.
71817         * tests/test-verify.c: Likewise.
71818
71819 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71820
71821         Change copyright notice from LGPL 2 to GPL 2, since that's the
71822         standard form used in the gnulib repository.
71823         * lib/lock.c: LGPL -> GPL.
71824         * lib/lock.h: Likewise.
71825         * lib/strnlen1.c: Likewise.
71826         * lib/strnlen1.h: Likewise.
71827         * lib/tls.c: Likewise.
71828         * lib/tls.h: Likewise.
71829         * lib/tmpdir.c: Likewise.
71830
71831         * lib/TODO: Remove; this belongs only in coreutils.
71832
71833 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         Add copyright notices to long-enough files that lack them, since
71836         otherwise the files aren't clearly free.  Use the same notice that
71837         getdate.texi already uses.
71838         * doc/alloca-opt.texi: Add copyright notice.
71839         * doc/alloca.texi: Likewise.
71840         * doc/ctime.texi: Likewise.
71841         * doc/functions.texi: Likewise.
71842         * doc/gcd.texi: Likewise.
71843         * doc/gnulib-tool.texi: Likewise.
71844         * doc/inet_ntoa.texi: Likewise.
71845         * doc/visibility.texi: Likewise.
71846
71847         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71848         * doc/quote.texi: Add copyright notice.
71849
71850         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71851         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71852         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71853         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71854         is now obsolete, and give a pointer to the Sun list.
71855         Add copyright notice.
71856
71857 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71858
71859         * config/srclistvars.sh: Add copyright notice.
71860
71861 2006-08-14  Eric Blake  <ebb9@byu.net>
71862
71863         Import the following change from libc:
71864
71865         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71866
71867         Upstream bug 2997.
71868         * lib/misc/error.c: Add space between program name and message if file
71869         name is missing.
71870
71871 2006-08-12  Karl Berry  <karl@gnu.org>
71872
71873         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71874         remove, these originate in gnulib now.
71875
71876 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71877
71878         * doc/Makefile (standards.info standards.html standards.dvi):
71879         Also depend on make-stds.texi.
71880
71881 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71882
71883         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71884         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71885
71886         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71887         in wchar_t.  Problem reported by Eric Blake.
71888
71889         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71890         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71891         Also, help the compiler to keep LEN in a register.
71892
71893 2006-08-11  Eric Blake  <ebb9@byu.net>
71894
71895         * users.txt: Sort.  Add tar.
71896
71897 2006-08-11  Bruno Haible  <bruno@clisp.org>
71898
71899         * users.txt: New file.
71900
71901 2006-08-11  Bruno Haible  <bruno@clisp.org>
71902
71903         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71904         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71905
71906 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71907
71908         * modules/snprintf (Depends-on): Remove minmax.
71909         (Maintainer): Add self and Bruno.
71910
71911 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71912
71913         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71914         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71915         (EOVERFLOW): Define if the system does not.
71916         Do not include "minmax.h"; it wasn't used.
71917         (snprintf): Don't assume size_t promotes to an unsigned type.
71918         Fix bug when generated string was too long for the buffer: the
71919         buffer's contents are supposed to be the initial prefix of the
71920         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71921         exceeds INT_MAX; do the check ourselves.
71922
71923         Import the following changes from libc:
71924
71925         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71926
71927         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71928         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71929         set wc to the byte which couldn't be converted.
71930         (re_string_reconstruct): Don't clear valid_raw_len before calling
71931         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71932         tip_context using re_string_context_at.
71933
71934         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71935
71936         * lib/posix/regex.h: g++ still cannot handled [restrict].
71937
71938         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71939
71940         * lib/posix/regex.h: Remove special handling for VMS.
71941
71942 2006-08-10  Jim Meyering  <jim@meyering.net>
71943
71944         * modules/same-inode: New module.
71945         * modules/dev-ino: New module.
71946         * modules/cycle-check: Depend on these modules, rather than simply
71947         including their .h files.
71948         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71949         required via m4/cycle-check.m4.
71950         * modules/same: Depend on new same-inode module, rather than
71951         including same-inode.h.
71952         * modules/chdir-safer: New file.
71953
71954         * modules/chown (Depends-on): Add stat-macros.
71955
71956 2006-08-10  Jim Meyering  <jim@meyering.net>
71957
71958         * m4/cycle-check.m4: New file.
71959         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71960         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71961
71962 2006-08-10  Eric Blake  <ebb9@byu.net>
71963
71964         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71965         in from original proposal.
71966
71967 2006-08-10  Eric Blake  <ebb9@byu.net>
71968         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71969
71970         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71971         namespace.
71972
71973 2006-08-10  Bruno Haible  <bruno@clisp.org>
71974
71975         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71976         as well.
71977
71978 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71979
71980         Sync from coreutils.
71981
71982         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71983
71984         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71985         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71986
71987 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71988
71989         * modules/restrict: Remove; no longer needed now that we assume
71990         Autoconf 2.59 or later.
71991         * MODULES.html.sh: Remove 'restrict'.
71992         * modules/argp (Depends-on): Remove 'restrict'.
71993         * modules/base64 (Depends-on): Likewise.
71994         * modules/gc (Depends-on): Likewise.
71995         * modules/getaddrinfo (Depends-on): Likewise.
71996         * modules/glob (Depends-on): Likewise.
71997         * modules/inet_ntop (Depends-on): Likewise.
71998         * modules/inet_pton (Depends-on): Likewise.
71999         * modules/memxor (Depends-on): Likewise.
72000         * modules/regex (Depends-on): Likewise.
72001         * modules/strtok_r (Depends-on): Likewise.
72002         * modules/time_r (Depends-on): Likewise.
72003
72004 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72005
72006         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72007         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72008         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72009         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72010         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72011         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72012         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72013         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72014
72015         Merge from coreutils.
72016         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72017         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72018         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72019         * m4/time_r.m4 (gl_TIME_R): Likewise.
72020
72021 2006-08-09  Karl Berry  <karl@gnu.org>
72022
72023         * config/srclist.txt: no more gettext-tools, per Bruno.
72024
72025 2006-08-08  Eric Blake  <ebb9@byu.net>
72026
72027         * modules/verror: New module.
72028         * MODULES.html.sh: Document it.
72029
72030 2006-08-08  Eric Blake  <ebb9@byu.net>
72031
72032         * lib/verror.h, lib/verror.c: New files.
72033
72034 2006-08-08  Eric Blake  <ebb9@byu.net>
72035
72036         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72037         verror_at_line output complies with GNU Coding Standards even when
72038         file is NULL.
72039
72040 2006-08-07  Bruno Haible  <bruno@clisp.org>
72041
72042         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72043         versions of AIX.
72044         Reported by Ralf Wildenhues.
72045
72046 2006-08-07  Bruno Haible  <bruno@clisp.org>
72047
72048         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72049         in an AC_DEFUN. Needed so that the autoconf snippets can use
72050         AC_REQUIRE.
72051
72052 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72053
72054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72055         Initialize pkgdata_DATA.
72056         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72057         overriding it.
72058
72059 2006-08-06  Eric Blake  <ebb9@byu.net>
72060
72061         * lib/error.h: Fold in some upstream changes from glibc.
72062         * lib/error.c: Likewise.
72063
72064 2006-08-04  Bruno Haible  <bruno@clisp.org>
72065
72066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72067         Make the mostlyclean-local rule depend on mostlyclean-generic.
72068         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72069
72070 2006-07-31  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72073         <stdlib.h>, <string.h>.
72074
72075 2006-07-30  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/readlink (License): Change to LGPL.
72078
72079 2006-07-30  Bruno Haible  <bruno@clisp.org>
72080
72081         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72082         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72083         set PKGDATADIR to point to it.
72084
72085 2006-07-30  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/csharpexec (configure.ac): Comment out macro invocation.
72088         * modules/javaexec (configure.ac): Likewise.
72089         * modules/javacomp-script (configure.ac): Likewise.
72090
72091         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72092
72093 2006-07-30  Bruno Haible  <bruno@clisp.org>
72094
72095         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72096         linked-list.
72097
72098 2006-07-30  Bruno Haible  <bruno@clisp.org>
72099
72100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72101
72102 2006-07-30  Bruno Haible  <bruno@clisp.org>
72103
72104         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72105         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72106         get removed.
72107
72108 2006-07-29  Bruno Haible  <bruno@clisp.org>
72109
72110         Make it possible for gnulib-tool to work with locally modified or
72111         augmented gnulib repositories.
72112         * gnulib-tool (func_usage): Document --local-dir option.
72113         (local_gnulib_dir): New variable.
72114         Handle --local-dir option.
72115         (func_lookup_file): New function.
72116         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72117         (func_get_description, func_get_filelist, func_get_description,
72118         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72119         func_get_automake_snippet, func_get_include_directive,
72120         func_get_license, func_get_maintainer): Use func_lookup_file.
72121         (func_import, func_create_testdir): Use func_lookup_file.
72122
72123 2006-07-29  Bruno Haible  <bruno@clisp.org>
72124
72125         * modules/setenv (Depends-on): Add unistd.
72126
72127 2006-07-29  Bruno Haible  <bruno@clisp.org>
72128
72129         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72130
72131 2006-07-29  Bruno Haible  <bruno@clisp.org>
72132
72133         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72134
72135 2006-07-29  Bruno Haible  <bruno@clisp.org>
72136
72137         * gnulib-tool (import, update): If there is no Makefile.am, look at
72138         aclocal.m4, instead of bailing out.
72139
72140 2006-07-29  Bruno Haible  <bruno@clisp.org>
72141
72142         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72143         Categorize the options by when they are useful.
72144
72145 2006-07-29  Bruno Haible  <bruno@clisp.org>
72146
72147         * gnulib-tool (func_usage): Document option --no-libtool.
72148         Handle option --no-libtool.
72149         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72150         for changed semantics of $libtool variable.
72151         (func_import): Likewise. If libtool is not used, show this through
72152         an option --no-libtool.
72153         (func_create_testdir): Update.
72154
72155 2006-07-29  Bruno Haible  <bruno@clisp.org>
72156
72157         * gnulib-tool (func_import): Extend error message about missing
72158         --doc-base.
72159
72160 2006-07-29  Bruno Haible  <bruno@clisp.org>
72161
72162         * gnulib-tool (func_import): Don't create the $docbase directory if
72163         there is no file to store there.
72164
72165 2006-07-29  Bruno Haible  <bruno@clisp.org>
72166
72167         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72168         relevant, look for configure.ac there, not in the current directory.
72169         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72170
72171 2006-07-29  Bruno Haible  <bruno@clisp.org>
72172
72173         * gnulib-tool (SORT): New variable.
72174         (func_usage): Undocument --assume-autoconf option.
72175         Remove --assume-autoconf option handling.
72176         (autoconf_minversion): Determine from the contents of configure.ac.
72177         (func_import): Remove autoconf_minversion handling.
72178         Suggested by Eric Blake.
72179
72180 2006-07-29  Bruno Haible  <bruno@clisp.org>
72181
72182         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72183
72184 2006-07-29  Bruno Haible  <bruno@clisp.org>
72185
72186         * config/srclist.txt (*setenv.[ch]): Remove rules.
72187
72188 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72189
72190         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72191
72192 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72193
72194         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72195         arpa/inet.h.
72196
72197 2006-07-28  Simon Josefsson  <jas@extundo.com>
72198
72199         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72200         * modules/inet_pton (Depends-on): Likewise.
72201
72202 2006-07-28  Simon Josefsson  <jas@extundo.com>
72203
72204         * m4/netinet_in_h.m4: New file.
72205
72206 2006-07-28  Simon Josefsson  <jas@extundo.com>
72207
72208         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72209         #include's.
72210
72211 2006-07-28  Simon Josefsson  <jas@extundo.com>
72212
72213         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72214         #include's.
72215
72216 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72217
72218         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72219         setgid on directories only if they set these bits.
72220         * lib/modechange.h: Remove obsolete comment about masks.
72221
72222 2006-07-28  Eric Blake  <ebb9@byu.net>
72223
72224         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72225         macro expansion.
72226
72227 2006-07-28  Bruno Haible  <bruno@clisp.org>
72228
72229         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72230
72231 2006-07-28  Bruno Haible  <bruno@clisp.org>
72232
72233         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72234
72235 2006-07-28  Bruno Haible  <bruno@clisp.org>
72236
72237         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72238         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72239         Define fallbacks.
72240         Avoids link error on FreeBSD 4.x.
72241         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72242
72243         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72244         encoding.
72245         * lib/mbswidth.c (iswcntrl): Likewise.
72246
72247 2006-07-27  Bruno Haible  <bruno@clisp.org>
72248
72249         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72250         test.
72251
72252 2006-07-27  Bruno Haible  <bruno@clisp.org>
72253
72254         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72255         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72256         defined.
72257
72258 2006-07-26  Eric Blake  <ebb9@byu.net>
72259
72260         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72261
72262 2006-07-26  Eric Blake  <ebb9@byu.net>
72263
72264         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72265         like mingw that lack mkstemp.
72266         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72267         avoid compilation warning on mingw.
72268
72269 2006-07-26  Bruno Haible  <bruno@clisp.org>
72270
72271         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72272         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72273         INT_FAST*_MIN, INTPTR_MIN.
72274
72275 2006-07-25  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/version-etc (Depends-on): Add stdarg.
72278
72279 2006-07-25  Bruno Haible  <bruno@clisp.org>
72280
72281         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72282         complex commands.
72283
72284 2006-07-25  Bruno Haible  <bruno@clisp.org>
72285
72286         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72287         defined in <stdarg.h> or config.h.
72288
72289 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72292         (gl_STDIO_SAFER): Remove.
72293
72294 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72295
72296         * MODULES.html.sh (File stream based Input/Output):
72297         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72298         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72299         * modules/fopen-safer, modules/tmpfile-safer: New files.
72300         * modules/stdio-safer: Remove.
72301
72302 2006-07-24  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/tmpdir: New file.
72305         * MODULES.html.sh (File system functions): Add it.
72306
72307 2006-07-24  Bruno Haible  <bruno@clisp.org>
72308
72309         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72310         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72311
72312 2006-07-24  Bruno Haible  <bruno@clisp.org>
72313
72314         * modules/clean-temp: New file.
72315
72316 2006-07-24  Bruno Haible  <bruno@clisp.org>
72317
72318         * m4/tmpdir.m4: New file, from GNU gettext.
72319
72320 2006-07-24  Bruno Haible  <bruno@clisp.org>
72321
72322         * lib/tmpdir.h: New file, from GNU gettext.
72323         * lib/tmpdir.c: New file, from GNU gettext.
72324
72325 2006-07-24  Bruno Haible  <bruno@clisp.org>
72326
72327         * lib/clean-temp.h: New file, from GNU gettext.
72328         * lib/clean-temp.c: New file, from GNU gettext.
72329
72330 2006-07-23  Eric Blake  <ebb9@byu.net>
72331
72332         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72333         (Depends-on): Add binary-io.
72334
72335 2006-07-23  Eric Blake  <ebb9@byu.net>
72336
72337         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72338
72339 2006-07-23  Eric Blake  <ebb9@byu.net>
72340
72341         * lib/tmpfile-safer.c: New file.
72342         * lib/stdio-safer.h (fopen_safer): Add prototype.
72343         * lib/stdio--.h (tmpfile): Make safer.
72344
72345 2006-07-23  Bruno Haible  <bruno@clisp.org>
72346
72347         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72348         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72349         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72350         gl_linked_remove_at): Use it.
72351
72352 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72353         and Simon Josefsson <jas@extundo.com>
72354
72355         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72356
72357         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72358
72359 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72360
72361         * modules/close-stream: New file.
72362         * modules/closeout (Description): Make it clear that it exits
72363         with a diagnostic on error.
72364         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72365         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72366
72367 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72368
72369         * m4/close-stream.m4: New file.
72370
72371 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * lib/close-stream.c, lib/close-stream.h: New files.
72374
72375 2006-07-22  Bruno Haible  <bruno@clisp.org>
72376
72377         Merge from GNU gettext 0.15.
72378
72379         2006-05-01  Bruno Haible  <bruno@clisp.org>
72380
72381                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72382
72383         2006-07-22  Bruno Haible  <bruno@clisp.org>
72384
72385                 * modules/javaversion: New file.
72386                 * MODULES.html.sh (Java): Add javaversion.
72387
72388         2006-03-12  Bruno Haible  <bruno@clisp.org>
72389
72390                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72391
72392         2005-12-04  Bruno Haible  <bruno@clisp.org>
72393
72394                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72395                 (untested).
72396
72397         2006-06-21  Bruno Haible  <bruno@clisp.org>
72398
72399                 Avoid warnings from recent versions of mcs.
72400                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72401                 -o, -L, -r any more. Use options documented since mcs-1.0
72402                 instead. Similarly for -g.
72403
72404         2005-12-04  Bruno Haible  <bruno@clisp.org>
72405
72406                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72407                 .resources, not .resource.
72408
72409         2005-07-09  Bruno Haible  <bruno@clisp.org>
72410
72411                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72412                 add a .dll suffix.
72413                 Reported by Mark Junker <mjscod@gmx.de>.
72414
72415         2006-07-22  Bruno Haible  <bruno@clisp.org>
72416
72417                 * modules/gettext: Upgrade to gettext-0.15.
72418                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72419                 m4/visibility.m4.
72420                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72421
72422 2006-07-22  Bruno Haible  <bruno@clisp.org>
72423
72424         Merge from GNU gettext 0.15.
72425
72426         2006-03-25  Bruno Haible  <bruno@clisp.org>
72427
72428                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72429
72430         2006-07-21  Bruno Haible  <bruno@clisp.org>
72431
72432                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72433                 "1.1".
72434
72435         2006-05-09  Bruno Haible  <bruno@clisp.org>
72436
72437                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72438                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72439                 for the conftestver execution.
72440
72441         2006-05-01  Bruno Haible  <bruno@clisp.org>
72442
72443                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72444                 optional target-version argument. Verify that the compiler
72445                 groks source of the specified source-version, or add -source
72446                 option as necessary. Verify that the compiler produces
72447                 bytecode in the specified target-version, or add -target and
72448                 -source options as necessary. Make the result of the test
72449                 available as variable CONF_JAVAC. Also log error output in
72450                 config.log.
72451
72452         2006-03-11  Bruno Haible  <bruno@clisp.org>
72453
72454                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72455
72456         2006-05-09  Bruno Haible  <bruno@clisp.org>
72457
72458                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72459                 CLASSPATH_SEPARATOR to a semicolon.
72460
72461         2006-03-12  Bruno Haible  <bruno@clisp.org>
72462
72463                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72464                 available as variable CONF_JAVA, for subsequent autoconf
72465                 tests. Also log error output in config.log.
72466
72467         2006-07-19  Bruno Haible  <bruno@clisp.org>
72468
72469                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72470                 that getline works on glibc2 systems. Needed to avoid trouble
72471                 in relocatable.c.
72472                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72473
72474         2005-12-04  Bruno Haible  <bruno@clisp.org>
72475
72476                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72477                 launcher (untested).
72478
72479         2005-12-04  Bruno Haible  <bruno@clisp.org>
72480
72481                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72482
72483         2006-07-22  Bruno Haible  <bruno@clisp.org>
72484
72485                 * gettext.m4: Update from GNU gettext-0.15.
72486                 * nls.m4: Likewise.
72487                 * po.m4: Likewise.
72488                 * inttypes-pri.m4: Likewise.
72489                 * inttypes-h.m4: Renamed from inttypes.m4.
72490                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72491
72492 2006-07-22  Bruno Haible  <bruno@clisp.org>
72493
72494         Merge from GNU gettext 0.15.
72495
72496         2005-07-05  Bruno Haible  <bruno@clisp.org>
72497
72498                 * printf-args.c (printf_fetchargs): Work around broken
72499                 definition of wint_t on mingw.
72500
72501         2005-02-12  Bruno Haible  <bruno@clisp.org>
72502
72503                 * xallocsa.h: Add extern "C" for C++.
72504
72505         2006-05-17  Bruno Haible  <bruno@clisp.org>
72506
72507                 Cygwin portability.
72508                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72509
72510         2006-04-30  Bruno Haible  <bruno@clisp.org>
72511
72512                 * progreloc.c: Include <mach-o/dyld.h> if available.
72513                 (find_executable): Use _NSGetExecutablePath when possible.
72514
72515         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72516
72517                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72518                 function.
72519
72520         2005-12-29  Bruno Haible  <bruno@clisp.org>
72521
72522                 * progreloc.c (set_program_name_and_installdir): Fix
72523                 compilation error.
72524
72525         2005-12-04  Bruno Haible  <bruno@clisp.org>
72526
72527                 Cygwin portability.
72528                 * progreloc.c: Include <windows.h> also on Cygwin.
72529                 (find_executable): Add support for Cygwin.
72530                 (set_program_name_and_installdir): Handle also platforms with
72531                 nonempty EXEEXT.
72532
72533         2006-07-11  Bruno Haible  <bruno@clisp.org>
72534
72535                 * javacomp.c: Fix a comment.
72536                 Reported by Jim Meyering.
72537
72538         2006-04-30  Bruno Haible  <bruno@clisp.org>
72539
72540                 * javacomp.h (compile_java_class): Add source_version,
72541                 target_version arguments.
72542                 * javacomp.c: Rewritten to choose only a compiler that
72543                 respects the specified source_version and target_version.
72544
72545         2006-06-27  Bruno Haible  <bruno@clisp.org>
72546
72547                 Assume correct S_ISDIR macro.
72548                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72549
72550         2006-07-22  Bruno Haible  <bruno@clisp.org>
72551
72552                 * javaversion.h: New file, from GNU gettext.
72553                 * javaversion.c: New file, from GNU gettext.
72554                 * javaversion.java: New file, from GNU gettext.
72555                 * javaversion.class: New file, from GNU gettext.
72556
72557         2006-05-17  Bruno Haible  <bruno@clisp.org>
72558
72559                 Cygwin portability.
72560                 * javaexec.c (execute_java_class): Test for jview program
72561                 also on Cygwin.
72562
72563         2006-04-09  Bruno Haible  <bruno@clisp.org>
72564
72565                 * fatal-signal.c: Don't include string.h.
72566                 (at_fatal_signal): Use a copying loop instead of memcpy.
72567
72568         2005-12-04  Bruno Haible  <bruno@clisp.org>
72569
72570                 * csharpexec.c: Add support for 'clix' launcher (untested).
72571                 (execute_csharp_using_sscli): New function.
72572                 (execute_csharp_program): Call it.
72573
72574         2006-06-21  Bruno Haible  <bruno@clisp.org>
72575
72576                 Avoid warnings from recent versions of mcs.
72577                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72578                 -o, -L, -r any more. Use options documented since mcs-1.0
72579                 instead. Similarly for -g.
72580
72581         2005-07-09  Bruno Haible  <bruno@clisp.org>
72582
72583                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72584                 add a .dll suffix.
72585                 Reported by Mark Junker <mjscod@gmx.de>.
72586
72587         2006-06-17  Bruno Haible  <bruno@clisp.org>
72588
72589                 * config.charset: Update for NetBSD 3.0.
72590
72591         2006-05-17  Bruno Haible  <bruno@clisp.org>
72592
72593                 Cygwin portability.
72594                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72595
72596         2006-05-16  Bruno Haible  <bruno@clisp.org>
72597
72598                 * localcharset.c [CYGWIN]: Include <windows.h>.
72599                 (get_charset_aliases): For Cygwin, return the same CPxxx
72600                 aliases list as under WIN32.
72601                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72602                 the environment variables. Fall back to GetACP().
72603
72604         2006-04-05  Bruno Haible  <bruno@clisp.org>
72605
72606                 * config.charset: Update Juan Manuel Guerrero's address.
72607
72608         2005-02-12  Bruno Haible  <bruno@clisp.org>
72609
72610                 * allocsa.h: Add extern "C" for C++.
72611
72612         2005-02-10  Bruno Haible  <bruno@clisp.org>
72613
72614                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72615                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72616
72617         2006-07-22  Bruno Haible  <bruno@clisp.org>
72618
72619                 * gettext.h: Update to GNU gettext-0.15.
72620
72621 2006-07-22  Bruno Haible  <bruno@clisp.org>
72622
72623         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72624         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72625         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72626
72627 2006-07-21  Eric Blake  <ebb9@byu.net>
72628
72629         * modules/stdlib-safer: New file.
72630         * MODULES.html.sh (File stream based Input/Output): Add
72631         stdlib-safer.
72632
72633 2006-07-21  Eric Blake  <ebb9@byu.net>
72634
72635         * lib/stdlib-safer.h: New file from coreutils, required by
72636         stdlib--.h.
72637
72638 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72639
72640         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72641
72642 2006-07-20  Bruno Haible  <bruno@clisp.org>
72643
72644         * gnulib-tool: Recognize new option --assume-autoconf.
72645         (autoconf_minversion): New variable.
72646         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72647
72648 2006-07-20  Bruno Haible  <bruno@clisp.org>
72649
72650         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72651
72652 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72653
72654         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72655         Reindent and repaginate.
72656
72657 2006-07-19  Derek Price  <derek@ximbiot.com>
72658
72659         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72660         Correct grammar.
72661
72662 2006-07-17  Bruno Haible  <bruno@clisp.org>
72663
72664         * modules/list: New file.
72665         * modules/array-list: New file.
72666         * modules/carray-list, modules/carray-list-tests: New files.
72667         * modules/linked-list, modules/linked-list-tests: New files.
72668         * modules/avltree-list, modules/avltree-list-tests: New files.
72669         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72670         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72671         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72672         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72673         * modules/oset: New file.
72674         * modules/array-oset: New file.
72675         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72676         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72677         * tests/test-carray_list.c: New file.
72678         * tests/test-linked_list.c: New file.
72679         * tests/test-avltree_list.c: New file.
72680         * tests/test-rbtree_list.c: New file.
72681         * tests/test-linkedhash_list.c: New file.
72682         * tests/test-avltreehash_list.c: New file.
72683         * tests/test-rbtreehash_list.c: New file.
72684         * tests/test-avltree_oset.c: New file.
72685         * tests/test-rbtree_oset.c: New file.
72686         * MODULES.html.sh (Container data structures): New section.
72687
72688 2006-07-17  Bruno Haible  <bruno@clisp.org>
72689
72690         * m4/gl_list.m4: New file.
72691
72692 2006-07-17  Bruno Haible  <bruno@clisp.org>
72693
72694         * lib/gl_list.h: New file.
72695         * lib/gl_list.c: New file.
72696         * lib/gl_array_list.h: New file.
72697         * lib/gl_array_list.c: New file.
72698         * lib/gl_carray_list.h: New file.
72699         * lib/gl_carray_list.c: New file.
72700         * lib/gl_linked_list.h: New file.
72701         * lib/gl_linked_list.c: New file.
72702         * lib/gl_anylinked_list1.h: New file.
72703         * lib/gl_anylinked_list2.h: New file.
72704         * lib/gl_avltree_list.h: New file.
72705         * lib/gl_avltree_list.c: New file.
72706         * lib/gl_anyavltree_list1.h: New file.
72707         * lib/gl_anyavltree_list2.h: New file.
72708         * lib/gl_rbtree_list.h: New file.
72709         * lib/gl_rbtree_list.c: New file.
72710         * lib/gl_anyrbtree_list1.h: New file.
72711         * lib/gl_anyrbtree_list2.h: New file.
72712         * lib/gl_anytree_list1.h: New file.
72713         * lib/gl_anytree_list2.h: New file.
72714         * lib/gl_linkedhash_list.h: New file.
72715         * lib/gl_linkedhash_list.c: New file.
72716         * lib/gl_anyhash_list1.h: New file.
72717         * lib/gl_anyhash_list2.h: New file.
72718         * lib/gl_avltreehash_list.h: New file.
72719         * lib/gl_avltreehash_list.c: New file.
72720         * lib/gl_rbtreehash_list.h: New file.
72721         * lib/gl_rbtreehash_list.c: New file.
72722         * lib/gl_anytreehash_list1.h: New file.
72723         * lib/gl_anytreehash_list2.h: New file.
72724
72725         * lib/gl_oset.h: New file.
72726         * lib/gl_oset.c: New file.
72727         * lib/gl_array_oset.h: New file.
72728         * lib/gl_array_oset.c: New file.
72729         * lib/gl_avltree_oset.h: New file.
72730         * lib/gl_avltree_oset.c: New file.
72731         * lib/gl_rbtree_oset.h: New file.
72732         * lib/gl_rbtree_oset.c: New file.
72733         * lib/gl_anytree_oset.h: New file.
72734
72735 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72736
72737         * m4/mkancesdirs.m4: New file.
72738         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72739         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72740         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72741         it.
72742
72743 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72744
72745         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72746         * lib/mkancesdirs.h: New files.
72747         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72748         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72749         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72750         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72751         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72752         callers changed.  Revamp internals significantly, by not
72753         attempting to create directories that are temporarily more
72754         permissive than the final results.  Do not attempt to use
72755         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72756         This removes some race conditions, fixes some bugs, and simplifies
72757         things.  Use new dirchownmod function to do owner and mode changes.
72758         * lib/mkdir-p.h: Likewise.
72759         * lib/modechange.c (octal_to_mode): New function.
72760         (struct mode_change): New member mentioned.
72761         (make_node_op_equals): New arg mentioned.  All callers changed.
72762         (mode_compile): Keep track of which mode bits the user has explicitly
72763         mentioned.
72764         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72765         New arg PMODE_BITS, to keep track of which mode bits the user
72766         mentioned; it treats S_ISUID and S_ISGID speciall.
72767         All callers changed.
72768         * lib/modechange.h: Likewise.
72769
72770 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72771
72772         * MODULES.html.sh: Add mkancestors.
72773         * modules/mkancesdirs: New module.
72774         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72775         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72776         The chdir-safer and afs files are now orphans; I'll remove them
72777         unless someone speaks up.
72778         Add lib/dirchownmod.c, lib/dirchownmod.h.
72779         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72780         Add lchown, mkancesdirs.
72781         (Maintainer): Add self.
72782
72783 2006-07-15  Karl Berry  <karl@gnu.org>
72784
72785         * gnulib-tool: help message wording/arrangement.
72786
72787 2006-07-14  Simon Josefsson  <jas@extundo.com>
72788
72789         * doc/gnulib.texi (Libtool and Windows): New section.
72790
72791 2006-07-12  Simon Josefsson  <jas@extundo.com>
72792
72793         * modules/gendocs (License): Fix license, approved by Karl.
72794
72795 2006-07-12  Eric Blake  <ebb9@byu.net>
72796
72797         * MODULES.html.sh: Add gendocs.
72798
72799 2006-07-11  Eric Blake  <ebb9@byu.net>
72800
72801         * modules/fdl: New module, to install doc/fdl.texi.
72802         * MODULES.html.sh: Add new section for documentation modules.
72803         * gnulib-tool: Avoid space-tab.
72804         (--doc-base): New option, to manage files from doc.
72805
72806 2006-07-11  Eric Blake  <ebb9@byu.net>
72807
72808         * m4/absolute-header.m4: Fix comments to match recent change.
72809
72810 2006-07-11  Eric Blake  <ebb9@byu.net>
72811
72812         * gnulib-tool: List --doc-base before --tests-base.
72813
72814 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72815
72816         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72817
72818 2006-07-11  Bruno Haible  <bruno@clisp.org>
72819
72820         * README: Mention where to put documentation.
72821
72822 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72823
72824         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72825
72826 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72829         to stdint.m4.
72830
72831 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72834         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72835         "no/such/file/stdint.h" when there is no such file, so that
72836         the resulting C code can be parsed by dodgy compilers.
72837         Problems reported by Bob Proulx.
72838
72839 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72840
72841         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72842         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72843         macros into the GNU _D_EXACT_NAMLEN.
72844         * lib/savedir.c:  Likewise.
72845         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72846
72847 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72848         and Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72851         * m4/savedir.m4:
72852         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72853         macros into the GNU _D_EXACT_NAMLEN.
72854
72855 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72856
72857         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72858         around the absolute name, to work around a problem with the HP-UX
72859         11.23 native C compiler, reported by Bob Proulx.
72860
72861 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72862
72863         * doc/maintain.texi, make-stds.texi: Sync from
72864         <http://savannah.gnu.org/projects/gnustandards>.
72865
72866 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72867
72868         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72869
72870 2006-07-09  Jim Meyering  <jim@meyering.net>
72871
72872         * m4/glob.m4: Remove a doubled word in a comment.
72873
72874 2006-07-09  Jim Meyering  <jim@meyering.net>
72875
72876         * lib/argp-pv.c: Remove a doubled word in a comment.
72877         * lib/check-version.c (check_version): Likewise.
72878         * lib/javacomp.c (compile_java_class): Likewise.
72879
72880 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72881
72882         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72883         for the benefit of people using Autoconf 2.60.  If you want to
72884         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72885         (or m4/onceonly.m4, if pre-2.57) manually.
72886
72887 2006-07-08  Jim Meyering  <jim@meyering.net>
72888
72889         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72890         comment.
72891         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72892         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72893         comment.
72894
72895 2006-07-08  Jim Meyering  <jim@meyering.net>
72896
72897         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72898
72899 2006-07-07  Simon Josefsson  <jas@extundo.com>
72900
72901         * tests/test-crc.c: Change expected crc value, the test vector
72902         were probably computed using the old broken crc.c?
72903
72904 2006-07-06  Simon Josefsson  <jas@extundo.com>
72905
72906         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72907         now the canonical place for the M4 file).
72908
72909         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72910         from the sys_socket dependency now.
72911
72912         * modules/inet_pton (Files): Ditto.
72913
72914         * modules/inet_ntop (Files): Ditto.
72915
72916 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72917
72918         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72919         not gl_PREREQ_GETUSERSHELL.
72920
72921 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72922
72923         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72924         with only one argument, for Autoconf 2.60.
72925         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72926         expand to nothing, so add a shell command to avoid syntax error.
72927         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72928
72929 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72930
72931         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72932
72933 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72934
72935         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72936         no longer needed.  Check for isblank decl.
72937         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72938         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72939         of existence.
72940
72941 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72942
72943         * lib/getloadavg.c: Use __VMS, not VMS.
72944         * lib/getopt.c: Likewise.
72945         * lib/getpagesize.h: Likewise.
72946         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72947         and probably does not work.
72948
72949 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72950
72951         * lib/.cppi-disable: Add wcwidth.
72952         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72953         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72954         (ISGRAPH): Remove.  All uses changed to isgraph.
72955         (FOLD) [!defined _LIBC]: Remove special case.
72956         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72957         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72958         HAVE_ISBLANK.
72959         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72960         case.
72961
72962 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72963
72964         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72965         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72966         brackets.  Other minor changes to suppress some compiler
72967         warnings.
72968
72969 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72970         and Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72973         of invoking obsolescent AC_HEADER_DIRENT macro.
72974         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72975         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72976         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72977         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72978         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72979         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72980         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72981         * m4/readdir.m4: Remove; no longer needed.
72982
72983 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72984         and Paul Eggert  <eggert@cs.ucla.edu>
72985
72986         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72987         Don't worry about this obsolete case any more.
72988         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72989         directories.
72990         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72991         worry about this obsolete case any more.
72992         * lib/fts.c: Likewise.
72993         * lib/getcwd.c: Likewise.
72994         * lib/glob.h: Likewise.
72995         * lib/savedir.c: Likewise.
72996
72997 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73000         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73001         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73002         needed.
73003         All uses removed.
73004         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73005         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73006         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73007         needed.
73008         * m4/getdate.m4 (gl_GETDATE): Likewise.
73009         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73010         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73011         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73012         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73013         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73014         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73015         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73016         needed.
73017
73018 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         * lib/memcasecmp.c: Include <limits.h>.
73021         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73022         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73023         Don't assume isdigit succeeds only on '0' through '9'.
73024
73025 2006-07-05  Eric Blake  <ebb9@byu.net>
73026
73027         * modules/getaddrinfo (Depends-on): Add snprintf.
73028
73029 2006-07-05  Eric Blake  <ebb9@byu.net>
73030
73031         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73032         to avoid 'header present but could not be compiled' on cygwin.
73033
73034 2006-07-05  Eric Blake  <ebb9@byu.net>
73035
73036         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73037         missing from netdb.h.
73038         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73039
73040 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73041
73042         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73043         no longer needed.
73044         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73045         * m4/getdate.m4 (gl_GETDATE): Likewise.
73046         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73047         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73048         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73049         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73050         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73051
73052 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73053
73054         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73055         All uses of is_space replaced by isspace.
73056         * lib/exit.h: Don't talk about STDC_HEADERS.
73057         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73058         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73059         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73060         replaced by isprint etc.
73061         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73062         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73063         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73064         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73065         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73066         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73067
73068 2006-07-05  Bruno Haible  <bruno@clisp.org>
73069
73070         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73071         the function exists, before testing against AIX.
73072         Reported by Martin Lambers <marlam@marlam.de>.
73073
73074 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73075
73076         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73077         From Mark D. Baushke.
73078
73079 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73080
73081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73082         to the absolute name, not just one, to bypass Sun C 5.8's
73083         "warning: #include of /usr/include/... may be non-portable".
73084
73085 2006-07-04  Eric Blake  <ebb9@byu.net>
73086
73087         * modules/dirname-tests: New test module.
73088         * tests/test-dirname.c: New file, replacing dirname.c
73089         TEST_DIRNAME section that was recently deleted.
73090
73091 2006-07-04  Bruno Haible  <bruno@clisp.org>
73092
73093         Assume ANSI C header files and <ctype.h> functions.
73094         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73095         (mbsnwidth): Use isprint, iscntrl instead.
73096
73097 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73098
73099         Merge from coreutils.
73100         * MODULES.html.sh: Add xstrtold.
73101         * modules/xstrtold: New file.
73102         * modules/cycle-check (Files): Add lib/same-inode.h.
73103         * modules/dirname (Files): Add m4/double-slash-root.m4.
73104         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73105         * modules/mkdir-p (Files): Add lib/same-inode.h.
73106         * modules/same (Files): Add lib/same-inode.h.
73107
73108 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73109
73110         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73111         This is to keep the terminology clean; POSIX talks about
73112         "absolute pathnames", not "full pathnames", but the GNU
73113         Coding Standards say to use "path" for something else;
73114         so use "absolute" to keep both sides happy.
73115         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73116         Set gl_absolute_header, not gl_full_header_path.
73117         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73118         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73119         All uses changed.
73120
73121         Merge from coreutils.
73122
73123         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73126         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73127         want to require the building of c-strtod.o.
73128         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73129         needs -lm directly.
73130         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73131
73132         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73135         --as-needed option if available.  Problem reported by Albert Chin in
73136         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73137         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73138         cc merely issues a bunch of annoying warnings for --as-needed
73139         (this problem was reported by Bob Proulx).  Also, try linking with
73140         -lm to detect a bug in binutils 2.16 (this problem was reported
73141         by Ralf Wildenhues).
73142
73143         2006-06-18  Jim Meyering  <jim@meyering.net>
73144
73145         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73146         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73147         macro.
73148         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73149         also check for glibc-2.4's abort-inducing bug.
73150
73151         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73152         Low-probability clean-up should be to use rmdir to get rid of
73153         the just-created directory, not unlink.
73154
73155         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73156         configure fail, and request a bug report to inform us about it.
73157         Add a comment that, barring reports to the contrary, in 2007 we'll
73158         assume ftruncate is universally available.
73159
73160         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73163
73164         2006-03-12  Jim Meyering  <jim@meyering.net>
73165
73166         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73167         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73168         * m4/same.m4 (gl_SAME): Likewise.
73169         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73170
73171         2006-03-11  Eric Blake  <ebb9@byu.net>
73172
73173         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73174         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73175         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73176         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73177
73178 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73181         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73182         reported by Mark D. Baushke, one in
73183         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73184
73185         Merge from coreutils.
73186
73187         * lib/.cppi-disable: Add stdint_.h.
73188         * lib/.cvsignore: Add stdint.h.
73189
73190         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73191
73192         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73193         both double and long double versions.
73194         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73195         * lib/xstrtold.c: New file.
73196         * lib/xstrtod.h (xstrtold): New decl.
73197
73198         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73199
73200         * lib/filemode.c (setst): Remove.
73201         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73202         (arguably) clearer, and the generated code is a bit smaller on my
73203         Debian GNU/Linux stable x86 host.
73204
73205         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73206
73207         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73208         Assume that filemode.h includes sys/types.h and sys/stat.h.
73209         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73210         (ftypelet): Reorder to put common cases first, for efficiency.
73211         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73212         to do 'M'.
73213         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73214         of 10, for compatibility with FreeBSD.  All callers changed.
73215         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73216         types that can't be deduced solely from st_mode.  First arg is now a
73217         const pointer.
73218         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73219         (strmode): Renamed from mode_string.
73220         (filemodestring): New decl.
73221         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73222         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73223         needed.
73224         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73225
73226         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73227
73228         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73229         fsusage.h now does that.  Include fsusage.h first, to test interface.
73230         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73231         at most one method (the old code could have generated decls that
73232         didn't conform to C89, not that this was ever exercised).
73233         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73234
73235         2006-03-19  Jim Meyering  <jim@meyering.net>
73236
73237         Work even in a chroot where d_ino values for entries in "/"
73238         don't match the stat.st_ino values for the same names.
73239         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73240         number, iterate through all entries again, using lstat instead.
73241         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73242         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73243
73244         * lib/getcwd.c (__getcwd): Clarify a comment.
73245         Use memcpy in place of a call to strcpy.
73246
73247         2006-03-12  Jim Meyering  <jim@meyering.net>
73248
73249         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73250         matches that of the current directory (which we're about to chdir ".."
73251         out of), then save the dev-ino of the parent, instead.
73252
73253         * lib/same-inode.h (SAME_INODE): New file/macro.
73254         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73255         Include "same-inode.h", instead.
73256         * lib/same.c: Likewise.
73257         * lib/cycle-check.h: Include "same-inode.h".
73258         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73259         * lib/cycle-check.c (SAME_INODE): Remove definition.
73260         * lib/root-dev-ino.h: Include "same-inode.h".
73261
73262         2006-03-11  Eric Blake  <ebb9@byu.net>
73263
73264         * lib/same.c (same_name): s/base_name/last_component/
73265         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73266         * lib/filenamecat.c (file_name_concat): Likewise.
73267
73268         2006-03-11  Eric Blake  <ebb9@byu.net>,
73269                     Paul Eggert  <eggert@cs.ucla.edu>
73270
73271         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73272         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73273         drive prefix.
73274         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73275         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73276         (last_component): New method.
73277         * lib/dirname.c (dir_len): Determine when drive letters need a
73278         subsequent slash.  Preserve // when it is special.
73279         (dir_name): Don't append dot when drive letter is absolute.
73280         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73281         * lib/basename.c (base_name): New semantics - malloc the result.
73282         Preserve // when it is special.  Preserve relative files that look
73283         like drive letters.
73284         (base_len): Preserve // when it is special.
73285         (last_component): New method, similar to old base_name semantics.
73286         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73287         base_name.  Strip redundant slashes from ///.
73288
73289 2006-07-03  Jim Meyering  <jim@meyering.net>
73290
73291         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73292         macro is used before the first cycle_check call.
73293
73294 2006-07-03  Eric Blake  <ebb9@byu.net>
73295
73296         * modules/dirname (Depends-on): Add xstrndup.
73297
73298 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73301         test cases, so that config.log is a bit easier to follow.
73302
73303 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73304
73305         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73306         both are 64 bits, since this seems to be the tradition, and this
73307         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73308         we ever run into a host that prefers long long to long in this
73309         case, we'll need another configure-time test.  Problem reported by
73310         Jim Meyering.
73311
73312 2006-07-02  Eric Blake  <ebb9@byu.net>
73313
73314         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73315
73316 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73317
73318         * modules/inttypes (Depends-on): No longer depends on stdint.
73319         * modules/stdint (Description): Say more about assumptions.
73320         Say that the fast types might differ.  Say macros are used.
73321         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73322         (Makefile.am): Revise list of substituted symbols to match
73323         new stdint.m4.
73324         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73325         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73326         * tests/test-stdint.c (verify_same_types)
73327         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73328         the code conforms to C99/C89.
73329         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73330         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73331
73332 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73333
73334         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73335         but fix a bug, by requiring at least 64 bits.
73336         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73337         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73338         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73339         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73340
73341         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73342         changes.  Make 2.59 a prerequisite.  Check and substitute for
73343         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73344         inttypes.h.  Do not use special include files; just use the
73345         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73346         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73347         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73348         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73349         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73350         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73351         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73352         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73353         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73354         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73355         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73356         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73357         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73358         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73359         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73360         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73361         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73362         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73363         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73364         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73365         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73366         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73367         not check for things that C99 does not require, e.g., int8_t.  If
73368         a test isn't needed unless <stdint.h> isn't working, and is
73369         unlikely to be needed for any other reason, then don't do it
73370         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73371         size_t, since we assume C89 freestanding at least.  Do not check
73372         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73373         the right thing even if the types are not defined.  Instead use:
73374         (gl_STDINT_TYPE_PROPERTIES): New macro.
73375         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73376         testing whether <sys/types.h> clashes, as Autoconf does this for
73377         us now.  All uses removed.
73378         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73379         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73380         (gl_CHECK_TYPE_SAME):
73381         Remove; no longer needed.
73382         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73383         exists, since we'll return 0 anyway in that case.
73384         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73385
73386 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73389         possible collision with system files.
73390         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73391         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73392         WCHAR_MIN and WCHAR_MAX in this case.
73393         (<stddef.h>): Do not include; no longer needed.
73394         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73395         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73396         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73397         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73398         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73399         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73400         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73401         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73402         !defined(__c99))]: Include in this case too, since it's harmless
73403         now.
73404         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73405         dangerous to do so.
73406         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73407         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73408         (_STDINT_MIN, _STDINT_MAX): New macros.
73409         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73410         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73411         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73412         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73413         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73414         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73415         macros, not typedefs; this simplifies things quite a bit.
73416         Use long int for all types narrower than int64_t.
73417         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73418         Define in terms of long long int or int64_t or long int,
73419         not int64_t or int32_t.  This saves some compile-time testing.
73420         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73421         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73422         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73423         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73424         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73425         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73426         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73427         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73428         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73429         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73430         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73431         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73432         undef any previous version and define our own version, for
73433         simplicity and consistency with the new macros for types.
73434         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73435         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73436         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73437         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73438         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73439         @WINT_T_SUFFIX@ to keep things simple here.
73440         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73441         Simplify by assuming typical 8/16/32/64 host, since we're
73442         already doing that elsewhere anyway.
73443         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73444         and assume long long int is 64 bits if available.  This
73445         speeds up 'configure'.
73446
73447 2006-07-01  Eric Blake  <ebb9@byu.net>
73448
73449         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73450         Reported by Andreas Buening.
73451
73452 2006-07-01  Eric Blake  <ebb9@byu.net>
73453
73454         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73455
73456 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73457
73458         * lib/getaddrinfo.c: fixed typo
73459
73460 2006-06-29  Jim Meyering  <jim@meyering.net>
73461
73462         * modules/strftime (Maintainer): Add my name, since with the
73463         FPRINTFTIME changes strftime.c has forked from glibc.
73464
73465 2006-06-29  Eric Blake  <ebb9@byu.net>
73466
73467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73468
73469 2006-06-29  Eric Blake  <ebb9@byu.net>
73470
73471         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73472
73473 2006-06-29  Eric Blake  <ebb9@byu.net>
73474
73475         * lib/stat_.h: New file.
73476
73477 2006-06-29  Eric Blake  <ebb9@byu.net>
73478
73479         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73480         unused static function.
73481
73482 2006-06-29  Eric Blake  <ebb9@byu.net>
73483
73484         * doc/functions.texi (Function Portability): Document missing lstat
73485         on mingw.
73486
73487 2006-06-29  Eric Blake  <ebb9@byu.net>
73488
73489         * MODULES.html.sh: Add sys_stat.
73490         * modules/sys_stat: New module.
73491         * modules/mkstemp (Depends-on): Add sys_stat.
73492
73493 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73494
73495         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73496
73497 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73498
73499         * m4/c-bs-a.m4: Removed.
73500
73501 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73502
73503         * lib/strftime.c: Assume strftime() exists.
73504
73505 2006-06-29  Derek Price  <derek@ximbiot.com>
73506
73507         * modules/c-bs-a: Removed - \a is C89.
73508         * MODULES.html.sh: Remove c-bs-a.
73509
73510 2006-06-29  Bruno Haible  <bruno@clisp.org>
73511
73512         * modules/wcwidth (License): Change to LGPL.
73513
73514 2006-06-28  Simon Josefsson  <jas@extundo.com>
73515
73516         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73517         on _WIN32.
73518
73519         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73520         getnameinfo.
73521
73522 2006-06-28  Simon Josefsson  <jas@extundo.com>
73523
73524         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73525
73526 2006-06-28  Simon Josefsson  <jas@extundo.com>
73527
73528         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73529         functions there.  It will succeed on Windows XP, but on Windows
73530         2000 and (presumably) earlier, it will fail, and use the internal
73531         re-implementation.
73532         (use_win32_p): New function.
73533         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73534         Support AI_NUMERICSERV to disable getservbyname.
73535         (getnameinfo): New function, only supports
73536         NI_NUMERICHOST|NI_NUMERICSERV for now.
73537
73538         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73539         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73540         getnameinfo.
73541
73542 2006-06-28  Eric Blake  <ebb9@byu.net>
73543
73544         * modules/wcwidth: New file.
73545         * modules/mbchar (Depends-on): Add wcwidth.
73546         * modules/mbswidth (Depends-on): Add wcwidth.
73547         * MODULES.html.sh: Add wcwidth.
73548
73549 2006-06-28  Eric Blake  <ebb9@byu.net>
73550
73551         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73553
73554 2006-06-28  Eric Blake  <ebb9@byu.net>
73555
73556         * lib/xvasprintf.h: Fix comments.
73557
73558 2006-06-28  Eric Blake  <ebb9@byu.net>
73559
73560         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73561         * lib/mbswidth.c (wcwidth): Move from here...
73562         * lib/wcwidth.h: ...to this new file.
73563
73564 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73565
73566         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73567
73568         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73569         it's obsolete.
73570         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73571
73572 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73573
73574         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73575         Autoconf 2.60 says this stuff was obsolete.
73576
73577 2006-06-28  Bruno Haible  <bruno@clisp.org>
73578
73579         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73580
73581 2006-06-28  Bruno Haible  <bruno@clisp.org>
73582
73583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73584         gt_TYPE_WCHAR_T.
73585
73586 2006-06-28  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73589         declaration for wcwidth.
73590         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73591
73592 2006-06-28  Bruno Haible  <bruno@clisp.org>
73593
73594         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73595         (mkdir): Define using _mkdir.
73596
73597 2006-06-28  Bruno Haible  <bruno@clisp.org>
73598
73599         * lib/getaddrinfo.h: Fix POSIX URL.
73600         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73601         _WIN32.
73602         (use_win32_p): Make static.
73603         (getaddrinfo): Reject service name if it is empty or does not consist
73604         solely of decimal digits, or if its value is > 65535.
73605         (getnameinfo): Remove useless casts.
73606
73607 2006-06-27  Simon Josefsson  <jas@extundo.com>
73608
73609         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73610         Eggert and Martin Lambers.
73611
73612 2006-06-27  Simon Josefsson  <jas@extundo.com>
73613
73614         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73615         Eggert and Martin Lambers.
73616
73617 2006-06-27  Bruno Haible  <bruno@clisp.org>
73618
73619         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73620         result to 0, not to empty.
73621         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73622
73623 2006-06-27  Bruno Haible  <bruno@clisp.org>
73624
73625         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73626
73627 2006-06-26  Simon Josefsson  <jas@extundo.com>
73628
73629         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73630         present.
73631
73632 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73633
73634         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73635         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73636         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73637
73638 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73639
73640         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73641
73642 2006-06-26  Bruno Haible  <bruno@clisp.org>
73643
73644         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73645
73646 2006-06-26  Bruno Haible  <bruno@clisp.org>
73647
73648         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73649
73650 2006-06-26  Bruno Haible  <bruno@clisp.org>
73651
73652         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73653         SGI C compiler in pre-C99 mode.
73654         Suggested by Mark D. Baushke and Larry Jones.
73655
73656 2006-06-26  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73659         WCHAR_MAX.
73660         Reported by Mark D. Baushke and Larry Jones.
73661
73662 2006-06-26  Bruno Haible  <bruno@clisp.org>
73663
73664         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73665         in pre-C99 mode.
73666         Suggested by Mark D. Baushke and Larry Jones.
73667
73668 2006-06-23  Simon Josefsson  <jas@extundo.com>
73669             Bruno Haible  <bruno@clisp.org>
73670
73671         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73672         Emit mostlyclean-local rule.
73673         (func_emit_tests_Makefile_am): Likewise.
73674         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73675
73676 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73677
73678         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73679
73680 2006-06-23  Bruno Haible  <bruno@clisp.org>
73681
73682         * tests/test-stdint.c: Update to match ISO C 99 Technical
73683         Corrigendum 1.
73684
73685 2006-06-23  Bruno Haible  <bruno@clisp.org>
73686
73687         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73688
73689 2006-06-23  Bruno Haible  <bruno@clisp.org>
73690
73691         * lib/stdint_.h: Treat IRIX like OpenBSD.
73692
73693 2006-06-23  Bruno Haible  <bruno@clisp.org>
73694
73695         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73696         ISO C 99 Technical Corrigendum 1.
73697
73698 2006-06-22  Simon Josefsson  <jas@extundo.com>
73699
73700         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73701         MinGW.
73702
73703 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73706         needed.  Some compiler complained about some of them.  Problem reported
73707         by Larry Jones in
73708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73709
73710 2006-06-21  Simon Josefsson  <jas@extundo.com>
73711
73712         * tests/test-getaddrinfo.c: New file.
73713
73714         * modules/getaddrinfo-tests: New file.
73715
73716         * MODULES.html.sh: Add inet_pton.
73717
73718         * modules/inet_pton: New file.
73719
73720 2006-06-21  Simon Josefsson  <jas@extundo.com>
73721
73722         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73723         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73724         of using the (limited) gnulib implementation on Windows XP.
73725
73726         * m4/inet_pton.m4: New file.
73727
73728 2006-06-21  Simon Josefsson  <jas@extundo.com>
73729
73730         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73731         variable.
73732
73733         * lib/socket_.h: Don't define WINVER.
73734
73735         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73736         slightly modified to work in gnulib.
73737
73738 2006-06-21  Simon Josefsson  <jas@extundo.com>
73739
73740         * doc/gnulib.texi (Windows sockets): Add.
73741
73742 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         * lib/read-file.c (fread_file): Start with buffer allocation of
73745         0 bytes rather than 1 byte; this simplifies the code.
73746         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73747         code to free buffer and save/restore errno.
73748         (internal_read_file): Remove unused local.
73749
73750 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73751
73752         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73753         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73754         Problem reported by Denis Excoffier in
73755         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73756
73757 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73758
73759         * modules/sys_socket, modules/socklen: Include sys/types since
73760         FreeBSD 4.x's sys/socket.h needs it.
73761
73762 2006-06-19  Simon Josefsson  <jas@extundo.com>
73763
73764         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73765
73766 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73767
73768         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73769
73770 2006-06-19  Bruno Haible  <bruno@clisp.org>
73771
73772         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73773         and FULL_PATH_INTTYPES_H in angle brackets.
73774         Reported by Mark D. Baushke <mdb@gnu.org>.
73775
73776 2006-06-17  Eric Blake  <ebb9@byu.net>
73777
73778         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73779         errno.
73780
73781 2006-06-17  Bruno Haible  <bruno@clisp.org>
73782
73783         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73784         <sys/inttypes.h>.
73785
73786 2006-06-17  Bruno Haible  <bruno@clisp.org>
73787
73788         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73789         whether errno is declared. Assume <errno.h> declares errno.
73790
73791 2006-06-17  Bruno Haible  <bruno@clisp.org>
73792
73793         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73794
73795 2006-06-17  Bruno Haible  <bruno@clisp.org>
73796
73797         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73798         problem on Solaris 2.5.1.
73799
73800 2006-06-16  Eric Blake  <ebb9@byu.net>
73801
73802         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73803         * lib/unicodeio.c [!defined errno]: Likewise.
73804         * lib/strtol.c [!defined errno]: Likewise.
73805         * lib/strtod.c [!defined errno]: Likewise.
73806
73807 2006-06-15  Eric Blake  <ebb9@byu.net>
73808
73809         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73810
73811 2006-06-15  Eric Blake  <ebb9@byu.net>
73812
73813         * config/srclist.txt (ssize_t.m4): Lose sync.
73814
73815 2006-06-15  Bruno Haible  <bruno@clisp.org>
73816
73817         * modules/stdint (Files): Include m4/full-header-path.m4,
73818         m4/size_max.m4, m4/wchar_t.m4.
73819         (Makefile.am): Many more substitutions.
73820         * modules/stdint-tests: New file.
73821         * tests/test-stdint.c: New file.
73822
73823 2006-06-15  Bruno Haible  <bruno@clisp.org>
73824
73825         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73826         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73827         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73828         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73829         gl_CHECK_TYPE_SAME): New macros.
73830
73831 2006-06-15  Bruno Haible  <bruno@clisp.org>
73832
73833         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73834
73835 2006-06-15  Bruno Haible  <bruno@clisp.org>
73836
73837         * lib/stdint_.h: Rewritten to be fully auto-configured.
73838         Fixes bug on HP-UX/IA64.
73839
73840 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73841
73842         * lib/getdate.y (__attribute__): Don't define if already defined.
73843         Problem reported by Larry Jones.
73844         * lib/utimens.c (__attribute__): Likewise.
73845
73846 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73847
73848         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73849         reported by Andreas Schwab.
73850
73851 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73852             Bruno Haible  <bruno@clisp.org>
73853
73854         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73855         check for the declaration of strnlen and a run test that exposes the
73856         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73857         rpl_strndup.
73858
73859 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73860             Bruno Haible  <bruno@clisp.org>
73861
73862         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73863
73864 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73865
73866         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73867         compile test, for Tru64 4.0D.
73868
73869 2006-05-28  Karl Berry  <karl@gnu.org>
73870
73871         * config/srclist.txt (printf-args.c): lose sync.
73872
73873 2006-05-26  Martin Lambers  <marlam@marlam.de>
73874
73875         * lib/getpass.c: Updates the test for the native W32 API, and adds
73876         missing includes, thus fixing compilation warnings.
73877
73878 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73879
73880         * lib/exclude.c (exclude_fnmatch): New function.
73881         (excluded_file_name): Call exclude_fnmatch.
73882         * lib/exclude.h (excluded_file_name): New prototype
73883
73884 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73885
73886         * lib/tempname.c (small_open, large_open): New macros.
73887         (__open, __open64) [!_LIBC]: Remove.
73888         (__gen_tempname): Use small_open and large_open instead of __open
73889         and __open64.  This fixes a portability bug on HP-UX 11.11i
73890         reported by Simon Wing-Tang in
73891         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73892
73893 2006-05-24  Bruno Haible  <bruno@clisp.org>
73894
73895         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73896         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73897         Reported by Thorsten Maerz <torte@netztorte.de> via
73898         Aaron Stone <aaron@serendipity.cx>.
73899
73900 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73901
73902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73903         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73904         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73905         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73906         not really conditional on the cache.
73907         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73908
73909 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73912         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73913         (my_usleep): Don't mishandle maximum value.
73914
73915 2006-05-19  Jim Meyering  <jim@meyering.net>
73916
73917         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73918
73919 2006-05-17  Bruno Haible  <bruno@clisp.org>
73920
73921         Cygwin portability.
73922         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73923
73924 2006-05-17  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/stdint_.h: Fix recognition of Cygwin.
73927
73928 2006-05-15  Bruno Haible  <bruno@clisp.org>
73929
73930         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73931         on libtool patch by Ralf Wildenhues.
73932
73933 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73934
73935         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73936         test for C99 conformance; (bool) 0.5 is an integer constant
73937         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73938         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73939
73940 2006-05-11  Simon Josefsson  <jas@extundo.com>
73941
73942         * m4/xvasprintf.m4: Fix obvious typo.
73943
73944 2006-05-11  Jim Meyering  <jim@meyering.net>
73945
73946         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73947         James Lemley.
73948
73949 2006-05-10  Simon Josefsson  <jas@extundo.com>
73950
73951         * lib/md4.c: Typo fix, update copyright years.
73952         (K1, K2): Don't use L because it turn computations into 64-bit on
73953         64-bit platforms.
73954
73955 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73956
73957         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73958         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73959         unwanted sign propagation, e.g., on hosts with 64-bit int.
73960         There still are some problems with reeelly weird theoretical hosts
73961         (e.g., 33-bit int) but it's not worth worrying about now.
73962         * lib/sha1.c (rol): Likewise.
73963         (K1, K2, K3, K4): Remove unnecessary L suffix.
73964
73965 2006-05-10  Bruno Haible  <bruno@clisp.org>
73966
73967         * lib/des.c: Cast to avoid warnings.
73968
73969 2006-05-09  Bruno Haible  <bruno@clisp.org>
73970
73971         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73972         (Depends-on): Depend also on xsize, stdarg.
73973         (configure.ac): Add gl_XVASPRINTF.
73974
73975 2006-05-09  Bruno Haible  <bruno@clisp.org>
73976
73977         * m4/xvasprintf.m4: New file.
73978
73979 2006-05-09  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73982         (EOVERFLOW): Define fallback value.
73983         (xstrcat): New function.
73984         (xvasprintf): Recognize the special case of a string concatenation.
73985
73986 2006-05-08  Eric Blake  <ebb9@byu.net>
73987
73988         * gnulib-tool (func_version): Base copyright year on CVS date.
73989         (func_emit_copyright_notice): New function.
73990         (func_emit_lib_Makefile_am): Use it.
73991         (func_emit_tests_Makefile_am): Likewise.
73992         (func_import): Likewise.
73993
73994 2006-05-08  Bruno Haible  <bruno@clisp.org>
73995
73996         * modules/stdarg: New file.
73997         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73998
73999 2006-05-08  Bruno Haible  <bruno@clisp.org>
74000
74001         * m4/stdarg.m4: New file, from GNU gettext.
74002
74003 2006-05-08  Bruno Haible  <bruno@clisp.org>
74004
74005         * config/srclist.txt (build-aux/config.rpath): different from latest
74006         release.
74007
74008 2006-05-08  Bruno Haible  <bruno@clisp.org>
74009
74010         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74011
74012 2006-05-05  Jim Meyering  <jim@meyering.net>
74013
74014         * m4/warning.m4: New file, derived from bison's file by the same name.
74015
74016 2006-05-03  Bruno Haible  <bruno@clisp.org>
74017
74018         * lib/stdint_.h: Shorter URL.
74019         * lib/inttypes.h: Likewise.
74020
74021 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74022
74023         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74024
74025 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74026
74027         * lib/verify.h: Document the internals better.  Most of this change
74028         was written by Bruno Haible.
74029
74030 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74031
74032         * doc/verify.texi: New file, partly based on a proposal by
74033         Bruno Haible.
74034
74035 2006-05-02  Bruno Haible  <bruno@clisp.org>
74036
74037         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74038         test from here...
74039         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74040
74041 2006-04-29  Bruno Haible  <bruno@clisp.org>
74042
74043         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74044         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74045
74046 2006-04-29  Bruno Haible  <bruno@clisp.org>
74047
74048         * gnulib-tool: Make --update option actually work.
74049
74050 2006-04-29  Bruno Haible  <bruno@clisp.org>
74051
74052         * doc/gcd.texi: New file.
74053         * doc/gnulib.texi: Include it.
74054
74055 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74056
74057         * lib/getdate.y (get_date): When adding relative date, start with the
74058         initial time, not with the result of the first mktime call.
74059
74060 2006-04-25  Bruno Haible  <bruno@clisp.org>
74061
74062         * gnulib-tool (func_import): Output the include directives in three
74063         blocks, sorted separately.
74064         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74065
74066 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74067
74068         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74069         to define main with arguments, for C++.  Reported by Eric Blake.
74070         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74071         Prefer 'int main ()' to 'int main (void)', for C++.
74072         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74073         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74074         for 'main', for C99 and C++.
74075
74076 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74077
74078         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74079         Don't assume that exit status -1 is valid.
74080         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74081         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74082         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74083         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74084         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74085         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74086         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74087         functions can be used without declaring them, or that you can
74088         exit with status -1.
74089         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74090
74091 2006-04-24  Karl Berry  <karl@gnu.org>
74092
74093         * config/srclist.txt (longdouble.m4): sync lost.
74094
74095 2006-04-24  Eric Blake  <ebb9@byu.net>
74096
74097         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74098
74099 2006-04-24  Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74102         poll() implementation in AIX.
74103         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74104
74105 2006-04-24  Bruno Haible  <bruno@clisp.org>
74106
74107         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74108         assigned exactly once.
74109
74110 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74111             Bruno Haible  <bruno@clisp.org>
74112
74113         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74114         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74115         for AM_CPPFLAGS.
74116
74117 2006-04-23  Bruno Haible  <bruno@clisp.org>
74118
74119         * modules/copy-file: Depend on unistd.
74120         * modules/execute: Likewise.
74121         * modules/fatal-signal: Likewise.
74122         * modules/findprog: Likewise.
74123         * modules/mkdtemp : Likewise.
74124         * modules/pipe: Likewise.
74125         * modules/wait-process: Likewise.
74126
74127 2006-04-23  Bruno Haible  <bruno@clisp.org>
74128
74129         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74130         condition was already detected.
74131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74132
74133 2006-04-23  Bruno Haible  <bruno@clisp.org>
74134
74135         * lib/copy-file.c: Include <unistd.h> unconditionally.
74136         * lib/execute.c: Likewise.
74137         * lib/fatal-signal.c: Likewise.
74138         * lib/findprog.c: Likewise.
74139         * lib/mkdtemp.c: Likewise.
74140         * lib/pipe.h: Likewise.
74141         * lib/pipe.c: Likewise.
74142         * lib/wait-process.h: Likewise.
74143
74144 2006-04-23  Bruno Haible  <bruno@clisp.org>
74145
74146         * gnulib-tool (func_usage): Fix --import description. Document
74147         --update.
74148         (func_import): Create temporary file in a temporary directory, if
74149         --dry-run is specified. Silence errors from 'grep' when there are no
74150         m4 files in $m4dir.
74151         (func_create_testdir): Silence errors from 'grep' when there are no
74152         m4 files in $m4dir.
74153         Reported by Karl Berry <karl@freefriends.org>.
74154
74155 2006-04-20  Bruno Haible  <bruno@clisp.org>
74156
74157         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74158         one argument, so that the code will be portable to Autoconf 2.60.
74159         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74160         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74161         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74162
74163 2006-04-19  Derek Price  <derek@ximbiot.com>
74164             Eric Blake  <ebb9@byu.net>
74165
74166         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74167         rather than "/full/path.h".  Update comment to match.  Shorten &
74168         generalize m4_translit call via AS_TR_CPP.
74169
74170 2006-04-19  Derek Price  <derek@ximbiot.com>
74171             Eric Blake  <ebb9@byu.net>
74172
74173         * lib/inttypes.h: Correct grammar in comment.
74174
74175 2006-04-18  Derek Price  <derek@ximbiot.com>
74176             Paul Eggert  <eggert@cs.ucla.edu>
74177
74178         * modules/inttypes: New file.
74179         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74180
74181 2006-04-18  Derek Price  <derek@ximbiot.com>
74182             Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74185         New files.
74186
74187 2006-04-18  Derek Price  <derek@ximbiot.com>
74188             Paul Eggert  <eggert@cs.ucla.edu>
74189
74190         * lib/inttypes.h: New file.
74191         * lib/strtoimax.c: Assume <inttypes.h>.
74192
74193 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74194
74195         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74196         isn't mounted.  Problem reported by Kir Kolyshkin.
74197
74198 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74199
74200         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74201         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74202         Derek R. Price.
74203         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74204         implementation.
74205
74206 2006-04-12  Eric Blake  <ebb9@byu.net>
74207
74208         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74209         is now done automatically by the corresponding Autoconf macro.
74210
74211 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74212
74213         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74214         time_r.h.
74215
74216 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         Merge regex changes from libc, removing some of our
74219         POSIX-conformance changes that were rejected and redoing them in a
74220         less-intrusive way.
74221
74222         * lib/regcomp.c (re_compile_internal, init_dfa):
74223         Length arg is now size_t, not Idx.  All uses changed.
74224         (peek_token): Forward decl now says internal_function.
74225         (__re_error_msgid, __re_error_msgid_idx):
74226         Now static rather than extern with attribute_hidden.
74227         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74228         For some reason libc prefers K&R style defns for external functions.
74229         (regerror) [!defined _LIBC]: Likewise.
74230         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74231         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74232         (build_range_exp, build_collating_symbol):
74233         Use K&R-style defn.
74234         (re_compile_fastmap): Use '\0' to memset, not 0.
74235         (utf8_sb_map): Make the calculations more obvious.
74236         (init_dfa, parse_bracket_exp, build_charclass_op):
74237         Call calloc and cast result, as glibc does.
74238         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74239         (build_range_exp, build_collating_symbol):
74240         Now internal functions.
74241
74242         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74243
74244         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74245         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74246         Don't depend on VMS; depend on __VMS instead, for POSIX
74247         namespace cleanness.
74248         (regoff_t): Define to ssize_t, not long int.
74249
74250         Remove the REG_ macros named below.  Instead, make the old names
74251         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74252         __USE_GNU_REGEX.
74253         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74254         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74255         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74256         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74257         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74258         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74259         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74260         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74261         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74262         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74263         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74264         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74265         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74266         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74267         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74268         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74269         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74270         (REG_NREGS):
74271         Remove.  All uses replaced by the old RE_* names.
74272         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74273         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74274         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74275         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74276         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74277         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74278         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74279         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74280         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74281         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74282         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74283         Don't bother having these macros be independent of each others'
74284         values, since they no longer exist in the POSIX name space.
74285
74286         Rename the following member names back to their old names,
74287         unless !__USE_GNU_REGEX.  All uses changed back.
74288         (buffer): Renamed from re_buffer.
74289         (allocated): Renamed from re_allocated.
74290         (used): Renamed from re_used.
74291         (syntax): Renamed from re_syntax.
74292         (fastmap): Renamed from re_fastmap.
74293         (translate): Renamed from re_translate.
74294         (can_be_null): Renamed from re_can_be_null.
74295         (regs_allocated): Renamed from re_regs_allocated.
74296         (fastmap_accurate): Renamed from re_fastmap_accurate.
74297         (no_sub): Renamed from re_no_sub.
74298         (not_bol): Renamed from re_not_bol.
74299         (not_eol): Renamed from re_not_eol.
74300         (newline_anchor): Renamed from re_newline_anchor.
74301         (num_regs): Renamed from rm_num_regs.
74302         (start): Renamed from rm_start.
74303         (end): Renamed from rm_end.
74304
74305         (free_state): Move up a bit.
74306
74307         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74308         #define to be empty.
74309         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74310         when that is what is intended.
74311         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74312         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74313         (MAX): New macro.
74314         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74315         All uses changed back to re_malloc, etc.  It's now the caller's
74316         responsibility to check for overflow; all callers changed.
74317         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74318         (re_x2nrealloc): Remove.
74319         (free_state): Remove decl.
74320
74321         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74322         (re_set_registers, re_exec):
74323         Use K&R-style defn.
74324
74325         2006-01-31  Roland McGrath  <roland@redhat.com>
74326
74327         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74328         Reported by Mike Frysinger <vapier@gentoo.org>.
74329
74330         2006-01-15  Andreas Jaeger  <aj@suse.de>
74331
74332         [BZ #1950]
74333         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74334         build_wcs_upper_buffer change.
74335         (build_wcs_upper_buffer): Change return type.
74336
74337         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74338
74339         * lib/regex_internal.h: Include <stdint.h> if available.
74340
74341         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74342
74343         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74344
74345         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74346
74347         * lib/regcomp.c: Adjust for changed secondary hash function.
74348
74349         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74350
74351         * lib/regex.h: Pretty printing.
74352         Clean up namespace a bit.
74353
74354         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74355
74356         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74357         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74358
74359         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74360                     Ulrich Drepper  <drepper@redhat.com>
74361
74362         [BZ #1302]
74363         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74364         changed.
74365         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74366
74367         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74368
74369         [BZ #281]
74370         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74371         * lib/regcomp.c: Remove unnecessary uses of
74372         unsigned RE_TRANSLATE_TYPE.
74373         * lib/regex_internal.h: Likewise.
74374         * lib/regex_internal.c: Likewise.
74375         * lib/regexec.c: Likewise.
74376         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74377
74378         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74379
74380         * lib/regexec.c (find_recover_state): Remove unnecessary
74381         initialization.
74382         (transit_state_bkref): Make DFA a const pointer.
74383         (get_subexp): Likewise.
74384         (check_arrival): Likewise.
74385         (update_cur_sifted_state): Likewise.
74386         (re_search_internal): Likewise.
74387         (prune_impossible_nodes): Likewise.
74388         (acquire_init_state_context): Likewise.
74389         (proceed_next_node): Likewise.
74390         (set_regs): Likewise.
74391         (free_fail_stack_return): Likewise.
74392         (check_arrival_expand_ecl): Mark DFA parameter as const.
74393         (check_arrival_expand_ecl_sub): Likewise.
74394         (check_subexp_limits): Likewise.
74395         (sub_epsilon_src_nodes):  Likewise.
74396         (add_epsilon_src_nodes):  Likewise.
74397         (merge_state_array): Likewise.
74398         (update_regs): Likewise.
74399         (build_trtable): Likewise.
74400         (sift_states_backward): Mark MCTX parameter as const.
74401         (build_sifted_states): Likewise.
74402         (update_cur_sifted_state): Likewise.
74403         (sift_states_mkref): Likewise.
74404         (check_arrival_expand_ecl): Mark eclosure as const.
74405         (check_dst_limits_calc_pos_1): Likewise.
74406         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74407         pointer.
74408
74409         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74410
74411         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74412         (transit_state_sb): Likewise.
74413         (transit_state_mb): Likewise.
74414         (sift_states_iter_mb): Likewise.
74415         (check_arrival_add_next_nodes): Likewise.
74416         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74417         [_LIBC] (re_search_2_stub): Use mempcpy.
74418
74419         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74420         mbrtowc for very simple UTF-8 case.
74421
74422         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74423         a pointer-to-const.
74424         (re_acquire_state_context): Likewise.
74425         * lib/regex_internal.h: Adjust prototypes.
74426
74427         * lib/regex.c: Prevent using C++ compilers.
74428
74429         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74430         (re_acquire_state_context): Likewise.
74431
74432 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74433
74434         * modules/regex (Depends-on): Add ssize_t.
74435
74436 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74437
74438         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74439         translation table.
74440
74441 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74444
74445 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74446             Bruno Haible  <bruno@clisp.org>
74447
74448         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74449         <sys/types.h> and <inttypes.h>.
74450
74451 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74452
74453         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74454         `__error_t_defined', so argp.h will not typedef the former.
74455
74456 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74459         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74460         glibc names.  Even if glibc is changed to conform to POSIX, the
74461         traditional names will be available anyway, since regex depends on
74462         the extensions module.  Also, fix a longstanding typo in the
74463         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74464         reported by Emanuele Giaquinta.  Also, change sense of cached
74465         variable, so that the message makes sense.
74466
74467 2006-03-24  Simon Josefsson  <jas@extundo.com>
74468
74469         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74470         including some doc fixes.
74471         (base64_encode_alloc): Fix +1 bug on allocation failures.
74472
74473 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74474
74475         * lib/base64.c (base64_encode): Do not read past end of array with
74476         unsanitized input on systems with CHAR_BIT > 8.
74477
74478 2006-03-24  Eric Blake  <ebb9@byu.net>
74479
74480         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74481
74482 2006-03-22  Karl Berry  <karl@gnu.org>
74483
74484         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74485         * config/srclistvars.sh (COREUTILS): new var.
74486
74487 2006-03-17  Jim Meyering  <jim@meyering.net>
74488
74489         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74490         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74491
74492 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74495         no longer needs it.  Instead, check that regoff_t is as least
74496         as wide as ptrdiff_t.
74497
74498         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74499         so that our regex.h stays compatible with the installed regex.
74500         This is helpful for installers who configure --without-included-regex.
74501         Problem reported by Emanuele Giaquinta.
74502
74503 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74506         Typedef to long int, not to off_, as POSIX will likely change
74507         in that direction.
74508
74509 2006-03-15  Eric Blake  <ebb9@byu.net>
74510
74511         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74512
74513 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74514
74515         * lib/argp-help.c (validate_uparams): Fix typo
74516         * lib/argp-parse.c (argp_default_options): Consistently begin help
74517         messages with a lowercase letter.
74518
74519 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74520
74521         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74522         overrun buffers and shouldn't be used (much as gets shouldn't be
74523         used).
74524         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74525
74526 2006-03-08  Simon Josefsson  <jas@extundo.com>
74527
74528         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74529         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74530
74531 2006-03-08  Simon Josefsson  <jas@extundo.com>
74532
74533         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74534         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74535
74536 2006-03-08  Simon Josefsson  <jas@extundo.com>
74537
74538         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74539         signal that configure disabled the device.
74540
74541 2006-03-08  Simon Josefsson  <jas@extundo.com>
74542
74543         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74544         languages.
74545
74546 2006-03-07  Simon Josefsson  <jas@extundo.com>
74547
74548         * modules/getopt (Depends-on): Add unistd.
74549
74550         * modules/unistd: New file.
74551
74552 2006-03-07  Simon Josefsson  <jas@extundo.com>
74553
74554         * modules/gc-random: New file.
74555
74556 2006-03-07  Simon Josefsson  <jas@extundo.com>
74557
74558         * m4/unistd_h.m4: New file.
74559
74560 2006-03-07  Simon Josefsson  <jas@extundo.com>
74561
74562         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74563         test to be side-effect free by storing the result in the cache
74564         variable gl_cv_lib_readline, and moving the assignment of
74565         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74566         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74567
74568 2006-03-07  Simon Josefsson  <jas@extundo.com>
74569
74570         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74571         error on missing devices (the functions will return an error).
74572
74573         * m4/gc.m4: Move random stuff to gc-random.m4
74574
74575 2006-03-07  Simon Josefsson  <jas@extundo.com>
74576
74577         * lib/unistd_.h: New file.
74578
74579 2006-03-07  Simon Josefsson  <jas@extundo.com>
74580
74581         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74582
74583 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74586         Problem reported by Juan Manuel Guerrero.
74587
74588 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74589
74590         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74591         the unistd module.
74592         * lib/getlogin_r.c: Likewise.
74593         * lib/getlogin_r.h: Likewise.
74594         * lib/glob.c: Likewise.
74595         * lib/pagealign_alloc.c: Likewise.
74596         * lib/unistd_.h: Remove; no longer needed.
74597
74598 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74599
74600         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74601         Add unistd.
74602         * modules/c-stack (Depends-on): Add unistd.
74603         * modules/getlogin_r: Likewise.
74604         * modules/glob: Likewise.
74605         * modules/pagealign_alloc: Likewise.
74606         * modules/unistd (Files): Remove lib/unistd_.h.
74607         (EXTRA_DIST): Remove.
74608         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74609         need unistd_.h.
74610         (MOSTLYCLEANFILES): Remove unistd.h-t.
74611
74612 2006-03-03  Simon Josefsson  <jas@extundo.com>
74613
74614         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74615
74616 2006-03-03  Simon Josefsson  <jas@extundo.com>
74617
74618         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74619         libidn and bison.
74620
74621 2006-03-03  Simon Josefsson  <jas@extundo.com>
74622
74623         * build-aux/maint.mk: Add indent target.
74624
74625 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74626
74627         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74628         our replacement poll.h in any case, to avoid a differing
74629         declaration from a system header.  Seen on AIX.
74630
74631 2006-03-01  Simon Josefsson  <jas@extundo.com>
74632
74633         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74634         <kasal@ucw.cz>.
74635
74636 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74637
74638         * modules/gettime (Depends-on): Add extensions module.
74639         * modules/nanosleep (Depends-on): Likewise.
74640         * modules/settime (Depends-on): Likewise.
74641
74642 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74645         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74646         pedantically.
74647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74648         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74649
74650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74651         not "==".  Reported by Ralf Wildenhues.
74652
74653 2006-03-01  Karl Berry  <karl@gnu.org>
74654
74655         * doc/Copyright/request-*: new files, synced from gnuorg.
74656
74657 2006-03-01  Karl Berry  <karl@gnu.org>
74658
74659         * config/srclist.txt (Copyright/*): new entries.
74660
74661 2006-02-28  Simon Josefsson  <jas@extundo.com>
74662
74663         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74664
74665 2006-02-27  Simon Josefsson  <jas@extundo.com>
74666
74667         * lib/base64.h: Indent #define's.  From Jim Meyering
74668         <jim@meyering.net>.
74669
74670 2006-02-27  Jim Meyering  <jim@meyering.net>
74671
74672         Revert the change of 2006-02-24, so these files can continue
74673         to be sync'd from gettext.
74674         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74675         of `config.h'.
74676
74677 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74678
74679         * modules/intprops: New file.
74680         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74681         Add intprops.
74682         * modules/getloadavg (Files): Remove lib/intprops.h.
74683         (Depends-on): Add intprops.
74684         * modules/human: Likewise.
74685         * modules/inttostr: Likewise.
74686         * modules/openat: Likewise.
74687         * modules/sig2str: Likewise.
74688         * modules/userspec: Likewise.
74689         * modules/utimecmp: Likewise.
74690         * modules/xnanosleep: Likewise.
74691         * modules/xstrtol: Likewise.
74692
74693 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74694
74695         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74696         * modules/lock-tests (TESTS): Use $(EXEEXT).
74697         * modules/tls-tests: Likewise.
74698         * modules/argp-tests: Likewise.
74699         (check_PROGRAMS): New var, replacing...
74700         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74701
74702 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74703
74704         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74705         `config.h'.
74706
74707 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74708
74709         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74710
74711 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74712
74713         Sync from coreutils.
74714         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74715         gl_CHDIR_SAFER.
74716
74717 2006-02-22  Jim Meyering  <jim@meyering.net>
74718
74719         Sync from coreutils.
74720         * m4/chdir-safer.m4: New file.
74721
74722 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74725         AT_FDCWD exceeds INT_MAX.
74726         * lib/openat.h (AT_FDCWD): Likewise.
74727
74728 2006-02-17  Eric Blake  <address@hidden>
74729
74730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74731
74732 2006-02-16  Simon Josefsson  <jas@extundo.com>
74733
74734         * modules/getaddrinfo (Depends-on): Add sys_socket.
74735
74736 2006-02-15  Simon Josefsson  <jas@extundo.com>
74737
74738         * build-aux/maint.mk: Add dsyntax-check rule.
74739
74740 2006-02-15  Eric Blake  <ebb9@byu.net>
74741
74742         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74743         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74744         'present but cannot compile' warnings on cygwin.
74745         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74746         use ws2tcpip.h if sys/socket.h works.
74747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74748         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74749
74750 2006-02-14  Simon Josefsson  <jas@extundo.com>
74751
74752         * modules/maintainer-makefile (Files): Rename.
74753
74754         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74755         and (the local) Makefile.cfg to maint-cfg.mk.
74756
74757         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74758         to the latter.
74759
74760         * modules/maintainer-makefile: New module.
74761
74762         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74763         severaly stripped to make it possible to build it up from scratch
74764         with reliable tests.
74765
74766         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74767         fixes to permit overriding the default actions when configure and
74768         makefile are not available.
74769
74770 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         Sync from coreutils.
74773         * modules/lstat (Depends-on): Don't depend on xalloc.
74774         (License): Change from GPL to LGPL, since this is now simply a
74775         replacement for a libc function.
74776
74777 2006-02-14  Jim Meyering  <jim@meyering.net>
74778
74779         Sync from coreutils.
74780
74781         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74782         failure on deficient systems, and simplify gnulib lgpl dependencies.
74783         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74784         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74785
74786         * lib/xalloc-die.c: Remove unused definition of N_.
74787
74788 2006-02-14  Jim Meyering  <jim@meyering.net>
74789
74790         Sync from coreutils.
74791         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74792         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74793         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74794         double-quote uses of that variable, to accommodate the rare case in
74795         which getmntent is available in none of the libraries checked.  This
74796         happens at least on FreeBSD 5.0.
74797
74798 2006-02-13  Simon Josefsson  <jas@extundo.com>
74799
74800         * gnulib-tool (Usage): Fix --import, from
74801         karl@freefriends.org (Karl Berry).
74802
74803 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74804
74805         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74806
74807 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74808
74809         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74810         "autoupdate" on 2005-12-12.
74811
74812 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74813
74814         * modules/closeout (Depends-on): Remove atexit.
74815
74816 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74817
74818         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74819         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74820
74821 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74822
74823         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74824         __EXTENSIONS__ if this causes compilation to fail.  Problem
74825         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74826         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74827
74828 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74831         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74832         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74833         All uses changed.
74834
74835 2006-01-26  Simon Josefsson  <jas@extundo.com>
74836
74837         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74838         prototype is visible on mingw32.
74839
74840         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74841         for mingw32.
74842
74843         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74844         mingw32).
74845
74846 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74849         attempt to open for write; this always fails, at least on POSIX
74850         hosts.  This reinstates the 2006-01-09 change, which was
74851         inadvertently removed.
74852
74853 2006-01-26  Bruno Haible  <bruno@clisp.org>
74854
74855         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74856         Reported by Paul Eggert.
74857
74858 2006-01-26  Bruno Haible  <bruno@clisp.org>
74859             Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         * lib/stdbool_.h (_Bool)
74862         [(! (defined __cplusplus || defined __BEOS__)
74863           && !defined __GNUC__
74864           && !(defined __HP_cc || defined __xlc__
74865                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74866                || defined __sgi))]:
74867         #define to signed char in these cases too; this simplifies
74868         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74869         etc., separately) and makes it more conservative.
74870
74871 2006-01-25  Simon Josefsson  <jas@extundo.com>
74872
74873         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74874         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74875         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74876
74877 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74878
74879         * lib/argp-namefrob.h: Bugfix. Remove stray #
74880
74881 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74884         so that we test the test.
74885         Check for yet another HP-UX cc bug involving *bool |= bool.
74886
74887 2006-01-25  Karl Berry  <karl@gnu.org>
74888
74889         * config/srclist.txt (vasnprintf.c): sync lost.
74890
74891 2006-01-25  Jim Meyering  <jim@meyering.net>
74892
74893         Sync from the stable (b5) branch of coreutils:
74894
74895         * lib/fts.c (fts_children): Don't let close() clobber errno from
74896         failed fchdir().
74897
74898         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74899         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74900         a dangling symlink.  That can also happen at least for ELOOP.
74901         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74902         FYI, this bug predates the inclusion of fts.c in coreutils.
74903
74904         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74905         in their own block, so pre-c99 compilers don't object.
74906
74907         Avoid the double-free (first in fts_read, second in fts_close) that
74908         would occur when an `active' directory is made inaccessible (e.g.,
74909         via chmod a-x) during a traversal.
74910         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74911         before returning.  Reproduce this failure by
74912         mkdir -p a/b; cd a; chmod a-x . b
74913         Reported by Stavros Passas.
74914
74915 2006-01-25  Jim Meyering  <jim@meyering.net>
74916
74917         * lib/fileblocks.c: Remove more useless parentheses.
74918         * lib/readutmp.h: Likewise.
74919
74920 2006-01-25  Bruno Haible  <bruno@clisp.org>
74921
74922         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74923         warnings.
74924         Reported by Paul Eggert.
74925
74926 2006-01-25  Bruno Haible  <bruno@clisp.org>
74927
74928         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74929         rid of a trap command. For Solaris sh.
74930         Reported by Mark D. Baushke <mdb@gnu.org>.
74931
74932 2006-01-24  Simon Josefsson  <jas@extundo.com>
74933
74934         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74935         Bruno.
74936
74937 2006-01-24  Karl Berry  <karl@gnu.org>
74938
74939         * config/srclist.txt (argp-namefrob.h): sync lost.
74940
74941 2006-01-24  Jim Meyering  <jim@meyering.net>
74942
74943         * modules/openat (Files): Add lib/intprops.h.
74944         From Mark D. Baushke.
74945
74946 2006-01-24  Jim Meyering  <jim@meyering.net>
74947
74948         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74949         Reported by Mark D. Baushke.
74950
74951 2006-01-24  Jim Meyering  <jim@meyering.net>
74952
74953         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74954
74955 2006-01-24  Bruno Haible  <bruno@clisp.org>
74956
74957         * modules/strnlen (Maintainer): Change from glibc to all.
74958
74959 2006-01-24  Bruno Haible  <bruno@clisp.org>
74960
74961         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74962         Patch by Paul Eggert.
74963
74964 2006-01-24  Bruno Haible  <bruno@clisp.org>
74965
74966         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74967         already has it.
74968         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74969         2005-11-26.
74970
74971         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74972         'signed char' to avoid problems with the built-in _Bool type.
74973         Reported by Paul Eggert on 2005-11-26.
74974
74975 2006-01-24  Bruno Haible  <bruno@clisp.org>
74976
74977         * gnulib-tool (func_import): Avoid constructing complicated sed
74978         expressions inside backquote.
74979         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74980
74981 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74982
74983         These changes imported from libc.
74984         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74985         test and two separate function calls.
74986         * lib/strndup.c (__strndup): Add libc_hidden_def.
74987
74988 2006-01-23  Simon Josefsson  <jas@extundo.com>
74989
74990         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74991         Remove the test_*_SOURCES variable: automake infers it by default.
74992         * modules/tls-tests: Likewise.
74993
74994 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74995
74996         Work around porting bugs reported by Dieter in
74997         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74998         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74999         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75000         Include "getopt.h" first, to check interface.
75001         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75002         !HAVE_DECL_GETENV.
75003         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75004         (__strndup): Revert to K&R-style function dfns, the glibc style.
75005         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75006         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75007         Include strnlen.h first, to get prototype properly.
75008         (strnlen): Renamed from __strnlen.
75009         Remove weak alias.
75010
75011 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75012
75013         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75014
75015 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75016
75017         * config/srclist.txt: Adjust to reflect glibc reorganization.
75018         This affects only comments.
75019
75020 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75021
75022          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75023          Reported by Bruce Korb <bkorb@gnu.org>.
75024
75025 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75028         to pacify gcc -Wswitch-default.
75029
75030 2006-01-22  Bruno Haible  <bruno@clisp.org>
75031
75032         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75033         temporary buffer for sprintf, take into account the precision also
75034         for 'd', 'i', 'u', 'o', 'x', 'X'.
75035
75036 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75037
75038         * modules/argp-tests: New module
75039         * tests/test-argp.c: New file
75040         * tests/test-argp-2.sh: New file
75041
75042 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75043
75044         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75045         (__argp_base_name): Removed
75046         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75047         typo.
75048         (__argp_base_name): Provide macro definition or extern declaration
75049         depending on the configuration
75050
75051 2006-01-20  Simon Josefsson  <jas@extundo.com>
75052
75053         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75054
75055 2006-01-20  Simon Josefsson  <jas@extundo.com>
75056
75057         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75058
75059 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75062         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75063         Suggested by Bruno Haible.
75064
75065 2006-01-20  Karl Berry  <karl@gnu.org>
75066
75067         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75068         until changes propagate, I guess.
75069
75070 2006-01-19  Simon Josefsson  <jas@extundo.com>
75071
75072         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75073
75074 2006-01-19  Simon Josefsson  <jas@extundo.com>
75075
75076         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75077
75078 2006-01-19  Simon Josefsson  <jas@extundo.com>
75079
75080         * gnulib-tool: Set check_PROGRAMS.
75081
75082         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75083         modules/des-tests, modules/gc-arcfour-tests,
75084         modules/gc-arctwo-tests, modules/gc-des-tests,
75085         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75086         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75087         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75088         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75089         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75090         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75091         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75092         test_*_SOURCES.
75093
75094 2006-01-18  Simon Josefsson  <jas@extundo.com>
75095
75096         * modules/socklen (Depends-on): Depend on sys_socket.
75097
75098 2006-01-18  Simon Josefsson  <jas@extundo.com>
75099
75100         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75101         modules/des-tests, modules/gc-arcfour-tests,
75102         modules/gc-arctwo-tests, modules/gc-des-tests,
75103         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75104         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75105         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75106         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75107         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75108         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75109         $(EXEEXT) to automake TESTS variable, for mingw32.
75110
75111 2006-01-17  Simon Josefsson  <jas@extundo.com>
75112
75113         * modules/socklen (Include): Need sys/socket.h.
75114
75115 2006-01-17  Bruno Haible  <bruno@clisp.org>
75116
75117         * modules/ssize_t (Include): Add <sys/types.h>.
75118
75119 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75120
75121         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75122         it's not portable and it doesn't work with cross-compiles.
75123         Problem reported by Bruno Haible.  Fix missing-$ typo in
75124         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75125         -zignore from being used with Sun's C compiler.
75126
75127 2006-01-12  Simon Josefsson  <jas@extundo.com>
75128
75129         * lib/base64.c: Fix warning, reported by Bruno Haible
75130         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75131
75132 2006-01-12  Bruno Haible  <bruno@clisp.org>
75133
75134         * modules/ldd: New file.
75135         * build-aux/ldd.sh.in: New file.
75136         * MODULES.html.sh (Support for building libraries and executables): Add
75137         ldd.
75138
75139 2006-01-12  Bruno Haible  <bruno@clisp.org>
75140
75141         * m4/ldd.m4: New file.
75142
75143 2006-01-12  Bruno Haible  <bruno@clisp.org>
75144
75145         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75146         endless loop while replacing $auxdir with build-aux.
75147
75148 2006-01-11  Simon Josefsson  <jas@extundo.com>
75149
75150         * lib/stdint_.h (SIZE_MAX): Add missing (.
75151
75152 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         Sync from coreutils.
75155         * lib/md5.c: Fix commentary typos.
75156         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75157         * lib/md5.h (__attribute__): Remove; unused.
75158         * lib/sha1.c: Fix commentary to match md5 better.
75159         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75160         so that we don't need to worry about alignment.  All uses changed.
75161         This merges the 2005-10-28 md5 change into sha1.
75162
75163 2006-01-11  Jim Meyering  <jim@meyering.net>
75164
75165         Sync from coreutils.
75166         * lib/md5.c (OP): Fix spacing.
75167
75168 2006-01-11  Bruno Haible  <bruno@clisp.org>
75169
75170         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75171         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75172         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75173
75174 2006-01-11  Bruno Haible  <bruno@clisp.org>
75175
75176         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75177         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75178         the "early" section as well.
75179
75180 2006-01-11  Bruno Haible  <bruno@clisp.org>
75181
75182         Avoid "ar: no archive members specified" error on MacOS X.
75183         * gnulib-tool (func_modules_add_dummy): New function.
75184         (func_import, func_create_testdir): Invoke it.
75185
75186 2006-01-11  Bruno Haible  <bruno@clisp.org>
75187
75188         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75189         with $auxdir in AC_CONFIG_FILES statements.
75190
75191 2006-01-11  Bruno Haible  <bruno@clisp.org>
75192
75193         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75194         Initialize also noinst_HEADERS to empty.
75195
75196 2006-01-11  Bruno Haible  <bruno@clisp.org>
75197
75198         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75199         variables.
75200         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75201         autoreconf.
75202
75203 2006-01-11  Bruno Haible  <bruno@clisp.org>
75204
75205         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75206         overridable by the user.
75207         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75208
75209 2006-01-10  Simon Josefsson  <jas@extundo.com>
75210
75211         * modules/sys_socket: New file.
75212
75213 2006-01-10  Simon Josefsson  <jas@extundo.com>
75214
75215         * m4/sys_socket_h.m4: New file.
75216
75217 2006-01-10  Simon Josefsson  <jas@extundo.com>
75218
75219         * lib/socket_.h: New file.
75220
75221 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         * modules/readutmp (Maintainer): Add myself.
75224
75225 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75226
75227         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75228         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75229         People who are still concerned with buggy memcmp implementations
75230         can invoke gl_FUNC_MEMCMP themselves.
75231
75232 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * lib/regex_internal.h (BITSET_WORD_BITS):
75235         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75236         preprocessor mishandles large unsigned values as if they were signed.
75237         Problem reported by Claudio Fontana in
75238         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75239
75240 2006-01-10  Jim Meyering  <jim@meyering.net>
75241
75242         Avoid the double-free (first in fts_read, second in fts_close) that
75243         would occur when an `active' directory is made inaccessible (e.g.,
75244         via chmod a-x) during a traversal.
75245         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75246         before returning.  Reproduce this failure by
75247         mkdir -p a/b; cd a; chmod a-x . b
75248         Reported by Stavros Passas.
75249
75250         Sync from coreutils.
75251         * lib/sha1.c: Tweak grammar in a comment.
75252
75253 2006-01-10  Jim Meyering  <jim@meyering.net>
75254
75255         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75256         Patch by Joerg Sonnenberger.
75257
75258 2006-01-10  Bruno Haible  <bruno@clisp.org>
75259
75260         * modules/readutmp: Depend on module free.
75261         * modules/strtok_r: Depend on module restrict.
75262
75263 2006-01-10  Bruno Haible  <bruno@clisp.org>
75264
75265         * modules/gettext (configure.ac): Add an invocation of
75266         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75267
75268 2006-01-10  Bruno Haible  <bruno@clisp.org>
75269
75270         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75271         Reported by Werner Lemberg <wl@gnu.org>.
75272
75273 2006-01-10  Bruno Haible  <bruno@clisp.org>
75274
75275         * lib/localcharset.c: Update from GNU gettext.
75276
75277 2006-01-10  Bruno Haible  <bruno@clisp.org>
75278
75279         * lib/argp.h (__const): Remove macro. Use const instead.
75280         * lib/argp-fmtstream.h (__const): Likewise.
75281         * lib/glob_.h (__const): Remove macro.
75282         * lib/glob-libc.h: Use const instead of __const.
75283
75284 2006-01-10  Bruno Haible  <bruno@clisp.org>
75285
75286         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75287         variable.
75288         Needed to avoid an automake error regarding the 'gettext' module.
75289
75290 2006-01-09  Simon Josefsson  <jas@extundo.com>
75291
75292         * modules/inet_ntop (Depends-on): Add restrict.
75293
75294 2006-01-09  Simon Josefsson  <jas@extundo.com>
75295
75296         * modules/gc-rijndael-tests (License): Put under LGPL.
75297
75298         * modules/gc-des-tests (License): Likewise.
75299
75300         * modules/gc-arcfour-tests (License): Likewise.
75301
75302         * modules/gc-arctwo-tests (License): Likewise.
75303
75304         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75305
75306         * modules/gc-hmac-sha1-tests (Files): Likewise.
75307
75308         * modules/gc-hmac-md5-tests (License): Likewise.
75309
75310         * modules/gc-sha1-tests (License): Likewise.
75311
75312         * modules/gc-md5-tests (License): Likewise.
75313
75314         * modules/gc-md4-tests (License): Likewise.
75315
75316         * modules/gc-md2-tests (License): Likewise.
75317
75318         * modules/gc-tests (License): Likewise.
75319
75320         * modules/des-tests (License): Likewise.
75321
75322         * modules/md4-tests (License): Likewise.
75323
75324         * modules/md2-tests (License): Likewise.
75325
75326 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         Sync from coreutils:
75329
75330         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75331         * modules/lib-ignore: New file.
75332         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75333         chdir-safer.m4, lchmod.m4.
75334         * modules/openat: Add mkdirat.c, openat-priv.h.
75335
75336 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75337
75338         Sync from coreutils.
75339         * m4/lib-ignore.m4: New file.
75340         * m4/lchmod.m4: New file.
75341
75342 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         Sync from coreutils.
75345         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75346         for write access: POSIX says that must fail.
75347         * lib/fts.c (diropen): Likewise.
75348         * lib/save-cwd.c (save_cwd): Likewise.
75349         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75350         well, for minor improvements on hosts that lack O_DIRECTORY.
75351         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75352         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75353         Fall back on chown if open failed with EACCES.
75354
75355         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75356         Report an error at compile-time if only a 1-second nominal clock
75357         resolution is found.
75358
75359         * lib/lchmod.h: New file.
75360         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75361         (make_dir_parents): Use lchown rather than chown, and
75362         lchmod rather than chmod.
75363
75364         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75365         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75366         "proc" reported by n0dalus.
75367
75368         * lib/mountlist.c: Include <limits.h>.
75369         (dev_from_mount_options)
75370         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75371         New function.  It no longer assumes "dev=" has the System V meaning
75372         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75373         (read_file_system_list)
75374         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75375         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75376         dev= in that case.
75377
75378         * lib/posixtm.h (PDS_PRE_2000): New macro.
75379         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75380         allow_century.  All usages changed.  Reject dates outside the range
75381         1969-1999 if PDS_PRE_2000 is used.
75382
75383 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         Sync from coreutils.
75386         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75387         (Time of day items): Mention the possibility of leap seconds.
75388         Problem reported by Dr. David Alan Gilbert.
75389
75390 2006-01-09  Jim Meyering  <jim@meyering.net>
75391
75392         Sync from coreutils.
75393
75394         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75395
75396         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75397
75398         * lib/modechange.c (mode_compile): Reject an invalid mode string
75399         that starts with an octal digit.  From Andreas Gruenbacher.
75400
75401         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75402         and dup to open_safer and dup_safer, respectively.
75403         (openat_permissive): Fix typo in comment.
75404
75405         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75406         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75407         (_): Remove; no longer needed.
75408         (openat): Renamed from rpl_openat; no need for rpl_openat
75409         since openat.h renames openat for us.
75410         Replace most of the body with a call to openat_permissive,
75411         to avoid duplicate code.
75412         Port to (probably hypothetical) environments were mode_t is
75413         wider than int.
75414         (openat_permissive): Require mode arg, so that we can check
75415         types better.  Put it just after flags.  Change cwd failure
75416         indicator from pointer-to-bool to pointer-to-errno-value.
75417         All callers changed.
75418         Invoke openat_save_fail and/or openat_restore_fail if
75419         cwd_errno is null, so that openat can call us.
75420         (openat_permissive, fdopendir, fstatat, unlinkat):
75421         Simplify errno handling to avoid some duplicate code,
75422         as it's OK to set errno on success.
75423         * lib/openat.h: Revamp code so that function macros depend on
75424         __OPENAT_PREFIX only, not also on AT_FDCWD.
75425         (openat_ro): Remove.  Caller changed to use openat_permissive.
75426         (openat_permissive): Now a macro, if not a function.
75427         (openat_restore_fail, openat_save_fail): Now always functions,
75428         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75429
75430         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75431         and openat.c.
75432         * lib/mkdirat.c: Include openat-priv.h.
75433         Remove definitions of macros defined therein.
75434         * lib/openat.c: Likewise.
75435
75436         * lib/mkdirat.c (mkdirat): New file and function.
75437         * lib/openat.h (mkdirat): Declare.
75438
75439         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75440
75441         * lib/openat.h (openat_permissive): Declare.
75442         (openat_ro): Define.
75443
75444         * lib/openat.c (EXPECTED_ERRNO): New macro.
75445         (openat_permissive): New function -- used in remove.c rewrite.
75446         (all functions): Set errno just before returning, only if there
75447         was an actual failure.
75448         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75449
75450         Emulate openat-family functions using Linux's procfs, if possible.
75451         Idea and some code based on Ulrich Drepper's glibc changes.
75452
75453         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75454         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75455         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75456         before falling back on save_cwd and restore_cwd.
75457         (fdopendir, fstatat, unlinkat): Likewise.
75458
75459         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75460         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75461
75462         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75463         as second argument to va_arg.  Otherwise, some versions of gcc
75464         warn that `if this code is reached, the program will abort'.
75465
75466 2006-01-09  Jim Meyering  <jim@meyering.net>
75467
75468         Sync from coreutils.
75469         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75470         Require openat-priv.h.
75471
75472 2006-01-09  Bruno Haible  <bruno@clisp.org>
75473
75474         * modules/strnlen (Include): Use strnlen.h.
75475
75476 2006-01-09  Bruno Haible  <bruno@clisp.org>
75477
75478         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75479
75480 2006-01-09  Bruno Haible  <bruno@clisp.org>
75481
75482         * lib/sysexit_.h (EX_OK): New macro.
75483         Suggested by Martin Lambers <marlam@marlam.de>.
75484
75485 2006-01-09  Bruno Haible  <bruno@clisp.org>
75486
75487         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75488         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75489
75490 2006-01-09  Bruno Haible  <bruno@clisp.org>
75491
75492         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75493         numbers.
75494
75495 2006-01-09  Bruno Haible  <bruno@clisp.org>
75496
75497         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75498         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75499         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75500         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75501
75502 2006-01-09  Bruno Haible  <bruno@clisp.org>
75503
75504         * build-aux/javacomp.sh.in: New file, moved from lib/.
75505         * modules/javacomp-script (Files): Update.
75506         (configure.ac): Add AC_CONFIG_FILES invocation.
75507         (EXTRA_DIST): Remove variable.
75508
75509         * build-aux/javaexec.sh.in: New file, moved from lib/.
75510         * modules/javaexec (Files): Update.
75511         (configure.ac): Add AC_CONFIG_FILES invocation.
75512         (EXTRA_DIST): Remove javaexec.sh.in.
75513
75514         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75515         * modules/csharpcomp-script (Files): Update.
75516         (configure.ac): Add AC_CONFIG_FILES invocation.
75517         (EXTRA_DIST): Remove variable.
75518
75519         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75520         * modules/csharpexec (Files): Update.
75521         (configure.ac): Add AC_CONFIG_FILES invocation.
75522         (EXTRA_DIST): Remove csharpexec.sh.in.
75523
75524 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75525
75526         Sync from coreutils.
75527
75528         Add POSIX ACL support
75529         * lib/acl.h (copy_acl, set_acl): Add declarations.
75530         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75531         systems other than Linux.
75532         (chmod_or_fchmod): New function: use fchmod when possible,
75533         and chmod otherwise.
75534         (file_has_acl): Add a POSIX ACL implementation, with a
75535         Linux-specific subcase.
75536         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75537         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75538         acls are unsupported.
75539         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75540         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75541         are unsupported.
75542
75543 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75544
75545         Sync from coreutils.
75546         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75547
75548 2006-01-07  Bruno Haible  <bruno@clisp.org>
75549
75550         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75551         gl_EARLY.
75552
75553 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75556         Problem reported for Mingw by Mark Junker.
75557
75558 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75559
75560         * README: Gnulib normally doesn't generate a tarball.
75561
75562 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75563
75564         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75565         long int, not int, for nanosecond counts, so that people who are
75566         used to POSIX struct timespec won't be surprised.  Reported by Jim
75567         Meyering.
75568
75569 2005-12-28  Bruno Haible  <bruno@clisp.org>
75570
75571         * build-aux/config.rpath: Update from GNU gettext.
75572
75573 2005-12-16  Jim Meyering  <jim@meyering.net>
75574
75575         * modules/fprintftime: New module.
75576         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75577
75578 2005-12-16  Jim Meyering  <jim@meyering.net>
75579
75580         * m4/fprintftime.m4: New file.
75581
75582 2005-12-16  Jim Meyering  <jim@meyering.net>
75583
75584         * lib/fprintftime.c, lib/fprintftime.h: New files.
75585
75586 2005-12-15  Simon Josefsson  <jas@extundo.com>
75587
75588         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75589         new m4/socklen.m4.
75590
75591 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75592
75593         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75594         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75595
75596 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75597
75598         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75599         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75600         struct uparams is valid. Fall back to the default values if it is
75601         not.
75602
75603 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75604
75605         * modules/argp (Files): Add argp-pin.c
75606         (Depends-on): dirname
75607         (lib_SOURCES): Add argp-pin.c
75608
75609 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75610
75611         * m4/argp.m4:  Check if program_invocation_name and
75612         program_invocation_short_name are declared and define appropriate
75613         macros if they are not.
75614
75615 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75616
75617         * lib/argp-help.c (__argp_base_name): New function
75618         (__argp_short_program_name): Rewrite using __argp_base_name
75619         * lib/argp-namefrob.h: Define program_invocation_name and
75620         program_invocation_short_name if requested
75621         (__argp_base_name): Add prototype
75622         * lib/argp-parse.c (argp_def): Use gettext wrappers
75623         (argp_default_parser): Use __argp_base_name
75624         * lib/argp-pin.c: New file. Defines program_invocation_name and
75625         program_invocation_short_name on systems that lack them.
75626
75627 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75628
75629         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75630         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75631         porting problem reported by Georg Schwarz in
75632         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75633
75634 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75637         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75638         porting problem reported by Georg Schwarz in
75639         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75640
75641 2005-12-05  Bruno Haible  <bruno@clisp.org>
75642
75643         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75644         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75645         Reported by Mark Junker <mjscod@gmx.de>.
75646
75647 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75648
75649         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75650         Use implementation from Albert Chin, with some
75651         comments/corrections by Stepan Kasal and myself.
75652
75653 2005-12-02  Bruno Haible  <bruno@clisp.org>
75654
75655         * gnulib-tool (func_import): Accept GPLed build tool modules when
75656         --lgpl is given.
75657         * modules/csharpcomp-script: New file.
75658         * modules/csharpcomp: Depend on it.
75659         * modules/javacomp-script: New file.
75660         * modules/javacomp: Depend on it.
75661         Suggested by Simon Josefsson.
75662
75663 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75666         statement, to work around an HP-UX 10.20 compiler bug reported by
75667         Peter O'Gorman.
75668
75669 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75670
75671         * modules/savedir (Depends-on): Add openat.
75672
75673 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75676         (uintmax_t) [defined uintmax_t]: Do not declare.
75677         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75678         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75679         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75680         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75681         sake of portability to weird hosts that C allows (though we don't
75682         know of any practical examples).
75683
75684         * lib/savedir.h (fdsavedir): New decl.
75685         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75686         contains most of the former guts of savedir.
75687         (savedir): Use savedirstream.
75688         Include "openat.h".
75689
75690 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * modules/obstack (Files): Add m4/ulonglong.m4.
75693         Problem reported by Davide Angelocola.
75694
75695 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75698         coreutils no longer futzes with rounding modes.
75699
75700 2005-11-14  Jim Meyering  <jim@meyering.net>
75701
75702         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75703         replacement of mkstemp.
75704
75705 2005-11-10  Simon Josefsson  <jas@extundo.com>
75706
75707         * lib/readline.c: Remove EOL.
75708
75709 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         * modules/gethrxtime (Depends-on): Add gettime.
75712
75713 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75716         or gettimeofday; no longer needed.
75717
75718 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75721         time business.
75722         (gethrxtime) [! (HAVE_NANOUPTIME
75723         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75724         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75725         our own approximation.
75726
75727 2005-11-08  Eric Blake  <ebb9@byu.net>
75728
75729         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75730
75731 2005-11-08  Eric Blake  <ebb9@byu.net>
75732
75733         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75734
75735 2005-11-04  Bruno Haible  <bruno@clisp.org>
75736
75737         * gnulib-tool: Implement --update mode.
75738
75739 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         Fix porting problem reported by Theodoros V. Kalamatianos.
75742         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75743         Don't assume that futimes failing means we must fail.
75744
75745 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75748         variables to suggest the intended function of the PATH_MAX check.
75749
75750 2005-10-30  Kean Johnston  <jkj@sco.com>
75751
75752         Trivial changes to support SCO systems.
75753         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75754         as PATH_MAX.
75755         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75756         where __ptr is null when no I/O is pending.
75757
75758 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75759
75760         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75761         leave errno alone.  Problem reported by Dmitry V. Levin.
75762
75763 2005-10-28  Simon Josefsson  <jas@extundo.com>
75764
75765         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75766         Test more.
75767
75768         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75769
75770         * modules/md2, modules/md2-tests: New files.
75771
75772 2005-10-28  Simon Josefsson  <jas@extundo.com>
75773
75774         * m4/inet_ntop.m4: More tests.
75775
75776         * m4/gc-md2.m4, md2.m4: New file.
75777
75778 2005-10-28  Simon Josefsson  <jas@extundo.com>
75779
75780         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75781         "restrict" keywords, as per POSIX.  Protect the function
75782         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75783         Don't use K&R prototypes.  Check the sprintf return values.
75784         Re-define EAFNOSUPPORT if not present.  Indent.
75785
75786         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75787         suggested by Bruno Haible <bruno@clisp.org>.
75788
75789         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75790
75791         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75792
75793         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75794         libgcrypt).
75795
75796         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75797
75798         * lib/md2.h, lib/md2.c: New files.
75799
75800 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75801
75802         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75803         errno alone.  Problem reported by Frederic Jolliton.
75804
75805 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75806
75807         * modules/verify (License): Change from GPL to LGPL.  This is a
75808         tiny module and there are apparently near-equivalents that are
75809         under the BSD license.
75810
75811 2005-10-24  Simon Josefsson  <jas@extundo.com>
75812
75813         * modules/sha1: Relicense to LGPL.
75814
75815 2005-10-24  Simon Josefsson  <jas@extundo.com>
75816
75817         * lib/md4.h: Shrink buffer size, now that we changed the type.
75818
75819 2005-10-23  Simon Josefsson  <jas@extundo.com>
75820
75821         * gnulib-tool (func_import): Fix --tests-base.
75822
75823 2005-10-22  Simon Josefsson  <jas@extundo.com>
75824
75825         * modules/arcfour (Depends-on): Need stdint.
75826
75827 2005-10-22  Simon Josefsson  <jas@extundo.com>
75828
75829         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75830         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75831
75832 2005-10-22  Simon Josefsson  <jas@extundo.com>
75833
75834         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75835         suggested by Bruno Haible <bruno@clisp.org>.
75836
75837 2005-10-22  Simon Josefsson  <jas@extundo.com>
75838
75839         * lib/crc.h: Include stddef.h, for size_t.
75840
75841 2005-10-22  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75844         arcfour_context struct (simplify test vector testing in GNU
75845         Shishi).
75846
75847 2005-10-21  Simon Josefsson  <jas@extundo.com>
75848
75849         * modules/des, modules/des-tests: New files.
75850
75851         * modules/gc-des, modules/gc-des-tests: New files.
75852
75853         * tests/test-des.c, tests/test-gc-des.c: New file.
75854
75855 2005-10-21  Simon Josefsson  <jas@extundo.com>
75856
75857         * modules/arctwo, modules/arctwo-tests: New files.
75858
75859         * tests/test-arctwo.c: New file.
75860
75861         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75862
75863         * tests/test-gc-arctwo.c: New file.
75864
75865 2005-10-21  Simon Josefsson  <jas@extundo.com>
75866
75867         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75868         Bruno Haible <bruno@clisp.org>.
75869
75870         * m4/gc-des.m4: New file.
75871
75872 2005-10-21  Simon Josefsson  <jas@extundo.com>
75873
75874         * m4/arctwo.m4: New file.
75875
75876         * m4/gc-arctwo.m4: New file.
75877
75878 2005-10-21  Simon Josefsson  <jas@extundo.com>
75879
75880         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75881         block.
75882
75883 2005-10-21  Simon Josefsson  <jas@extundo.com>
75884
75885         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75886         <bruno@clisp.org>.
75887
75888         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75889
75890         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75891         Bruno Haible <bruno@clisp.org>.
75892
75893         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75894         <bruno@clisp.org>.
75895
75896 2005-10-21  Simon Josefsson  <jas@extundo.com>
75897
75898         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75899
75900 2005-10-21  Simon Josefsson  <jas@extundo.com>
75901
75902         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75903
75904 2005-10-21  Simon Josefsson  <jas@extundo.com>
75905
75906         * lib/des.h, lib/des.c: New files.
75907
75908         * lib/gc-gnulib.c: Support DES.c
75909
75910 2005-10-21  Simon Josefsson  <jas@extundo.com>
75911
75912         * lib/arctwo.h, lib/arctwo.c: New files.
75913
75914         * lib/gc-gnulib.c: Support ARCTWO.
75915
75916 2005-10-21  Simon Josefsson  <jas@extundo.com>
75917
75918         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75919         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75920
75921 2005-10-21  Simon Josefsson  <jas@extundo.com>
75922
75923         * gnulib-tool (func_import, func_create_testdir): Define automake
75924         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75925         Makefile.am snippet),
75926         suggested by Bruno Haible <bruno@clisp.org>.
75927
75928         * modules/gc (Makefile.am): Use it.
75929
75930 2005-10-21  Bruno Haible  <bruno@clisp.org>
75931
75932         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75933         patch.
75934
75935 2005-10-19  Simon Josefsson  <jas@extundo.com>
75936
75937         * tests/test-gc-rijndael.c: New file.
75938
75939         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75940
75941 2005-10-19  Simon Josefsson  <jas@extundo.com>
75942
75943         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75944         interface too.
75945
75946 2005-10-19  Simon Josefsson  <jas@extundo.com>
75947
75948         * tests/test-gc-arcfour.c: New file.
75949
75950         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75951
75952 2005-10-19  Simon Josefsson  <jas@extundo.com>
75953
75954         * modules/gc-md4, modules/gc-md4-tests: New file.
75955
75956         * tests/test-gc-md4.c: New file.
75957
75958 2005-10-19  Simon Josefsson  <jas@extundo.com>
75959
75960         * m4/gc-md4.m4: New file.
75961
75962 2005-10-19  Simon Josefsson  <jas@extundo.com>
75963
75964         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75965         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75966         <kasal@ucw.cz>.
75967
75968 2005-10-19  Simon Josefsson  <jas@extundo.com>
75969
75970         * m4/gc-arcfour.m4: New file.
75971
75972         * m4/gc-rijndael.m4: New file.
75973
75974 2005-10-19  Simon Josefsson  <jas@extundo.com>
75975
75976         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75977
75978 2005-10-19  Simon Josefsson  <jas@extundo.com>
75979
75980         * lib/gc-gnulib.c: Support ARCFOUR.
75981
75982 2005-10-19  Simon Josefsson  <jas@extundo.com>
75983
75984         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75985         support.
75986
75987         * lib/gc.h: Add ECB enum type.
75988
75989         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75990
75991 2005-10-18  Simon Josefsson  <jas@extundo.com>
75992
75993         * tests/test-md5.c: New file.
75994
75995         * modules/md5-tests: New file.
75996
75997 2005-10-18  Simon Josefsson  <jas@extundo.com>
75998
75999         * tests/test-md4.c: New file.
76000
76001         * modules/md4, modules/md4-tests: New files.
76002
76003 2005-10-18  Simon Josefsson  <jas@extundo.com>
76004
76005         * m4/md4.m4: New file.
76006
76007 2005-10-18  Simon Josefsson  <jas@extundo.com>
76008
76009         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76010
76011 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76012
76013         * gnulib-tool (func_create_testdir): Omit the second check whether
76014         BUILT_SOURCES in nonempty.
76015
76016 2005-10-17  Simon Josefsson  <jas@extundo.com>
76017
76018         * tests/test-rijndael.c: New file.
76019
76020 2005-10-17  Simon Josefsson  <jas@extundo.com>
76021
76022         * modules/sha1: Depend on stdint instead of md5.
76023
76024         * modules/md5: Depend on stdint, remove uint32_t.
76025
76026 2005-10-17  Simon Josefsson  <jas@extundo.com>
76027
76028         * modules/gc-sha1-tests: New file.
76029
76030         * tests/test-gc-sha1.c: New file.
76031
76032 2005-10-17  Simon Josefsson  <jas@extundo.com>
76033
76034         * m4/md5.m4: Remove call to uint32_t.m4.
76035
76036 2005-10-17  Simon Josefsson  <jas@extundo.com>
76037
76038         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76039
76040         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76041         md5.h.
76042
76043         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76044
76045         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76046
76047 2005-10-17  Simon Josefsson  <jas@extundo.com>
76048
76049         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76050
76051 2005-10-17  Simon Josefsson  <jas@extundo.com>
76052
76053         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76054
76055 2005-10-17  Simon Josefsson  <jas@extundo.com>
76056
76057         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76058
76059         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76060
76061 2005-10-17  Bruno Haible  <bruno@clisp.org>
76062
76063         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76064         that it can also be used in a test.
76065
76066 2005-10-16  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76069         TESTS_ENVIRONMENT, so that individual tests can augment it.
76070
76071         * gnulib-tool (func_create_testdir): Use an intermediate target for
76072         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76073         macros, like $(ALLOCA_H), which cannot be passed through the command
76074         line.
76075
76076 2005-10-15  Simon Josefsson  <jas@extundo.com>
76077
76078         * modules/rijndael-tests: New file.
76079
76080         * modules/rijndael: New file.
76081
76082 2005-10-15  Simon Josefsson  <jas@extundo.com>
76083
76084         * m4/rijndael.m4: New file.
76085
76086 2005-10-15  Simon Josefsson  <jas@extundo.com>
76087
76088         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76089
76090         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76091
76092 2005-10-14  Simon Josefsson  <jas@extundo.com>
76093
76094         * tests/test-arcfour.c: New file.
76095
76096         * modules/arcfour, modules/arcfour-tests: New files.
76097
76098 2005-10-14  Simon Josefsson  <jas@extundo.com>
76099
76100         * m4/arcfour.m4: New file.
76101
76102 2005-10-14  Simon Josefsson  <jas@extundo.com>
76103
76104         * lib/arcfour.h, lib/arcfour.c: New files.
76105
76106 2005-10-14  Roland McGrath  <roland@redhat.com>
76107
76108         Import from libc.  [BZ #1331]
76109         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76110         macro argument.
76111         Reported by Matej Vela <vela@debian.org>.
76112
76113 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76114
76115         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76116         include <wchar.h>; no longer needed.
76117
76118 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76119
76120         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76121
76122 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76123         and  Ulrich Drepper  <drepper@redhat.com>
76124
76125         Import from libc.
76126         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76127         instead of inline stream orientation test and two separate
76128         function calls.  Pay no attention to USE_IN_LIBIO.
76129
76130 2005-10-13  Simon Josefsson  <jas@extundo.com>
76131
76132         * modules/gc-hmac-md5-tests: New file.
76133
76134         * tests/test-gc-hmac-sha1.c: New file.
76135
76136         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76137
76138         * modules/gc-hmac-md5-tests: New file.
76139
76140         * tests/test-gc-md5.c: New file.
76141
76142         * modules/gc-md5-tests: New file.
76143
76144 2005-10-13  Simon Josefsson  <jas@extundo.com>
76145
76146         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76147         Move memory allocation outside of loop.
76148
76149 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76150
76151         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76152         intermediate directory is in a read-only file system.  Problem
76153         reported by Eric Blake.
76154
76155 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76156
76157         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76158
76159 2005-10-12  Simon Josefsson  <jas@extundo.com>
76160
76161         * tests/test-hmac-sha1.c: New file.
76162
76163         * modules/hmac-sha1-tests: New file.
76164
76165         * modules/hmac-sha1: New file.
76166
76167 2005-10-12  Simon Josefsson  <jas@extundo.com>
76168
76169         * modules/gc-sha1: New file.
76170
76171 2005-10-12  Simon Josefsson  <jas@extundo.com>
76172
76173         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76174
76175         * tests/test-gc-pbkdf2-sha1.c: New file.
76176
76177 2005-10-12  Simon Josefsson  <jas@extundo.com>
76178
76179         * modules/gc-md5, modules/gc-hmac-md5: New files.
76180
76181         * modules/gc (Files): Remove md5, memxor and hmac files.
76182
76183 2005-10-12  Simon Josefsson  <jas@extundo.com>
76184
76185         * m4/gc-pbkdf2-sha1.m4: New file.
76186
76187         * m4/gc-hmac-sha1.m4: New file.
76188
76189         * m4/gc-sha1: New file.
76190
76191         * m4/hmac-sha1.m4: New file.
76192
76193 2005-10-12  Simon Josefsson  <jas@extundo.com>
76194
76195         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76196
76197         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76198
76199 2005-10-12  Simon Josefsson  <jas@extundo.com>
76200
76201         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76202         suggested by Bruno Haible <bruno@clisp.org>.
76203
76204 2005-10-12  Simon Josefsson  <jas@extundo.com>
76205
76206         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76207
76208 2005-10-12  Simon Josefsson  <jas@extundo.com>
76209
76210         * lib/gc-pbkdf2-sha1.c: New file.
76211
76212         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76213
76214 2005-10-12  Simon Josefsson  <jas@extundo.com>
76215
76216         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76217
76218         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76219
76220 2005-10-12  Simon Josefsson  <jas@extundo.com>
76221
76222         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76223         GC_USE_HMAC_MD5, respectively.
76224
76225         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76226         (gc_md5): Fix typo.
76227
76228         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76229
76230         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76231
76232         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76233
76234 2005-10-12  Bruno Haible  <bruno@clisp.org>
76235
76236         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76237         Reported by Stepan Kasal <kasal@ucw.cz>.
76238
76239 2005-10-11  Simon Josefsson  <jas@extundo.com>
76240
76241         * tests/test-crc.c: New file.
76242
76243         * modules/crc, modules/crc-tests: New files.
76244
76245 2005-10-11  Simon Josefsson  <jas@extundo.com>
76246
76247         * m4/crc.m4: New file.
76248
76249 2005-10-11  Simon Josefsson  <jas@extundo.com>
76250
76251         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76252
76253         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76254
76255         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76256
76257 2005-10-11  Simon Josefsson  <jas@extundo.com>
76258
76259         * lib/crc.h, lib/crc.c: New files.
76260
76261         * lib/gc.h (gc_hash_buffer): Add doc.
76262
76263 2005-10-11  Bruno Haible  <bruno@clisp.org>
76264
76265         * modules/c-strcasestr: New file.
76266         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76267
76268 2005-10-11  Bruno Haible  <bruno@clisp.org>
76269
76270         * modules/c-strcase: New file.
76271         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76272
76273 2005-10-11  Bruno Haible  <bruno@clisp.org>
76274
76275         * lib/strcasecmp.c: Include limits.h.
76276         (strcasecmp): Avoid integer overflow on exotic platforms.
76277         * lib/strncasecmp.c: Include limits.h.
76278         (strncasecmp): Avoid integer overflow on exotic platforms.
76279         Reported by Paul Eggert.
76280
76281 2005-10-11  Bruno Haible  <bruno@clisp.org>
76282
76283         * lib/c-strcasestr.h: New file, from GNU gettext.
76284         * lib/c-strcasestr.c: New file, from GNU gettext.
76285
76286 2005-10-11  Bruno Haible  <bruno@clisp.org>
76287
76288         * lib/c-strcase.h: New file, from GNU gettext.
76289         * lib/c-strcasecmp.c: New file, from GNU gettext.
76290         * lib/c-strncasecmp.c: New file, from GNU gettext.
76291
76292 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76293
76294         * modules/mempcpy (License): GPL -> LGPL.
76295         * modules/strchrnul (License): Likewise.
76296         * modules/sysexits (License): Likewise.
76297
76298 2005-10-08  Simon Josefsson  <jas@extundo.com>
76299
76300         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76301
76302 2005-10-07  Simon Josefsson  <jas@extundo.com>
76303
76304         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76305
76306 2005-10-06  Simon Josefsson  <jas@extundo.com>
76307
76308         * tests/test-hmac-md5.c: New file.
76309
76310         * modules/hmac-md5-tests: New file.
76311
76312         * modules/hmac-md5: New file.
76313
76314 2005-10-06  Simon Josefsson  <jas@extundo.com>
76315
76316         * m4/hmac-md5.m4: New file.
76317
76318         * m4/memxor.m4: Require gl_C_RESTRICT.
76319
76320 2005-10-06  Simon Josefsson  <jas@extundo.com>
76321
76322         * lib/memxor.c (memxor): Avoid casts and warnings.
76323
76324 2005-10-06  Simon Josefsson  <jas@extundo.com>
76325
76326         * lib/hmac-md5.c: New file.
76327
76328         * lib/hmac.h: New file.
76329
76330 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76331
76332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76333         promotes to int, not unsigned int, to catch the AIX 5.3
76334         compiler bug.
76335
76336 2005-10-05  Simon Josefsson  <jas@extundo.com>
76337
76338         * modules/memxor: New file.
76339
76340         * modules/iconv (Files): Move config.rpath to havelib, it is used
76341         there.
76342
76343         * modules/havelib (Files): Add config.rpath.
76344
76345 2005-10-05  Simon Josefsson  <jas@extundo.com>
76346
76347         * m4/memxor.m4: New file.
76348
76349 2005-10-05  Simon Josefsson  <jas@extundo.com>
76350
76351         * lib/memxor.c (memxor): Fix compiler error.
76352
76353         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76354         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76355
76356         * lib/memxor.h, lib/memxor.c: New files.
76357
76358         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76359         we assume all systems have it, suggested by Jim Meyering
76360         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76361         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76362         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76363         same reasons.
76364
76365 2005-10-05  Simon Josefsson  <jas@extundo.com>
76366
76367         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76368
76369 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76372         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76373         needed, since the source code now assumes these .h files.
76374
76375 2005-10-05  Derek Price  <derek@ximbiot.com>
76376
76377         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76378
76379 2005-10-05  Bruno Haible  <bruno@clisp.org>
76380
76381         * modules/stdint (License): Change to LGPL.
76382
76383 2005-10-04  Simon Josefsson  <jas@extundo.com>
76384
76385         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76386         D. Baushke" <mdb@gnu.org>.
76387
76388 2005-10-04  Bruno Haible  <bruno@clisp.org>
76389
76390         * lib/verify.h (verify_true): Provide alternative definition for C++.
76391
76392 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76393
76394         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76395         (SSIZE_MAX): New macro, if not already defined.
76396         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76397         than 2 GiB.
76398
76399 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76400
76401         Sync from coreutils.
76402         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76403         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76404         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76405         ULLONG_MAX doesn't work with 2.7.2.1.
76406
76407 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76410         From Ben Pfaff.
76411
76412         * modules/exclude (Depends-on): Depend on verify.
76413         * modules/strtoimax (Depends-on): Likewise.
76414         * modules/utimecmp (Depends-on): Likewise.
76415
76416 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76417
76418         * lib/exclude.c: Include verify.h.
76419         (verify): Remove.  All callers changed to use verify.h's version.
76420         * lib/strtoimax.c: Likewise.
76421         * lib/utimecmp.c: Likewis.e
76422
76423         Sync from coreutils.
76424         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76425         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76426         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76427         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76428         bother returning ENOSYS if settimeofday or stime fails; just let
76429         them return whatever errno they want to return.
76430         * lib/utimens.c: Include unistd.h, for dup2.
76431         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76432         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76433
76434 2005-10-02  Jim Meyering  <jim@meyering.net>
76435
76436         Sync from coreutils.
76437         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76438         from glibc-2.2.5 that fails for read-only files.
76439
76440 2005-10-02  Jim Meyering  <jim@meyering.net>
76441
76442         Sync from coreutils.
76443         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76444         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76445         `#if HAVE_CONFIG_H'.
76446         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76447         Remove AT_FDCWD test.
76448         Do not consume the fd unless successful.
76449         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76450         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76451         block, so that we don't even try to compile it if settimeofday is
76452         available.  This works around a compilation failure on OSF1 V5.1,
76453         due to stime requiring a `long int*' while tv_sec is `int'.
76454
76455 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76456
76457         Sync from coreutils.
76458         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76459         against `yes', rather than just testing for nonempty.
76460
76461 2005-10-01  Simon Josefsson  <jas@extundo.com>
76462
76463         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76464         and Darwin.
76465
76466         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76467         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76468         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76469         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76470         Check if struct addrinfo is declared.
76471
76472 2005-10-01  Simon Josefsson  <jas@extundo.com>
76473
76474         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76475         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76476         AI_* and EAI_* definitions.  Protect function declarations.
76477
76478 2005-10-01  Jim Meyering  <jim@meyering.net>
76479
76480         Sync from coreutils.
76481
76482         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76483         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76484         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76486         in the inet and nsl libraries.  Required on Solaris 5.7.
76487
76488 2005-10-01  Jim Meyering  <jim@meyering.net>
76489
76490         Sync from coreutils.
76491         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76492         in the inet and nsl libraries.  Required on Solaris 5.7.
76493
76494 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76495
76496         * lib/getdelim.c (getdelim): Remove unused variables.
76497
76498 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76501         so that the code works even with ancient cpp.  Portability problem
76502         with GCC 2.7.2.1 reported by Thomas M.Ott.
76503
76504 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76505
76506         * modules/regex (Depends-on): Add strcase.
76507
76508         * modules/gethostname (Licence): Change from GPL to LGPL, since
76509         gethostname.c is a trivial implementation of a standard library
76510         function.
76511         * modules/poll (License): Change from GPL to LGPL, since it's
76512         derived from LGPL code.
76513
76514 2005-09-27  Jim Meyering  <jim@meyering.net>
76515
76516         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76517         HAVE_CONFIG_H.
76518
76519         * lib/intprops.h (signed_type_or_expr__): Define.
76520         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76521         for unsigned types.
76522
76523 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         * lib/verify.h (verify_expr): Remove, replacing with:
76526         (verify_true): New macro that returns true instead of void.
76527         (verify_type__): Remove.
76528         (verify): Use verify_true rather than verify_type__.
76529
76530 2005-09-26  Bruno Haible  <bruno@clisp.org>
76531
76532         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76533         is necessary.
76534         (lib_SOURCES): Remove mbchar.c.
76535         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76536         (Files): Add m4/mbrtowc.m4.
76537         * modules/mbiter: Likewise.
76538         * modules/mbuiter: Likewise.
76539
76540 2005-09-26  Bruno Haible  <bruno@clisp.org>
76541
76542         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76543         compile mbchar.c if they are not both present.
76544         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76545         * m4/mbiter.m4 (gl_MBITER): Likewise.
76546         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76547         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76548         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76549
76550 2005-09-25  Jim Meyering  <jim@meyering.net>
76551
76552         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76553         also uses socklen_t.
76554
76555 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76556
76557         * lib/utimens.c (ENOSYS): Define if not already defined.
76558         (futimens): Support having a null PATH if the file descriptor
76559         is nonnegative.
76560
76561         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76562         Remove.
76563         (__attribute): Define to empty unless GCC 3.1 or later.
76564         This works around a core dump on OpenBSD 3.4, which has GCC
76565         2.95.3, which dumps core when given __attribute__(()).  It also
76566         simplifies other tests, since we really don't want to bother with
76567         worrying about which ancient version of GCC supported what.
76568         Original problem reported by Yoann Vandoorselaere, with part of
76569         the fix suggested by Derek Price.
76570
76571 2005-09-24  Jim Meyering  <jim@meyering.net>
76572
76573         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76574         so we can once again use a positive bitfield width of 1 -- now we
76575         don't have to explain why we were using a bitfield width of 2.
76576
76577 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76578
76579         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76580         and similarly for the other external symbols.  Problem reported
76581         by James Gallager.
76582
76583         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76584         bug reported by Jim Meyering.
76585
76586         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76587         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76588         not needed, since socklen is a prerequisite module.
76589
76590 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76593         Problem reported by Eric Blake.
76594         (getaddrinfo): Initialize se so that it's not garbage.
76595         Redo internal storage allocation so that it doesn't make unportable
76596         assumptions about alignment.
76597         Fix a memory leak.
76598
76599         * lib/utimens.c (futimens): Use futimesat if available.
76600         Prefer it to futimes since it doesn't have the futimes bug.
76601
76602         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76603         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76604         Instead, declare a function that returns a pointer to an array,
76605         and use verify_type__ to declare the size of the array.
76606         Problem and germ of a solution reported by Bruno Haible.
76607         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76608         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76609
76610 2005-09-23  Jim Meyering  <jim@meyering.net>
76611
76612         Sync from coreutils.
76613         Correct build failure (socklen_t not defined) on at least
76614         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76615         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76616
76617 2005-09-23  Jim Meyering  <jim@meyering.net>
76618
76619         * modules/getaddrinfo (Depends-on): Add socklen.
76620
76621 2005-09-23  Bruno Haible  <bruno@clisp.org>
76622
76623         * tests/test-verify.c: New file.
76624
76625 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76626
76627         Sync from coreutils.
76628
76629         * modules/argmatch (Depends-on): Add verify.
76630         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76631         unistd-safer.
76632         * modules/save-cwd (Depends-on): Likewise.
76633
76634         * modules/openat (Files): Add lib/openat-die.c.
76635         (Depends-on): Remove error, exitfail.
76636         Add dirname.
76637
76638         * modules/verify: New file.
76639         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76640         with "verify" module.
76641
76642 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76643
76644         Sync from coreutils.
76645
76646         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76647         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76648         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76649         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76650         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76651         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76652         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76653         Don't bother checking for string.h, stdlib.h, unistd.h.
76654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76655         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76656         module's job.
76657         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76658         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76659
76660         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76661         (gl_GETDATE): Use it.
76662
76663         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76664
76665 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76666
76667         Sync from coreutils.
76668
76669         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76670         stat-time.h.
76671         * lib/argmatch.h: Include verify.h
76672         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76673         (ARGMATCH_ASSERT): Remove; unused.
76674         * lib/canonicalize.c: Assume STDC_HEADERS.
76675         * lib/exclude.c: Include "strcase.h".
76676         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76677         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76678         and stdio-safer.h.
76679         (getusershell): Call fopen, not fopen_safer.
76680         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76681         Do not include unistd-safer.h.
76682         (save_cwd): Don't call fd_safer; no longer needed
76683         now that we include fcntl--.h.
76684
76685         * lib/getdate.y (relative_time): New type.
76686         (RELATIVE_TIME_0): New constant.
76687         (parser_control): Use relative_time instead of doing it ourselves.
76688         (%union): Add new relative_time rel member.
76689         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76690         Now typeless.
76691         (relunit, relunit_snumber): Now of type rel.
76692         (zone, rel, relunit, get_date): Adjust to above changes.
76693
76694         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76695         Do not include unistd-safer.h.
76696         (getloadavg): Don't call fd_safer; no longer needed
76697         now that we include fcntl--.h.
76698
76699         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76700         (make_dir_parents): Treat ENOSYS like EEXIST.
76701
76702         Improve quality of diagnostics on restore_cwd failure.
76703         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76704         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76705         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76706         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76707         each time through the loop.  Do not diagnose restore_cwd failure;
76708         that is the caller's job (and perhaps the caller does not care).
76709
76710         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76711         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76712         If the file already exists but is not a directory, don't bother
76713         to try to make its parents.
76714         Close potential file descriptor leak if we can't chdir("/") (!).
76715         Don't always return true if chdir($PWD) fails; return true only
76716         if the requested action was done successfully (except for the
76717         chdir($PWD)).
76718         Don't log final directory unless we actually made it.
76719         Refactor to avoid duplicate code to fix up permissions.
76720         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76721
76722         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76723         to make it a bit faster and (I hope) clearer.
76724         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76725         Fix bug in formats like %2N.
76726
76727         * lib/verify.h: New file.
76728
76729 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76730
76731         Sync from coreutils.
76732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76733
76734 2005-09-22  Jim Meyering  <jim@meyering.net>
76735
76736         Sync from coreutils.
76737
76738         * m4/lstat.m4 (gl_FUNC_LSTAT):
76739         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76740         Remove obsolete comment.
76741         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76742         * m4/xstrtod.m4: Likewise.
76743
76744         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76745
76746 2005-09-22  Jim Meyering  <jim@meyering.net>
76747
76748         Sync from coreutils.
76749
76750         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76751
76752         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76753         the .tm_year member, since otherwise gcc-4.0 would now warn about
76754         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76755
76756         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76757         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76758
76759         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76760         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76761         when run in a time zone for which daylight savings time is in effect
76762         for the starting date.
76763
76764         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76765         stop us from restricting permissions of just-created absolute-named
76766         directories.
76767         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76768         to restore initial working directory.
76769         * lib/mkdir-p.c (make_dir_parents): New parameter:
76770         different_working_dir, to tell caller if/when we change the working
76771         directory and are unable to return to the initial one.
76772         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76773         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76774         `return false'.  This fixes a bug introduced on 2004-07-30.
76775
76776         * lib/openat.c (fdopendir): Be sure to close the supplied
76777         file descriptor before returning.  This makes our replacement
76778         implementation a little closer to Solaris's, where fdopendir
76779         ties the file descriptor to the returned DIR* pointer.
76780         * lib/openat.c (unlinkat): New function.
76781         * lib/openat.h (unlinkat): Add prototype.
76782         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76783         (openat_restore_fail): Rename from openat_restore_die.
76784         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76785
76786         Provide an alternative to exiting immediately upon save_cwd or
76787         restore_cwd failure.  Now, an application can arrange e.g.,
76788         to perform a longjump in that case.
76789         * lib/openat.c: Include dirname.h.
76790         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76791         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76792         and openat_restore_die rather than calling error directly.
76793         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76794
76795         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76796         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76797         define.
76798
76799         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76800         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76801                             int utc, int nanoseconds);
76802         Background:
76803         date should not have to allocate a megabyte of virtual memory to
76804         handle a format argument like +%1048575T.  When implemented with
76805         strftime, it must allocate such a buffer, use strftime to fill it
76806         in, print it, then free it.
76807         With fprintftime, it simply prints everything and exits.
76808         With no need for memory allocation, that's one fewer way to fail.
76809         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76810         optional field width, not before, so we accept %9:z, not %:9z.
76811         (my_strftime): Be sure to use L_('x') for literals.
76812
76813         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76814         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76815         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76816         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76817         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76818         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76819         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76820         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76821         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76822         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76823         * lib/xgethostname.c, lib/xreadlink.c:
76824         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76825
76826         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76827         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76828         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76829         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76830         and don't include <sys/file.h>).
76831
76832 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76833
76834         Sync from coreutils.
76835
76836         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76837         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76838         [!LDAV_DONE]: Avoid unused variable warning.
76839
76840 2005-09-21  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/unicodeio.h (unicode_to_mb): New declaration.
76843
76844 2005-09-20  Derek Price  <derek@ximbiot.com>
76845
76846         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76847         getaddrinfo.h.
76848
76849 2005-09-20  Bruno Haible  <bruno@clisp.org>
76850
76851         * gnulib-tool: Remove trailing slashes from the values specified for
76852         --source-base, --m4-base, --tests-base, --aux-dir.
76853         Suggested by Simon Josefsson <jas@extundo.com>.
76854
76855 2005-09-20  Bruno Haible  <bruno@clisp.org>
76856
76857         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76858         func_modules_to_filelist, func_import, func_create_testdir): Make all
76859         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76860         change when gnulib-tool is invoked in a different locale.
76861
76862 2005-09-19  Simon Josefsson  <jas@extundo.com>
76863
76864         * m4/socklen.m4: Fix typo.
76865
76866 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76867
76868         Use a consistent style for including <config.h>.
76869         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76870         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76871         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76872         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76873         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76874         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76875         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76876         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76877         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76878         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76879         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76880         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76881         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76882         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76883         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76884         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76885         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76886         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76887         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76888         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76889         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76890         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76891         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76892         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76893         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76894         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76895         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76896         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76897         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76898         lib/xstrtoumax.c, lib/yesno.c:
76899         Standardize inclusion of config.h.
76900         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76901         lib/inttostr.h:  Removed inclusion of config.h from header files.
76902         * lib/inttostr.c:  Adjusted in-tree users.
76903         * lib/timespec.h: Remove superfluous warning to include config.h.
76904         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76905         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76906         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76907         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76908         config.h with HAVE_CONFIG_H.
76909
76910 2005-09-19  Jim Meyering  <jim@meyering.net>
76911
76912         * modules/pathmax (License): Change to LGPL.
76913
76914 2005-09-19  Derek Price  <derek@ximbiot.com>
76915
76916         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76917
76918 2005-09-19  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (import): Provide default for --tests-base.
76921
76922 2005-09-19  Bruno Haible  <bruno@clisp.org>
76923
76924         * doc/quote.texi: New file, extracted from gnulib.texi.
76925         * doc/ctime.texi: New file, extracted from gnulib.texi.
76926         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76927         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76928         * doc/gnulib.texi: Include them.
76929
76930 2005-09-18  Bruno Haible  <bruno@clisp.org>
76931
76932         Portability fix.
76933         * gnulib-tool (func_readlink): New function.
76934         (func_ln_if_changed): Use it.
76935
76936 2005-09-18  Bruno Haible  <bruno@clisp.org>
76937
76938         * gnulib-tool: Support --with-tests also with --import.
76939         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76940         (func_import): Use variables $testsbase and $inctests. Emit a
76941         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76942         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76943         SUBDIRS += $testsdir.
76944         (func_create_testdir): Update.
76945
76946 2005-09-18  Bruno Haible  <bruno@clisp.org>
76947
76948         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76949         instead of $dry_run.
76950         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76951         (func_ln_if_changed): Don't handle dry-run here.
76952         (func_import): In dry-run mode, detect more precisely which actions
76953         would be performed, and don't use "...ing" verbs.
76954
76955 2005-09-18  Bruno Haible  <bruno@clisp.org>
76956
76957         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76958         (func_import): Use join on two temporary files instead of three nested
76959         loops, in order to determine which files are new or old.
76960
76961 2005-09-18  Bruno Haible  <bruno@clisp.org>
76962
76963         * gnulib-tool (func_import): Comment out code that spits out the
76964         new files with --dry-run.
76965
76966 2005-09-18  Bruno Haible  <bruno@clisp.org>
76967
76968         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76969
76970 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76971
76972         * lib/stat-time.h: New file.
76973         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76974         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76975         in a different way.
76976         (timespec_cmp): New function.
76977         * lib/utimecmp.c: Include stat-time.h.
76978         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76979         members exist, not on the obsolescent ST_MTIM_NSEC.
76980         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76981
76982 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76985
76986 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76987
76988         * MODULES.html.sh (File system functions): Add stat-time.
76989         * modules/stat-time: New file.
76990         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76991         is now done in a different way, by the stat-time module.
76992         * modules/utimecmp (Depends-on): Add stat-time.
76993
76994 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76995
76996         * m4/st_mtim.m4: Remove.  Superseded by...
76997         * m4/stat-time.m4: New file.
76998         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76999         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77000
77001 2005-09-15  Derek Price  <derek@ximbiot.com>
77002
77003         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77004
77005 2005-09-15  Derek Price  <derek@ximbiot.com>
77006
77007         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77008         * lib/regex_internal.c: Ditto, using this...
77009         (__GNUC_PREREQ): ...new macro.
77010         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77011         using...
77012         (__GNUC_PREREQ): ...this new macro.
77013
77014         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77015
77016 2005-09-15  Derek Price  <derek@ximbiot.com>
77017             Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77020         changes, consolidating in...
77021         * lib/regex_internal.h: ...this file.
77022
77023 2005-09-13  Jim Meyering  <jim@meyering.net>
77024
77025         * lib/canon-host.c: Filter through gnu indent and reword comments
77026         slightly.
77027         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77028
77029 2005-09-13  Derek Price  <derek@ximbiot.com>
77030
77031         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77032         failure.
77033         Reported by Jim Meyering  <jim@meyering.net>.
77034
77035 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77036
77037         * lib/base64.c: Typo.
77038         (base64_encode): Put b64str in initialized data section.
77039
77040 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         Merge glibc and coreutils changes into gnulib, plus a few
77043         extra fixes.
77044         * lib/md5.c: Use #error rather than a string.
77045         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77046         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77047         (__attribute__): Define to empty for non recent-GCC.
77048         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77049         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77050         Renamed from their non-__ counterparts, with new macros replacing
77051         them if not _LIBC.  Add __THROW attribute.
77052         (rol): Remove.
77053         (struct md5_ctx): Align buffer if using GCC.
77054         * lib/sha1.h (struct sha1_ctx): Likewise.
77055         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77056         The old name was backwards.
77057         (NOTSWAP): Remove; not used.
77058         (rol): New macro, moved here from md5.h.
77059         (sha1_process_block): Remove a FIXME that doesn't make sense.
77060
77061 2005-09-12  Derek Price  <derek@ximbiot.com>
77062
77063         Return usable errors from canon-host.
77064         * lib/canon-host.h: New file.
77065         * lib/canon-host.c (canon_host): Wrap...
77066         (canon_host_r): ...this new function, which now relies exclusively on
77067         getaddrinfo.
77068         (ch_strerror): New function.
77069         (last_cherror): New global.
77070         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77071         interface.
77072         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77073         void *.
77074         (freeaddrinfo): Free ai->ai_canonname when set.
77075
77076 2005-09-12  Derek Price  <derek@ximbiot.com>
77077
77078         Make canon-host require getaddrinfo.
77079         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77080         AC_LIBSOURCE canon-host.h.  Call...
77081         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77082         gl_GETADDRINFO.
77083         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77084
77085 2005-09-12  Derek Price  <derek@ximbiot.com>
77086
77087         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77088         LGPL.
77089         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77090
77091 2005-09-12  Derek Price  <derek@ximbiot.com>
77092
77093         * lib/gai_strerror.c: Include config.h when available.  Include
77094         getaddrinfo.h before other headers to test interface.
77095         Reported by Larry Jones <lawrence.jones@ugs.com>.
77096
77097 2005-09-12  Derek Price  <derek@ximbiot.com>
77098             Paul Eggert  <eggert@cs.ucla.edu>
77099
77100         * modules/glob (Files): Add glob-libc.h.
77101
77102 2005-09-12  Derek Price  <derek@ximbiot.com>
77103             Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77106         glob_.h, glob-libc.h.
77107         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77108
77109 2005-09-12  Derek Price  <derek@ximbiot.com>
77110             Paul Eggert  <eggert@cs.ucla.edu>
77111
77112         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77113         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77114         protecting things that should be done only in gnulib contexts.
77115         * lib/glob_.h: New file, containing only the glob things needed for
77116         gnulib.
77117         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77118         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77119         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77120         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77121         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77122         and to respect the namespace rules better.
77123
77124 2005-09-08  Simon Josefsson  <jas@extundo.com>
77125
77126         * modules/socklen: New file.
77127
77128 2005-09-08  Simon Josefsson  <jas@extundo.com>
77129
77130         * m4/socklen.m4: New file.
77131
77132 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77133
77134         * modules/utimens (Files): Add m4/utimbuf.m4, since
77135         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77136         Reported by Sergey Poznyakoff.
77137
77138 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77139
77140         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77141         definitions, since that's the preferred style in glibc.
77142         Fix a minor spacing issue, and update copyright notice to match
77143         glibc's.
77144
77145 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77148
77149 2005-09-06  Simon Josefsson  <jas@extundo.com>
77150
77151         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77152         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77153
77154 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77155
77156         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77157         warning.
77158
77159 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * config/srclist.txt: Add glibc bug 1302.
77162
77163 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         Change bitset word type from unsigned int to unsigned long int,
77166         as this has better performance on typical 64-bit hosts.
77167         Port bitset code to hosts with unusual word sizes.
77168         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77169         (build_collating_symbol):
77170         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77171         argument is a bitset.  This is merely a style issue, but it makes
77172         it clearer that an entire array is expected.
77173         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77174         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77175         Port to the case where bitset_word is not the same as unsigned int.
77176         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77177         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77178         Likewise.
77179         * lib/regexec.c (check_dst_limits_calc_pos_1,
77180         check_subexp_matching_top):
77181         (build_trtable, group_nodes_into_DFAstates):
77182         Likewise.
77183         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77184         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77185         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77186         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77187         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77188         * lib/regcomp.c (optimize_subexps, lower_subexp):
77189         Work even if bitset_word has holes in its bitwise representation.
77190         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77191         * lib/regexec.c (check_dst_limits_calc_pos_1,
77192         check_subexp_matching_top):
77193         Likewise.
77194         * lib/regex_internal.c (re_string_reconstruct):
77195         Don't assume UCHAR_MAX == 255.
77196         * lib/regex_internal.h (bitset_set_all): Likewise.
77197         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77198         All uses changed.
77199         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77200         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77201         All uses changed.
77202         (BITSET_WORD_MAX): New macro.
77203         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77204         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77205         (bitset_empty, bitset_copy):
77206         Prefer sizeof (bitset) to multiplying it out ourselves.
77207         (bitset_not_merge): Remove; unused.
77208         (bitset_contain): Return bool, not unsigned int with one bit on.
77209         All callers changed.
77210         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77211         alignment than re_node_set; do this by defining a new internal
77212         type struct dests_alloc and using it to allocate memory.
77213
77214 2005-09-05  Bruno Haible  <bruno@clisp.org>
77215
77216         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77217         links.
77218
77219 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77220
77221         * modules/size_max (Makefile.am): Add size_max.h
77222
77223 2005-09-04  Derek Price  <derek@ximbiot.com>
77224
77225         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77226
77227 2005-09-03  Simon Josefsson  <jas@extundo.com>
77228
77229         * gnulib-tool: Fix typo.
77230
77231 2005-09-03  Simon Josefsson  <jas@extundo.com>
77232
77233         * config/srclist.txt: Add glibc bug 1293.
77234
77235 2005-09-03  Derek Price  <derek@ximbiot.com>
77236
77237         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77238         From Larry Jones <lawrence.jones@ugs.com>.
77239
77240 2005-09-02  Simon Josefsson  <jas@extundo.com>
77241
77242         * modules/socklen: New file.
77243
77244 2005-09-02  Simon Josefsson  <jas@extundo.com>
77245
77246         * modules/havelib: New module.
77247
77248         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77249         Use havelib.
77250
77251 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77252
77253         Check for arithmetic overflow when calculating sizes, to prevent
77254         some buffer-overflow issues.  These patches are conservative, in the
77255         sense that when I couldn't determine whether an overflow was possible,
77256         I inserted a run-time check.
77257         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77258         macros.
77259         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77260         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77261         (re_xnrealloc, re_x2nrealloc): New inline functions.
77262         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77263         parse_bracket_exp):
77264         (build_equiv_class, build_charclass): Check for arithmetic overflow
77265         in size expression calculations.
77266         * lib/regex_internal.c (re_string_realloc_buffers):
77267         (build_wcs_upper_buffer, re_node_set_add_intersect):
77268         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77269         (re_dfa_add_node, register_state): Likewise.
77270         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77271         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77272         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77273         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77274
77275 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77276
77277         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77278         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77279
77280 2005-09-02  Bruno Haible  <bruno@clisp.org>
77281
77282         Support for lib vs. lib64 distinction on biarch platforms.
77283         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77284         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77285         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77286
77287 2005-09-02  Bruno Haible  <bruno@clisp.org>
77288
77289         * gnulib-tool (import): In the other first-use case, provide defaults
77290         as well.
77291
77292 2005-09-02  Bruno Haible  <bruno@clisp.org>
77293
77294         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77295         patches not yet found in the latest gettext release.
77296
77297 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77298
77299         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77300         to avoid a collision with bits/local_lim.h in glibc.
77301         All uses changed.  Problem reported by Dmitry V. Levin in
77302         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77303
77304         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77305         bugs in int versus size_t comparisons.
77306         (re_string_context_at): Fix bug where the code assumed that
77307         Idx is signed.
77308
77309         Use bool where appropriate.
77310         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77311         All callers changed.
77312         (calc_eclosure_iter): Likewise, for ROOT arg.
77313         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77314         (build_charclass_op): Likewise, for NON_MATCH arg.
77315         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77316         (re_string_construct_common): Likewise, for ICASE arg.
77317         * lib/regexec.c (re_search_2_stub, re_search_stub):
77318         Likewise, for RET_LEN arg.
77319         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77320         (set_regs): Likewise, for FL_BACKTRACK arg.
77321         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77322         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77323         (calc_eclosure_iter, parse_bracket_exp):
77324         Use bool for internal variables that are booleans.
77325         * lib/regexec.c (re_search_internal, check_matching,
77326         proceed_next_node):
77327         (set_regs, build_sifted_states, sift_states_bkref):
77328         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77329         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77330         (find_collation_sequence_value):
77331         Likewise.
77332         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77333         (re_node_set_compare):
77334         Return bool, not int. All callers changed.
77335         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77336         (build_trtable, check_node_accept): Likewise.
77337         * lib/regex_internal.h: Include stdbool.h.
77338
77339         Fix bugs uncovered when converting to bool.
77340         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77341         failure instead of charging ahead blindly.
77342         * lib/regex_internal.c (register_state): Likewise.
77343         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77344         for freeing internal storage.
77345         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77346         bitset pieces used as boolean, to avoid undefined behavior
77347         on hosts that do int overflow checking.
77348
77349 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77350
77351         * config/srclist.txt: Add glibc bugs 1285-1287.
77352
77353 2005-09-01  Jim Meyering  <jim@meyering.net>
77354
77355         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77356         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77357         Require gl_STAT_MACROS, too.
77358
77359 2005-09-01  Bruno Haible  <bruno@clisp.org>
77360
77361         * gnulib-tool (import): In the first-use case, provide defaults.
77362
77363 2005-09-01  Bruno Haible  <bruno@clisp.org>
77364
77365         * gnulib-tool (func_import): Remove the .tmp files.
77366
77367 2005-09-01  Bruno Haible  <bruno@clisp.org>
77368
77369         * gnulib-tool (func_import): Fix handling of symbolic links.
77370
77371 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77372
77373         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77374         old glibc regex code mishandles strings longer than 2**31 bytes.
77375         This patch fixes this when the regex code is used in gnulib
77376         (i.e., outside glibc).
77377
77378         This patch should not affect the use of the regex code inside
77379         glibc.  No doubt this problem also needs to be handled for glibc
77380         as well, but the result will be an incompatible change to the
77381         glibc ABI, and the old ABI will have to be supported too.  That
77382         can be the the subject for another patch.
77383
77384         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77385         governing whether the rest of this patch is active.  By default,
77386         the macro is disabled and the patch has no effect.
77387         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77388         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77389         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77390         (re_match_2, re_set_registers): Use the new types.
77391         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77392         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77393         New macros.
77394         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77395         (re_string_context_at, bin_tree_t, re_dfastate_t):
77396         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77397         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77398         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77399         (re_string_char_size_at, re_string_wchar_at):
77400         (re_string_elem_size_at):
77401         Use the new types and macros to port to 64-bit hosts.
77402         Use unsigned types for internal values, so that the code
77403         mostly works even for arrays larger than SSIZE_MAX.
77404         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77405         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77406         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77407         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77408         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77409         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77410         (calc_inveclosure, parse_dup_op, build_range_exp):
77411         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77412         (fetch_number, create_token_tree, mark_opt_subexp):
77413         Likewise.
77414         * lib/regex_internal.c (re_string_construct_common,
77415         create_ci_newstate):
77416         (create_cd_newstate, re_string_allocate, re_string_construct):
77417         (re_string_realloc_buffers, build_wcs_upper_buffer):
77418         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77419         (re_string_reconstruct, re_string_peek_byte_case):
77420         (re_string_fetch_byte_case, re_string_context_at):
77421         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77422         (re_node_set_init_copy, re_node_set_add_intersect):
77423         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77424         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77425         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77426         (re_acquire_state, re_acquire_state_context, register_state):
77427         Likewise.
77428         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77429         search_cur_bkref_entry):
77430         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77431         (re_search_internal, re_search_2_stub, re_search_stub)
77432         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77433         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77434         (update_cur_sifted_state, check_dst_limits):
77435         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77436         (check_subexp_limits, sift_states_bkref, merge_state_array):
77437         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77438         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77439         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77440         (expand_bkref_cache, check_node_accept_bytes):
77441         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77442         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77443         (acquire_init_state_context, check_halt_node_context):
77444         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77445         (sift_states_backward, clean_state_log_if_needed):
77446         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77447         (find_recover_state, transit_state_sb, transit_state_mb):
77448         (transit_state_bkref, build_trtable, match_ctx_clean):
77449         Likewise.
77450         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77451         to work around an assumption that REG_MISSING is negative.
77452
77453         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77454         (seek_collating_symbol_entry) [defined _LIBC]:
77455         (lookup_collation_sequence_value) [defined _LIBC]:
77456         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77457         Use prototypes rather than old-style function definitions.
77458         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77459         (transit_state_sb) [0]:
77460         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77461
77462         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77463         rm_eo.
77464
77465         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77466         (optimize_subexps, lower_subexp):
77467         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77468         since the signed shift might overflow.  Use 1u<<31 instead.
77469         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77470         Likewise.
77471         * lib/regexec.c (check_dst_limits_calc_pos_1,
77472         check_subexp_matching_top): Likewise.
77473
77474         * lib/regcomp.c (optimize_subexps, lower_subexp):
77475         Use CHAR_BIT rather than 8, for clarity.
77476         * lib/regexec.c (check_dst_limits_calc_pos_1):
77477         (check_subexp_matching_top): Likewise.
77478         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77479         have to worry about portability issues when shifting it left.
77480         Remove no-longer-needed test for table_size > 0.
77481         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77482         in a word, as the resulting behavior is undefined.
77483         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77484         in one case, a <= should have been an <, and in another case the
77485         whole test was missing.
77486         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77487         the standard name CHAR_BIT.
77488         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77489         this is not true on one's complement and signed-magnitude hosts.
77490
77491         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77492         next_last_offset.
77493         (struct re_dfa_t): Remove unused member states_alloc.
77494         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77495
77496 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77497
77498         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77499         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77500         and large-file glibc and in 32-bit large-file Solaris.
77501
77502 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77505         lengths fit in regoff_t; this isn't true if regoff_t is the same
77506         width as size_t.
77507         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77508         (= START + RANGE) instead of RANGE.  This avoids overflow
77509         problems when regoff_t is the same width as size_t.
77510         All callers changed.
77511         (re_search_2_stub): Check for overflow when adding the
77512         sizes of the two strings.
77513         (re_search_stub): Check for overflow when adding START
77514         to RANGE; if it occurs, substitute the extreme value.
77515
77516 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77517
77518         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77519
77520 2005-08-31  Jim Meyering  <jim@meyering.net>
77521
77522         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77523         a pointer-to-const.
77524         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77525         (register_state): Likewise.
77526         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77527         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77528         (group_nodes_into_DFAstates): Likewise.
77529
77530 2005-08-31  Jim Meyering  <jim@meyering.net>
77531
77532         * check-module: Add a FIXME comment.
77533
77534 2005-08-31  Eric Blake  <ebb9@byu.net>
77535
77536         * modules/unistd-safer (Files): Add unistd--.h.
77537         * modules/stdio-safer (Files): Add stdio--.h.
77538
77539 2005-08-31  Derek Price  <derek@ximbiot.com>
77540
77541         * lib/getdelim.c (getdelim): Return EOF on EOF.
77542         Reported by Larry Jones <lawrence.jones@ugs.com>.
77543
77544 2005-08-31  Bruno Haible  <bruno@clisp.org>
77545
77546         Avoid unnecessary diffs in the generated lib/Makefile.am.
77547         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77548         the generated files.
77549         (func_import): Don't set cmd.
77550
77551 2005-08-31  Bruno Haible  <bruno@clisp.org>
77552
77553         * lib/strstr.c: Include <stddef.h>, for NULL.
77554         * lib/strcasestr.c: Likewise.
77555         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77556
77557 2005-08-31  Bruno Haible  <bruno@clisp.org>
77558
77559         * gnulib-tool: New option --macro-prefix.
77560         (func_import): Use macro_prefix.
77561         (import): Handle option --macro-prefix.
77562
77563 2005-08-31  Bruno Haible  <bruno@clisp.org>
77564
77565         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77566         Also use new variables cached_lgpl, cached_libtool.
77567
77568 2005-08-31  Bruno Haible  <bruno@clisp.org>
77569
77570         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77571         always instantiating them.
77572
77573 2005-08-31  Bruno Haible  <bruno@clisp.org>
77574
77575         * gnulib-tool (func_import): Read the previous cached settings
77576         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77577         earlier added by gnulib but are now dropped. Warn when a gnulib file
77578         overwrites a non-gnulib file.
77579
77580 2005-08-31  Bruno Haible  <bruno@clisp.org>
77581
77582         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77583         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77584         projects that don't keep autogenerated files in CVS. Put into
77585         actioncmd only the specified modules, not the transitive closure.
77586
77587 2005-08-31  Bruno Haible  <bruno@clisp.org>
77588
77589         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77590         Create directories that shall be filled.
77591         (import): Don't look for gl_* macros in configure.ac. Recurse across
77592         all directories containing a gnulib-cache.m4 files, if meaningful.
77593
77594 2005-08-31  Bruno Haible  <bruno@clisp.org>
77595
77596         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77597         (import): Set seen_libtool when we see gl_LIBTOOL.
77598
77599 2005-08-31  Bruno Haible  <bruno@clisp.org>
77600
77601         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77602         declaration macro definitions from generated gnulib.m4.
77603
77604 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77605
77606         * lib/iconvme.h: Add prototype for iconv_alloc.
77607
77608 2005-08-29  Simon Josefsson  <jas@extundo.com>
77609
77610         * lib/iconvme.c: Fix errno.
77611
77612 2005-08-29  Bruno Haible  <bruno@clisp.org>
77613
77614         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77615         that it works when the directory contains spaces.
77616
77617 2005-08-29  Bruno Haible  <bruno@clisp.org>
77618
77619         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77620
77621 2005-08-29  Bruno Haible  <bruno@clisp.org>
77622
77623         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77624         Emit more advice.
77625
77626 2005-08-29  Bruno Haible  <bruno@clisp.org>
77627         and Stepan Kasal  <kasal@ucw.cz>
77628
77629         * check-module: If more parameters are given, check each of them
77630         separately; add more exceptions, as noted by Jim Meyering.
77631         (check_module): New procedure.
77632         (%exempt_header): Now contains all exceptions.
77633
77634 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77635
77636         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77637
77638 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77639
77640         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77641
77642 2005-08-28  Bruno Haible  <bruno@clisp.org>
77643
77644         * m4/gnulib-tool.m4: New file.
77645
77646 2005-08-27  Jim Meyering  <jim@meyering.net>
77647
77648         * modules/unistd-safer (Files): Add pipe-safer.c.
77649         * modules/fcntl-safer (Files): Add creat-safer.c.
77650
77651 2005-08-27  Jim Meyering  <jim@meyering.net>
77652
77653         * m4/stdlib-safer.m4: New file.  From coreutils.
77654         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77655         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77656         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77657         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77658         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77659
77660 2005-08-27  Jim Meyering  <jim@meyering.net>
77661
77662         * lib/fopen-safer.c: Merge minor changes from coreutils.
77663         * lib/dup-safer.c: Likewise.
77664         * lib/fd-safer.c: Likewise.
77665
77666         Merge from coreutils.
77667         * lib/stdio--.h: New file.
77668         * lib/stdlib--.h: New file.
77669         * lib/mkstemp-safer.c: New file.
77670
77671         GNU tar needs these.
77672         * lib/pipe-safer.c: New file.
77673         * lib/creat-safer.c: New file.
77674         * lib/fcntl--.h (creat): Define to creat_safer.
77675         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77676         * lib/unistd--.h (pipe): Define to pipe_safer.
77677         * lib/unistd-safer.h: Declare pipe_safer.
77678
77679 2005-08-26  Simon Josefsson  <jas@extundo.com>
77680
77681         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77682         Haible <bruno@clisp.org>.
77683
77684 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77685
77686         * lib/regex_internal.h: Remove all references to
77687         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77688         or better.
77689         (bitset_not, bitset_merge, bitset_not_merge):
77690         (bitset_mask, re_string_allocate, re_string_construct):
77691         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77692         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77693         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77694         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77695         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77696         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77697         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77698         (re_acquire_state_context):
77699         Remove unnecessary forward decls.
77700         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77701         Put __attribute at function definition,
77702         now that the function decl has been removed.
77703         * lib/regex_internal.c (re_string_peek_byte_case):
77704         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77705         Likewise.
77706
77707 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77708
77709         * m4/regex.m4: Add AC_PREREQ(2.50).
77710         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77711
77712 2005-08-25  Simon Josefsson  <jas@extundo.com>
77713
77714         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77715         __fsetlocking.
77716
77717 2005-08-25  Simon Josefsson  <jas@extundo.com>
77718
77719         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77720         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77721         GLIBC specific code.
77722
77723 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         Make regex safe for g++.  This fixes one real bug (an "err"
77726         that should have been "*err").  g++ problem reported by
77727         Sam Steingold.
77728         * lib/regex_internal.h (re_calloc): New macro, consistent with
77729         re_malloc etc.  All callers of calloc changed to use re_calloc.
77730         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77731         not int.  All callers changed.
77732         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77733         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77734         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77735         (find_recover_state): Change "err" to "*err"; this fixes what
77736         appears to be a real bug.
77737         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77738         versus int.
77739
77740 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * modules/regex (Depends-on): Add malloc, since the code
77743         assumes that !malloc(0) means failure.
77744
77745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77748
77749         alloca modernization/simplification for regex.
77750         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77751         needs to be at the start of the file, and can be moved into
77752         regex_internal.h and simplified.
77753         * lib/regex_internal.h: Include <alloca.h>.
77754         (__libc_use_alloca) [!defined _LIBC]: New macro.
77755         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77756         now works outside glibc.
77757
77758 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77759
77760         * config/srclist.txt: Add glibc bugs 1241, 1245.
77761
77762 2005-08-25  Jim Meyering  <jim@meyering.net>
77763
77764         * lib/open-safer.c: Include <config.h>.
77765         Otherwise, we'd lose LARGEFILE support in any file using
77766         e.g. "fcntl--.h"
77767
77768 2005-08-25  Bruno Haible  <bruno@clisp.org>
77769
77770         * m4/minmax.m4: Require autoconf 2.52.
77771         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77772         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77773         alternatives of translit over the alphabet.
77774         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77775
77776 2005-08-24  Simon Josefsson  <jas@extundo.com>
77777
77778         * tests/test-getpass.c: New file.
77779
77780 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77783         for GNU regex features.
77784
77785 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77788         * lib/regex.h (regerror): Likewise.
77789
77790         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77791         requires this.  (The code never needed it.)
77792
77793         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77794         All uses of recently-renamed identifiers changed to use the new,
77795         POSIX-compliant names.  The code will build and run just fine
77796         without these changes, but it's better to eat our own dog food
77797         and use the standard-conforming names.
77798
77799         * lib/regex.h: Fix a multitude of POSIX name space violations.
77800         These changes have an effect only for programs that define
77801         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77802         do not change anything for programs compiled in the normal way.
77803         Also, there is no effect on the ABI.
77804
77805         (_REGEX_SOURCE): New macro.
77806         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77807         defined and _GNU_SOURCE is not; this fixes a name space violation.
77808
77809         Rename the following macros to obey POSIX requirements.
77810         The old names are still visible as macros if _REGEX_SOURCE is defined.
77811         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77812         RE_BACKSLASH_ESCAPE_IN_LISTS.
77813         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77814         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77815         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77816         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77817         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77818         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77819         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77820         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77821         (REG_INTERVALS): renamed from RE_INTERVALS.
77822         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77823         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77824         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77825         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77826         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77827         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77828         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77829         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77830         RE_UNMATCHED_RIGHT_PAREN_ORD.
77831         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77832         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77833         (REG_DEBUG): renamed from RE_DEBUG.
77834         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77835         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77836         unusual, since we can't clash with the POSIX REG_ICASE.
77837         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77838         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77839         (REG_NO_SUB): renamed from RE_NO_SUB.
77840         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77841         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77842         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77843         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77844         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77845         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77846         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77847         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77848         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77849         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77850         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77851         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77852         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77853         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77854         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77855         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77856         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77857         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77858         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77859         (REG_FIXED): Renamed from REGS_FIXED.
77860         (REG_NREGS): Renamed from RE_NREGS.
77861
77862         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77863         of other REG_* macros, since POSIX says the user is allowed to
77864         #undef these macros selectively.
77865
77866         (reg_errcode_t): Update comment stating what other tables need
77867         to be consistent.
77868
77869         Rename the following enum values to obey POSIX requirements.
77870         The old names are still visible as macros.
77871         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77872         is not defined, since GNU is supposed to be a superset of POSIX as
77873         much as possible, and since we want reg_errcode_t to be a signed
77874         type for implementation consistency.
77875         (_REG_NOERROR): Renamed from REG_NOERROR.
77876         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77877         (_REG_BADPAT): Renamed from REG_BADPAT.
77878         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77879         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77880         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77881         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77882         (_REG_EBRACK): Renamed from REG_EBRACK.
77883         (_REG_EPAREN): Renamed from REG_EPAREN.
77884         (_REG_EBRACE): Renamed from REG_EBRACE.
77885         (_REG_BADBR): Renamed from REG_BADBR.
77886         (_REG_ERANGE): Renamed from REG_ERANGE.
77887         (_REG_ESPACE): Renamed from REG_ESPACE.
77888         (_REG_BADRPT): Renamed from REG_BADRPT.
77889         (_REG_EEND): Renamed from REG_EEND.
77890         (_REG_ESIZE): Renamed from REG_ESIZE.
77891         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77892         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77893         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77894         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77895         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77896
77897         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77898         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77899         changed.  But support the old name if the new one is not defined
77900         and if _REGEX_SOURCE.
77901
77902         Change the following member names in struct re_pattern_buffer.
77903         The old names are still supported if !_REGEX_SOURCE.
77904         The new names are always supported, regardless of _REGEX_SOURCE.
77905         (re_buffer): Renamed from buffer.
77906         (re_allocated): Renamed from allocated.
77907         (re_used): Renamed from used.
77908         (re_syntax): Renamed from syntax.
77909         (re_fastmap): Renamed from fastmap.
77910         (re_translate): Renamed from translate.
77911         (re_can_be_null): Renamed from can_be_null.
77912         (re_regs_allocated): Renamed from regs_allocated.
77913         (re_fastmap_accurate): Renamed from fastmap_accurate.
77914         (re_no_sub): Renamed from no_sub.
77915         (re_not_bol): Renamed from not_bol.
77916         (re_not_eol): Renamed from not_eol.
77917         (re_newline_anchor): Renamed from newline_anchor.
77918
77919         Change the following member names in struct re_registers.
77920         The old names are still supported if !_REGEX_SOURCE.
77921         The new names are always supported, regardless of _REGEX_SOURCE.
77922         (rm_num_regs): Renamed from num_regs.
77923         (rm_start): Renamed from start.
77924         (rm_end): Renamed from end.
77925
77926         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77927         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77928         Prepend __ to parameter names.
77929
77930         Undo yesterday's changes.
77931
77932 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77933
77934         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77935         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77936         lib/regex.c.
77937
77938 2005-08-24  Jim Meyering  <jim@meyering.net>
77939
77940         Sync from coreutils.
77941         * m4/fcntl-safer.m4: New file.
77942
77943         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77944         and object files for this module.
77945
77946 2005-08-24  Jim Meyering  <jim@meyering.net>
77947
77948         Sync from coreutils.
77949         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77950
77951 2005-08-24  Jim Meyering  <jim@meyering.net>
77952
77953         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77954         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77955
77956 2005-08-24  Jim Meyering  <jim@meyering.net>
77957
77958         * modules/fcntl-safer: New module.
77959         * modules/fts (Depends-on): Add fcntl-safer.
77960         * MODULES.html.sh (File descriptor based Input/Output):
77961         Add fcntl-safer.
77962
77963 2005-08-24  Bruno Haible  <bruno@clisp.org>
77964
77965         Support for unit test modules.
77966         * modules/README: Mention tests modules.
77967         * modules/TEMPLATE-TESTS: New file.
77968         * gnulib-tool: New options --extract-tests-module, --with-tests and
77969         --tests-base (unused for the moment).
77970         (testsbase, inctests): New variables.
77971         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77972         (func_verify_module): Exclude TEMPLATE-TESTS.
77973         (func_verify_nontests_module, func_verify_tests_module): New functions.
77974         (func_get_dependencies): Add implicit dependency for tests modules.
77975         (func_get_tests_module): New function.
77976         (func_modules_transitive_closure): When --with-tests was specified,
77977         include the unit tests as well, unless explicitly avoided.
77978         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77979         (func_emit_tests_Makefile_am): New function.
77980         (func_create_testdir): When --with-tests was specified, emit a
77981         tests/ directory.
77982         * MODULES.html.sh (Future developments): Update.
77983
77984 2005-08-24  Bruno Haible  <bruno@clisp.org>
77985
77986         * modules/tls-tests: New file.
77987         * tests/test-tls.c: New file, from GNU gettext.
77988
77989 2005-08-24  Bruno Haible  <bruno@clisp.org>
77990
77991         * modules/lock-tests: New file.
77992         * tests/test-lock.c: New file, from GNU gettext.
77993
77994 2005-08-24  Bruno Haible  <bruno@clisp.org>
77995
77996         * lib/lock.h: Add multiple inclusion guard.
77997         * lib/tls.h: Add multiple inclusion guard.
77998
77999 2005-08-24  Bruno Haible  <bruno@clisp.org>
78000
78001         * gnulib-tool: Add support for the --aux-dir option to
78002         --create-testdir, --create-megatestdir, --test, --megatest.
78003         (func_create_testdir, func_create_megatestdir): Optionally emit a
78004         AC_CONFIG_AUX_DIR directive.
78005         (create-testdir, create-megatestdir, test, megatest): Provide a
78006         default value for $auxdir.
78007
78008 2005-08-24  Bruno Haible  <bruno@clisp.org>
78009
78010         * gnulib-tool (import): Use compound statement instead of subshell
78011         where possible.
78012
78013 2005-08-24  Bruno Haible  <bruno@clisp.org>
78014
78015         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78016
78017 2005-08-24  Bruno Haible  <bruno@clisp.org>
78018
78019         * gnulib-tool (func_version): Update.
78020
78021 2005-08-24  Bruno Haible  <bruno@clisp.org>
78022
78023         * gnulib-tool (func_import, func_create_testdir,
78024         func_create_megatestdir): Quote all autoconf macro arguments.
78025
78026 2005-08-24  Bruno Haible  <bruno@clisp.org>
78027
78028         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78029         option --force, because --force causes the aclocal.m4 of each
78030         subdirectory to be newer than the corresponding config.h.in.
78031
78032 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78033
78034         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78035         All contents moved to gl_REGEX.
78036         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78037         assume that it does.
78038
78039 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78040
78041         * lib/regex.h (REG_NOSYS)
78042         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78043         Define, since POSIX requires it as of 2001.
78044         (_REG_ENOSYS)
78045         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78046         New private symbol, used to keep the enum signed in all cases.
78047         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78048         Youngman in
78049         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78050
78051         * lib/regex_internal.c (re_string_skip_chars, register_state):
78052         (calc_state_hash):
78053         Remove forward decls; no longer needed now that we use prototypes.
78054         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78055         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78056         (clean_state_log_if_needed): Likewise.
78057
78058 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78059
78060         * config/srclist.txt: Add glibc bugs 1231-1233.
78061
78062 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78063
78064         Fix problems reported by Sam Steingold in
78065         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78066         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78067         assumed that reg_errcode_t is a signed type, which is not
78068         necessarily true if _XOPEN_SOURCE is not defined.
78069         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78070         since some compilers warn about it otherwise.
78071
78072 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78075         (init_word_char, create_initial_state, duplicate_node_closure):
78076         (fetch_token, peek_token_bracket, build_range_exp):
78077         (build_collating_symbol): Remove forward decls; no longer needed
78078         now that we use prototypes.
78079
78080         * lib/regcomp.c:
78081         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78082         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78083         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78084         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78085         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78086         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78087         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78088         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78089         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78090         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78091         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78092         (build_charclass, build_charclass_op, fetch_number, create_tree):
78093         (create_token_tree, mark_opt_subexp, duplicate_tree):
78094         Use prototypes rather than old-style definitions.
78095
78096         * lib/regex_internal.c:
78097         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78098         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78099         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78100         (re_string_reconstruct, re_string_peek_byte_case):
78101         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78102         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78103         (re_node_set_init_copy, re_node_set_add_intersect):
78104         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78105         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78106         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78107         (re_acquire_state, re_acquire_state_context, register_state):
78108         (create_ci_newstate, create_cd_newstate, free_state):
78109         Likewise.
78110         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78111         re_search_2):
78112         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78113         (re_search_internal, prune_impossible_nodes):
78114         (acquire_init_state_context, check_matching, static):
78115         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78116         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78117         (update_regs, sift_states_backward, build_sifted_states):
78118         (clean_state_log_if_needed, merge_state_array):
78119         (update_cur_sifted_state, add_epsilon_src_nodes):
78120         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78121         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78122         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78123         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78124         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78125         (check_arrival, check_arrival_add_next_nodes):
78126         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78127         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78128         (check_node_accept_bytes, check_node_accept, extend_buffers):
78129         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78130         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78131         (sift_ctx_init):
78132         Likewise.
78133
78134         * lib/regex_internal.h:
78135         (re_string_allocate, re_string_construct, re_string_reconstruct):
78136         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78137         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78138         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78139         (re_string_context_at, re_string_peek_byte_case):
78140         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78141         is defined, since we now use prototypes always.
78142
78143         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78144         C89 or better.  All uses removed.
78145
78146 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78147
78148         * config/srclist.txt: Add glibc bugs 1220-1227.
78149
78150 2005-08-20  Jim Meyering  <jim@meyering.net>
78151
78152         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78153         of unused local, dfa.
78154
78155 2005-08-20  Bruno Haible  <bruno@clisp.org>
78156
78157         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78158
78159 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78162         (re_node_set_insert_last, re_dfa_add_node):
78163         Rename local variables to avoid GCC shadowing warnings.
78164
78165 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78168         [defined lint]: Suppress bogus uninitialized-variable warnings.
78169
78170         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78171         and let the caller return REG_ESPACE if out of space.  This
78172         removes an uninitialied-variable warning with GCC 4.0.1, and also
78173         avoids taking the address of a local variable.  All callers
78174         changed.
78175
78176 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78177
78178         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78179         $LIBCSRC/posix/regexec.c.
78180         Add glibc bug 1217 for regcomp.c.
78181
78182 2005-08-19  Jim Meyering  <jim@meyering.net>
78183
78184         * lib/regexec.c (proceed_next_node): Redo local variables to
78185         avoid GCC shadowing warnings.
78186
78187 2005-08-18  Bruno Haible  <bruno@clisp.org>
78188
78189         * lib/strstr.c (strstr): Fix return value in multibyte case.
78190         * lib/strcasestr.c (strcasestr): Likewise.
78191
78192 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78193
78194         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78195
78196 2005-08-17  Jim Meyering  <jim@meyering.net>
78197
78198         Make the %s format (seconds since the epoch) work for a negative
78199         number and when used with a zero-padded field width, e.g. %015s.
78200
78201         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78202         label so that it precedes the code to set `digits'.  Otherwise,
78203         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78204         print `00-22'.  Now, it prints `-0022', as it should.
78205
78206 2005-08-17  Bruno Haible  <bruno@clisp.org>
78207
78208         * modules/strstr (Files): Add m4/mbrtowc.m4.
78209         (Depends-on): Add mbuiter.
78210
78211 2005-08-17  Bruno Haible  <bruno@clisp.org>
78212
78213         * modules/strcasestr: New file.
78214         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78215         strcasestr.
78216
78217 2005-08-17  Bruno Haible  <bruno@clisp.org>
78218
78219         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78220
78221 2005-08-17  Bruno Haible  <bruno@clisp.org>
78222
78223         * modules/mbuiter: New file.
78224         * MODULES.html.sh (Extended multibyte and wide character utilities):
78225         Add mbuiter.
78226
78227 2005-08-17  Bruno Haible  <bruno@clisp.org>
78228
78229         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78230         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78231
78232 2005-08-17  Bruno Haible  <bruno@clisp.org>
78233
78234         * m4/strcasestr.m4: New file.
78235
78236 2005-08-17  Bruno Haible  <bruno@clisp.org>
78237
78238         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78239         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78240
78241 2005-08-17  Bruno Haible  <bruno@clisp.org>
78242
78243         * lib/strcasestr.h: New file.
78244         * lib/strcasestr.c: New file.
78245
78246 2005-08-17  Bruno Haible  <bruno@clisp.org>
78247
78248         * lib/strcasecmp.c: Use mbuiter.h.
78249
78250 2005-08-17  Bruno Haible  <bruno@clisp.org>
78251
78252         * lib/mbuiter.h: New file.
78253
78254 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78255
78256         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78257         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78258         and gl_GETOPT are both invoked via different paths (as happens
78259         with GNU tar CVS because it uses both argp and getopt), the former
78260         wins.
78261
78262 2005-08-16  Bruno Haible  <bruno@clisp.org>
78263
78264         * modules/tls: New file.
78265         * MODULES.html.sh (Multithreading): Add tls.
78266
78267 2005-08-16  Bruno Haible  <bruno@clisp.org>
78268
78269         * modules/strnlen1: New file.
78270         * MODULES.html.sh (String handling): Add strnlen1.
78271
78272 2005-08-16  Bruno Haible  <bruno@clisp.org>
78273
78274         * modules/strcase (Files): Add m4/mbrtowc.m4.
78275         (Depends-on): Add strnlen1, mbchar.
78276
78277 2005-08-16  Bruno Haible  <bruno@clisp.org>
78278
78279         * modules/mbiter: New file.
78280         * MODULES.html.sh (Extended multibyte and wide character utilities):
78281         Add mbiter.
78282
78283 2005-08-16  Bruno Haible  <bruno@clisp.org>
78284
78285         * modules/mbfile: New file.
78286         * MODULES.html.sh (Extended multibyte and wide character utilities):
78287         Add mbfile.
78288
78289 2005-08-16  Bruno Haible  <bruno@clisp.org>
78290
78291         * modules/mbchar: New file.
78292         * MODULES.html.sh (Extended multibyte and wide character utilities):
78293         New section.
78294
78295 2005-08-16  Bruno Haible  <bruno@clisp.org>
78296
78297         * m4/tls.m4: New file, from GNU gettext.
78298
78299 2005-08-16  Bruno Haible  <bruno@clisp.org>
78300
78301         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78302         always.
78303         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78304
78305 2005-08-16  Bruno Haible  <bruno@clisp.org>
78306
78307         * m4/mbiter.m4: New file.
78308
78309 2005-08-16  Bruno Haible  <bruno@clisp.org>
78310
78311         * m4/mbfile.m4: New file.
78312
78313 2005-08-16  Bruno Haible  <bruno@clisp.org>
78314
78315         * m4/mbchar.m4: New file.
78316
78317 2005-08-16  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/tls.h: New file, from GNU gettext.
78320         * lib/tls.c: New file, from GNU gettext.
78321
78322 2005-08-16  Bruno Haible  <bruno@clisp.org>
78323
78324         * lib/strnlen1.h: New file.
78325         * lib/strnlen1.c: New file.
78326
78327 2005-08-16  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78330         (mbi_init): Update.
78331         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78332         NUL byte, not after it.
78333
78334 2005-08-16  Bruno Haible  <bruno@clisp.org>
78335
78336         * lib/strcase.h (strcasecmp): Add note in comments.
78337         * lib/strncasecmp.c: Use code from strcasecmp.c.
78338         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78339         (strcasecmp): Work correctly in multibyte locales.
78340
78341 2005-08-16  Bruno Haible  <bruno@clisp.org>
78342
78343         * lib/mbiter.h: New file.
78344
78345 2005-08-16  Bruno Haible  <bruno@clisp.org>
78346
78347         * lib/mbfile.h: New file.
78348
78349 2005-08-16  Bruno Haible  <bruno@clisp.org>
78350
78351         * lib/mbchar.h: New file.
78352         * lib/mbchar.c: New file.
78353
78354 2005-08-16  Bruno Haible  <bruno@clisp.org>
78355
78356         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78357         the valid ones. Makes the comparison operations transitive:
78358         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78359         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78360
78361 2005-08-15  Simon Josefsson  <jas@extundo.com>
78362
78363         * modules/ssize_t (License): Change to 'unlimited'.
78364
78365         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78366
78367 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78368
78369         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78370         Add comments for each pending glibc patch.
78371
78372 2005-08-15  Bruno Haible  <bruno@clisp.org>
78373
78374         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78375         __cplusplus is defined.
78376
78377 2005-08-14  Jim Meyering  <jim@meyering.net>
78378
78379         Sync from coreutils.
78380
78381         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78382         Use the hash-table-based cycle-detection code not just when
78383         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78384         Reported by James Youngman in
78385         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78386         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78387         FTS_TIGHT_CYCLE_CHECK.
78388         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78389         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78390         once again.
78391         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78392         * lib/fts.c (fd_safer): Remove decl.
78393         Include fcntl--.h rather than unistd-safer.h
78394         (fts_safe_changedir): Don't call fd_safer; no longer needed
78395         now that we include fcntl--.h.
78396
78397 2005-08-12  Simon Josefsson  <jas@extundo.com>
78398
78399         * modules/getndelim2: Use ssize_t module.
78400         * modules/getnline: Likewise.
78401         * modules/safe-read: Likewise.
78402         * modules/xreadlink: Likewise.
78403
78404         * modules/ssize_t: New file.
78405
78406 2005-08-12  Simon Josefsson  <jas@extundo.com>
78407
78408         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78409
78410 2005-08-12  Simon Josefsson  <jas@extundo.com>
78411
78412         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78413         ssize_t.
78414
78415 2005-08-12  Simon Josefsson  <jas@extundo.com>
78416
78417         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78418         readline, getdelim and check_version.
78419         (Support for systems lacking ISO C 99: Sizes of integer types):
78420         Add size_max.
78421
78422 2005-08-12  Bruno Haible  <bruno@clisp.org>
78423
78424         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78425
78426 2005-08-11  Simon Josefsson  <jas@extundo.com>
78427
78428         * modules/readline: New file.
78429
78430         * modules/strnlen (Files): Add strnlen.h.
78431
78432 2005-08-11  Simon Josefsson  <jas@extundo.com>
78433
78434         * m4/readline.m4: New file.
78435
78436 2005-08-11  Simon Josefsson  <jas@extundo.com>
78437
78438         * lib/readline.h, readline.c: New file.
78439
78440 2005-08-11  Simon Josefsson  <jas@extundo.com>
78441
78442         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78443         gl_AVOID.
78444
78445 2005-08-11  Bruno Haible  <bruno@clisp.org>
78446
78447         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78448
78449 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78450
78451         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78452
78453 2005-08-10  Simon Josefsson  <jas@extundo.com>
78454
78455         * tests/test-iconvme.c: New file.
78456
78457 2005-08-10  Simon Josefsson  <jas@extundo.com>
78458
78459         * m4/strnlen.m4: New file.
78460
78461         * m4/strndup.m4: Don't check for strnlen declaration, done in
78462         strnlen.m4.
78463
78464 2005-08-10  Simon Josefsson  <jas@extundo.com>
78465
78466         * lib/strndup.c: Use strnlen.h.
78467
78468         * lib/strnlen.h: New file.
78469
78470 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78471
78472         * README: Typos.
78473
78474 2005-08-02  Simon Josefsson  <jas@extundo.com>
78475
78476         * modules/readline: New file.
78477
78478 2005-08-02  Simon Josefsson  <jas@extundo.com>
78479
78480         * modules/getdelim: New file.
78481
78482         * modules/getline: Rewrite, don't use getndelim2.
78483
78484 2005-08-02  Simon Josefsson  <jas@extundo.com>
78485
78486         * m4/getline.m4: Separate out getdelim stuff into separate module.
78487
78488         * m4/getdelim.m4: New file.
78489
78490 2005-08-02  Simon Josefsson  <jas@extundo.com>
78491
78492         * lib/getline.h, getline.c: Rewrite.
78493
78494         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78495
78496 2005-07-31  Bruno Haible  <bruno@clisp.org>
78497
78498         * lib/lock.h (gl_lock_initializer): New macro.
78499         (gl_lock_define_initialized): Use it.
78500         (gl_rwlock_initializer): New macro.
78501         (gl_rwlock_define_initialized): Use it.
78502         (gl_recursive_lock_initializer): New macro.
78503         (gl_recursive_lock_define_initialized): Use it.
78504
78505 2005-07-30  Karl Berry  <karl@gnu.org>
78506
78507         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78508         Report from Ben Pfaff, regarding getopt.
78509
78510 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78513         normal way.
78514         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78515         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78516         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78517         (gl_GETOPT): Use the new macros.  Most of the implementation
78518         is moved to the new macros.  This is for programs like Emacs
78519         that don't want all the functionality of gl_GETOPT.
78520
78521 2005-07-26  Bruno Haible  <bruno@clisp.org>
78522
78523         * m4/lock.m4: Update from GNU gettext.
78524
78525 2005-07-26  Bruno Haible  <bruno@clisp.org>
78526
78527         * lib/lock.h: Update from GNU gettext.
78528         * lib/lock.c: Update from GNU gettext.
78529
78530 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78533         obsolescent AC_TRY_RUN.  Include the default includes files, for
78534         'exit'.
78535
78536 2005-07-24  Bruno Haible  <bruno@clisp.org>
78537
78538         * modules/visibility: New file.
78539         * MODULES.html.sh (Misc): Add visibility.
78540
78541 2005-07-24  Bruno Haible  <bruno@clisp.org>
78542
78543         * m4/visibility.m4: New file.
78544
78545 2005-07-24  Bruno Haible  <bruno@clisp.org>
78546
78547         * doc/visibility.texi: New file.
78548
78549 2005-07-22  Bruno Haible  <bruno@clisp.org>
78550
78551         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78552         $(ALLOCA_H), redundant through BUILT_SOURCES.
78553         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78554         redundant through BUILT_SOURCES.
78555         * modules/byteswap (Makefile.am): Remove explicit dependency on
78556         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78557         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78558         $(FNMATCH_H), redundant through BUILT_SOURCES.
78559         * modules/getopt (Makefile.am): Remove explicit dependency on
78560         $(GETOPT_H), redundant through BUILT_SOURCES.
78561         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78562         redundant through BUILT_SOURCES.
78563         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78564         redundant through BUILT_SOURCES.
78565         * modules/stdbool (Makefile.am): Remove explicit dependency on
78566         $(STDBOOL_H), redundant through BUILT_SOURCES.
78567         * modules/stdint (Makefile.am): Remove explicit dependency on
78568         $(STDINT_H), redundant through BUILT_SOURCES.
78569         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78570         Remove explicit dependency on $(SYSEXITS_H).
78571         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78572
78573 2005-07-18  Simon Josefsson  <jas@extundo.com>
78574
78575         * lib/check-version.c (check_version): Accept identical versions too.
78576
78577 2005-07-18  Bruno Haible  <bruno@clisp.org>
78578
78579         * modules/lock: New file.
78580         * MODULES.html.sh (Multithreading): New section.
78581
78582 2005-07-18  Bruno Haible  <bruno@clisp.org>
78583
78584         * m4/lock.m4: New file, from GNU gettext.
78585
78586 2005-07-18  Bruno Haible  <bruno@clisp.org>
78587
78588         * lib/lock.h: New file, from GNU gettext.
78589         * lib/lock.c: New file, from GNU gettext.
78590
78591 2005-07-18  Bruno Haible  <bruno@clisp.org>
78592
78593         * lib/lock.h (gl_once_t): New type.
78594         (gl_once_define, gl_once): New macros.
78595         * lib/lock.c (fresh_once): New variable.
78596         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78597         functions.
78598
78599 2005-07-16  Simon Josefsson  <jas@extundo.com>
78600
78601         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78602         workaround, suggested by Bruno.
78603
78604 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78605
78606         * modules/xalloc (Depends-on): Add xalloc-die.
78607         * modules/xvasprintf (Depends-on): Add xalloc-die.
78608
78609 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78610
78611         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78612         with a minor change.
78613
78614 2005-07-15  Bruno Haible  <bruno@clisp.org>
78615
78616         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78617         When using lib/poll.c, define poll as rpl_poll.
78618
78619 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78620
78621         * modules/argp (Depends-on): Remove unlocked-io.
78622
78623 2005-07-14  Derek Price  <derek@ximbiot.com>
78624
78625         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78626         for glob symlink bug.
78627
78628 2005-07-14  Bruno Haible  <bruno@clisp.org>
78629
78630         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78631         Instead, test for *_unlocked function declarations directly.
78632
78633 2005-07-11  Simon Josefsson  <jas@extundo.com>
78634
78635         * modules/size_max: New file.
78636
78637         * modules/xsize: Depend on size_max module for size_max.m4.
78638
78639 2005-07-11  Simon Josefsson  <jas@extundo.com>
78640
78641         * lib/size_max.h: New file.
78642
78643 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78644
78645         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78646         copyright symbol and the year.
78647         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78648         (version_etc_va): Use parameterized copyright notice.
78649         Reword to conform to the current GNU coding standards.
78650
78651 2005-07-11  Karl Berry  <karl@gnu.org>
78652
78653         * doc/gnulib.texi (Quoting): new node.
78654         (Initial import): more info, from Patrice.
78655
78656 2005-07-11  Bruno Haible  <bruno@clisp.org>
78657
78658         * gnulib-tool (func_usage): Document option --avoid.
78659         (Command line options): Handle --avoid.
78660         (func_acceptable): New function.
78661         (func_modules_transitive_closure): Use it.
78662
78663 2005-07-11  Bruno Haible  <bruno@clisp.org>
78664
78665         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78666         Reported by Jim Meyering.
78667
78668 2005-07-10  Bruno Haible  <bruno@clisp.org>
78669
78670         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78671         Needed when size_t is smaller than 'unsigned int'.
78672         Reported by Paul Eggert.
78673
78674 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78675
78676         * modules/argp (Depends-on): Add unlocked-io
78677
78678 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78679
78680         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78681         block of defines.
78682
78683 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78686         fix now.
78687
78688 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78689         and Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78692         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78693
78694 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * modules/regex (Files): Add lib/regex_internal.c,
78697         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78698         (Depends-on): Add extensions.
78699         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78700
78701 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78704         pathconf.
78705         * m4/same.m4 (gl_SAME): Likewise.
78706         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78707
78708         * m4/regex.m4: Adjust to new libc regex implementation.
78709         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78710         all the .c and .h parts of (the new) regex.
78711         Quote the m4 stuff better.
78712         Check for RE_ICASE bug of old gnulib.
78713         Check for REG_STARTEND of recent libc.
78714         Rename local variables from jm_* to gl_*.
78715         Quote operand of "test -f".
78716         Say "recent enough" version of libc, not "version 2".
78717         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78718         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78719         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78720         Remove check for btowc, isascii.
78721         Require AM_LANGINFO_CODESET.
78722
78723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78724
78725         * lib/regex.c, regex.h: Sync from libc.
78726         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78727         * lib/regexec.c:
78728         New files, synced from libc, except that regex_internal.h
78729         currently has a small porting fix.
78730
78731 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78734         regex_internal.c, regexec.c.
78735         Add regex_internal.h too, but as a comment, since the libc version
78736         is currently broken in gnulib mode.
78737
78738 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78739
78740         Support programs like Emacs that use gnulib but not gettext.
78741         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78742         * modules/gettext-h: New file.
78743         * modules/gettext (Files): Remove lib/gettext.h.
78744         (Depends-on): Add gettext-h.
78745         (Makefile.am): Remove lib_SOURCES.
78746         * modules/argmatch, modules/c-stack, modules/closeout:
78747         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78748         * modules/execute, modules/file-type, modules/getaddrinfo:
78749         * modules/getopt, modules/human, modules/javacomp:
78750         * modules/javaexec, modules/mkdir-p, modules/obstack:
78751         * modules/openat, modules/pagealign_alloc, modules/pipe:
78752         * modules/quotearg, modules/regex, modules/rpmatch:
78753         * modules/unicodeio, modules/userspec, modules/version-etc:
78754         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78755         * modules/xsetenv:
78756         Depend on gettext-h, not gettext.
78757
78758 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78759
78760         * gnulib-tool (func_import): Add support for 'public domain' license.
78761         * modules/alloca, modules/atexit, modules/memmove:
78762         Now public domain, not GPL.
78763         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78764         * modules/realloc, modules/strerror, modules/strtod:
78765         Now LGPL, not GPL.
78766
78767 2005-07-05  Bruno Haible  <bruno@clisp.org>
78768
78769         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78770         autoconf CVS. Needed for mingw.
78771
78772 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78773
78774         Remove the dependency of the strftime module on the tzset module.
78775         * modules/strftime (Depends-on): Remove dependency on tzset.
78776
78777 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78778
78779         Remove the dependency of the strftime module on the tzset module.
78780         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78781         gl_FUNC_TZSET_CLOBBER.
78782
78783 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         Remove the dependency of the strftime module on the tzset module.
78786         * lib/strftime.c (my_strftime)
78787         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78788         Copy the input structure, to work around some of the bug with
78789         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78790         Solaris releases, you should also use the tzset module, but we won't
78791         require it as a dependency any more since we don't want LGPLed code
78792         to depend on GPLed code.
78793
78794 2005-07-02  Jim Meyering  <jim@meyering.net>
78795
78796         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78797         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78798         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78799         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78800
78801 2005-07-02  Jim Meyering  <jim@meyering.net>
78802
78803         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78804
78805 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78806
78807         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78808         declares only 'struct timespec;' (!).
78809
78810 2005-07-01  Jim Meyering  <jim@meyering.net>
78811
78812         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78813         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78814         * lib/save-cwd.c, tempname.c:
78815         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78816         and don't include <sys/file.h>).
78817
78818 2005-06-29  Jim Meyering  <jim@meyering.net>
78819
78820         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78821         type name.  Use the variable name instead.
78822         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78823         Likewise.
78824
78825 2005-06-28  Simon Josefsson  <jas@extundo.com>
78826
78827         * modules/check-version (Files): Add check-version.m4.
78828
78829 2005-06-28  Simon Josefsson  <jas@extundo.com>
78830
78831         * m4/check-version.m4: New file, suggested by Jim Meyering
78832         <jim@meyering.net>.
78833
78834 2005-06-28  Simon Josefsson  <jas@extundo.com>
78835
78836         * lib/check-version.h, lib/check-version.c: New files.
78837
78838 2005-06-28  Simon Josefsson  <jas@extundo.com>
78839
78840         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78841         collision with global variable.  Better indentation.  Don't
78842         increment buffer pointer beyond buffer end.  Based on comments
78843         from Paul Eggert <eggert@cs.ucla.edu>.
78844
78845         * lib/base64.h: Indent.
78846
78847 2005-06-28  Simon Josefsson  <jas@extundo.com>
78848
78849         * doc/gnulib.texi (Library version handling): New section.
78850
78851 2005-06-28  Jim Meyering  <jim@meyering.net>
78852
78853         * check-module (find_included_lib_files): Hard-code another
78854         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78855         but modules/fts-lgpl (correctly) does not list those files.
78856
78857         * modules/canonicalize (Files): Add lib/pathmax.h.
78858
78859 2005-06-25  Simon Josefsson  <jas@extundo.com>
78860
78861         * modules/check-version: New file.
78862
78863 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78866         initializer of struct addrinfo, as an indication that we don't
78867         care how many members the structure has.
78868
78869 2005-06-24  Derek Price  <derek@ximbiot.com>
78870         and Bruno Haible  <bruno@clisp.org>
78871
78872         Remove stat module & update lstat.
78873         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78874         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78875         * m4/stat.m4: Remove this file.
78876
78877 2005-06-24  Derek Price  <derek@ximbiot.com>
78878         and Bruno Haible  <bruno@clisp.org>
78879
78880         Remove stat module & update lstat.
78881         * lib/stat.c: Remove this file...
78882         (slash_aware_lstat): ...moving this content and its support...
78883         * lib/lstat.c (rpl_lstat): ...into here.
78884         * lib/lstat.h: New file.
78885
78886 2005-06-24  Derek Price  <derek@ximbiot.com>
78887         and Bruno Haible  <bruno@clisp.org>
78888
78889         Remove stat module & update lstat.
78890         * config/srclist.txt (libc sources): Remove stat.
78891
78892 2005-06-24  Derek Price  <derek@ximbiot.com>
78893         and Bruno Haible  <bruno@clisp.org>
78894
78895         Remove stat module & update lstat.
78896         * MODULES.html.sh (stat): Remove.
78897         * MODULES.html: Regenerated.
78898         * modules/lstat (Description): Correct function name.
78899         (Files): Add "lstat.h".
78900         (Depends-on): Remove stat, add xalloc, stat-macros.
78901         * modules/stat: Remove this file.
78902         (Include): Add "lstat.h", remove <sys/stat.h>.
78903
78904 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78905
78906         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78907         (ranged_convert): Don't save conversion in a temporary struct.
78908         This causes a warning with GCC 4.0.0, and anyway in the typical
78909         case it's not worth the extra 100 bytes or so of code.
78910         (ranged_convert, __mktime_internal): When calling a function via a
78911         pointer P, use P () rather than (*P) (), as we now assume C89 or
78912         better.
78913
78914 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78915
78916         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78917         "who -r" failed to give output.  Problem reported by Tim Waugh.
78918
78919         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78920         (xcalloc): Use it to avoid needless tests.
78921         Problem reported by Jim Meyering.
78922
78923 2005-06-20  Derek Price  <derek@ximbiot.com>
78924
78925         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78926         unnecessary for Autoconfs > 2.59c.
78927
78928 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78929
78930         * lib/argp.h (__option_is_short): Check upper limit of
78931         __key. Isprint() requires its argument to have the value
78932         of an unsigned char or EOF.
78933
78934 2005-06-16  Jim Meyering  <jim@meyering.net>
78935
78936         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78937         when either N or S is zero.
78938
78939 2005-06-16  Derek Price  <derek@ximbiot.com>
78940
78941         * m4/bison.m4: Declare YACC & YFLAGS precious.
78942
78943 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78946         multibyte string or pattern, fall back on unibyte matching.
78947         Problem reported by James Youngman.
78948
78949 2005-06-08  Bruno Haible  <bruno@clisp.org>
78950
78951         * modules/csharpcomp: New file.
78952         * MODULES.html.sh (C#): Add csharpcomp.
78953
78954 2005-06-08  Bruno Haible  <bruno@clisp.org>
78955
78956         * m4/csharpcomp.m4: New file, from GNU gettext.
78957
78958 2005-06-08  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/csharpcomp.h: New file, from GNU gettext.
78961         * lib/csharpcomp.c: New file, from GNU gettext.
78962         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78963
78964 2005-06-08  Bruno Haible  <bruno@clisp.org>
78965
78966         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78967         warning on mingw.
78968
78969 2005-06-07  Derek Price  <derek@ximbiot.com>
78970
78971         Sync from CVS.
78972         * lib/glob_.h: Indent nested #ifdef.
78973
78974 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78975
78976         Sync from coreutils.
78977         Use "file name" when talking about file names, instead of "filename"
78978         or "path", as per the GNU coding standards.
78979         * lib/mkdir-p.c: Renamed from makepath.c.
78980         (make_dir_parents): Renamed from make_path.  All callers changed.
78981         * lib/mkdir-p.h: Likewise.  All includers changed.
78982         * lib/filenamecat.c: Renamed from path-concat.c.
78983         (file_name_concat): Renamed from path_concat.  All callers changed.
78984         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78985         * lib/filenamecat.h: Likewise.  All includers changed.
78986         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78987         in comments or local variable names.
78988         * lib/basename.c: Likewise.
78989         * lib/canonicalize.c, canonicalize.h: Likewise.
78990         * lib/dirname.c, dirname.h: Likewise.
78991         * lib/euidaccess.c: Likewise.
78992         * lib/exclude.c: Likewise
78993         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78994         * lib/fsusage.c, fsuage.h: Likewise.
78995         * lib/fts.c, fts_.h: Likewise.
78996         * lib/getcwd.c: Likewise.
78997         * lib/getloadavg.c: Likewise.
78998         * lib/mkstemp.c: Likewise.
78999         * lib/mountlist.c, mountlist.h: Likewise.
79000         * lib/openat.c, openat.h: Likewise.
79001         * lib/readlink-stub.c: Likewise.
79002         * lib/readutmp.c, readutmp.h: Likewise.
79003         * lib/rename.c: Likewise.
79004         * lib/rmdir.c: Likewise.
79005         * lib/same.c: Likewise.
79006         * lib/savedir.c: Likewise.
79007         * lib/stripslash.c: Likewise.
79008         * lib/tempname.c: Likewise.
79009         * lib/xreadlink.c: Likewise.
79010         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79011         All uses changed.
79012         * lib/exclude.h: Likewise.
79013
79014         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79015         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79016         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79017         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79018         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79019         files have been getting away with it for years (MORE/BSD 4.3
79020         is extinct now).
79021         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79022         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79023
79024         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79025         Define to 256, not 255, as per modern POSIX.
79026
79027 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79028
79029         Sync from coreutils.
79030         Use "file name" when talking about file names, instead of "filename"
79031         or "path", as per the GNU coding standards.
79032         * MODULES.html.sh: mkdir-p renamed from makepath.
79033         filenamecat renamed from path-concat.
79034         * modules/filenamecat: Renamed from modules/path-concat.
79035         (Files): filenamecat.h and filenamecat.c renamed from
79036         path-concat.h and path-concat.c.
79037         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79038         (Include): filenamecat.h, not path-concat.h.
79039         * modules/mkdir-p: Renamed from modules/makepath.
79040         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79041         makepath.c.
79042         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79043         (Include): mkdir-p.h, not makepath.h.
79044
79045 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79046
79047         Sync from coreutils.
79048         * m4/mkdir-p.m4: Renamed from makepath.m4.
79049         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79050         Rename files from makepath.c to mkdir-p.c, and from
79051         makepath.h to mkdir-p.h.
79052         * m4/filenamecat.m4: Renamed from path-concat.m4.
79053         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79054         Rename files from path-concat.c to filenamecat.c,
79055         and from path-concat.h to filenamecat.h.
79056         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79057         "file name" in local variables or comments.
79058         * m4/rename.m4: Likewise.
79059
79060 2005-06-01  Bruno Haible  <bruno@clisp.org>
79061
79062         * modules/csharpexec: New file.
79063         * MODULES.html.sh (C#): New section.
79064
79065 2005-06-01  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/csharp.m4: New file, from GNU gettext.
79068         * m4/csharpexec.m4: New file, from GNU gettext.
79069
79070 2005-06-01  Bruno Haible  <bruno@clisp.org>
79071
79072         * lib/csharpexec.h: New file, from GNU gettext.
79073         * lib/csharpexec.c: New file, from GNU gettext.
79074         * lib/csharpexec.sh.in: New file, from GNU gettext.
79075
79076 2005-05-31  Derek Price  <derek@ximbiot.com>
79077             Paul Eggert  <eggert@cs.ucla.edu>
79078
79079         Sync from cvs.
79080         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79081
79082 2005-05-31  Derek Price  <derek@ximbiot.com>
79083             Paul Eggert  <eggert@cs.ucla.edu>
79084
79085         Sync from cvs.
79086         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79087
79088 2005-05-29  Derek Price  <derek@ximbiot.com>
79089
79090         * config/srclist.txt (glob_.h, glob.c): Add these files.
79091
79092 2005-05-29  Derek Price  <derek@ximbiot.com>
79093
79094         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79095         * modules/glob: New file.
79096         * modules/getlogin_r: Add link to POSIX spec in description.
79097
79098 2005-05-29  Derek Price  <derek@ximbiot.com>
79099             Paul Eggert  <eggert@cs.ucla.edu>
79100
79101         * m4/glob.m4: New file.
79102
79103 2005-05-29  Derek Price  <derek@ximbiot.com>
79104             Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * lib/glob_.h, lib/glob.c: New files.
79107
79108 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79109
79110         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79111         * modules/fts-lgpl (Depends-on): Remove gettext.
79112
79113 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79114
79115         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79116         and don't require gt_INTTYPES_PRI.
79117
79118 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79119
79120         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79121
79122         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79123         the configuration hassle isn't worth it.
79124         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79125         (LONGEST_MODIFIER, PRIuMAX): Remove.
79126
79127 2005-05-27  Bruno Haible  <bruno@clisp.org>
79128
79129         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79130
79131 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79134         _POSIX_PTHREAD_SEMANTICS for Solaris.
79135
79136 2005-05-25  Derek Price  <derek@ximbiot.com>
79137
79138         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79139
79140 2005-05-25  Derek Price  <derek@ximbiot.com>
79141             Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79144         * lib/getlogin_r.c, getlogin_r.h: New files.
79145
79146 2005-05-25  Bruno Haible  <bruno@clisp.org>
79147             Derek Price  <derek@ximbiot.com>
79148
79149         * lib/getlogin_r.h: Simplify API documentation.
79150
79151 2005-05-23  Derek Price  <derek@ximbiot.com>
79152
79153         * modules/minmax (Files): Add m4/minmax.m4.
79154         (configure.ac): Add gl_MINMAX.
79155
79156 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79157
79158         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79159         so that unistd-safer.h (GPL'ed code) need not be included.
79160
79161 2005-05-22  Bruno Haible  <bruno@clisp.org>
79162
79163         * m4/minmax.m4: New file.
79164         Based on a patch by Derek Price <derek@ximbiot.com>.
79165
79166 2005-05-22  Bruno Haible  <bruno@clisp.org>
79167
79168         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79169         (INT64_MIN): Fix definition.
79170         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79171
79172         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79173         NEED_SIGNED_INT_TYPES.
79174
79175         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79176         HAVE_SYSTEM_INTTYPES.
79177
79178 2005-05-22  Bruno Haible  <bruno@clisp.org>
79179
79180         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79181         Also include <sys/param.h> if it defines MIN, MAX.
79182         Based on a patch by Derek Price <derek@ximbiot.com>.
79183
79184 2005-05-21  Jim Meyering  <jim@meyering.net>
79185
79186         * modules/fts (Files): Add m4/inttypes-pri.m4.
79187         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79188
79189 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         New fts module.
79192         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79193         (setup_dir, free_dir): New functions.
79194         (enter_dir, leave_dir): Define trivial
79195         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79196         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79197         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79198         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79199         Move to fts-cycle.c.
79200         (fts_open): Use setup_dir.
79201         (fts_close): Use free_dir.
79202         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79203         This adds a label and some gotos, but the alternatives were messier.
79204         Check for memory allocation failure when entering a dir.
79205         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79206         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79207         (FTS): New member fts_cycle, that is a union that contains the
79208         old active_dir_ht and cycle_state.  All uses changed to mention
79209         fts_cycle.ht and fts_cycle.state.
79210         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79211         fts.c, with the following changes:
79212         (setup_dir, free_dir): New functions.
79213         (enter_dir): Now returns bool.  Return true if successful, false
79214         if memory exhausted.  All callers changed.
79215         Do not bother partly cleaning up on
79216         memory allocation failure; that is free_dir's job.
79217         However, free ad if hash_insert fails, to avoid memory leak.
79218         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79219         fts->fts_options to see which union member to use.
79220
79221 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79224         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79225
79226 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79227
79228         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79229
79230 2005-05-20  Jim Meyering  <jim@meyering.net>
79231
79232         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79233         Now a macro, to pacify GCC.
79234
79235 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79236
79237         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79238         of -1.
79239
79240 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79241
79242         * lib/chown.c (rpl_chown): Return -1 on failure.
79243
79244 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79247         Don't check for stddef.h.
79248         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79249         don't use its results.
79250         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79251         since we include them unconditionally.  Don't require
79252         AM_STDBOOL_H, since stdbool is a prerequisite.
79253         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79254         since we assume C89 or better.
79255         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79256         as we don't use their results.
79257         Don't check for fchdir, memmove, memset, strrchr, as we use
79258         them unconditionally.
79259         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79260         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79261
79262 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79263
79264         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79265         Include <stddef.h> unconditionally, since we assume C89 now.
79266         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79267         * lib/fts.c: Include fts_.h first, to check interface.
79268         Do not include intprops.h; no longer needed.
79269         Include cycle-check.h and hash.h, since fts_.h no longer does.
79270         Remove unnecessary casts of closedir to void.
79271         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79272         decide whether to decrement nlinks.
79273         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79274         (FTS): Use struct hash_table * instead of Hash_table, so that
79275         we no longer need to include hash.h here.
79276
79277 2005-05-18  Jim Meyering  <jim@meyering.net>
79278
79279         * modules/dirfd (License): Change to LGPL.  Most of the code
79280         is already in the public domain.
79281
79282 2005-05-18  Jim Meyering  <jim@meyering.net>
79283
79284         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79285         Reported by Yoann Vandoorselaere.
79286
79287 2005-05-17  Jim Meyering  <jim@meyering.net>
79288
79289         * m4/fts.m4: New file, from coreutils.
79290
79291 2005-05-17  Jim Meyering  <jim@meyering.net>
79292
79293         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79294
79295 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79296
79297         Sync from coreutils.
79298         * m4/unlinkdir.m4: New file.
79299
79300 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79301
79302         Sync from coreutils.
79303         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79304         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79305         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79306         White space changes only.
79307         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79308         special.
79309         * lib/yesno.c: Include getline.h, not ctype.h.
79310         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79311         Use getline to remove arbitrary restriction on response length.
79312
79313 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         * config/srclist-update: Spell out "Street" in FSF postal
79316         mail address; this is the style the FSF seems to prefer.
79317
79318         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79319         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79320         this updates FSF postal mail address.
79321
79322         Sync from coreutils.
79323         * modules/unlinkdir: New file.
79324         * modules/yesno (Depends-on): Add getline.
79325         * MODULES.html.sh (File system functions): Add unlinkdir.
79326
79327 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79328
79329         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79330         lib/strsep.h:
79331         Change the initial comment to refer to GPL, not LGPL.
79332         gnulib-tool will change it to LGPL as needed.
79333
79334         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79335         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79336         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79337         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79338         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79339         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79340         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79341         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79342         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79343         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79344         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79345         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79346         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79347         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79348         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79349         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79350         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79351         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79352         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79353         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79354         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79355         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79356         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79357         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79358         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79359         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79360         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79361         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79362         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79363         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79364         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79365         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79366         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79367         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79368         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79369         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79370         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79371         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79372         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79373         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79374         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79375         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79376         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79377         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79378         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79379         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79380         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79381         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79382         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79383         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79384         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79385         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79386         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79387         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79388         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79389         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79390         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79391         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79392         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79393         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79394         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79395         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79396         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79397         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79398         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79399         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79400         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79401         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79402         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79403         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79404         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79405         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79406         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79407         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79408         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79409         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79410         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79411         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79412         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79413         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79414         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79415         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79416         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79417         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79418         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79419         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79420         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79421         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79422         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79423         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79424         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79425         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79426         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79427         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79428         lib/yesno.c, lib/yesno.h:
79429         Update FSF postal mail address.
79430
79431 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79434         tests/test-memmem.c, tests/test-stpncpy.c:
79435         Update FSF postal mail address.
79436
79437 2005-05-13  Bruno Haible  <bruno@clisp.org>
79438
79439         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79440         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79441         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79442         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79443         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79444         Add support for 64-bit integers in the MSVC compiler.
79445
79446 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79447
79448         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79449
79450 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79451
79452         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79453
79454 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79455
79456         * doc/getdate.texi (General date syntax): Don't say that date
79457         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79458         Problem reported by Nic Ferrier.
79459
79460 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79461
79462         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79463         specified in ai_socktype. Fix invalid ai_protocol
79464         check. ai_protocol is usually set to 0 or depending on
79465         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79466         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79467         ai_socktype / ai_protocol in the returned addrinfo structure.
79468
79469 2005-05-10  Simon Josefsson  <jas@extundo.com>
79470
79471         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79472         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79473
79474 2005-05-10  Karl Berry  <karl@gnu.org>
79475
79476         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79477         (from http://www.gnu.org/licenses).
79478         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79479         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79480         fdl.texi suffices.
79481
79482 2005-05-10  Karl Berry  <karl@gnu.org>
79483
79484         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79485         (COPYING.DOC): remove.
79486
79487         * config/srclist-update: new FSF address.
79488
79489 2005-05-10  Derek Price  <derek@ximbiot.com>
79490
79491         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79492         possible.
79493
79494 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79495             Bruno Haible  <bruno@clisp.org>
79496
79497         * modules/inet_ntop: New file.
79498         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79499         inet_ntop.
79500
79501 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79502             Bruno Haible  <bruno@clisp.org>
79503
79504         * m4/inet_ntop.m4: New file.
79505
79506 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79507             Bruno Haible  <bruno@clisp.org>
79508
79509         * lib/inet_ntop.h: New file.
79510         * lib/inet_ntop.c: New file, from glibc with modifications.
79511
79512 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * modules/time_r (License): Change to LGPL.
79515         * modules/extensions (License): Change to LGPL.  Actually,
79516         the license is more permissive than that, but currently gnulib-tool
79517         doesn't know how to handle more-permissive licenses.
79518
79519         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79520         Problem reported by Dave Love.
79521
79522 2005-05-08  Jim Meyering  <jim@meyering.net>
79523
79524         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79525         blank.
79526
79527 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         * modules/argmatch (Depends-on): Add stdbool.
79530         * modules/backupfile (Depends-on): Likewise.
79531         * modules/chdir-long (Depends-on): Likewise.
79532         * modules/closeout (Depends-on): Likewise.
79533         * modules/cycle-check (Depends-on): Likewise.
79534         * modules/dirname (Depends-on): Likewise.
79535         * modules/fnmatch (Depends-on): Likewise.
79536         * modules/fsusage (Depends-on): Likewise.
79537         * modules/fwriteerror (Depends-on): Likewise.
79538         * modules/getcwd (Depends-on): Likewise.
79539         * modules/getloadavg (Depends-on): Likewise.
79540         * modules/hard-locale (Depends-on): Likewise.
79541         * modules/makepath (Depends-on): Likewise.
79542         * modules/mountlist (Depends-on): Likewise.
79543         * modules/nanosleep (Depends-on): Likewise.
79544         * modules/posixtm (Depends-on): Likewise.
79545         * modules/quotearg (Depends-on): Likewise.
79546         * modules/readtokens (Depends-on): Likewise.
79547         * modules/readtokens0 (Depends-on): Likewise.
79548         * modules/readutmp (Depends-on): Likewise.
79549         * modules/save-cwd (Depends-on): Likewise.
79550         * modules/strftime (Depends-on): Likewise.
79551         * modules/userspec (Depends-on): Likewise.
79552         * modules/utimecmp (Depends-on): Likewise.
79553         * modules/xgetcwd (Depends-on): Likewise.
79554         * modules/xnanosleep (Depends-on): Likewise.
79555         * modules/xstrtod (Depends-on): Likewise.
79556         * modules/yesno (Depends-on): Likewise.
79557
79558 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79559
79560         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79561         needless checks.
79562
79563 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79564
79565         Merge from coreutils.  Among other things,
79566         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79567         * lib/fd-safer.c: New file.
79568         * lib/fcntl-safer.h, open-safer.c: Remove.
79569         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79570         * lib/dup-safer.c: Include unistd-safer.h first.
79571         Don't include errno.h.
79572         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79573         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79574         * lib/file-type.c: Rely on file-type.h change.
79575         * lib/getloadavg.c: Include unistd-safer.h.
79576         (getloadavg): Use safer open.
79577         * lib/getusershell.c: Include "stdio-safer.h".
79578         (getusershell): Use safer fopen.
79579         * lib/long-options.c (long_options): Use NULL rather than 0.
79580         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79581         'free'.
79582         * lib/modechange.c: Likewise.
79583         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79584         (MODE_DONE): New constant.
79585         (struct mode_change): Remove 'next' member.
79586         (make_node_op_equals): New function; like the old one of the
79587         same name, except it allocates an array.
79588         (mode_compile, mode_create_from_ref): Use it.
79589         (mode_compile): Allocate result as an array, not a linked list.
79590         Parse octal string ourself, so that we catch mistakes like "+0".
79591         (mode_adjust): Arg is an array, not a linked list.
79592         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79593         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79594         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79595         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79596         Remove.  This is now stat-macros.h's job.
79597         (talloc): Remove.  All callers replaced by xalloc, so that
79598         our invokers don't have to worry about reporting memory failures.
79599         (make_node_op_equals): Remove.
79600         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79601         New constants.
79602         (struct mode_change): Moved here from modechange.h.
79603         (mode_append_entry): Remove.
79604         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79605         apps to have incorrect behavior.  Use simpler algorithm for head
79606         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79607         Detect more invalid usages rather than having somewhat-random behavior.
79608         Don't insert an "a=" action, as that leads to incorrect behavior.
79609         (mode_compile, mode_create_from_ref): Return NULL on error instead
79610         of an enum, since now there's only one way to have an error.  All
79611         callers changed.
79612         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79613         at the correct time.  Simplify calculation of "+u" and its ilk.
79614         Don't mishandle "+X".
79615         (mode_free): Remove "register" and localize decls.
79616         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79617         (struct mode_change): Move to modechange.c; callers don't
79618         need to see this stuff.
79619         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79620         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79621         (mode_change, mode_adjust): Reflect the new signatures noted above.
79622         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79623         that might redefine system include files.
79624         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79625         (my_usleep): Use NULL rather than (void *) 0.
79626         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79627         Use siginterrupt to specify that system calls should be interrupted.
79628         (rpl_nanosleep): Move initialization of suspended closer to call of
79629         my_usleep.
79630         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79631         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79632         (desirable_utmp_entry): New function.
79633         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79634         using x2nrealloc, to simplify logic.
79635         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79636         size calculation.  Do not assume utmp file is a regular file.
79637         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79638         (READ_UTMP_CHECK_PIDS): New constant.
79639         * lib/save-cwd.c: Include unistd-safer.h.
79640         (save_cwd): Use fd_safer.
79641         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79642         [!_LIBC] Include "stat-macros.h" instead.
79643         * lib/unistd-safer.h (fd_safer): New decl.
79644
79645 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79646
79647         * modules/getloadavg (Depends-on): Add unistd-safer.
79648         * modules/getusershell (Depends-on): Add stdio-safer.
79649         * modules/lstat (Depends-on): Remove xalloc.
79650         * modules/mkstemp (Depends-on): Add stat-macros.
79651         * modules/modechange (Depends-on): Remove xstrtol.
79652         Add stat-macros, xalloc.
79653         * modules/save-cwd (Depends-on): Add unistd-safer.
79654         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79655         * modules/unistd-safer (Files): Add lib/fd-safer.c
79656         (Makefile.am): Remove lib_SOURCES.
79657
79658         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79659         Remove fcntl-safer; unistd-safer supersedes it.
79660
79661 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79662
79663         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79664         AC_HEADER_STAT.
79665         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79666         (gl_PREREQ_CHOWN): Remove.
79667         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79668         it.  Don't require AC_HEADER_STAT.
79669         (gl_PREREQ_LSTAT): Remove.
79670         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79671         Don't require AC_HEADER_STAT.
79672         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79673         (gl_PREREQ_RMDIR): Remove.
79674         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79675         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79676         the stat-macros module a prerequisite.
79677         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79678         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79679         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79680         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79681         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79682         variable names.
79683         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79684         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79685         variable prefixes.
79686         * m4/fcntl-safer.m4: Remove.
79687         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79688         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79689         Invoke gl_PREREQ_FD_SAFER.
79690         (gl_PREREQ_FD_SAFER): New macro.
79691         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79692         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79693         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79694         Remove duplicate call to AC_LIBOBJ(readutmp).
79695         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79696
79697         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79698         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79699
79700 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79701
79702         * MODULES.html.sh (Misc): Add byteswap.
79703
79704 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79705
79706         * modules/getcwd (Depends-on): Add extensions.
79707         * modules/openat (Depends-on): Likewise.
79708
79709 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79710
79711         * modules/byteswap: New file.
79712
79713 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79714
79715         * m4/byteswap.m4: New file.
79716
79717 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79718
79719         * lib/byteswap_.h: New file.
79720
79721 2005-04-25  Karl Berry  <karl@gnu.org>
79722
79723         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79724
79725 2005-04-25  Albert Chin  <china@thewrittenword.com>
79726
79727         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79728         Toolkit C bug.
79729
79730 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79731
79732         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79733         (func_ln_if_changed): Remove forcibly for no error message
79734         in case file does not exist.
79735
79736 2005-04-19  Simon Josefsson  <jas@extundo.com>
79737
79738         * gnulib-tool (Options): Make --symlink mean --symbolic.
79739
79740 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79741
79742         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79743
79744 2005-04-16  Simon Josefsson  <jas@extundo.com>
79745
79746         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79747
79748 2005-04-15  Simon Josefsson  <jas@extundo.com>
79749
79750         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79751
79752 2005-04-15  Simon Josefsson  <jas@extundo.com>
79753
79754         * gnulib-tool: Rename --symlink to --symbolic.
79755
79756 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79757
79758         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79759         symbolic links to files instead of copying/moving.  Add --aux-dir,
79760         specifying directory relative --dir where auxiliary build tools
79761         are placed.
79762
79763 2005-04-14  Bruno Haible  <bruno@clisp.org>
79764
79765         * modules/allocsa (License): Change to LGPL.
79766         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79767
79768 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79769
79770         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79771         that "UTC +1 second" continues to work.  Problem reported
79772         by Dmitry V. Levin.
79773         (relunit_snumber): New rule.
79774         (relunit): Use it.
79775
79776 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79777
79778         * lib/getdate.y (universal_time_zone_table): New constant.
79779         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79780         universal_time_zone_table.
79781         (lookup_zone): Prefer universal_time_zone_table to
79782         local_time_zone_table, so that "GMT" time stamps are allowed in
79783         London during the summer.  Problem reported by Ian Abbott.
79784
79785 2005-04-12  Jim Meyering  <jim@meyering.net>
79786
79787         * lib/human.c (humblock): Set *options even when returning due to
79788         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79789         warning from gcc-4.
79790
79791 2005-04-09  Jim Meyering  <jim@meyering.net>
79792
79793         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79794         -Wuninitialized: initialize tm0.tm_year.
79795
79796 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79799         count, since there's no maximum.  All uses changed.
79800         Add member dsts_seen.
79801         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79802         not being INT_MAX.
79803         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79804         Use pc_rels_seen to decide whther a date is absolute.
79805
79806         * lib/getdate.y (number): Don't overwrite year.
79807         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79808         check.
79809
79810 2005-04-02  Simon Josefsson  <jas@extundo.com>
79811
79812         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79813         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79814
79815 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79816
79817         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79818         where no absolute path name can be longer than PATH_MAX.
79819
79820 2005-03-27  Jim Meyering  <jim@meyering.net>
79821
79822         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79823
79824 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79825
79826         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79827         "one's complement" -> "ones' complement" in comment, as per Knuth.
79828         "value of type" -> "type or expression" in comment.
79829         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79830
79831 2005-03-26  Jim Meyering  <jim@meyering.net>
79832
79833         Comment nits.
79834         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79835         Correct typos: s/or/of/.
79836
79837 2005-03-26  Jim Meyering  <jim@meyering.net>
79838
79839         * modules/check-include-files: Move to ../ and rename to...
79840         * check-module: ...this.
79841
79842 2005-03-25  Jim Meyering  <jim@meyering.net>
79843
79844         * modules/xvasprintf (Files): Add xalloc.h.
79845
79846 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79847
79848         * modules/gettext (Files): config/config.rpath ->
79849         build-aux/config.rpath
79850         * modules/iconv (Files): Likewise.
79851         Problem reported by Oskar Liljeblad.
79852
79853 2005-03-23  Jim Meyering  <jim@meyering.net>
79854
79855         * modules/check-include-files: New script to check for
79856         missing dependencies, multiple includes, etc.
79857
79858         * modules/c-strtold (Depends-on): Add xalloc.
79859         * modules/c-strtod (Depends-on): Add xalloc.
79860         * modules/hash (Depends-on): Add xalloc.
79861         (Files): Remove lib/xalloc.h.
79862
79863         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79864         * modules/userspec (Files): Add lib/inttostr.h.
79865
79866 2005-03-23  Jim Meyering  <jim@meyering.net>
79867
79868         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79869
79870 2005-03-22  Jim Meyering  <jim@meyering.net>
79871
79872         * modules/stat-macros: New module.
79873         * modules/canonicalize, modules/euidaccess, modules/file-type,
79874         * modules/filemode, modules/lchown, modules/makepath,
79875         * modules/rmdir, modules/stat: Depend on new stat-macros module
79876         rather than listing lib/stat-macros.h manually.
79877         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79878
79879 2005-03-22  Jim Meyering  <jim@meyering.net>
79880
79881         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79882
79883 2005-03-22  Bruno Haible  <bruno@clisp.org>
79884
79885         * config/srclist.txt: Replace target directory 'config' with
79886         'build-aux'.
79887         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79888         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79889         ../build-aux/.
79890
79891 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79892
79893         * modules/chdir-long (Depends-on): Add mempcpy.
79894
79895         * modules/acl, modules/backupfile, modules/c-strtod,
79896         modules/c-strtold, modules/canon-host, modules/canonicalize,
79897         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79898         modules/exclude, modules/exitfail, modules/file-type,
79899         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79900         modules/getdate, modules/getline, modules/getpagesize,
79901         modules/getpass, modules/getugroups, modules/group-member,
79902         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79903         modules/inttostr, modules/long-options, modules/makepath,
79904         modules/md5, modules/memcasecmp, modules/memcoll,
79905         modules/modechange, modules/mountlist, modules/path-concat,
79906         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79907         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79908         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79909         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79910         modules/strftime, modules/strndup, modules/strverscmp,
79911         modules/timespec, modules/unlocked-io, modules/userspec,
79912         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79913         modules/yesno:
79914         Remove lib_SOURCES line from Makefile.am section, as this is now
79915         done automatically by the corresponding Autoconf macro.
79916
79917 2005-03-21  Jim Meyering  <jim@meyering.net>
79918
79919         Changes imported from coreutils.
79920
79921         * lib/cycle-check.c: Don't include xalloc.h.
79922
79923         * lib/path-concat.c: Don't include assert.h.
79924         (path_concat): Remove assertion that would have triggered
79925         for ABASE starting with more than one slash.
79926         Reported by Andreas Schwab.
79927
79928         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79929         properly when ABASE is an absolute file name.
79930         Correct the description of this function.
79931         Include <assert.h>.
79932         Add an assertion and a test driver.
79933         This fixes a bug introduced on 2004-07-02.
79934         Andreas Schwab reported the resulting failure of cp --parents:
79935         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79936
79937 2005-03-21  Jim Meyering  <jim@meyering.net>
79938
79939         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79940         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79941
79942 2005-03-21  Jim Meyering  <jim@meyering.net>
79943         and  Paul Eggert  <eggert@cs.ucla.edu>
79944
79945         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79946         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79947         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79948         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79949         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79950         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79951         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79952         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79953         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79954         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79955         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79956         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79957         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79958         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79959         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79960         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79961         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79962         for these modules.
79963
79964 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79967         (which shouldn't happen), generate nothing instead of returning 0
79968         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79969
79970 2005-03-16  Bruno Haible  <bruno@clisp.org>
79971
79972         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79973         HAVE_LONGLONG_64BIT.
79974
79975 2005-03-16  Bruno Haible  <bruno@clisp.org>
79976
79977         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79978         HAVE_LONGLONG_64BIT.
79979
79980 2005-03-16  Bruno Haible  <bruno@clisp.org>
79981
79982         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79983         HAVE_LONGLONG_64BIT.
79984
79985 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79988         reliably distinguish strftime failure from empty output on POSIX
79989         hosts.
79990
79991 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79992
79993         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79994         (iconv_string): Don't guess a size-zero buffer, as that might cause
79995         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79996         result would be 'too large', where 'too large' is (heuristically)
79997         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79998         overflow concerns.  This will prevent some unwanted malloc failures
79999         when the inputs are very large.
80000
80001 2005-03-15  Karl Berry  <karl@gnu.org>
80002
80003         * config/srclist.txt (config.rpath): from gettext.
80004         * config/config.rpath: update.
80005
80006 2005-03-15  Bruno Haible  <bruno@clisp.org>
80007
80008         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80009         to 'negate'.
80010
80011         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80012         variable.
80013
80014         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80015         results.
80016
80017 2005-03-14  Simon Josefsson  <jas@extundo.com>
80018
80019         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80020         <fx@gnu.org>.
80021
80022 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80023
80024         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80025         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80026         intprops.h.
80027         * lib/strtol.c: Likewise.
80028
80029 2005-03-14  Jim Meyering  <jim@meyering.net>
80030
80031         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80032         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80033         to be nonzero so that we (and caller) can detect the difference
80034         between a valid zero-length expansion and an error return, even
80035         when the underlying strftime fails before writing anything into
80036         that location.
80037
80038 2005-03-14  Bruno Haible  <bruno@clisp.org>
80039
80040         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80041         Update from GNU gettext 0.14.3.
80042
80043 2005-03-10  Jim Meyering  <jim@meyering.net>
80044
80045         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80046
80047 2005-03-10  Jim Meyering  <jim@meyering.net>
80048
80049         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80050         so that this module works on systems without fchdir.
80051
80052 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         Factor int-properties macros into a single file, except for
80055         glibc-related files.
80056         * lib/intprops.h: New file.
80057         * lib/getloadavg.c: Include it instead of limits.h.
80058         (INT_STRLEN_BOUND): Remove.
80059         * lib/human.c: Include intprops.h.
80060         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80061         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80062         302/1000.
80063         * lib/inttostr.h: Include intprops.h instead of limits.h.
80064         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80065         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80066         for consistency with intprops.h.
80067         (time_t_is_integer, twos_complement_arithmetic): Use them.
80068         * lib/sig2str.h: Include <signal.h>, intprops.h.
80069         (INT_STRLEN_BOUND): Remove.
80070         * lib/strftime.c (TYPE_SIGNED): Remove.
80071         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80072         * lib/strtol.c: Adjust comments to match intprops.h.
80073         * lib/userspec.c: Include intprops.h.
80074         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80075         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80076         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80077         instead of rolling our own expressions.
80078         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80079
80080         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80081         instead of int.
80082         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80083         the right thing even if adding 1900 would overflow.  Similarly
80084         for tm_mon + 1 and tm_yday + 1.
80085         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80086         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80087         (DO_SIGNED_NUMBER): New macro.
80088         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80089
80090 2005-03-07  Bruno Haible  <bruno@clisp.org>
80091
80092         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80093
80094 2005-03-07  Bruno Haible  <bruno@clisp.org>
80095
80096         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80097
80098 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80099
80100         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80101         (func_import): Only replace files via --import when they have actually
80102         changed.
80103
80104 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80105
80106         * m4/mmap-anon.m4: New file.
80107         * m4/pagealign_alloc.m4: New file.
80108
80109 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80110             Bruno Haible  <bruno@clisp.org>
80111
80112         * modules/pagealign_alloc: New file.
80113         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80114
80115 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80116             Bruno Haible  <bruno@clisp.org>
80117
80118         * lib/pagealign_alloc.h: New file.
80119         * lib/pagealign_alloc.c: New file.
80120
80121 2005-03-03  Bruno Haible  <bruno@clisp.org>
80122
80123         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80124         Use an all-permissive copyright notice, recommended by RMS.
80125
80126 2005-03-02  Bruno Haible  <bruno@clisp.org>
80127
80128         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80129         of AIX, the replacement has to be done only after <string.h> is
80130         included, therefore not in config.h. stpncpy.h does the replacement,
80131         and stpncpy.c uses it.
80132
80133 2005-03-02  Bruno Haible  <bruno@clisp.org>
80134
80135         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80136         stpncpy.c uses it.
80137
80138 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80139
80140         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80141         The workaround isn't strictly needed for POSIX conformance, and
80142         it's too much of a pain to configure and maintain.  We'll ask
80143         people to fix their kernels instead.
80144         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80145         (NANOSLEEP_BUG_WORKAROUND): Remove.
80146         (xnanosleep): Remove the workaround.
80147
80148 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80149
80150         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80151         Reported by Derek Price.
80152         (Include): Add "timespec.h".
80153
80154         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80155
80156 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80157
80158         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80159         to detect nanosleep bug.
80160
80161 2005-03-01  Bruno Haible  <bruno@clisp.org>
80162
80163         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80164
80165 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80166
80167         * modules/gethrxtime: New file.
80168         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80169         (Depends-on): Add gethrxtime.
80170         (configure.ac): Add gl_XNANOSLEEP.
80171         (Makefile.am): Remove lib_SOURCES line.
80172
80173 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80176         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80177
80178 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80179
80180         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80181         * lib/timespec.h (gettime): Return void, since it always
80182         succeeds now.  All uses changed.
80183         * lib/gettime.c (gettime): Likewise.
80184         [HAVE_NANOTIME]: Prefer nanotime.
80185         Assume gettimeofday succeeds, as POSIX requires.
80186         Assime time () succeeds, since other code already does.
80187         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80188         (timespec_subtract): Remove.
80189         (NANOSLEEP_BUG_WORKAROUND): New constant.
80190         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80191         things considerably.  Use it only on GNU/Linux hosts, since the
80192         workaround shouldn't be needed elsewhere.
80193
80194 2005-02-24  Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/gettext (Files): Add m4/glibc2.m4.
80197
80198 2005-02-24  Bruno Haible  <bruno@clisp.org>
80199
80200         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80201         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80202         * m4/progtest.m4:
80203         Update from GNU gettext 0.14.2.
80204         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80205
80206 2005-02-24  Bruno Haible  <bruno@clisp.org>
80207
80208         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80209         * lib/config.charset: Update from GNU gettext 0.14.2.
80210
80211 2005-02-24  Bruno Haible  <bruno@clisp.org>
80212
80213         * lib/gettext.h: Update from GNU gettext 0.14.2.
80214
80215 2005-02-23  Simon Josefsson  <jas@extundo.com>
80216
80217         * m4/iconvme.m4: New file.
80218
80219 2005-02-23  Jim Meyering  <jim@meyering.net>
80220
80221         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80222         change.
80223         Thanks to Bruno Haible for catching it.
80224
80225 2005-02-22  Simon Josefsson  <jas@extundo.com>
80226
80227         * modules/iconvme: New file.
80228
80229         * MODULES.html.sh: Add iconvme.
80230
80231 2005-02-22  Simon Josefsson  <jas@extundo.com>
80232
80233         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80234
80235 2005-02-22  Simon Josefsson  <jas@extundo.com>
80236
80237         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80238
80239 2005-02-22  Jim Meyering  <jim@meyering.net>
80240
80241         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80242         s/ifndef/ifdef/.
80243
80244 2005-02-20  Neil Conway  <neilc@samurai.com>
80245
80246         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80247         returned by OSX/Darwin if the specified buffer is not large
80248         enough for the hostname.
80249
80250 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80251
80252         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80253         pass it to _help, otherwise the latter coredumps trying to
80254         dereference state.root_argp.
80255
80256 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80257
80258         * modules/chdir-long (Depends-on): Add memrchr.
80259         * modules/memrchr (Files): Add lib/memrchr.h.
80260         (Include): "memrchr.h".
80261
80262 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80263
80264         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80265
80266 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80267
80268         * lib/memrchr.h: New file.
80269         * lib/chdir-long.c: Include it.
80270         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80271         Don't bother including stddef.h.
80272
80273 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80274
80275         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80276         inclusion.
80277         Include <sys/types.h>, for dev_t.
80278         (ME_DUMMY, ME_REMOTE): Move from here....
80279         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80280         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80281         Dmitry V. Levin.
80282         Include mountlist.h first, to test the interface.
80283
80284 2005-01-29  Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/progname.c (program_name): Initialize.
80287         Needed when linking statically on MacOS X.
80288
80289 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80290
80291         Sync from coreutils.
80292         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80293         (Depends-on): Add c-strtod.
80294         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80295
80296 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         Sync from coreutils.
80299         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80300
80301         Remove files that are specific to coreutils.
80302         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80303
80304 2005-01-28  Bruno Haible  <bruno@clisp.org>
80305
80306         * modules/javacomp: New file.
80307         * MODULES.html.sh (Java): Add javacomp.
80308
80309 2005-01-28  Bruno Haible  <bruno@clisp.org>
80310
80311         * m4/javacomp.m4: New file, from GNU gettext.
80312
80313 2005-01-28  Bruno Haible  <bruno@clisp.org>
80314
80315         * lib/javacomp.sh.in: New file, from GNU gettext.
80316         * lib/javacomp.h: New file, from GNU gettext.
80317         * lib/javacomp.c: New file, from GNU gettext.
80318
80319 2005-01-26  Simon Josefsson  <jas@extundo.com>
80320
80321         * lib/gai_strerror.c: Use GPL in header.
80322
80323 2005-01-26  Bruno Haible  <bruno@clisp.org>
80324
80325         * modules/javaexec: New file.
80326         * MODULES.html.sh (Java): Add javaexec.
80327
80328 2005-01-26  Bruno Haible  <bruno@clisp.org>
80329
80330         * m4/javaexec.m4: New file, from GNU gettext.
80331
80332 2005-01-26  Bruno Haible  <bruno@clisp.org>
80333
80334         * lib/javaexec.sh.in: New file, from GNU gettext.
80335         * lib/javaexec.h: New file, from GNU gettext.
80336         * lib/javaexec.c: New file, from GNU gettext.
80337
80338 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80339
80340         * modules/lchown (Depends-on): Remove lchown.h
80341
80342 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80343
80344         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80345         must be defined if the header file was not found, in order
80346         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80347
80348 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80349
80350         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80351         initializers for struct pentry_state.
80352         (__argp_error): Check return value of __asprintf
80353         (__argp_failure): Translate error message
80354
80355         * lib/argp-parse.c: Removed braces around the expansion of N_()
80356
80357 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80358
80359         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80360         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80361         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80362         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80363         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80364         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80365         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80366         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80367         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80368         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80369         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80370         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80371         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80372         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80373         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80374         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80375         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80376         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80377         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80378         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80379         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80380         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80381         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80382         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80383         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80384         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80385         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80386         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80387         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80388         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80389         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80390         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80391         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80392         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80393         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80394         Use an all-permissive copyright notice, recommended by RMS.
80395
80396 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80397
80398         * modules/chdir-long (Depends-on): Remove mempcpy.
80399
80400 2005-01-21  Jim Meyering  <jim@meyering.net>
80401
80402         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80403         same value as for Solaris 9.
80404
80405         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80406         component length.  This included changing the parameter to be
80407         of type `char *' rather than `char const *'.
80408         * lib/chdir-long.h (chdir_long): Update prototype.
80409
80410         * lib/openat.c (fdopendir, fstatat): New functions.
80411         * lib/openat.h: Include headers required for use of DIR and struct
80412         stat.
80413         [AT_SYMLINK_NOFOLLOW]: Define.
80414         (fdopendir, fstatat): Add prototypes.
80415
80416 2005-01-21  Bruno Haible  <bruno@clisp.org>
80417
80418         * modules/classpath: New file.
80419         * MODULES.html.sh (Java): Add classpath.
80420
80421 2005-01-21  Bruno Haible  <bruno@clisp.org>
80422
80423         * lib/classpath.h: New file, from GNU gettext.
80424         * lib/classpath.c: New file, from GNU gettext.
80425
80426 2005-01-20  Simon Josefsson  <jas@extundo.com>
80427
80428         * modules/version-etc-fsf: New file.
80429
80430 2005-01-20  Simon Josefsson  <jas@extundo.com>
80431
80432         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80433         * lib/version-etc.c: Remove version_etc_copyright.
80434         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80435         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80436
80437 2005-01-20  Simon Josefsson  <jas@extundo.com>
80438
80439         * lib/base64.h (isbase64): Add.
80440
80441         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80442         using a unsigned prototype, don't inline.
80443         (base64_decode): Use it.
80444
80445 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80446
80447         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80448         it.
80449
80450 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80451
80452         * lib/save-cwd.c (save_cwd): Remove code to support the case
80453         where fchdir is missing or flaky.
80454
80455 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80456
80457         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80458
80459 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80460
80461         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80462         AC_LIBSOURCES now does this.
80463         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80464         with new ullong_max module.
80465
80466 2005-01-19  Bruno Haible  <bruno@clisp.org>
80467
80468         * modules/sh-quote: New file.
80469         * MODULES.html.sh (Executing programs): Add sh-quote.
80470
80471 2005-01-19  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/sh-quote.h: New file, from GNU gettext.
80474         * lib/sh-quote.c: New file, from GNU gettext.
80475
80476 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80477
80478         Merge from coreutils.
80479         * m4/ullong_max.m4: New file.
80480         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80481         (gl_MACROS): Assume localeconv exists.
80482
80483 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         Merge changes from coreutils, as described below in several
80486         changelogs dated today.
80487
80488         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80489         (O_DIRECTORY): Remove; not needed here, since "." must be
80490         a directory.  All uses removed.
80491         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80492         universal on Suns, and we also need to test for IRIX.
80493         Revamp code to use 'if' rather than '#if'.
80494         Avoid unnecessary comparison of cwd->desc to 0.
80495
80496         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80497         for known valid error numbers rather than observed invalid ones.
80498
80499 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80500
80501         * modules/ullong_max: New file.
80502
80503         * modules/chdir-long, modules/openat: New files.
80504         * modules/save-cwd (Depends-on): Depend on chdir-long.
80505         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80506
80507 2005-01-18  Jim Meyering  <jim@meyering.net>
80508
80509         Merge from coreutils.
80510         * m4/chdir-long.m4, m4/openat.m4: New files.
80511         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80512         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80513         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80514         is sane and DOES follow symlinks.  Besides, testing 20 different
80515         systems found no broken chown implementations.
80516         Prompted by a change in rsync's copy of this macro.
80517         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80518
80519         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80520
80521         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80522         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80523         NULL-means-set-to-current-time semantics.
80524         Remove temporary file immediately, rather than waiting
80525         for configure's at-exit trap code to do it.
80526
80527 2005-01-18  Jim Meyering  <jim@meyering.net>
80528
80529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80530
80531         * lib/utimens.c (futimens): Account for the fact that futimes
80532         can also fail with errno == ENOSYS or errno == ENOENT.
80533         Patch from Dmitry V. Levin.
80534
80535         Change the name of the robust chdir function from chdir to chdir_long.
80536         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80537         (restore_cwd): Use chdir_long, not chdir.
80538         * lib/chdir-long.c: Renamed from chdir.c.
80539         * lib/chdir-long.h: Renamed from chdir.h.
80540         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80541         Hurd.
80542
80543 2005-01-18  Bruno Haible  <bruno@clisp.org>
80544
80545         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80546         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80547         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80548         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80549         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80550         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80551         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80552         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80553         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80554         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80555         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80556         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80557         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80558         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80559         Use an all-permissive copyright notice, recommended by RMS.
80560
80561 2005-01-18  Bob Proulx  <bob@proulx.com>
80562
80563         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80564         simplify offsetof() macro construct to avoid compile failure with
80565         native HP-UX 11.0 ANSI C compiler.
80566
80567 2005-01-17  Bruno Haible  <bruno@clisp.org>
80568
80569         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80570         redundant because stpncpy.m4 takes care of it.
80571
80572 2005-01-17  Bruno Haible  <bruno@clisp.org>
80573
80574         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80575
80576 2005-01-17  Bruno Haible  <bruno@clisp.org>
80577
80578         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80579         used.
80580
80581 2005-01-17  Bruno Haible  <bruno@clisp.org>
80582
80583         * lib/fwriteerror.h (fwriteerror): Change specification to include
80584         fclose.
80585         * lib/fwriteerror.c: Include <stdbool.h>.
80586         (fwriteerror): At the end, close the file stream. Record whether
80587         stdout was already closed.
80588
80589 2005-01-17  Bruno Haible  <bruno@clisp.org>
80590
80591         * lib/execute.c (environ): Declare if needed.
80592         * lib/pipe.c (environ): Likewise.
80593         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80594
80595 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80596
80597         * modules/argp: Depend on vsnprintf
80598
80599 2005-01-10  Jim Meyering  <jim@meyering.net>
80600
80601         * modules/closeout (Depends-on): Add atexit.
80602
80603 2005-01-06  Bruno Haible  <bruno@clisp.org>
80604
80605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80606
80607 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80610         definitions to be after all include files, to avoid collisions.
80611         Problem reported by Bob Proulx.
80612
80613 2005-01-04  Jim Meyering  <jim@meyering.net>
80614
80615         Changes imported from coreutils.
80616         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80617         as the mkstemp template, use a temporary directory and an
80618         8.3-friendly template to avoid trouble on systems like DJGPP.
80619         Reported by Juan M. Guerrero via Stepan Kasal.
80620         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80621         close. Remove the temporary directory right away, rather than waiting
80622         for configure's at-exit trap code to do it.
80623         Suggestion from Stepan Kasal.
80624
80625 2005-01-01  Simon Josefsson  <jas@extundo.com>
80626
80627         * gnulib-tool: Print #include directives when --import'ing.
80628
80629 2004-12-28  Simon Josefsson  <jas@extundo.com>
80630
80631         * tests/test-base64.c: Include required header files.  Remove
80632         unused variables.
80633
80634 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80635
80636         * modules/error (Depends-on): Remove gettext.
80637
80638 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80639
80640         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80641         not needed.  This removes a dependency on the gettext module.
80642         [defined _LIBC]: Do not include <libintl.h>; not needed.
80643
80644 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80647         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80648
80649 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80650
80651         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80652         HAVE_DECL_STRTOLD.
80653
80654 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80655
80656         * modules/getdate (Depends-on): Remove alloca-opt.
80657
80658 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80661
80662 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80663
80664         * lib/argp-parse.c: Include <stddef.h>.
80665         (alignof, alignto): New macros.
80666         (parser_init): Don't assume that void * is aligned sufficiently
80667         for struct option.
80668
80669         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80670         need to extend the stack.
80671         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80672         large.
80673
80674 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80675
80676         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80677
80678 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80679
80680         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80681         (2004-10-24) change.  Apparently this was a false alarm.
80682
80683         * modules/getdate: Depend on alloca-opt, not alloca.
80684
80685 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80686
80687         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80688         Remove now-obsolete comment about AIX.
80689         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80690         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80691         (YYMAXDEPTH): New macro.
80692
80693 2004-12-18  Simon Josefsson  <jas@extundo.com>
80694
80695         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80696
80697 2004-12-18  Bruno Haible  <bruno@clisp.org>
80698
80699         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80700
80701 2004-12-18  Bruno Haible  <bruno@clisp.org>
80702
80703         * lib/fatal-signal.c (fatal_signals): Make non-const.
80704         (init_fatal_signals): New function.
80705         (uninstall_handlers, install_handlers): Ignore signals that were set to
80706         SIG_IGN.
80707         (at_fatal_signal): Call init_fatal_signals.
80708         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80709         SIG_IGN.
80710         Reported by Paul Eggert.
80711
80712 2004-12-18  Bruno Haible  <bruno@clisp.org>
80713
80714         * doc/alloca.texi: New file.
80715         * doc/alloca-opt.texi: New file.
80716
80717 2004-12-17  Jim Meyering  <jim@meyering.net>
80718
80719         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80720         Otherwise, install-sh could exit with improper exit status when
80721         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80722
80723 2004-12-16  Simon Josefsson  <jas@extundo.com>
80724
80725         * tests/test-base64.c: Add license.
80726
80727 2004-12-15  Stepan Kasal  <address@hidden>
80728
80729         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80730
80731 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         * modules/getcwd (Files): Add m4/d-ino.m4.
80734         Suggested by Mark D. Baushke.
80735
80736 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80737
80738         * lib/getdate.y (textint): New member "negative".
80739         (time_zone_hhmm): New function.
80740         Expect 14 shift-reduce conflicts, not 13.
80741         (o_colon_minutes): New rule.
80742         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80743         (yylex): Set the "negative" member of signed numbers.
80744
80745 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80746
80747         * doc/getdate.texi (Time of day items, Time zone items):
80748         Describe new formats +00:00, UTC+00:00.
80749
80750 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80753         spurious "-l"s.  Problem reported by Stepan Kasal.
80754
80755 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80756
80757         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80758         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80759
80760 2004-12-04  Simon Josefsson  <jas@extundo.com>
80761
80762         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80763         Vandoorselaere <yoann@prelude-ids.org>.
80764
80765 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80766
80767         Changes imported from coreutils.
80768         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80769         exist.
80770         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80771
80772 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         Changes imported from coreutils.
80775         * lib/hard-locale.c: Assume <locale.h> exists.
80776         Include "strdup.h".
80777         (GLIBC_VERSION): New macro.
80778         (hard_locale): Assume setlocale exists.
80779         Rewrite to avoid #ifdef.
80780         Use strdup rather than malloc + strcpy.
80781         * lib/human.c: Assume <locale.h> exists.
80782         (human_readable): Assume localeconv exists.
80783
80784 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * modules/hard-locale (Depends-on): Add strdup.
80787
80788 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80789
80790         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80791         convert T2, not T.  (Imported from libc.)
80792
80793 2004-11-30  Simon Josefsson  <jas@extundo.com>
80794
80795         * modules/restrict (License): Change to LGPL.
80796
80797 2004-11-30  Simon Josefsson  <jas@extundo.com>
80798
80799         * m4/restrict.m4: Add copyright and copying conditions.
80800
80801 2004-11-30  Simon Josefsson  <jas@extundo.com>
80802
80803         * m4/base64.m4: New file.
80804
80805 2004-11-30  Simon Josefsson  <jas@extundo.com>
80806
80807         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80808         base64.
80809
80810         * tests/test-base64.c: New file.
80811
80812         * modules/base64: New file.
80813
80814 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80815
80816         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80817         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80818
80819         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80820
80821 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80824         (__getcwd.c): Don't restore errno; glibc doesn't.
80825         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80826         first, falling back to our code only if its results look suspicious.
80827         Ensure that the resulting buffer is only as large as necessary.
80828
80829         * lib/readutmp.c: Include readutmp.h first.
80830         Include <errno.h>, since readutmp.h no longer does that.
80831         * lib/readutmp.h: Don't include <errno.h>,
80832         <sys/param.h>, <time.h>; not needed to establish interface.
80833         (errno): Remove decl.
80834         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80835         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80836         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80837
80838 2004-11-28  Simon Josefsson  <jas@extundo.com>
80839
80840         * lib/base64.h, base64.c: New file.
80841
80842 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80845
80846 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80849         (Depends-on): Remove pathmax, same.  Add mempcpy.
80850         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80851         (Makefile.am): Append getcwd.h to lib_SOURCES.
80852         (Include): Add getcwd.h.
80853         (Maintainer): Change from Jim Meyering to "all, glibc",
80854         since getdate now uses intended-for-glibc code.
80855         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80856         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80857
80858 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80861         HP's ANSI C compiler.
80862         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80863         Declaring int functions causes warnings on some modern systems and
80864         shouldn't be needed to compile on ancient ones.
80865         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80866         defined.
80867
80868         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80869         with the following changes.
80870         (__set_errno): Parenthesize properly.
80871         Include <stdbool.h>.
80872         (MIN, MAX, MATCHING_INO): New macros.
80873         (__getcwd): Define with prototype, not K&R form.
80874         Use heuristics to allocate default buffer on stack if possible.
80875         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80876         behavior, and to avoid the PATH_MAX limit when computing
80877         ../../../../...
80878         Use MATCHING_INO to compare inode number to file.
80879         Check for arithmetic overflow in size calculations.
80880         Fix bug in reallocation of dot array that caused getcwd to fail
80881         on directories nested deeper than 75.
80882         Be more careful about saving errno on error.
80883         Do not use realloc; use only free+malloc, as this is a bit
80884         more flexible and avoids a needless copy operation.
80885         Do not inspect st_dev and st_ino for symbolic links; POSIX
80886         doesn't specify the latter.
80887         Check for closedir errors.
80888         Avoid needless casts.
80889         Use "#ifdef weak_alias" around weak_alias, to be like other
80890         glibc code.
80891         The following changes to getcwd.c have effect only when used in
80892         gnulib; they have no effect inside glibc proper.
80893         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80894         as alloca isn't used.
80895         (alloca, __alloca): Likewise.
80896         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80897         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80898         unconditionally, as gnulib assumes C89 or better.
80899         Do not include <sys/param.h>.
80900         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80901         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80902         better.
80903         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80904         Include <dirent.h> in a way that is compatible with modern Autoconf.
80905         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80906         New macros, if not already defined.
80907         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80908         Use "_LIBC", not "defined _LIBC", for consistency.
80909         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80910         a mempcpy module.
80911         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80912         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80913         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80914         credit only to Jim Meyering and adjust the copyright dates.
80915         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80916         <stdlib.h>, <unistd.h>, "pathmax.h".
80917         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80918         (INITIAL_BUFFER_SIZE): Remove.
80919         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80920
80921 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80922
80923         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80924         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80925         Use the _ONCE methods, for efficiency.
80926         Check for fcntl.h.  In test program, include <errno.h>
80927         and <fcntl.h> if available.  Remove old K&R cruft from
80928         test program.  Check for common errors in GNU/Linux,
80929         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80930         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80932         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80933         name accordingly.
80934         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80935         accommodate new getcwd.c.
80936         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80937         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80938         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80939         that's all we need now.
80940
80941 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80942
80943         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80944         argp-parse.c depends on getopt internals, that means we should
80945         always use our getopt, to be on the safe side.
80946         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80947         order not to spoil the result of an eventual previous invocation
80948         of gl_GETOPT_SUBSTITUTE.
80949
80950 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80951
80952         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80953         redefinition warnings. To avoid them, include the defines
80954         in `#if !defined __need_getopt ... #endif'. The only place
80955         where __getopt_argv_const is used is in definitions
80956         of getopt_long and getopt_long_only below, which are as well
80957         protected by `#ifndef __need_getopt'.
80958         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80959         __need_getopt after including <stdio.h> and <unistd.h> These
80960         headers might have defined it.
80961
80962 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80963
80964         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80965
80966 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80967
80968         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80969         (futimens): New function, which uses futimes if available.
80970         (futimens, utimens): Support timespec==NULL, with same semantics
80971         as utime and utimens.
80972         * lib/utimens.h (futimens): New decl.
80973
80974 2004-11-23  Jim Meyering  <jim@meyering.net>
80975
80976         * lib/getopt_.h: Remove trailing blanks.
80977
80978 2004-11-23  Jim Meyering  <jim@meyering.net>
80979
80980         * lib/__fpending.c: Add comment.
80981
80982 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * modules/canonicalize (Depends-on): Add xreadlink.
80985         Problem reported by James Youngman.
80986
80987 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80988
80989         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80990         New macros.
80991         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80992         optopt): Use them instead of invoking ## directly; otherwise, the
80993         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80994
80995 2004-11-19  Bruno Haible  <bruno@clisp.org>
80996
80997         * lib/strtok_r.c: Move comments from here...
80998         * lib/strtok_r.h: ... to here.
80999
81000 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81001
81002         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81003         implementations that mishandle size_t overflow.
81004
81005 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81006
81007         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81008         might fail.  Problem reported by Yoann Vandoorselaere.
81009         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81010         implementations that mishandle size_t overflow.
81011
81012 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81013
81014         * modules/canon-host (Depends-on): Add strdup.
81015
81016 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81019
81020 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81021
81022         * lib/canon-host.c: Include "strdup.h".
81023         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81024         Use strdup instead of malloc/strcpy to duplicate strings.
81025
81026         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81027         (human_space_before_unit): New constant.
81028         * lib/human.c (human_readable): Support it.
81029
81030         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81031         (xgetcwd): Set errno correctly when failing.
81032         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81033         the failure is actually due to a PATH_MAX problem.
81034
81035         Further getopt changes to make it more likely that glibc will
81036         buy the changes back.
81037         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81038         (getopt): Use it, so to preserve glibc semantic
81039         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81040         when compiling for libc.
81041         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81042         (getopt_long, getopt_long_only): Use it.
81043
81044         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81045         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81046         (getopt): Argv is now char * const *, as per standard.
81047         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81048         not char *__getopt_argv_const *.
81049         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81050         _getopt_long_only_r): Likewise.
81051         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81052         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81053         _getopt_long_r, _getopt_long_only_r): Likewise.
81054         * lib/getopt_.h (__getopt_argv_const): Remove.
81055         (getopt): Argv is now char * const *, as per standard.
81056
81057         * lib/getdate.y (tORDINAL): New token.
81058         (day, relunit): Allow it for relative times.
81059         (relative_time_table): Use tORDINAL for ordinals.
81060
81061 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81064         Document that "second" isn't allowed as an ordinal number.
81065
81066 2004-11-16  Jim Meyering  <jim@meyering.net>
81067
81068         * modules/closeout (Depends-on): Add fpending.
81069
81070 2004-11-15  Jim Meyering  <jim@meyering.net>
81071
81072         * lib/closeout.c: Include "__fpending.h" once again.
81073         Include <stdbool.h>.
81074         (close_stdout): Don't fail just because stdout was closed initially,
81075         since some programs don't write to stdout in the normal course of
81076         operation (other than --version and --help), and we don't want this
81077         function to make e.g. `touch file >&-' fail.
81078         But do fail if it was closed and someone has tried to write to it.
81079         E.g., `printf foo >&-' must fail.
81080
81081 2004-11-13  Jim Meyering  <jim@meyering.net>
81082
81083         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81084
81085 2004-11-12  Simon Josefsson  <jas@extundo.com>
81086
81087         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81088         small doc fix is still pending.
81089
81090 2004-11-11  Simon Josefsson  <jas@extundo.com>
81091
81092         * modules/strtok_r: New file.
81093
81094         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81095         strtok_r.
81096
81097 2004-11-11  Simon Josefsson  <jas@extundo.com>
81098
81099         * m4/strtok_r.m4: New file.
81100
81101         * m4/getopt.m4: Replace opterr.
81102
81103 2004-11-11  Simon Josefsson  <jas@extundo.com>
81104
81105         * lib/strtok_r.h, strtok_r.c: New file.
81106
81107 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81108
81109         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81110         of replacing opterr, getopt, etc.  This should handle the
81111         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81112
81113 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81116         we can stop lying to compilers about the constness of argv when we
81117         are compiled outside glibc.
81118         (getopt, getopt_long, getopt_long_only): Use it.
81119         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81120         _getopt_internal, getopt): Likewise.
81121         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81122         _getopt_long_only_r): Likewise.
81123         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81124         _getopt_long_r, _getopt_long_only_r): Likewise.
81125
81126         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81127         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81128         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81129         the other external symbols.
81130         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81131         declaration, since the above renaming now works around collisions.
81132
81133 2004-11-11  Jim Meyering  <jim@meyering.net>
81134
81135         * lib/linebreak.c: Remove trailing blanks.
81136         * lib/alloca_.h: Likewise.
81137         * lib/acosl.c: Likewise.
81138         * lib/euidaccess.c: Likewise.
81139         * lib/allocsa.h: Likewise.
81140
81141 2004-11-10  Simon Josefsson  <jas@extundo.com>
81142
81143         * m4/getaddrinfo.m4: New file.
81144
81145 2004-11-10  Simon Josefsson  <jas@extundo.com>
81146
81147         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81148
81149 2004-11-10  Simon Josefsson  <jas@extundo.com>
81150
81151         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81152         getaddrinfo.
81153
81154         * modules/getaddrinfo: New file.
81155
81156 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81157
81158         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81159
81160 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81161
81162         * lib/mktime.c (SHR): New macro, which is a portable
81163         substitute for >> that should work even on Crays.
81164         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81165         Problem reported by Mark D. Baushke in
81166         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81167         * lib/getdate.y (SHR): Likewise.
81168         (tm_diff): Use it.
81169         * lib/strftime.c (SHR): Likewise.
81170         (tm_diff): Use it.
81171         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81172         quote_these_too, so that right shifts are well defined.  All uses
81173         changed.
81174
81175 2004-11-10  Jim Meyering  <jim@meyering.net>
81176
81177         Ensure that no close failure goes unreported.
81178         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81179         return early when it seems there's nothing to flush.
81180         Don't include __fpending.h.
81181
81182 2004-11-10  Jim Meyering  <jim@meyering.net>
81183
81184         * modules/closeout (Depends-on): Remove fpending.
81185
81186 2004-11-10  Jim Meyering  <jim@meyering.net>
81187
81188         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81189
81190 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81191
81192         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81193         gl_FUNC_STRFTIME.
81194         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81195         and AC_REQUIRE when possible, to avoid duplicate checks.
81196         Check for <wchar.h>.
81197
81198 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81199
81200         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81201
81202 2004-11-09  Bruno Haible  <bruno@clisp.org>
81203
81204         * m4/sockpfaf.m4: New file.
81205
81206 2004-11-05  Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81209         Reported by Mark D. Baushke <mdb@cvshome.org>.
81210
81211 2004-11-04  Bruno Haible  <bruno@clisp.org>
81212
81213         2004-09-11  Bruno Haible  <bruno@clisp.org>
81214                 * allocsa.valgrind: New file.
81215         2004-02-06  Bruno Haible  <bruno@clisp.org>
81216                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81217                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81218                 Reported by Christopher Seip <chris.seip@hp.com>.
81219
81220 2004-11-04  Bruno Haible  <bruno@clisp.org>
81221
81222         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81223         (Makefile.am): Distribute it.
81224
81225 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81228         with errno == ERANGE if the buffer is too small.
81229         Problem reported by Mark D. Baushke.
81230
81231 2004-11-03  Albert Chin  <china@thewrittenword.com>
81232             Paul Eggert  <eggert@cs.ucla.edu>
81233
81234         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81235         equivalent, substitute $ac_type for equivalent type rather than
81236         blindly using uint32_t *always* which won't work if uint32_t is not
81237         available.  Define _UINT32_T to work around typedef of uint32_t if
81238         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81239         2.5.1.
81240
81241 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81242
81243         * m4/jm-macros.m4: Sync from coreutils.
81244         (gl_MACROS): Check for mbrlen, for pathchk.
81245         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81246
81247 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * lib/xreadlink.c (MAXSIZE): New macro.
81250         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81251         size does not exceed MAXSIZE.  Avoid cast.
81252         As suggested by Mark D. Baushke in
81253         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81254         if readlink fails with buffer size just under MAXSIZE, try again
81255         with MAXSIZE.
81256
81257 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81258
81259         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81260
81261 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81262         and  Paul Eggert  <eggert@cs.ucla.edu>
81263
81264         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81265         (get_date): Overparenthesize to avoid GCC warning.
81266
81267 2004-11-02  Bruno Haible  <bruno@clisp.org>
81268
81269         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81270         returns void.
81271
81272 2004-11-02  Bruno Haible  <bruno@clisp.org>
81273
81274         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81275         function returns void.
81276
81277 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81278
81279         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81280         fflush_unlocked, flockfile, funlockfile, funlockfile,
81281         fputs_unlocked, putc_unlocked.
81282
81283 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81284
81285         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81286         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81287         already declared.
81288
81289 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81290
81291         * modules/getdate (Files): Add doc/getdate.texi.
81292         (Depends-on): Add setenv, xalloc.
81293
81294 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81295
81296         * lib/getdate.y: Add support for TZ="foo" within a date string.
81297         Fix some bugs near time_t boundaries.  Reject dates with
81298         out-of-range components, e.g., "Sept 31".
81299         Include <stdlib.h>, "setenv.h", "xalloc.h".
81300         (ISDIGIT_LOCALE): Remove; unused.
81301         Note that the TZ and time functions used here are not reentrant.
81302         (mktime_ok, get_tz): New functions.
81303         (TZBUFSIZE): New constant.
81304         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81305         This requires that we sometimes generate our own TZ="XXX..." setting.
81306
81307 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81308
81309         * doc/getdate.texi: New file, from coreutils with modifications for
81310         the new TZ parsing.
81311
81312 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81313
81314         * lib/mktime.c (not_equal_tm): Remove redundant check.
81315
81316 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81317
81318         * modules/regex (lib_SOURCES): Add regex.c.
81319         Reported by James Youngman in
81320         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81321
81322 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81323
81324         * lib/getdate.y: Use Bison 1.875 features, and some minor
81325         code cleanups.  This change does not affect semantics.
81326         Don't include <stdlib.h>; no longer needed.
81327         Don't include unlocked-io.h; only the "#if TEST" code uses
81328         stdio, and performance isn't crucial there.
81329         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81330         Bison 1.875 features as described below.
81331         All uses of "PC." replaced by "pc->".
81332         (YYSTYPE): Add a forward declaration.
81333         (yylex, yyerror): Use full prototypes in forward decls.
81334         Use "%pure-parser" rather than obsolescent "%pure_parser".
81335         Use %parse-param and %lex-param instead of obsolescent
81336         YYPARSE_PARAM and YYLEX_PARAM.
81337         (meridian_table, month_and_day_table, time_units_table,
81338         relative_time_table, time_zone_table, military_table,
81339         lookup_zone, lookup_word, get_date):
81340         Use NULL instead of 0 where appropriate.
81341         (to_hour): Avoid abort (), to avoid a dependency on
81342         stdlib.h.
81343         (yyerror, yylex): Now accepts parser_control * arg.
81344         (main) [TEST]: Use '\0' rather than 0 for char.
81345
81346 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81347
81348         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81349
81350 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81351
81352         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81353         It's now the caller's responsibility to handle the case where
81354         !HAVE_GETPAGESIZE && !defined getpagesize.
81355
81356         * lib/mktime.c (leapyear): Arg is long int, not int.
81357
81358 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81361
81362 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81365         missing.  Problem reported by James Youngman.
81366
81367 2004-10-16  Simon Josefsson  <jas@extundo.com>
81368
81369         * gnulib-tool: Fix comments.  Fix parse problem.
81370         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81371
81372 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81373
81374         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81375         implementation of getopt_long.  Problem reported by Alexander Taler in:
81376         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81377
81378 2004-10-15  Bruno Haible  <bruno@clisp.org>
81379
81380         * gnulib-tool: Untabify. Initialize supplied_libname.
81381         (func_usage): More homogenous output.
81382         (func_modules_transitive_closure, func_modules_to_filelist,
81383         func_emit_lib_Makefile_am): New functions.
81384         (func_import): New function, extracted from big case statement. Use
81385         func_get_license, func_modules_transitive_closure,
81386         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81387         opt_lgpl. Don't use test -a, as it's not portable.
81388         (func_create_testdir): Use func_modules_transitive_closure,
81389         func_modules_to_filelist, func_emit_lib_Makefile_am.
81390
81391 2004-10-15  Bruno Haible  <bruno@clisp.org>
81392
81393         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81394
81395 2004-10-15  Bruno Haible  <bruno@clisp.org>
81396
81397         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81398         the portions belonging to each module.
81399         Suggested by Derek Robert Price <derek@ximbiot.com>.
81400
81401 2004-10-12  Simon Josefsson  <jas@extundo.com>
81402
81403         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81404         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81405         to real functions.
81406
81407 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81408
81409         * modules/vsnprintf: New file.
81410
81411 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81412
81413         * m4/vsnprintf.m4: New file.
81414
81415 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81416
81417         * lib/vsnprintf.h: New file.
81418         * lib/vsnprintf.c: New file.
81419
81420 2004-10-11  Bruno Haible  <bruno@clisp.org>
81421
81422         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81423         vsnprintf.
81424
81425 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81428
81429 2004-10-07  Bruno Haible  <bruno@clisp.org>
81430
81431         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81432         fits into the provided buffer.
81433
81434 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81435
81436         * lib/diacrit.c, diacrit.h: Add GPL notice.
81437
81438         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81439         notice.
81440         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81441         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81442         This avoids a potential constant-folding bug.
81443
81444 2004-10-05  Bruno Haible  <bruno@clisp.org>
81445
81446         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81447         for the declaration of strsep.
81448
81449 2004-10-05  Bruno Haible  <bruno@clisp.org>
81450
81451         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81452
81453 2004-10-04  Simon Josefsson  <jas@extundo.com>
81454
81455         * modules/memmem: New file.
81456         * tests/test-memmem.c: New file.
81457         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81458
81459 2004-10-04  Simon Josefsson  <jas@extundo.com>
81460
81461         * m4/memmem.m4: New file.
81462
81463 2004-10-04  Simon Josefsson  <jas@extundo.com>
81464
81465         * lib/memmem.h: New file.
81466         * lib/memmem.c: New file, taken from glibc.
81467
81468 2004-10-04  Simon Josefsson  <jas@extundo.com>
81469
81470         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81471         '#ifdef USE_UNLOCKED_IO'.
81472
81473 2004-10-04  Simon Josefsson  <jas@extundo.com>
81474
81475         * config/srclist.txt: Add memmem from glibc.
81476
81477 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81478
81479         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81480
81481         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81482         modules/exclude, modules/getdate, modules/getline,
81483         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81484         modules/getusershell, modules/linebuffer, modules/md5,
81485         modules/mountlist, modules/posixtm, modules/readtokens,
81486         modules/readutmp, modules/regex, modules/sha1,
81487         modules/version-etc, modules/yesno:
81488         Remove dependency on unlocked-io.
81489
81490 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81493
81494         * m4/unlocked-io.m4: Add copyright notice.
81495         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81496
81497 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81498
81499         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81500         * lib/xmalloc.c (xmemdup): Likewise.
81501         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81502         XFREE): Remove these long-obsolescent macros.
81503         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81504         * lib/xstrdup.c: Remove.
81505
81506         * lib/regex.c (re_comp): Cast gettext return value to char *,
81507         Problem reported by Martin Neitzel via Mark D. Baushke.
81508
81509 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81510
81511         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81512         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81513         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81514         regex.c, sha1.c, version-etc.c, yesno.c:
81515         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81516         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81517         the includer's responsibility.
81518
81519         Sync from coreutils.
81520
81521         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81522         points to the start of a string, as the C Standard says the
81523         resulting behavior is undefined.
81524
81525         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81526         simple -> simple_backups, numbered_existing ->
81527         numbered_existing_backups, numbered -> numbered_backups
81528         to avoid shadowing problems.  All uses changed.
81529         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81530         * lib/backupfile.c (check_extension, numbered_backup):
81531         Rename locals to avoid shadowing 'basename'.
81532         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81533         once.
81534
81535         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81536         * lib/.cvsignore: Add getopt.h.
81537
81538 2004-10-04  Bruno Haible  <bruno@clisp.org>
81539
81540         * modules/README: New file.
81541         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81542         not a module.
81543
81544 2004-10-02  Jim Meyering  <jim@meyering.net>
81545
81546         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81547
81548 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81549
81550         * modules/strsep: New file.
81551
81552 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81553
81554         * m4/strsep.m4: New file.
81555
81556 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81557
81558         * lib/strsep.h: New file.
81559         * lib/strsep.c: New file.
81560
81561 2004-10-01  Simon Josefsson  <jas@extundo.com>
81562
81563         * lib/snprintf.c (snprintf): Handle size==0.
81564
81565 2004-10-01  Simon Josefsson  <jas@extundo.com>
81566             Bruno Haible  <bruno@clisp.org>
81567
81568         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81569         (snprintf): Declare 'args'.
81570
81571 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * lib/snprintf.c: Remove comments as to why each header is needed.
81574
81575 2004-10-01  Bruno Haible  <bruno@clisp.org>
81576
81577         * MODULES.html.sh: Add strsep.
81578
81579 2004-09-30  Simon Josefsson  <jas@extundo.com>
81580
81581         * modules/snprintf: New file.
81582
81583 2004-09-30  Simon Josefsson  <jas@extundo.com>
81584
81585         * m4/snprintf.m4: New file.
81586
81587 2004-09-30  Simon Josefsson  <jas@extundo.com>
81588
81589         * lib/snprintf.h, lib/snprintf.c: New files.
81590
81591 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81592
81593         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81594         (hol_entry_help): Never translate an empty string.
81595         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81596         * lib/argp.h (OPTION_NO_TRANS): New option.
81597
81598 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * modules/argp (Maintainer): Replace Simon Josefsson
81601         by Sergey Poznyakoff.
81602
81603 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81604
81605         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81606         changes merged back into glibc.
81607
81608 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81609
81610         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81611
81612 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81613
81614         * lib/xvasprintf.c: Include xalloc.h.
81615         (xvasprintf): Use xalloc_die, not xmalloc_die.
81616
81617 2004-09-29  Bruno Haible  <bruno@clisp.org>
81618
81619         * modules/alloca-opt: New file, derived from modules/alloca.
81620         * modules/allocsa: Depend on alloca-opt instead of alloca.
81621         * modules/setenv: Likewise.
81622         * modules/vasnprintf: Likewise.
81623         * MODULES.html.sh: Add alloca-opt.
81624
81625 2004-09-28  Simon Josefsson  <jas@extundo.com>
81626
81627         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81628         LGPL, and to replace license template from GPL to LGPL.
81629
81630 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         * modules/dummy: Change license to LGPL.
81633
81634 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81637
81638 2004-09-24  Simon Josefsson  <jas@extundo.com>
81639
81640         * modules/minmax (License): Change from GPL to LGPL.
81641
81642 2004-09-23  Simon Josefsson  <jas@extundo.com>
81643
81644         * gnulib-tool (--import): Typo.
81645
81646 2004-09-23  Simon Josefsson  <jas@extundo.com>
81647
81648         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81649
81650 2004-09-22  Bruno Haible  <bruno@clisp.org>
81651
81652         * modules/*: Add 'License' field.
81653         * gnulib-tool: Accept --extract-license option.
81654         (func_get_license): New function.
81655
81656 2004-09-21  Bruno Haible  <bruno@clisp.org>
81657
81658         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81659         Reported by Simon Josefsson.
81660
81661 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81664         gl_AC_TYPE_LONG_LONG.
81665
81666 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81667
81668         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81669
81670 2004-09-18  Simon Josefsson  <jas@extundo.com>
81671         and  Paul Eggert  <eggert@cs.ucla.edu>
81672
81673         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81674         calls with autoreconf.  Define GL_LIB.
81675
81676 2004-09-14  Karl Berry  <karl@gnu.org>
81677
81678         * config/srclist.txt: unsync setenv.c, sigh.
81679
81680 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81681
81682         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81683         Problem reported by Bruno Haible in:
81684         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81685
81686 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81687
81688         * config/srclist.txt: Comment out argp-pvh.c.
81689
81690 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81691
81692         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81693         in case some system header has #define'd it.  Problem reported by
81694         Soeren D. Schulze in
81695         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81696
81697 2004-09-09  Karl Berry  <karl@gnu.org>
81698
81699         * regex.[ch]: delete from the root.  These were supposed to be
81700                 synced with emacs cvs, but this has not happened for about
81701                 a year, and anyway nothing else uses emacs regex.[ch].
81702                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81703                 lib/regex[.ch] is untouched.
81704
81705 2004-09-09  Bruno Haible  <bruno@clisp.org>
81706
81707         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81708
81709 2004-09-09  Bruno Haible  <bruno@clisp.org>
81710
81711         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81712         modifications.
81713         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81714
81715 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81716
81717         * modules/xvasprintf: New file.
81718         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81719
81720 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81721
81722         * lib/xvasprintf.h: New file.
81723         * lib/xvasprintf.c: New file.
81724         * lib/xasprintf.c: New file.
81725
81726 2004-09-08  Bruno Haible  <bruno@clisp.org>
81727
81728         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81729
81730 2004-09-08  Bruno Haible  <bruno@clisp.org>
81731
81732         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81733         length is > INT_MAX.
81734         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81735         more.
81736
81737 2004-09-08  Bruno Haible  <bruno@clisp.org>
81738
81739         * lib/stdint_.h: New file, taken from GNU clisp.
81740
81741 2004-09-08  Bruno Haible  <bruno@clisp.org>
81742             Oskar Liljeblad  <oskar@osk.mine.nu>
81743
81744         * modules/stdint: New file.
81745         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81746
81747 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         Import from coreutils.
81750         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81751         strings on unbounded length.  alloca's performance benefits aren't
81752         that important here.
81753         (V_STRDUP): Remove.
81754         (parse_with_separator): New function, with most of the internals
81755         of the old parse_user_spec.  Allow user to omit both user and group,
81756         for compatibility with FreeBSD.
81757         Clone only the user name, not the entire spec.
81758         Do not set *uid, *gid unless entirely successful.
81759         Avoid memory leak in some failing cases.
81760         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81761         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81762         (parse_user_spec): Rewrite to use parse_with_separator.
81763
81764 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81765
81766         * modules/userspec: Don't depend on alloca.
81767
81768 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81769
81770         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81771
81772 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81773
81774         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81775         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81776         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81777
81778 2004-08-16  Simon Josefsson  <jas@extundo.com>
81779
81780         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81781         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81782         Add --dry-run for --import.
81783         Let user provided command line parameters override configure.ac
81784         settings.
81785
81786 2004-08-12  Simon Josefsson  <jas@extundo.com>
81787
81788         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81789         as discussed with Paul Eggert in threads rooted at
81790         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81791         and
81792         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81793         Before, the test was empty, and relied on ELIDE_CODE in source
81794         code.)
81795         (gl_PREREQ_GETOPT): New macro.
81796         (gl_GETOPT): Use them.
81797
81798 2004-08-12  Simon Josefsson  <jas@extundo.com>
81799
81800         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81801         * lib/getopt_.h: Renamed from getopt.h.
81802
81803 2004-08-12  Simon Josefsson  <jas@extundo.com>
81804
81805         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81806         Change default library name from libfoo to libgnu.
81807         Now, if you have a configure.ac that says:
81808                 gl_SOURCE_BASE(gl)
81809                 gl_M4_BASE(gl/m4)
81810                 gl_MODULES(error getopt etcetera)
81811                 gl_INIT
81812         you can import all you need by running:
81813                 ../gnulib/gnulib-tool --import
81814
81815         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81816         (Makefile.am): Rewrite, use logic from argz.
81817         (Include): Use <getopt.h> instead of "getopt.h".
81818
81819 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81820
81821         * modules/argp (Files): Add m4/unlocked-io.m4.
81822         (Depends-on): Add extensions.
81823
81824 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81825
81826         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81827         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81828         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81829         Check for program_invocation_name, program_invocation_short_name,
81830         flockfile, funlockfile, features.h, _getopt_long_only_r.
81831
81832 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81833
81834         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81835         its complicated substitute.
81836         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81837         and program_invocation_name.
81838         (__argp_basename) [!_LIBC]: Remove; the only use was
81839         replaced by its body.
81840         (__argp_short_program_name): Change condition from
81841         !defined __argp_short_program_name to
81842         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81843         to match argp-namefrob.h.
81844         (__argp_failure): Don't assume strerror_r returns char *.
81845         * lib/argp-parse.c (N_): Define unconditionally.
81846         (argp_default_options): Fill out initializers with 0 to avoid
81847         gcc warnings.
81848
81849 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81850
81851         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81852         getopt1.c.
81853
81854 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81855
81856         Merge from coreutils.
81857
81858         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81859
81860         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81861         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81862
81863 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         Merge from coreutils.
81866
81867         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81868         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81869         for Reliant Unix 5.43.
81870
81871         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81872         (union fooround): Use uintmax_t, not long int.
81873         The rest is a merge from libc:
81874         [defined _LIBC]: Include <shlib-compat.h>.
81875         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81876
81877         * lib/settime.c (settime): Recode to avoid warning with
81878         Sun Forte C 6U2.
81879
81880         * lib/strverscmp.c: Convert to UTF-8.
81881
81882 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81883
81884         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81885         m4/uintmax_t.m4.
81886
81887 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81888
81889         * modules/xalloc-die: New file.
81890         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81891
81892         * modules/md5 (Files): Add m4/uint32_t.m4.
81893         * modules/sha1: Renamed from modules/sha.
81894         (Files):
81895         Rename lib/sha.h to lib/sha1.h.
81896         Rename lib/sha.c to lib/sha1.c.
81897         Rename m4/sha.m4 to m4/sha1.m4.
81898         (lib_SOURCES): Likewise.
81899         (configure.ac): Rename gl_SHA to gl_SHA1.
81900         (Include): sha.h -> sha1.h.
81901
81902 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81905         * m4/sha1.m4: Renamed from sha.m4.
81906         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81907
81908 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81909
81910         * lib/obstack.h (obstack_empty_p):
81911         Don't assume that chunk->contents is suitably aligned.
81912         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81913         Likewise. Problem reported by Benno in
81914         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81915
81916         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81917         readable.  This could be improved further but it'd take some work.
81918
81919 2004-08-08  Simon Josefsson  <jas@extundo.com>
81920
81921         * modules/xgethostname (Depends-on): Remove exit and error (not
81922         used).
81923
81924         * modules/getpass-gnu: Add getpass.h.
81925         (Depends-on): Add stdbool.
81926         * modules/getpass: Add getpass.h.
81927
81928 2004-08-08  Simon Josefsson  <jas@extundo.com>
81929
81930         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81931         Check getpass declaration.
81932
81933 2004-08-08  Simon Josefsson  <jas@extundo.com>
81934
81935         * lib/xgethostname.c: Don't include error.h (not used).
81936
81937         * lib/getpass.h: Add.
81938         * lib/getpass.c: Include getpass.h first.
81939
81940 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81941
81942         * lib/xalloc-die.c: New file.
81943         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81944         All uses removed.
81945         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81946         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81947         xalloc-die.c.
81948         (_, N_, xalloc_die): Move to xalloc-die.c.
81949         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81950         so that we needn't mess with xalloc_msg_memory_exhausted.
81951
81952         * lib/sha1.h: Renamed from sha.h.
81953         (SHA1_H): Renamed from _SHA_H.
81954         (sha1_ctx): Renamed from sha_ctx.
81955         (sha1_init_ctx): Renamed from sha_init_ctx.
81956         (sha1_process_block): Renamed from sha_process_block.
81957         (sha1_process_bytes): Renamed from sha_process_bytes.
81958         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81959         (sha1_read_ctx): Renamed from sha_read_ctx.
81960         (sha1_stream): Renamed from sha_stream.
81961         (sha1_buffer): Renamed from sha_buffer.
81962         * lib/sha1.c: Likewise; renamed from sha.c.
81963         Do not include <sys/types.h>.
81964         Include <stddef.h> rather than <stdlib.h>.
81965
81966 2004-08-08  Bruno Haible  <bruno@clisp.org>
81967
81968         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81969         FILESYSTEM_PREFIX_LEN.
81970         * lib/progreloc.c: Likewise.
81971         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81972
81973 2004-08-06  Simon Josefsson  <jas@extundo.com>
81974
81975         * modules/progname (Depends-on): Don't depend on stdbool.
81976
81977 2004-08-06  Simon Josefsson  <jas@extundo.com>
81978
81979         * modules/getsubopt: New file.
81980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81981         getsubopt.
81982
81983 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81984
81985         More merge from coreutils.
81986
81987         * m4/utimens.m4, m4/utimecmp.m4: New files.
81988         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81989         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81990         prereq.m4, sha.m4: Import changes from coreutils.
81991
81992 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         More merge from coreutils.
81995         * modules/raise, modules/readtokens0, modules/utimens:
81996         * modules/utimecmp, module/xnanosleep: New files.
81997         * modules/strftime: Add lib/strftime.h.
81998         Change include from <time.h> to "strftime.h".
81999         * modules/yesno: Add lib/yesno.h.
82000         * modules/backupfile: Remove lib/addext.c.
82001         * modules/euidaccess: Add stat-macros.h.
82002         * modules/canonicalize, modules/euidaccess,
82003         modules/filemode, modules/lchown, modules/makepath,
82004         modules/rmdir, modules/stat: Likewise.
82005
82006 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82007
82008         Merge from tar.
82009         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82010         SIZE_MAX is a valid preprocessor constant.
82011         (__argp_basename): Change from "#ifndef _LIBC"
82012         to "#ifndef __argp_short_program_name", so that
82013         we don't compile these functions for tar.
82014
82015         More merges from coreutils.
82016         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82017         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82018         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82019         * lib/addext.c: Remove; no longer needed.
82020         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82021         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82022         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82023         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82024         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82025         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82026         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82027         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82028         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82029         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82030         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82031         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82032         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82033         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82034         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82035         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82036         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82037         Import changes from coreutils.
82038
82039 2004-08-05  Simon Josefsson  <jas@extundo.com>
82040
82041         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82042
82043 2004-08-05  Simon Josefsson  <jas@extundo.com>
82044
82045         * m4/getsubopt.m4: New file.
82046
82047 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82048
82049         Merge from coreutils.
82050
82051         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82052         * m4/getcwd-path-max.m4: New files.
82053
82054         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82055         FILESYSTEM_PREFIX_LEN ->
82056         FILE_SYSTEM_PREFIX_LEN.
82057         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82058         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82059         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82060         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82061
82062         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82063         prerequisite modules now handle the DOS stuff.
82064         Don't check for unistd.h.
82065
82066 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82067
82068         Merge from coreutils.
82069
82070         * lib/.gdb-history: Remove; this doesn't belong here.
82071
82072         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82073         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82074         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82075         * lib/getcwd.c: New files.
82076
82077         * lib/dirname.h: Include <stdbool.h>.
82078         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82079         for consistency with POSIX terminology.  All uses changed.
82080         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82081         (strip_trailing_slashes): Use bool for booleans.
82082         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82083
82084         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82085         sometimes returns a positive errno value even when it succeeds.
82086         (print_errno_message) [!LIBC]: Fall back on strerror if
82087         __strerror_r fails.
82088
82089         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82090         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82091         (longest_relative_suffix): New function.
82092         (path_concat): Use it.  Assume first argument is not NULL.
82093         Port to DOS.  Omit redundant separators.
82094         Report an error instead of returning NULL.
82095         Use mempcpy instead of memcpy.
82096         (xpath_concat): Remove: not declared or used.
82097
82098         * lib/same.h: Include <stdbool.h>
82099         (same_name): Return bool, not int.
82100         * lib/same.c (same_name): Likewise.
82101         (errno): Don't declare; we assume C89 or better now.
82102
82103         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82104         if not already defined.
82105
82106         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82107         * lib/dup-safer.c (errno): Likewise.
82108
82109 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         Merge from coreutils.
82112         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82113         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82114         * modules/path-concat: Don't depend on strdup.
82115
82116 2004-08-03  Simon Josefsson  <jas@extundo.com>
82117
82118         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82119         * lib/progname.h: Don't include stdbool.h.
82120
82121 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82122
82123         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82124         * MODULES.html.sh (func_all_modules): Remove fatal.
82125
82126 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82127
82128         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82129
82130 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82131
82132         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82133         working.
82134
82135 2004-08-02  Simon Josefsson  <jas@extundo.com>
82136
82137         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82138         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82139         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82140
82141 2004-08-01  Simon Josefsson  <jas@extundo.com>
82142
82143         * lib/xgetdomainname.c: Include stdlib.h, for free().
82144
82145 2004-07-19  Bruno Haible  <bruno@clisp.org>
82146
82147         * MODULES.html.sh (func_all_modules): Add dummy.
82148
82149 2004-07-16  Simon Josefsson  <jas@extundo.com>
82150
82151         * modules/dummy: New file.
82152
82153 2004-07-16  Simon Josefsson  <jas@extundo.com>
82154
82155         * lib/dummy.c: New file.
82156
82157 2004-07-16  Bruno Haible  <bruno@clisp.org>
82158
82159         * lib/backupfile.h: Add extern "C" for C++.
82160         * lib/closeout.h: Likewise.
82161         * lib/copy-file.h: Likewise.
82162         * lib/findprog.h: Likewise.
82163         * lib/full-write.h: Likewise.
82164         * lib/pathname.h: Likewise.
82165         * lib/progname.h: Likewise.
82166         * lib/stpcpy.h: Likewise.
82167         * lib/stpncpy.h: Likewise.
82168         * lib/strcase.h: Likewise.
82169         * lib/strstr.h: Likewise.
82170         * lib/xalloc.h: Likewise.
82171
82172         * lib/mbswidth.h: Add extern "C" for C++.
82173         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82174
82175 2004-07-13  Robert Millan  <robertmh@gnu.org>
82176
82177         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82178
82179 2004-07-09  Simon Josefsson  <jas@extundo.com>
82180
82181         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82182         failed without this.)
82183
82184 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * modules/chown (Files): Add lib/fchown-stub.c, since
82187         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82188
82189 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82190
82191         * lib/fchown-stub.c: New file.
82192
82193 2004-06-24  Jim Meyering  <jim@meyering.net>
82194
82195         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82196
82197 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82198
82199         * modules/argz: Omit "#include".
82200
82201         * MODULES.html.sh (func_all_modules): Add calloc, to match
82202         2004-06-01 addition of calloc module.
82203
82204 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82205
82206         * m4/argz.m4: New file, which is autoupdated from libtool.
82207
82208 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82211         libtool.
82212
82213 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82214
82215         * config/srclist-update: Don't insist on "USA." before the
82216         close-comment, as libtool omits the period and puts the */ on a
82217         separate line.
82218         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82219         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82220
82221 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82222
82223         * modules/argz: New file.
82224         * MODULES.html.sh (func_all_modules): Add argz.
82225
82226 2004-06-12  Jim Meyering  <jim@meyering.net>
82227         and  Paul Eggert  <eggert@cs.ucla.edu>
82228
82229         * modules/hash (Files): Add lib/xalloc.h.
82230         * modules/pipe (Depends-on): Add wait-process.
82231         * modules/stat (Depends-on): Add xalloc.
82232         * modules/userspec (Files): Add lib/userspec.h.
82233         * modules/xstrto
82234
82235         Upgrade from gettext-0.13.
82236         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82237         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82238         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82239
82240 2004-06-10  Jim Meyering  <jim@meyering.net>
82241
82242         * lib/calloc.c: New file.
82243
82244 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         * lib/getdate.y (yylex): Allow space between sign and number.
82247         Problem reported by Dan Jacobson.
82248
82249 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82250
82251         Merge from coreutils CVS.
82252
82253         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82254         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82255         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82256         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82257         xstrtol.m4: Fix copyright date and/or serial number.
82258
82259         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82260         See if we need an fchown replacement.
82261         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82262         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82263         and use the replacement function if we detect either defect.
82264
82265         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82266         gl_UTIMECMP.
82267
82268 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82269         and  Jim Meyering  <jim@meyering.net>
82270
82271         Merge from coreutils CVS.
82272
82273         * lib/stat-macros.h: New file, with contents from file-type.h
82274         and coreutils' system.h.
82275         * lib/file-type.c: Include "stat-macros.h".
82276         * lib/file-type.h (file_type): Move all macro definitions to new file,
82277         stat-macros.h.
82278
82279         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82280         Wrap old code with this conditional.
82281         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82282         function that does not dereference symlinks.
82283         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82284
82285         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82286         dependency problems.
82287         (xreadlink): Accept new arg SIZE, for efficiency.
82288         All decls and uses changed.
82289         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82290
82291         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82292         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82293
82294         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82295         sysexits.h.
82296
82297 2004-06-01  Jim Meyering  <jim@meyering.net>
82298
82299         * m4/calloc.m4: New file.
82300
82301 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82302
82303         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82304         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82305         Also, fix a typo in a diagnostic.
82306
82307 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82310         or AC_FUNC_REALLOC.
82311
82312 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82315         macros to be defined.
82316         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82317         the allocator returns NULL because the requested size is zero.
82318
82319 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82320
82321         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82322         var.  Add comment explaining why libc still defines it.  This
82323         merges the following patch from glibc:
82324         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82325
82326 2004-05-20  Andreas Schwab  <schwab@suse.de>
82327
82328         * m4/free.m4: Replace free if it not known to work, not the other
82329         way round.
82330
82331 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82332
82333         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82334         present in glibc since revision 1.1 of this file.
82335         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82336         obstack_alignment_mask, obstack_alloc, obstack_base,
82337         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82338         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82339         obstack_grow0, obstack_init, obstack_int_grow,
82340         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82341         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82342         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82343         nonexistent functions.
82344
82345 2004-05-18  Karl Berry  <karl@gnu.org>
82346
82347         * config/srclist.txt: break link for vasnprintf.c.
82348
82349 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         Port obstack to the AS/400, where pointers are 16 bytes wide and
82352         you cannot cast an integer to a valid pointer.  This patch is
82353         currently waiting to be integrated into glibc; see
82354         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82355
82356         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82357         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82358         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82359         (struct obstack): temp member is now a union of a pointer and
82360         an integer, instead of an integer.  All integer uses changed.
82361         This does not affect the physical layout of struct obstack,
82362         except on hosts (like the AS/400) where the size or alignment of
82363         void * is greater than that of ptrdiff_t.
82364         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82365         __STDC__)]: Store temporary in pointer member of union, not
82366         integer member.
82367         * lib/obstack.c: Include <stddef.h>, for offsetof.
82368         (struct fooalign): Remove; it doesn't need a name.
82369         (union fooround): Change double to long double, and add void *.
82370         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82371         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82372         not a macro.  Hence the values are always int; so remove all
82373         casts-to-int in uses.
82374
82375 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82376
82377         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82378         we can get this patch merged into glibc.
82379
82380 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82381             Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * m4/argp: Depend on alloca.
82384
82385 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82386             Paul Eggert  <eggert@cs.ucla.edu>
82387
82388         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82389         freecoding.
82390
82391 2004-05-17  Bruno Haible  <bruno@clisp.org>
82392
82393         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82394         precision that consists of a '.' followed by an empty digit string.
82395         Patch by Tor Lillqvist <tml@iki.fi>.
82396
82397 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82398
82399         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82400         for backward compatibility with older code.  We need our own
82401         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82402         it under some other name, and our alloca.h will define it.
82403
82404 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82405             Derek Price  <derek@ximbiot.com>
82406
82407         * lib/alloca.c: Include <alloca.h>, to get our interface.
82408         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82409         include <alloca.h> first.  Use C89 prototype for alloca; this
82410         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82411         Use #elif for simplicity, since we can assume C89 now.
82412         Don't try to source the system alloca.h since it will not be found
82413         and to prevent recursively including its replacement.
82414         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82415         * lib/regex.c: Likewise.
82416
82417 2004-05-16  Derek Price  <derek@ximbiot.com>
82418             Paul Eggert  <eggert@cs.ucla.edu>
82419
82420         getline cleanup.  This changes the getndelim2 API: both order of
82421         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82422         no delimiter).
82423
82424         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82425         interface does that.
82426         (getline): Always use getdelim, so that we don't have two
82427         copies of this code.
82428         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82429         if available.
82430         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82431         (GETNDELIM2_MAXIMUM): New macro.
82432         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82433         instead of the old practice of delim2==0.  All callers changed.
82434         Return -1 on overflow, instead of returning junk.
82435         Do not set *linesize unless allocation succeeds.
82436         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82437         that we include sys/types.h.
82438         * lib/getnline.h: Likewise.
82439         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82440         (getndelim2): Reorder arguments.
82441         * lib/getnline.c (getnline, getndelim):
82442         Don't discard the NMAX argument.
82443         (getnline): Invoke getndelim, to avoid code duplication.
82444         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82445         of (size_t) -1 by callers of the getnline family.
82446
82447 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82448
82449         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82450         Check for gettimeofday.
82451         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82452         Check for settimeofday, stime.
82453
82454 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         * lib/nanosleep.c (suspended): Change its type from int to
82457         sig_atomic_t volatile.
82458         (first_call): Make it private to rpl_nanosleep, and have it
82459         be zero initially as that's a bit faster.
82460         (my_usleep): Round up fractional times instead of truncating them,
82461         as this is the usual meaning for 'sleep'.
82462
82463         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82464         doesn't work.
82465         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82466         (ENOSYS): Define if not defined.
82467         (settime): Fall back on stime if it exists and settimeofday fails.
82468         But don't bother with fallbacks if a method fails with errno == EPERM.
82469
82470 2004-05-11  Jim Meyering  <jim@meyering.net>
82471
82472         Prior to this change, the save_cwd caller required read access to the
82473         current directory on most systems (ones with the fchdir function).
82474
82475         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82476         fails, try write-only, and finally, resort to using xgetcwd.
82477
82478 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         * lib/obstack.c, obstack.h: Import changes from libc.
82481
82482 2004-04-28  Bruno Haible  <bruno@clisp.org>
82483
82484         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82485         also implicitly appends .exe to executables.
82486         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82487         accepts Windows pathnames.
82488         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82489         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82490         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82491         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82492         Reported by Derek Robert Price <derek@ximbiot.com>.
82493
82494 2004-04-21  Karl Berry  <karl@gnu.org>
82495
82496         * config/srclist.txt (localcharset.c): break sync.
82497
82498 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82499
82500         * m4/host-os.m4: Add a copyright notice.
82501
82502 2004-04-20  Jim Meyering  <jim@meyering.net>
82503
82504         Change UTILS_ to gl_ in AC_DEFINE'd names.
82505         Change utils_- and jm_-prefixed variables, too.
82506         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82507         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82509
82510         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82511         Don't emit trailing blanks.
82512         Also rename jm_-prefixed variables to have gl_ prefix.
82513
82514         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82515         Also rename jm_-prefixed variables to have gl_ prefix.
82516
82517         * m4/jm-macros.m4: Reflect the renamings.
82518         * m4/prereq.m4: Likewise.
82519
82520 2004-04-20  Jim Meyering  <jim@meyering.net>
82521
82522         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82523         memory.
82524
82525 2004-04-20  Jim Meyering  <jim@meyering.net>
82526             Bruno Haible  <bruno@clisp.org>
82527
82528         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82529         memory when realloc fails.
82530
82531 2004-04-19  Jim Meyering  <jim@meyering.net>
82532
82533         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82534         now that readutmp.c may call `free (0)'.
82535
82536 2004-04-19  Bruno Haible  <bruno@clisp.org>
82537
82538         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82539         * m4/inttypes_h.m4: Likewise.
82540         * m4/stdint_h.m4: Likewise.
82541         * m4/intmax_t.m4: Likewise.
82542         * m4/uintmax_t.m4: Likewise.
82543
82544 2004-04-18  Jim Meyering  <jim@meyering.net>
82545
82546         * m4/prereq.m4: Don't forbid jm_ prefix.
82547
82548         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82549         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82550         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82551         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82552         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82553         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82554         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82555         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82556         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82557         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82558         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82559         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82560         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82561         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82562         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82563         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82564         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82565         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82566         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82567
82568 2004-04-18  Jim Meyering  <jim@meyering.net>
82569
82570         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82571         failure, don't leak memory and do call END_UTMP_ENT.
82572
82573 2004-04-16  Jim Meyering  <jim@meyering.net>
82574
82575         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82576         coreutils' stat program.
82577         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82578
82579 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82580
82581         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82582         C89.
82583         (CHAR_BIT): Remove, since we assume C89.
82584         Include <stdint.h> if available, as per current Autoconf CVS advice.
82585
82586 2004-03-31  Jim Meyering  <jim@meyering.net>
82587
82588         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82589         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82590         * m4/xalloc.m4: Likewise.
82591
82592 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82593
82594         Merge from coreutils.
82595
82596         * m4/inttostr.m4: New file.
82597         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82598         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82599         Require gl_CLOCK_TIME.
82600         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82601
82602 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82603
82604         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82605         not bool, to be more consistent with Unix conventions.
82606         Suggested by Bruno Haible.
82607
82608         Merge from coreutils.
82609
82610         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82611         * lib/umaxtostr.c: New files.
82612
82613         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82614         the usual <time.h> dance.
82615         (get_date): Change signature to support fractional time stamps.
82616         All callers changed.
82617         * lib/getdate.y: Include "getdate.h" first, as we can now
82618         assume C89 and don't need to worry about 'const'.
82619         Similarly, include "unlocked-io.h" near start, not in middle.
82620         Include <limits.h>.
82621         (textint.value): Use long int rather than int.
82622         (textint.digits): Use size_t rather than int.
82623         (BILLION, LOG10_BILLION): New constants.
82624         (parser_control): New member rel_ns.  Members day_ordinal,
82625         time_zone, month, day, hour, minutes, rel_year, rel_month,
82626         rel_day, rel_hour, rel_minutes, rel_seconds
82627         are now long int, not int.  Member seconds is now struct timespec,
82628         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82629         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82630         not int.
82631         (%union.intval): Now long int, not int.
82632         New member timespec.
82633         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82634         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82635         (spec): Now is a timespec or an item list.
82636         (timespec, items): New nonterminals.
82637         (time, rel, relunit, number, get_date):
82638         Add support for fractional seconds.
82639         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82640         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82641         (to_hour): First arg is now long int, not int.
82642         (to_year): Returns long int, not int.
82643         Don't treat year -70 like 70.
82644         (tm_diff): Returns long int, not int.
82645         (lookup_word): Use bool instead of int when appropriate.
82646         (yylex): Use size_t for count, not int.
82647         Detect overflow when parsing large integer constants.
82648         Add support for fractions.
82649         (get_date): Make pointers 'const' if possible.
82650         Use more-portable code to detect integer overflow.
82651         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82652         Don't use ctime; it's not reliable if the year has >4 digits.
82653
82654         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82655         This is for compatibility with BSD.
82656
82657         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82658         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82659         From coreutils' system.h.
82660
82661         * lib/userspec.c: Don't include "posixver.h".
82662         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82663         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82664         compatible extension.  Simplify code by removing a boolean int
82665         that was always nonzero if a string was nonnull.
82666
82667 2004-03-30  Jim Meyering  <jim@meyering.net>
82668
82669         Merge from coreutils.
82670
82671         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82672         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82673         on some systems one must include <grp.h> before it.
82674         Reported by Christian Krackowizer.
82675
82676 2004-03-30  Jim Meyering  <jim@meyering.net>
82677
82678         Merge from coreutils.
82679
82680         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82681
82682         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82683         an empty input stream.
82684
82685         * lib/readtokens.c: Include <stdbool.h>.
82686         (readtoken): Use `size_t' rather than int/long.
82687         All callers adjusted.
82688         Use `bool' rather than `int' where appropriate.
82689         Use memset rather than an explicit loop.
82690         Use x2nrealloc rather than xrealloc.
82691         Allow the use of `\0' as a delimiter.
82692         (readtokens): Likewise.
82693         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82694
82695 2004-03-30  Jim Meyering  <jim@meyering.net>
82696
82697         * m4/realloc.m4: Remove file, since now it does no more than
82698         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82699         the `configure.ac' section of module/realloc.
82700         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82701
82702 2004-03-30  Bruno Haible  <bruno@clisp.org>
82703
82704         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82705         nonnull.
82706
82707 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82708
82709         Merge changes to getloadavg.c from coreutils and Emacs.
82710
82711         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82712         Define to an expression, not to the empty string.
82713         Include cloexec.h and xalloc.h.
82714         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82715         Use set_cloexec_flag rather than rolling our own.
82716         * lib/cloexec.c, lib/cloexec.h: New files.
82717
82718 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82719
82720         * m4/cloexec.m4: New file.
82721
82722 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82723
82724         * lib/getopt.h: Sync with libc CVS.
82725
82726 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82727             Bruno Haible  <bruno@clisp.org>
82728
82729         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82730         mbswidth.
82731
82732 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82733             Bruno Haible  <bruno@clisp.org>
82734
82735         * lib/mbswidth.h: Include <wchar.h> only if
82736         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82737         <wchar.h>.
82738         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82739
82740 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82741
82742         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82743         Sync with libc CVS.
82744         * lib/getopt_int.h: New file, also synced from libc.
82745
82746 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82747
82748         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82749         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82750         Bring back getopt.c, getopt.h, getopt1.c.
82751
82752 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82753
82754         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82755         All uses changed.  Check for sa_sigaction member; this fixes
82756         a bug first reported by Jason Andrade in
82757         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82758
82759 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82760
82761         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82762         '#if' expressions.  Unlike the code it replaces, it does not
82763         depend on (defined _SC_PAGESIZE).  However, it does depend on
82764         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82765         first reported by Jason Andrade in
82766         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82767
82768 2004-02-25  Simon Josefsson  <jas@extundo.com>
82769
82770         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82771
82772 2004-02-25  Simon Josefsson  <jas@extundo.com>
82773
82774         * lib/strdup.h: New file.
82775         * lib/strdup.c: Include it.
82776         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82777         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82778
82779 2004-02-23  Karl Berry  <karl@gnu.org>
82780
82781         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82782         (from fencepost.gnu.org:/gd/gnuorg).
82783
82784 2004-02-23  Karl Berry  <karl@gnu.org>
82785
82786         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82787         * config/srclist.txt: add maintain/standards documents.
82788
82789 2004-02-18  Bruno Haible  <bruno@clisp.org>
82790
82791         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82792         Reported by Derek Robert Price <derek@ximbiot.com>.
82793
82794 2004-02-16  Karl Berry  <karl@gnu.org>
82795
82796         * config/mkinstalldirs, install-sh: update from automake.
82797
82798 2004-02-06  Karl Berry  <karl@gnu.org>
82799
82800         * m4/po.m4: update from gettext 0.14.1.
82801
82802 2004-02-06  Karl Berry  <karl@gnu.org>
82803
82804         * lib/config.charset: update from gettext 0.14.1.
82805
82806 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82807
82808         Add comments and code, prompted by suggestions from Bruno Haible
82809         for sh-quote.
82810         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82811         describing the enum quoting_style values.
82812         * lib/quotearg.c (quotearg_alloc): New function.
82813         (quotearg_buffer_restyled): Treat lone { and } as special.
82814         Treat = as special.  Work around bug with older shells
82815         that "see" a '\' that is really the 2nd byte of a multibyte char.
82816         Quote empty string with shell_quoting_style.
82817
82818 2004-02-03  Bruno Haible  <bruno@clisp.org>
82819
82820         * m4/pipe.m4: New file, from GNU gettext.
82821
82822 2004-02-03  Bruno Haible  <bruno@clisp.org>
82823
82824         * lib/pipe.h: New file, from GNU gettext.
82825         * lib/pipe.c: New file, from GNU gettext.
82826
82827 2004-01-27  Bruno Haible  <bruno@clisp.org>
82828
82829         * m4/execute.m4: New file, from GNU gettext.
82830
82831 2004-01-27  Bruno Haible  <bruno@clisp.org>
82832
82833         * lib/execute.h: New file, from GNU gettext.
82834         * lib/execute.c: New file, from GNU gettext.
82835         * lib/w32spawn.h: New file, from GNU gettext.
82836
82837 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82838
82839         Merge from diffutils.
82840
82841         * lib/file-type.c (file_type): Add typed memory objects.
82842         * lib/file-type.h (S_TYPEISTMO): New macro.
82843
82844         * lib/c-stack.h (c_stack_action): Remove argv argument.
82845         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82846         (die): Don't calculate message unless segv_action returns.
82847         (get_stack_location, min_address_from_argv, max_address_from_argv,
82848         volatile stack_base, volatile_stack_size): Remove.
82849         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82850         that every segmentation violation is a stack overflow.  (Ouch!)
82851         See Debian bug 136249 (still outstanding) for more info about why
82852         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82853
82854 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82855
82856         Exit-status fix from coreutils.
82857
82858         Use exit_failure consistently in place of EXIT_FAILURE,
82859         so that program exit statuses are consistent on failure.
82860
82861         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82862         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82863         * lib/argmatch.h: Comment fix to match the above.
82864         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82865         Now a macro referring to exit_failure, instead of a separate
82866         variable.  Include "exitfail.h" to get it.
82867         * lib/xstrtol.h: Include "exitfail.h".
82868         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82869
82870         * lib/long-options.c (parse_long_options): Use prototype
82871         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82872         for clarity.
82873
82874 2004-01-21  Jim Meyering  <jim@meyering.net>
82875
82876         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82877         so as not to conflict with a different-sized __mktime_internal
82878         function in GNU libc.
82879         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82880         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82881
82882 2004-01-20  Karl Berry  <karl@gnu.org>
82883
82884         * config/config.guess: update from config.
82885
82886         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82887
82888 2004-01-20  Bruno Haible  <bruno@clisp.org>
82889
82890         Safer stack allocation.
82891         * lib/setenv.c: Include allocsa.h.
82892         (alloca): Remove fallback definition.
82893         (freea): Remove macro.
82894         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82895         instead of freea.
82896
82897 2004-01-20  Bruno Haible  <bruno@clisp.org>
82898
82899         * m4/eealloc.m4: New file, from GNU gettext.
82900
82901 2004-01-20  Bruno Haible  <bruno@clisp.org>
82902
82903         * m4/allocsa.m4: New file, from GNU gettext.
82904
82905 2004-01-20  Bruno Haible  <bruno@clisp.org>
82906
82907         * lib/xallocsa.h: New file, from GNU gettext.
82908         * lib/xallocsa.c: New file, from GNU gettext.
82909
82910 2004-01-20  Bruno Haible  <bruno@clisp.org>
82911
82912         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82913
82914 2004-01-20  Bruno Haible  <bruno@clisp.org>
82915
82916         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82917         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82918         specially.
82919
82920 2004-01-20  Bruno Haible  <bruno@clisp.org>
82921
82922         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82923         patch.
82924
82925 2004-01-20  Bruno Haible  <bruno@clisp.org>
82926
82927         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82928
82929 2004-01-20  Bruno Haible  <bruno@clisp.org>
82930
82931         * lib/eealloc.h: New file.
82932
82933 2004-01-20  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/binary-io.h: Avoid warnings on Cygwin.
82936
82937 2004-01-20  Bruno Haible  <bruno@clisp.org>
82938
82939         * lib/allocsa.h: New file, from GNU gettext.
82940         * lib/allocsa.c: New file, from GNU gettext.
82941
82942 2004-01-18  Karl Berry  <karl@gnu.org>
82943
82944         * doc/gpl.texi, doc/lgpl.texi: new files.
82945
82946 2004-01-18  Karl Berry  <karl@gnu.org>
82947
82948         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82949         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82950
82951 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82952
82953         Merge from coreutils.
82954
82955         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82956         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82957         (gl_DEFAULT_POSIX2_VERSION): Move
82958         the documentation from 'configure' into 'config.hin',
82959         so that 'configure --help' isn't burdened by it and
82960         we don't have to worry about its formatting there.
82961         Reword the documentation so that it's more succinct
82962         and can be run together into a single paragraph.
82963         * m4/same.m4 (gl_SAME): Check for pathconf.
82964
82965 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82966
82967         Merge from coreutils.
82968
82969         * lib/posixver.c: Include posixver.h.
82970
82971         * lib/same.c: Include <stdbool.h>, <limits.h>.
82972         (_POSIX_NAME_MAX): Define if not defined.
82973         (MIN): New macro.
82974         (same_name): If file names are silently truncated, report
82975         that the file names are the same if they are the same after
82976         the silent truncation.
82977
82978         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82979         conversion function.
82980         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82981         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82982         longer needed.
82983
82984 2004-01-15  Jim Meyering  <jim@meyering.net>
82985
82986         Merge from coreutils.
82987
82988         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82989         if no library is required.
82990         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82991         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82992         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82993         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82994         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82995         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82996         value, $ac_cv_search_crypt, if it's "none required".
82997         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82998         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82999         not gl_FUNC_GETLOADAVG.
83000         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83001         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83002
83003 2004-01-15  Jim Meyering  <jim@meyering.net>
83004
83005         Merge from coreutils.
83006
83007         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83008         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83009         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83010
83011         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83012         optional configure-time default.
83013
83014         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83015
83016         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83017
83018 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83019
83020         Merge from coreutils.
83021
83022         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83023         value, $ac_cv_search_nanosleep, if it's "none required".
83024
83025 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83026
83027         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83028         with like-named macro in fnmatch.c.
83029         (EXT): Use an internal constant instead.
83030
83031         Merge fnmatch patches from glibc.
83032         * lib/fnmatch.c (mbsinit): Remove define.
83033         Add libc_hidden_ver (__fnmatch, fnmatch).
83034         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83035         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83036
83037 2004-01-14  Karl Berry  <karl@gnu.org>
83038
83039         * config/install-sh: update from automake.
83040
83041 2004-01-13  Karl Berry  <karl@gnu.org>
83042
83043         * config/install-sh: update from automake.
83044
83045 2004-01-09  Karl Berry  <karl@gnu.org>
83046
83047         * config/install-sh: update from automake.
83048
83049 2004-01-05  Karl Berry  <karl@gnu.org>
83050
83051         * config/config.{sub,guess}: update from config.
83052
83053 2003-12-31  Karl Berry  <karl@gnu.org>
83054
83055         * config/depcomp: update from automake.
83056
83057 2003-12-14  Karl Berry  <karl@gnu.org>
83058
83059         * lib/config.charset: update from gettext-runtime.
83060
83061 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83062
83063         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83064         Bug reported by Alfred M. Szmidt.
83065
83066 2003-12-03  Bruno Haible  <bruno@clisp.org>
83067
83068         * m4/gettext.m4: Upgrade from gettext-0.13.
83069         * m4/po.m4: Upgrade from gettext-0.13.
83070         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83071         * m4/intmax.m4: New file, from gettext-0.13.
83072         * m4/printf-posix.m4: New file, from gettext-0.13.
83073
83074 2003-11-29  Karl Berry  <karl@gnu.org>
83075
83076         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83077
83078 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83079             Bruno Haible  <bruno@clisp.org>
83080
83081         * lib/printf-parse.h: Don't include sys/types.h.
83082         (ARG_NONE): New macro.
83083         (char_directive): Change type of *arg_index fields to size_t.
83084         * lib/printf-parse.c: Don't include sys/types.h.
83085         (SSIZE_MAX): Remove macro.
83086         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83087         Remove unnecessary overflow check.
83088         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83089         fields.
83090
83091 2003-11-25  Bruno Haible  <bruno@clisp.org>
83092
83093         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83094
83095 2003-11-25  Bruno Haible  <bruno@clisp.org>
83096
83097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83098         gt_TYPE_SSIZE_T.
83099
83100 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83101
83102         * modules/alloca: Remove dependency on xalloc.
83103
83104 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83105
83106         * lib/alloca.c: Remove dependency on xalloc module.
83107         (xalloc_die): Remove.
83108         (memory_full) [!defined emacs]: New macro.
83109         [!defined emacs]: Don't include xalloc.h.
83110         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83111         address arithmetic overflows.  Change datatypes a bit to avoid
83112         unnecessary casts.
83113
83114 2003-11-22  Jim Meyering  <jim@meyering.net>
83115
83116         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83117         s/size/size_t/.
83118
83119 2003-11-21  Karl Berry  <karl@gnu.org>
83120
83121         * config/config.{sub,guess}: update from config.
83122
83123 2003-11-18  Karl Berry  <karl@gnu.org>
83124
83125         * config/config.{sub,guess}: update from config.
83126
83127         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83128
83129 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83130
83131         * README: Mention that S+T cannot overflow if S is the size of
83132         an existing object and T is sufficiently small.
83133
83134 2003-11-17  Jim Meyering  <jim@meyering.net>
83135
83136         On systems without utime and without a utimes function capable of
83137         dealing with a NULL struct utimbuf* argument, this utime replacement
83138         could -- in unusual circumstances -- leak a file descriptor.
83139         * lib/utime.c: Include <unistd.h> and <errno.h>.
83140         (utime_null): Be sure to close `fd' and to preserve errno.
83141         Reported by Geoff Collyer via Arnold Robbins.
83142
83143 2003-11-17  Bruno Haible  <bruno@clisp.org>
83144
83145         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83146         (Depends-on): Add xsize.
83147
83148 2003-11-17  Bruno Haible  <bruno@clisp.org>
83149
83150         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83151
83152 2003-11-17  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/vasnprintf.c (alloca): Remove fallback definition.
83155         (freea): Remove definition.
83156         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83157         Reported by Paul Eggert.
83158
83159 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83160             Bruno Haible  <bruno@clisp.org>
83161
83162         Protect against address arithmetic overflow.
83163         * lib/printf-args.h: Include stddef.h.
83164         (arguments): Change type of field 'count' to size_t.
83165         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83166         'unsigned int' where appropriate.
83167         * lib/printf-parse.h: Include sys/types.h.
83168         (char_directive): Change type of *arg_index fields to ssize_t.
83169         (char_directives): Change type of fields 'count', max_*_length to
83170         size_t.
83171         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83172         (SSIZE_MAX): Define fallback value.
83173         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83174         instead of 'int' where appropriate. Check a_allocated, d_allocated
83175         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83176         * lib/vasnprintf.c: Include xsize.h.
83177         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83178         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83179         overflow. Avoid wraparound when converting a width or precision from
83180         decimal to binary.
83181
83182 2003-11-16  Bruno Haible  <bruno@clisp.org>
83183
83184         Update from GNU gettext.
83185         * lib/printf-parse.c: Generalize to it can be compiled for wide
83186         strings.
83187         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83188         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83189         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83190         SNPRINTF): New macros.
83191         Don't include <alloca.h> if the file is used inside libintl.
83192         (local_wcslen): New function, for Solaris 2.5.1.
83193         (VASNPRINTF): Use it instead of wcslen.
83194
83195 2003-11-16  Bruno Haible  <bruno@clisp.org>
83196
83197         * lib/xsize.h (xmax): New function.
83198         (xsum, xsum3, xsum4): Declare as "pure" functions.
83199
83200 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83201
83202         * modules/xalloc (Files): Undo latest change, since xalloc.h
83203         no longer needs SIZE_MAX or PTRDIFF_MAX.
83204
83205 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83206
83207         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83208         gl_PTRDIFF_MAX.
83209
83210 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83211
83212         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83213         "return", to pacify some unknown compiler.  Problem reported
83214         by Joerg Schilling.
83215
83216 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83217
83218         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83219         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83220         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83221         heuristic is just as accurate as far as we know, and it removes a
83222         dependency on size_max.m4 and ptrdiff_max.m4.
83223
83224 2003-11-11  Bruno Haible  <bruno@clisp.org>
83225
83226         * modules/xsize (Files): Add m4/size_max.m4.
83227         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83228
83229 2003-11-11  Bruno Haible  <bruno@clisp.org>
83230
83231         * m4/size_max.m4: New file.
83232         * m4/ptrdiff_max.m4: New file.
83233         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83234         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83235         (gl_XALLOC): Invoke it.
83236
83237 2003-11-11  Bruno Haible  <bruno@clisp.org>
83238
83239         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83240         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83241         defined.
83242
83243 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83244
83245         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83246         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83247         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83248         From Bruno Haible.
83249         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83250         not (size_t) -1, since it's defined here.
83251
83252 2003-11-09  Karl Berry  <karl@gnu.org>
83253
83254         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83255
83256 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83257
83258         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83259         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83260         Reject sizes of exactly SIZE_MAX bytes.
83261         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83262         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83263
83264 2003-11-05  Bruno Haible  <bruno@clisp.org>
83265
83266         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83267         SIZE_MAX defined in <limits.h> on Solaris.
83268
83269 2003-11-04  Jim Meyering  <jim@meyering.net>
83270
83271         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83272         variable names, rather than @VAR@.
83273         * modules/poll: Likewise.
83274
83275 2003-11-04  Bruno Haible  <bruno@clisp.org>
83276
83277         * modules/xsize: New file.
83278         * modules/linebreak: Depend on xsize.
83279         * MODULES.html.sh (func_all_modules): Add xsize.
83280
83281 2003-11-04  Bruno Haible  <bruno@clisp.org>
83282
83283         * m4/xsize.m4: New file.
83284
83285 2003-11-04  Bruno Haible  <bruno@clisp.org>
83286
83287         * lib/xsize.h: New file.
83288         * lib/linebreak.c: Include xsize.h.
83289         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83290         argument for overflow.
83291         Suggested by Paul Eggert.
83292
83293 2003-11-03  Karl Berry  <karl@gnu.org>
83294
83295         * config/config.{guess,sub}: update from config.
83296
83297 2003-11-03  Jim Meyering  <jim@meyering.net>
83298
83299         * modules/userspec (lib_SOURCES): Add userspec.h.
83300         (Include): Add "userspec.h".
83301         Improve description.
83302
83303 2003-11-03  Jim Meyering  <jim@meyering.net>
83304
83305         * lib/userspec.c: Include "userspec.h".
83306         * lib/userspec.h: New file.
83307
83308 2003-11-03  Bruno Haible  <bruno@clisp.org>
83309
83310         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83311
83312 2003-11-03  Bruno Haible  <bruno@clisp.org>
83313
83314         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83315         available, to avoid (extremely rare) race condition.
83316         Suggested by Paul Eggert.
83317
83318 2003-11-02  Karl Berry  <karl@gnu.org>
83319
83320         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83321
83322 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83323
83324         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83325         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83326         (read_filesystem_list): Set and use me_type_malloced.
83327         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83328         whatever the type happens to be), for brevity and consistency.
83329         Check for size calculation overflow on Alphas running OSF/1.
83330
83331 2003-10-31  Jim Meyering  <jim@meyering.net>
83332
83333         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83334
83335         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83336
83337 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83338             Bruno Haible  <bruno@clisp.org>
83339
83340         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83341         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83342
83343 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83346         netbsd*-gnu*.  Suggested by Robert Millan.
83347
83348 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83349
83350         * modules/group-member: Depend on stdbool.
83351
83352 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83353
83354         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83355
83356 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83357
83358         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83359         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83360         after the 'gnu' in these cases.  This fixes some bugs in the
83361         previous change, and is based on suggestions by Robert Millan.
83362
83363 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83364
83365         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83366         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83367         no longer needed.
83368         * lib/quotearg.c (quotearg_n_options): Use it.
83369         * lib/group-member.c: Include <stdbool.h>.
83370         (free_group_info): Arg is now const *; don't free arg.
83371         (get_group_info): Now returns bool and accepts struct group_info *,
83372         rather than returning a malloc'ed struct group_info *.
83373         All uses changed.  Check for overflow in internal size calculation.
83374
83375         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83376         rather than xmalloc/xrealloc.
83377         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83378         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83379         conformance bug: the old code used a pointer after freeing the
83380         storage that it addressed.
83381         * lib/hash.c (hash_initialize): Simplify the code by using
83382         xalloc_oversized rather than doing it by hand.
83383         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83384         the buffer preserved.  Use free and xmalloc instead.
83385         * lib/quotearg.c (quotearg_n_options): Likewise.
83386         Use a simpler test for size overflow.  Don't use xalloc_oversized
83387         because unsigned int might be wider than size_t (!); this suggests
83388         that we should switch from unsigned int to size_t for slot numbers.
83389
83390 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83391
83392         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83393         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83394         NetBSD kernels.  Requested by Richard Stallman.
83395
83396 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83397
83398         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83399         to allocate the returned structure.  Do not allocate a subarray,
83400         as x2nrealloc will do that.
83401         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83402         instead of xnrealloc.
83403         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83404
83405 2003-10-27  Bruno Haible  <bruno@clisp.org>
83406
83407         * lib/stdbool_.h: Better support for BeOS.
83408
83409 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83410
83411         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83412         now uses inline.
83413
83414 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83415
83416         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83417         callers that want to do their own size-overflow checking.  Include
83418         <stdbool.h>, since xalloc_oversized returns bool.
83419         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83420         to use xalloc_oversized.
83421
83422         Add two functions x2realloc, x2nrealloc, for programs that grow
83423         arrays dynamically by doubling their sizes.
83424         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83425         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83426         New functions.
83427
83428         Port to C99 semantics for 'inline' of external functions.
83429         Bug reported by Bruno Haible.
83430         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83431         with the old contents of xnmalloc.
83432         (xnmalloc, xmalloc): Use it.
83433         (xnrealloc_inline): New static inline function,
83434         with the old contents of xnrealloc.
83435         (xnrealloc, xrealloc): Use it.
83436
83437         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83438         that.
83439
83440 2003-10-26  Karl Berry  <karl@gnu.org>
83441
83442         * config/srclist.txt (COPYING.DOC): no longer available from
83443         /gd/gnuorg; don't know where the ultimate source is.
83444
83445 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83446
83447         Fix several address-calculation bugs in the hash modules,
83448         plus some minor code cleanup.
83449
83450         * lib/hash.h: Include <stdbool.h>, for bool.
83451         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83452         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83453         hash_get_n_entries, hash_get_max_bucket_length,
83454         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83455         hash_rehash): Use size_t rather than unsigned.
83456         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83457         hash_get_n_buckets_used, hash_get_n_entries,
83458         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83459         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83460         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83461         Likewise.
83462         (SIZE_MAX): Define if not defined.
83463         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83464         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83465         hash_print):
83466         Use const * when possible.
83467         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83468         (check_tuning): Fix bug: if tuning parameters were very close to
83469         0 or 1, rounding errors could have caused subscript violations.
83470         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83471         (hash_initialize): Add 'fail:' label
83472         to free table and return NULL, and use it to simplify code.
83473         Use calloc rather than clearing the storage ourself.
83474         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83475         buffer size calculations.
83476         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83477         Include <stddef.h>, for size_t.
83478         * lib/hash-pjw.c (hash_pjw): Likewise.
83479         Switch to method described by Bruno Haible.
83480         Include <limits.h>, for CHAR_BIT.
83481         (SIZE_BITS): New macro.
83482
83483 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83484
83485         * m4/getline.m4 (AM_FUNC_GETLINE):
83486         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83487         hosts.  Problem reported by Derek Robert Price in
83488         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83489         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83490         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83491
83492 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83493
83494         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83495         ceiling the allocation at NMAX bytes rather than silently
83496         discarding input bytes before NMAX is reached.  This makes
83497         a difference only if NMAX exceeds SIZE_MAX / 2.
83498
83499         * lib/obstack.c: Merge from glibc.
83500         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83501         Add libc_hidden_def (_obstack_newchunk).
83502         (_obstack_free) [! defined _LIBC]: Remove.
83503         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83504         a clone of the function body.
83505         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83506         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83507
83508         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83509         glibc.
83510         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83511         arg to memcpy.
83512
83513         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83514         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83515         Don't use lvalue casts, as GCC plans to remove support for them
83516         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83517         was also present in the non-GCC version, indicating that this
83518         code had always been buggy and had never been widely used.
83519         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83520         Use the fast variant of each macro, rather than copying the
83521         definiens of the fast variant; that way, we'll be more likely to
83522         catch future bugs in the fast variants.
83523
83524 2003-10-20  Bruno Haible  <bruno@clisp.org>
83525
83526         * modules/wait-process: New file.
83527         * MODULES.html.sh (func_all_modules): Add wait-process.
83528
83529 2003-10-20  Bruno Haible  <bruno@clisp.org>
83530
83531         * m4/wait-process.m4: New file.
83532
83533 2003-10-20  Bruno Haible  <bruno@clisp.org>
83534
83535         * lib/wait-process.h: New file, from GNU gettext.
83536         * lib/wait-process.c: New file, from GNU gettext.
83537
83538 2003-10-19  Jim Meyering  <jim@meyering.net>
83539
83540         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83541         HPUX 10.20.
83542
83543 2003-10-18  Karl Berry  <karl@gnu.org>
83544
83545         * config/config.guess: update from config.
83546
83547 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83548
83549         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83550         (getgroups): First arg is int, not size_t.
83551         Don't let 'free' mangle errno.
83552
83553 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83554
83555         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83556
83557 2003-10-16  Karl Berry  <karl@gnu.org>
83558
83559         * config/config.{guess,sub}: update from config.
83560
83561 2003-10-16  Jim Meyering  <jim@meyering.net>
83562
83563         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83564         memcpy.
83565
83566 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83567
83568         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83569         (SIZE_MAX): Remove.
83570         (new_exclude, add_exclude_file): Initial size no longer needs to
83571         be a power of 2.
83572         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83573         our own address arithmetic overflow checking.
83574
83575         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83576         (fnmatch): Do not alloca more than 2000 wide characters;
83577         instead, use malloc for large buffers.
83578         Check for address arithmetic overflow, and return -1
83579         with errno set to ENOMEM in that case.
83580         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83581         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83582         instead, return -1.  Check for address arithmetic overflow.
83583
83584 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83585
83586         Handle invalid suffixes and overflow independently, so that
83587         callers can treat them independently as needed.  Fix some bugs in
83588         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83589         suffix for a human-readable blocksize.  The major caller-visible
83590         change is the addition of a new
83591         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83592         that both overflow and suffix chars were found.
83593
83594         * lib/human.c (humblock): Don't check separately for invalid suffix
83595         char; that is xstrtoumax's job (now that its bug is fixed).
83596         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83597         INTMAX_MAX]: New macros.
83598         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83599         TYPE_MAXIMUM): New macros.
83600         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83601         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83602         if overflow occurs, as it's what __strtol does and it's more useful
83603         in practice.
83604         (__xstrtol): If __strtol reports some error other than ERANGE,
83605         reflect it to the caller as LONGINT_INVALID.  If it reports
83606         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83607         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83608         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83609         value.
83610         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83611         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83612         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83613         [defined UINTMAX_MAX]: New macros.
83614
83615 2003-10-14  Bruno Haible  <bruno@clisp.org>
83616
83617         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83618
83619 2003-10-14  Bruno Haible  <bruno@clisp.org>
83620
83621         * m4/sig_atomic_t: New file, from GNU gettext.
83622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83623
83624 2003-10-14  Bruno Haible  <bruno@clisp.org>
83625
83626         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83627         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83628         Also use volatile where needed.
83629
83630 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83631
83632         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83633         Change maintainer from Bruno Haible to 'all'.
83634
83635 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83636
83637         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83638
83639 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83640
83641         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83642         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83643         and define in terms of the other primitives.
83644         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83645         (SIZE_MAX): Define if not already defined.
83646         (array_size_overflow): New function.
83647         (xalloc_die): Abort instead of exiting if 'error' returns.
83648         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83649         (xmalloc, xrealloc): Use them.
83650         (xcalloc): Check for address arithmetic overflow.
83651         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83652         a bit faster than strcpy.
83653
83654 2003-10-10  Simon Josefsson  <jas@extundo.com>
83655
83656         * modules/argp (Depends-on): Add restrict and strcase.
83657
83658 2003-10-10  Simon Josefsson  <jas@extundo.com>
83659
83660         * m4/argp.m4: Add AC_C_INLINE.
83661
83662 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83663
83664         Merge getpass from libc, plus a few fixes.
83665
83666         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83667         Include <stdbool.h>.
83668         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83669         __fsetlocking to empty.
83670         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83671         do include <bits/libc-lock.h>.
83672         Do not include <fcntl.h>; not needed.
83673         [_LIBC]: Include <wchar.h>.
83674         (NOTCANCEL_MODE): New macro.
83675         (flockfile, funlockfile) [_LIBC]: New macros.
83676         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83677         [!_LIBC]: New macros.
83678         (call_fclose): New function.
83679         (getpass): Use it.  Save tty stream separately; this simplifies the
83680         code and makes it more reliable if stdin happens to equal stdout.
83681         Invoke __fsetlocking on tty.
83682         Handle thread cancellation if needed.
83683         Namespace cleanup (use __tcgetattr, __getline).
83684         Use bool for Booleans.
83685         [USE_IN_LIBIO]: Handle wide streams.
83686         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83687         stream might go where.
83688
83689         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83690         doesn't have to include <stdio.h> before us.
83691         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83692         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83693         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83694         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83695         if not declared, so that we can use getpass.c code from libc without
83696         rewriting it.
83697         (flockfile, ftrylockfile, funlockfile): New macros.
83698
83699 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83700
83701         * modules/getpass: Depend on stdbool.
83702
83703 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83704
83705         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83706
83707 2003-10-07  Karl Berry  <karl@gnu.org>
83708
83709         * config/config.{guess,sub}: update from config.
83710
83711 2003-10-06  Jim Meyering  <jim@meyering.net>
83712             Bruno Haible  <bruno@clisp.org>
83713
83714         This lets translators provide better translations for the
83715         "Written by ..." part of --version output.
83716         * lib/version-etc.h: Include stdarg.h.
83717         (version_etc_copyright): Declare as readonly.
83718         (version_etc): Make this function variadic with a NULL-terminated list
83719         of author name strings.
83720         (version_etc_va): New declaration.
83721         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83722         (version_etc_copyright): Declare as readonly.
83723         (version_etc_va): New function. Provide a different translatable string
83724         for each possible number of authors < 10. Abbreviate when there are 10
83725         authors or more.
83726         (version_etc): Make this function variadic. Call version_etc_va.
83727         Suggestion from Gary V. Vaughan.
83728
83729         * lib/long-options.h (parse_long_options): Change prototype: the
83730         authors string is moved to the end and becomes variadic.
83731         * lib/long-options.c: Include stdarg.h.
83732         (parse_long_options): Make this function variadic, too.
83733         Call version_etc_va, not version_etc.
83734
83735 2003-10-06  Bruno Haible  <bruno@clisp.org>
83736
83737         * modules/version-etc-2: Remove file.
83738         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83739
83740 2003-10-06  Bruno Haible  <bruno@clisp.org>
83741
83742         * modules/fatal-signal: New file.
83743         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83744
83745 2003-10-06  Bruno Haible  <bruno@clisp.org>
83746
83747         * m4/fatal-signal.m4: New file.
83748         * m4/signalblocking.m4: New file, from GNU gettext.
83749
83750 2003-10-06  Bruno Haible  <bruno@clisp.org>
83751
83752         * lib/version-etc-2.h: Remove file.
83753         * lib/version-etc-2.c: Remove file.
83754
83755 2003-10-06  Bruno Haible  <bruno@clisp.org>
83756
83757         * lib/fatal-signal.h: New file, from GNU gettext.
83758         * lib/fatal-signal.c: New file, from GNU gettext.
83759
83760 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83761
83762         * README: Rework advice for preventing empty .o files.
83763         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83764         not <sys/types.h>.
83765
83766 2003-10-04  Karl Berry  <karl@gnu.org>
83767
83768         * lib/argp*: update from libc.
83769
83770 2003-10-04  Karl Berry  <karl@gnu.org>
83771
83772         * config/config.{guess,sub}: update from config.
83773
83774 2003-10-02  Bruno Haible  <bruno@clisp.org>
83775
83776         * modules/lchown (Include): Add lchown.h.
83777         * modules/time_r (Include): Use "..." syntax.
83778         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83779
83780 2003-10-01  Simon Josefsson  <jas@extundo.com>
83781
83782         * MODULES.html.sh (func_all_modules): Move gethostname from section
83783         'based on' to section 'lacking' POSIX:2001.
83784
83785 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83786
83787         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83788         to output mode on the same stream.
83789
83790 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83791
83792         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83793         Fix arg typo in previous patch.
83794
83795 2003-09-28  Jim Meyering  <jim@meyering.net>
83796
83797         * lib/error.c: Correct cpp indentation.
83798
83799 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83800
83801         * modules/free: New file.
83802
83803 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83804
83805         * m4/free.m4: New file.
83806
83807 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83808
83809         * lib/minmax.h (MIN, MAX)
83810         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83811         Omit the special code that used __typeof__, since we worry that
83812         it could be more trouble than it's worth.  See:
83813         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83814         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83815
83816         * lib/free.c: New file.
83817
83818 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83819
83820         Trivial fixes to Makefile.am parts of module listings.
83821         * modules/strstr: Append strstr.h to lib_SOURCES.
83822         * modules/strcase: Likewise, for strcase.h.
83823
83824 2003-09-27  Karl Berry  <karl@gnu.org>
83825
83826         * config/mkinstalldirs: update from automake.
83827
83828 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83829
83830         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83831         (error_tail): Do not loop, reallocating temporary buffer, since
83832         the output cannot contain more wide characters than the input
83833         contains bytes, the size must be big enough already.  This avoids
83834         one potential size overflow calculation.  Check for size overflow
83835         when calculating temporary buffer size.  Free temporary buffer
83836         when done, if it was allocated with malloc; this plugs a memory
83837         leak.  Remove casts from void * to pointers, that are no longer
83838         needed now that we're assuming C89 or better.
83839
83840         Merge error changes from glibc.
83841
83842         * lib/error.c, error.h: Update copyright notice header to match glibc.
83843         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83844         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83845         Disable cancellation while printing error.
83846         * lib/error.h: Prepend __ to parameter names.
83847
83848 2003-09-26  Jim Meyering  <jim@meyering.net>
83849
83850         * lib/error.c (error_tail): Move some declarations
83851         into inner scope where the local variables are used.
83852
83853 2003-09-26  Bruno Haible  <bruno@clisp.org>
83854
83855         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83856         stpncpy().
83857         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83858
83859 2003-09-26  Bruno Haible  <bruno@clisp.org>
83860
83861         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83862         (stpncpy): Define as alias for gnu_stpncpy.
83863         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83864
83865 2003-09-25  Simon Josefsson  <jas@extundo.com>
83866
83867         * lib/xgetdomainname.h: New file.
83868         * lib/xgetdomainname.c: New file.
83869
83870 2003-09-25  Simon Josefsson  <jas@extundo.com>
83871             Bruno Haible  <bruno@clisp.org>
83872
83873         * modules/getdomainname: New file.
83874         * modules/xgetdomainname: New file.
83875         * MODULES.html.sh (func_all_modules): Add getdomainname,
83876         xgetdomainname.
83877
83878 2003-09-25  Simon Josefsson  <jas@extundo.com>
83879             Bruno Haible  <bruno@clisp.org>
83880
83881         * m4/getdomainname.m4: New file.
83882
83883 2003-09-25  Simon Josefsson  <jas@extundo.com>
83884             Bruno Haible  <bruno@clisp.org>
83885
83886         * lib/getdomainname.h: New file.
83887         * lib/getdomainname.c: New file.
83888
83889 2003-09-25  Karl Berry  <karl@gnu.org>
83890
83891         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83892
83893 2003-09-25  Karl Berry  <karl@gnu.org>
83894
83895         * config/install-sh: update from automake.
83896
83897 2003-09-25  Bruno Haible  <bruno@clisp.org>
83898
83899         * modules/version-etc-2: New file, from modules/version-etc with
83900         modifications.
83901         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83902
83903 2003-09-25  Bruno Haible  <bruno@clisp.org>
83904
83905         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83906         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83907
83908 2003-09-24  Simon Josefsson  <jas@extundo.com>
83909
83910         * modules/xgethostname: Add xgethostname.h.
83911
83912 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83913
83914         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83915         the buffer associated with the argument.  Bug reported by
83916         Simon Josefsson.
83917
83918 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83919
83920         * README: Document assumptions that 'int' is at least 32 bits
83921         wide, that integer arithmetic is 2's complement without overflow,
83922         that there are no holes in integer values, that adding sizes of
83923         two nonoverlapping objects can't overflow, and that all-bits-zero
83924         yields scalar zero.  Fix spelling and capitalization typos.
83925
83926 2003-09-19  Karl Berry  <karl@gnu.org>
83927
83928         * lib/argp.h: update from libc.
83929
83930 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83931
83932         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83933         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83934         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83935
83936 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83937
83938         * gnulib-tool: Use "test -h", not "test -L", for portability
83939         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83940         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83941         (sed_extract_prog): Issue s commands one-by-one, rather than
83942         using \| in one s command.
83943
83944 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83945
83946         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83947         input error, instead of returning NULL the next time we are called
83948         (and therefore losing track of errno).
83949
83950 2003-09-16  Bruno Haible  <bruno@clisp.org>
83951
83952         * gnulib-tool (func_create_testdir): Warn about duplicated
83953         dependencies.
83954
83955 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83956
83957         * modules/argmatch, modules/fatal, modules/obstack,
83958         modules/xalloc, modules/xgethostname: Sort dependencies by
83959         importance, not alphabetically.
83960
83961 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83962
83963         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83964         fails, so that the caller gets the proper errno.
83965
83966         * lib/readutmp.c (read_utmp): Likewise.
83967         Check for fstat error.  Close stream and free storage
83968         when failing.
83969
83970 2003-09-14  Karl Berry  <karl@gnu.org>
83971
83972         * config/srclist.txt (strdup.c): disable for c89 changes.
83973
83974 2003-09-14  Jim Meyering  <jim@meyering.net>
83975
83976         * lib/getloadavg.c: Correct cpp indentation.
83977         * lib/strdup.c: Likewise.
83978         * lib/vasnprintf.c: Likewise.
83979
83980 2003-09-14  Bruno Haible  <bruno@clisp.org>
83981
83982         * modules/fwriteerror: New file.
83983         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83984
83985 2003-09-14  Bruno Haible  <bruno@clisp.org>
83986
83987         * lib/fwriteerror.h: New file.
83988         * lib/fwriteerror.c: New file.
83989
83990 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83991
83992         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83993         modules/xgethostname, modules/xalloc: Depend on exit.
83994
83995 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83996
83997         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83998
83999         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84000         and AC_MINIX, too, so that their extensions are available.
84001
84002         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84003         This macro has been superseded by gl_BACKUPFILE.
84004
84005         More patches to assume C89 or better.
84006
84007         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84008
84009         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84010         unconditionally.
84011         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84012         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84013         Include <string.h>, <stdlib.h> unconditionally.
84014         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84015         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84016         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84017         headers or for string.h.
84018         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84019         or strtoul.
84020
84021         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84022         headers.
84023         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84024         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84025         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84026         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84027         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84028         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84029         memcpy, memset.
84030         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84031         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84032         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84033         strtol.
84034         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84035         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84037         strtoul.
84038
84039 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84040
84041         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84042         * lib/obstack.c [!defined _LIBC]: Likewise.
84043         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84044         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84045         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84046
84047         More changes to assume C89 or better.
84048
84049         * lib/error.c (error_tail): Assume vprintf.
84050
84051         * lib/argmatch.c (getenv): Remove decl.
84052         * lib/progreloc.c (get_full_program_name): Define via prototype.
84053         * lib/setenv.c (clearenv): Likewise.
84054         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84055         needed.
84056         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84057         (malloc, memcpy): Remove decls.
84058         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84059         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84060         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84061         (memcpy): Remove macro.
84062         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84063         (__P): Remove.  All uses removed.
84064         (PTR): Remove.  All uses changed to void *.
84065         (CHAR_BIT, NULL): Remove.
84066         (spaces, zeros, memset_space, memset_zero)
84067         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84068         Remove.
84069         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84070         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84071         Define with prototype.
84072         Remove now-unnecessary prototype decl.
84073         (extra_args_spec): Assume ANSI C.  All uses changed.
84074         (extra_args_spec_iso): Remove.
84075         (my_strftime, emacs_strftimeu): Define via prototype.
84076         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84077         unconditionally.
84078         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84079         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84080         (strtoul, strtol): Remove decls.
84081         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84082         LONG_MAX): Remove.
84083         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84084         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84085         (LOCALE_PARAM_PROTO): New macro.
84086         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84087         (INTERNAL (strtol), strtol): Define with a prototype.
84088         (PARAMS): Remove.  All uses removed.
84089         * lib/tempname.c: Include <string.h> unconditionally.
84090         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84091         * lib/xgethostname.c (main): Define with a prototype.
84092         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84093         Include <stdlib.h> unconditionally.
84094         (calloc, malloc, realloc, free): Remove decls.
84095         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84096         Include <stdlib.h> unconditionally.  Sort include file names.
84097         (strtod): Remove.
84098         (xstrtod): Define with a prototype.
84099         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84100         (strtol, strtoul): Remove decls.
84101
84102 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84103
84104         More patches to assume C89 or better.
84105         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84106         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84107         string.h, memchr, STDC_HEADERS.
84108
84109 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84110
84111         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84112         Include <stdlib.h>, <string.h> unconditionally.
84113         Remove now-unnecessary cast to char *.
84114         * lib/strnlen.c: Include <string.h> unconditionally.
84115         * lib/yesno.c (yesno): Define with a prototype.
84116
84117 2003-09-11  Bruno Haible  <bruno@clisp.org>
84118
84119         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84120
84121 2003-09-10  Jim Meyering  <jim@meyering.net>
84122
84123         * lib/error.c: Correct indentation of cpp directives.
84124
84125 2003-09-10  Bruno Haible  <bruno@clisp.org>
84126
84127         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84128         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84129         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84130         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84131         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84132         <stdlib.h> and <string.h> checks.
84133         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84134         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84135
84136 2003-09-10  Bruno Haible  <bruno@clisp.org>
84137
84138         * lib/strcspn.c: Include <string.h> unconditionally.
84139         * lib/strpbrk.c: Include <string.h> unconditionally.
84140         * lib/strstr.c: Include <string.h> unconditionally.
84141         * lib/unicodeio.c: Include <string.h> unconditionally.
84142         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84143         * lib/unsetenv.c: Likewise.
84144         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84145         * lib/yesno.c: Include <stdlib.h> unconditionally.
84146         (rpmatch): Add prototype.
84147
84148 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84149
84150         More patches to assume C89 or better.
84151         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84152         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84153         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84154         or for string.h.
84155         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84156         stdlib.h.
84157         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84158         C headers.
84159         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84160         string.h.
84161         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84162         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84163         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84164         or for string.h.
84165         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84166         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84167         C headers.
84168         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84169         memcpy.
84170         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84171         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84172         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84173         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84174         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84175         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84176         string.h, free.
84177         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84178         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84179         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84180         C headers, or for string.h.
84181         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84182         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84183         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84184         headers, memory.h, stdlib.h, string.h, strings.h.
84185         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84186         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84187         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84188         strchr.
84189         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84190         headers, memory.h, string.h.
84191         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84192         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84193         free.
84194         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84195         headers.
84196         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84197         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84198         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84199         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84200         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84201
84202 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84203
84204         More K&R removal.
84205
84206         * lib/acosl.c (main): Use a prototype.
84207         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84208         tanl.c: Likewise.
84209
84210         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84211
84212         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84213         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84214         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84215         with a prototype.
84216         * lib/getopt.c (const): Remove macro.
84217         Include <string.h> unconditionally.
84218         (my_index): Remove; all uses changed to strchr.
84219         (strlen): Remove decl.
84220         (exchange): Remove forward decl; no longer needed.
84221         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84222         Define with prototype.
84223         * lib/getopt1.c (const): Remove macro.
84224         (getopt_long, getopt_long_only, main): Define with prototype.
84225
84226         * lib/getugroups.c: Include <string.h> unconditionally.
84227
84228         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84229         (getusershell, setusershell, endusershell, readname, main):
84230         Define with prototypes.
84231
84232         * lib/group-member.c: Include group-member.h first.
84233         Include <stdlib.h> unconditionally.
84234
84235         * lib/hard-locale.c: Include hard-locale.h first.
84236         Include <stdlib.h>, <string.h> unconditionally.
84237
84238         * lib/hash.c (free, malloc): Remove decls.
84239         Include <stdlib.h> unconditionally.
84240
84241         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84242         (getenv): Do not declare.
84243
84244         * lib/idcache.c: Include <string.h> unconditionally.
84245
84246         * lib/long-options.c: Include long-options.h first, to test interface.
84247         Include <stdlib.h> unconditionally.
84248
84249         * lib/makepath.c: Include makepath.h first, to test interface.
84250         Include <stdlib.h> and <string.h> unconditionally.
84251
84252         * lib/linebuffer.c: Include <stdlib.h>.
84253         (free): Remove decl.
84254
84255         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84256         stddef.h. rpl_malloc returns void *, not char *.
84257         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84258         prototype.
84259
84260         * lib/md5.h: Include <limits.h> unconditionally.
84261         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84262         (__P): Remove; all uses removed.
84263         * lib/md5.c: Include "md5.h" first.
84264         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84265         md5_buffer, md5_process_bytes, md5_process_block):
84266         Define with prototypes.
84267         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84268         * lib/sha.c: Include "sha.h" first.
84269         Include <stdlib.h>, <string.h> unconditionally.
84270
84271         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84272         * lib/memcmp.c (__ptr_t): Likewise.
84273         * lib/memrchr.c (__ptr_t): Likewise.
84274         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84275         Include <string.h> unconditionally.
84276         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84277         * lib/memchr.c: Include <stdlib.h> unconditionally.
84278         * lib/memchr.c (LONG_MAX): Remove.
84279         * lib/memrchr.c (LONG_MAX): Likewise.
84280         * lib/memchr.c (__memchr): Define via a prototype.
84281         * lib/memrchr.c (__memrchr): Likewise.
84282         * lib/memcmp.c (__P): Remove, and remove all uses.
84283         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84284         Remove forward decls; no longer needed.
84285         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84286         Use types required by C89 in prototype.
84287
84288         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84289         * lib/savedir.c: Likewise.
84290         * lib/mkdir.c (free): Remove decl.
84291         * lib/rmdir.c (rmdir): Define with a prototype.
84292         * lib/savedir.c: Include savedir.h first, to test interface.
84293
84294         * lib/mktime.c (STDC_HEADERS): Remove.
84295         Include <stdlib.h>, <string.h> unconditionally.
84296
84297         * lib/modechange.c: Include <stdlib.h> unconditionally.
84298         (malloc): Remove decl.
84299
84300         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84301         (free): Remove decl.
84302
84303         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84304         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84305         (This type really should be intptr_t, but that's a C99ism.)
84306         (_obstack_memcpy): Remove: all uses changed to memcpy.
84307         Include <string.h> unconditionally.
84308         (struct obstack): Assume __STDC__ for types of members
84309         chunkfun, freefun, extra_arg.
84310         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84311         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84312         obstack_begin, obstack_specify_allocation,
84313         obstack_specify_allocation_with_arg, obstack_chunkfun,
84314         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84315         Remove unprototyped decls and the macros that use them.
84316         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84317         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84318         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84319         (defined __STDC__ && __STDC__)]:
84320         Remove nonprototyped code.
84321         Include <stdlib.h> unconditionally.
84322         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84323         _obstack_allocated_p, _obstack_free, obstack_free,
84324         _obstack_memory_used, print_and_abort):
84325         Define using prototypes.
84326         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84327         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84328         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84329         obstack_next_free, obstack_object_size, obstack_room) [0]:
84330         Remove unused, unprototyped code.
84331
84332         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84333
84334         * lib/physmem.c (physmem_total, physmem_available, main): Define
84335         with prototypes.
84336
84337         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84338         (main): Define with a prototype.
84339
84340         * lib/posixver.c (getenv): Remove decl.
84341
84342         * lib/putenv.c (malloc): Returns void *, not char *.
84343         Include <string.h> unconditionally.
84344         (strchr, memcpy, NULL): Do not define.
84345
84346         * lib/readtokens.c: Include readtokens.h first, to test interface.
84347         Include <stdlib.h>, <string.h> unconditionally.
84348         (init_tokenbuffer): Define with a prototype.
84349
84350         * lib/regex.c (PARAMS): Remove.  All uses removed.
84351         All uses of _RE_ARGS removed, too.
84352         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84353         unconditionally.
84354         (bzero): Assume memset exists.
84355         (memcmp, memcpy, NULL): Remove.
84356         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84357         char, or assignments to local vars of type signed char.
84358         (init_syntax_once, PREFIX(extract_number_and_incr),
84359         PREFIX(print_partial_compiled_pattern),
84360         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84361         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84362         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84363         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84364         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84365         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84366         wcs_compile_range, byte_compile_range, truncate_wchar,
84367         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84368         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84369         count_mbs_length, wcs_re_match_2_internal,
84370         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84371         PREFIX(alt_match_null_string_p),
84372         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84373         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84374         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84375         now-unnecessary declaration, if any.
84376         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84377         regcomp, regexec):
84378         Remove now-unnecessary casts among pointer types.
84379         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84380
84381         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84382         (free): Remove decl.
84383
84384         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84385
84386         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84387         (free): Remove decl.
84388
84389         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84390         * lib/xgetcwd.c: Likewise.
84391
84392         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84393         (free): Remove decl.
84394
84395         * lib/strchrnul.c (strchrnul): Define with a prototype.
84396         Fix bug: c_in was not converted to char before searching.
84397
84398         The following changes are not K&R related:
84399
84400         * lib/group-member.h: Include <sys/types.h>, so that this file is
84401         self-contained.
84402         * lib/makepath.h: Likewise.
84403
84404         * lib/getusershell.c (readname, default_index, line_size, readname):
84405         Use size_t, not int, for sizes.
84406         (readname): If the size overflows, report an error instead of
84407         looping forever.
84408
84409 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84410
84411         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84412         libc.
84413
84414 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84415
84416         * README: New section: portability guidelines.
84417
84418 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84419
84420         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84421         C89 spec.
84422
84423 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84424
84425         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84426
84427 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84428
84429         Assume C89 or better; remove K&R cruft.
84430         A few of these changes were first proposed by Derek Robert Price
84431         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84432
84433         * lib/addext.c: Include <string.h> unconditionally.
84434         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84435         Don't declare getenv or malloc.
84436
84437         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84438         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84439         (NULL): Remove.
84440         (find_stack_direction, alloca): Use prototypes.
84441
84442         * lib/atexit.c (atexit): Define using a prototype.
84443
84444         * lib/basename.c, dirname.c, stripslash.c:
84445         Include <string.h> unconditionally.
84446
84447         * lib/bcopy.c: Include <stddef.h>.
84448         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84449
84450         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84451
84452         * lib/error.h (error, error_at_line, error_print_progname)
84453         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84454         * lib/error.c: Include error.h first, to check interface.
84455         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84456         (VA_START): Remove; all uses changeed to va_start.
84457         (exit, strerror): Remove decls.
84458         (error_print_progname): Prototype uncondionally.
84459         Don't include <errno.h>; no longer needed.
84460         (private_strerror): Remove.
84461         (error_tail): Always define.
84462         (error, error_at_line): Assume C89 or better; always use prototypes.
84463         * lib/fatal.c: Include "fatal.h" first, to test interface.
84464         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84465         (VA_START): Remove; all uses changed to va_start.
84466         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84467         this case.
84468         (exit): Remove decl.
84469         (fatal): Prototype unconditionally.  Assume va_start works.
84470         Abort at end, to pacify gcc.
84471
84472         * lib/euidaccess.c (main): Define with a prototype.
84473
84474         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84475
84476         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84477
84478         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84479         prototypes.
84480         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84481         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84482         (getenv): Remove decl.
84483         (fnmatch): Define using a prototype.
84484         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84485         (FCT): Define using a prototype.
84486
84487         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84488
84489         * lib/gethostname.c: Include <stddef.h>.
84490         (gethostname): Define with prototype.  Length is size_t, not int.
84491
84492 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84493
84494         Assume C89 or better; remove K&R cruft.
84495         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84496         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84497         string.h, getenv, malloc.
84498         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84499         headers.
84500         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84501         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84502         do not check for strerror.
84503         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84504         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84505         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84506         do not check for doprnt or vprintf.
84507         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84508         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84509
84510 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84511
84512         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84513         getversion.c should have been removed then, but was accidentally
84514         preserved.
84515
84516         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84517         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84518
84519 2003-09-08  Karl Berry  <karl@gnu.org>
84520
84521         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84522                 config, forget about prep.
84523
84524         * config/depcomp, missing: update from automake.
84525
84526 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84527
84528         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84529         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84530
84531 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84532
84533         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84534         copy_tm_result.  Bug reported by Simon Josefsson in
84535         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84536
84537 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84538
84539         * m4/time_r.m4: New file.
84540         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84541         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84542         is. Check for timegm declaration.
84543         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84544         Do not check for gmtime_r.
84545         Replace mktime if __mktime_internal does not exist and if mktime
84546         hasn't been replaced already.
84547
84548 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84549
84550         * lib/time_r.c, lib/time_r.h: New files.
84551
84552         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84553         __localtime_r.
84554         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84555         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84556
84557         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84558         __gmtime_r.
84559         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84560         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84561         Include <time_r.h>.
84562
84563         * lib/timegm.c: Switch to glibc implementation, with the following
84564         changes:
84565         [defined HAVE_CONFIG_H]: Include <config.h>.
84566         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84567         (__mktime_internal) [!defined _LIBC]: New decl.
84568         (__gmtime_r) [!defined _LIBC]: New macro and function.
84569         (timegm): Use a prototype, since gnulib assumes C89.
84570         Do not bother declaring tmp to be const, as it's not really usefu.
84571         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84572         (timegm): Declare only if HAVE_DECL_TIMEGM.
84573
84574 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84575
84576         * MODULES.html.sh (func_all_modules): Add time_r.
84577         * modules/time_r: New file.
84578         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84579         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84580
84581 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84582
84583         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84584         Bug reported by Lute Kamstra in
84585         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84586
84587         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84588         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84589         course with correspondingly smaller numbers for tomorrow and
84590         yesterday.  From Tadayoshi Funaba.  Originally installed into
84591         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84592         coreutils merge?).
84593
84594 2003-08-31  Simon Josefsson  <jas@extundo.com>
84595
84596         * modules/timegm: New file.
84597         * MODULES.html.sh (func_all_modules): Add timegm.
84598
84599 2003-08-31  Simon Josefsson  <jas@extundo.com>
84600
84601         * m4/timegm.m4: New file.
84602
84603 2003-08-31  Simon Josefsson  <jas@extundo.com>
84604
84605         * lib/timegm.h: New file.
84606         * lib/timegm.c: New file.  Based on
84607         wget-1.8.2/src/http.c:mktime_from_utc.
84608
84609 2003-08-31  Karl Berry  <karl@gnu.org>
84610
84611         * lib/argp.h: update from libc.
84612
84613 2003-08-28  Bruno Haible  <bruno@clisp.org>
84614
84615         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84616         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84617         followed by '#define fnmatch fnmatch_posix' gives an error.
84618
84619 2003-08-28  Bruno Haible  <bruno@clisp.org>
84620
84621         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84622         warning on QNX, which defines O_BINARY to 000000.
84623
84624 2003-08-27  Jim Meyering  <jim@meyering.net>
84625
84626         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84627         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84628         would fail after 32.  Reported by Danny Levinson.  Details here:
84629         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84630
84631 2003-08-24  Bruno Haible  <bruno@clisp.org>
84632
84633         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84634         MSVC7 <stdio.h> is included later.
84635
84636 2003-08-22  Simon Josefsson  <jas@extundo.com>
84637
84638         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84639
84640 2003-08-20  Karl Berry  <karl@gnu.org>
84641
84642         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84643
84644 2003-08-20  Bruno Haible  <bruno@clisp.org>
84645
84646         * modules/progname: New file.
84647         * MODULES.html.sh (func_all_modules): Add progname.
84648
84649 2003-08-20  Bruno Haible  <bruno@clisp.org>
84650
84651         * lib/progname.h: New file, from GNU gettext.
84652         * lib/progname.c: New file, from GNU gettext.
84653         * lib/progreloc.c: New file, from GNU gettext.
84654
84655 2003-08-19  Jim Meyering  <jim@meyering.net>
84656
84657         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84658         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84659
84660 2003-08-19  Bruno Haible  <bruno@clisp.org>
84661
84662         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84663         more.
84664
84665 2003-08-19  Bruno Haible  <bruno@clisp.org>
84666
84667         * lib/xstrdup.c: Assume <string.h> exists.
84668
84669 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84670
84671         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84672         in makefile rules.
84673
84674 2003-08-18  Jim Meyering  <jim@meyering.net>
84675
84676         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84677         * m4/lib-ld.m4: Likewise.
84678
84679 2003-08-18  Jim Meyering  <jim@meyering.net>
84680
84681         * lib/setenv.h: Indent nested cpp directive.
84682         * lib/vasnprintf.c: Remove trailing blanks.
84683
84684 2003-08-17  Simon Josefsson  <jas@extundo.com>
84685
84686         * modules/xstrndup: New file.
84687         * MODULES.html.sh (func_all_modules): Add xstrndup.
84688
84689 2003-08-17  Simon Josefsson  <jas@extundo.com>
84690
84691         * modules/argp: Fix autoconf macro name. Add more dependencies.
84692
84693 2003-08-17  Simon Josefsson  <jas@extundo.com>
84694
84695         * m4/xstrndup.m4: New file.
84696
84697 2003-08-17  Simon Josefsson  <jas@extundo.com>
84698
84699         * m4/argp.m4: New file.
84700
84701 2003-08-17  Simon Josefsson  <jas@extundo.com>
84702             Bruno Haible  <bruno@clisp.org>
84703
84704         * lib/xstrndup.h: New file.
84705         * lib/xstrndup.c: New file.
84706
84707 2003-08-17  Bruno Haible  <bruno@clisp.org>
84708
84709         * modules/strndup (Files, Include): Add lib/strndup.h.
84710
84711 2003-08-17  Bruno Haible  <bruno@clisp.org>
84712
84713         * modules/euidaccess (Files): Add lib/euidaccess.h.
84714
84715 2003-08-17  Bruno Haible  <bruno@clisp.org>
84716
84717         * lib/strndup.h: New file.
84718
84719 2003-08-17  Bruno Haible  <bruno@clisp.org>
84720
84721         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84722         like AC_GNU_SOURCE.
84723         * modules/extensions (configure.ac): Comment out the invocation of
84724         gl_USE_SYSTEM_EXTENSIONS.
84725
84726 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84727
84728         Merges from coreutils, etc.
84729         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84730         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84731         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84732         fixing a typo.
84733         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84734         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84735
84736 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84737
84738         Document merge from coreutils.
84739         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84740         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84741         * modules/utime: Add m4/utimes-null.m4.
84742
84743 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84744
84745         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84746         space, undoing this 2003-08-12 change:
84747         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84748
84749 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84750
84751         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84752         strtoul.c from libc, undoing this 2003-08-12 change:
84753         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84754
84755 2003-08-16  Jim Meyering  <jim@meyering.net>
84756
84757         Merges from coreutils.
84758         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84759         prefix.  Adjust cache variables similarly.  Create 500 rather than
84760         just 300 files, to exercise bug on Darwin6.5, too.
84761         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84762         $missing_dir.
84763         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84764         AM_SYS_POSIX_TERMIOS.
84765         Reported by mkc@mathdogs.com.
84766         Also change use of $am_cv_sys_posix_termios
84767         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84768         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84769         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84770         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84771         in /proc/mounts until it finds one with matching device number.  This
84772         is unnecessary when the FILE argument *is* a mount point.  No stat call
84773         is necessary in that case.  So, disable the statvfs-testing code on
84774         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84775         as RedHat bug# 84846.
84776         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84777         to 1MB, so as not to render systems with no stack size limit (e.g.,
84778         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84779         Include <unistd.h>.  On some systems,
84780         it is required for the definition of _SC_PAGESIZE.
84781
84782 2003-08-16  Jim Meyering  <jim@meyering.net>
84783
84784         Merge from coreutils.
84785         * lib/xstrtoimax.c: #else #if -> #elif.
84786         * lib/xstrtoumax.c: Likewise.
84787
84788 2003-08-16  Jim Meyering  <jim@meyering.net>
84789
84790         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84791         * m4/utimes.m4: Removed.
84792         * m4/utimes-null.m4: Renamed from utimes.m4.
84793
84794         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84795         to 1MB, so as not to render systems with no stack size limit (e.g.,
84796         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84797         Include <unistd.h>.  On some systems,
84798         it is required for the definition of _SC_PAGESIZE.
84799
84800 2003-08-16  Jim Meyering  <jim@meyering.net>
84801         and Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         Merges from coreutils, etc.
84804
84805         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84806         using the latest version from cvs.  This avoids problems with #line
84807         directives using a vendor (Sun) compiler.
84808         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84809         Don't set GETGROUPS_LIB here; now it's
84810         done via getgroups.m4's wrapper function.
84811         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84812         rather than just in sh-util/configure.in, so that the
84813         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84814         same.
84815         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84816         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84817         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84818         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84819         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84820         Remove code that is now done by the newly-required macros.
84821         Append $(EXEEXT) to DF_PROG.
84822         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84823         Do not invoke or require the following here,
84824         since prereq.m4 or some gnulib .m4 now does this for us:
84825         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84826         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84827         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84828         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84829         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84830         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84831         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84832         AC_FUNC_OBSTACK.
84833         Do not replace the following functions, as this is now the job
84834         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84835         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84836         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84837         atexit getpass, strdup, getpagesize.
84838         Replace 'raise'.
84839         Do not check for the following functions, as this is now the job
84840         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84841         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84842         setregid.
84843         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84844         Check for sys/sysctl.h.
84845         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84846         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84847         of checking for ssize_t ourselves.
84848
84849         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84850         Require every macro that gnulib/modules/* suggests for us.
84851         (jm_PREREQ_ADDEXT): New macro.
84852         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84853         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84854
84855         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84856         (gl_PHYSMEM): Use it.
84857         Also check for `table' function.
84858         Check for new headers and functions.
84859         Add check for sys/sysmp.h.
84860         With suggestions from Kaveh Ghazi.
84861         Ignore headers that are present but cannot be compiled.  This
84862         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84863         C 5.4.
84864
84865 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84866
84867         Document merge from coreutils.
84868         * modules/userspec: Depend on posixver.
84869         * modules/strftime: Depend on tzset.
84870
84871 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84872
84873         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84874         rather than tab, after '#' in shell-script copyright notices.
84875         Suggested by Bruno Haible.
84876
84877 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84878
84879         * config/srclist-update: Use three spaces, rather than tab, after '#'
84880         in shell-script copyright notices.  Suggested by Bruno Haible.
84881         Remove unnecessary parenthesization in regular expression.
84882
84883 2003-08-15  Jim Meyering  <jim@meyering.net>
84884
84885         Merge from coreutils.
84886         * lib/xgethostname.c: Include <stdlib.h>.
84887         (xghostname): Don't exit for anything other than memory-related
84888         failure; just return NULL.
84889         * lib/userspec.c: Include "posixver.h".
84890         (parse_user_spec): Accept `.' as a separator only
84891         in pre-POSIX-200112 mode.
84892         * lib/strtoimax.c: Use #elif rather than #else #if.
84893         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84894         Remove function, now that we can rely on a working tzset function.
84895         [!_LIBC]: Ensure that the required autoconf test has been run.
84896         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84897         Use underlying_strftime for %r.
84898         * lib/sha.c: Merge in some clean-up and optimization changes from
84899         glibc.
84900         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84901         Ensure that it is a multiple of 64.
84902         Rearrange loop exit tests so as to avoid performing an
84903         additional fread after encountering an error or EOF.
84904         * lib/realloc.c: Update copyright date.
84905
84906 2003-08-15  Jim Meyering  <jim@meyering.net>
84907         and Paul Eggert  <eggert@twinsun.com>
84908
84909         Merge from coreutils.
84910         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84911         member but strut utmpx does not.  Needed for AIX 4.3.3.
84912         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84913
84914 2003-08-15  Jim Meyering  <jim@meyering.net>
84915         and Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         Merges from coreutils, etc.
84918         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84919         Require gl_FUNC_TZSET_CLOBBER.
84920         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84921         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84922         members.
84923
84924 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84925
84926         Help the merge from coreutils.
84927         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84928         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84929         * m4/tzset.m4: Use it too.
84930
84931 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84932
84933         * modules/tzset: New file.
84934
84935 2003-08-14  Jim Meyering  <jim@meyering.net>
84936
84937         Merges from coreutils.
84938         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84939         variable names, rather than @FNMATCH_H@.
84940         * modules/alloca: Likewise for $(ALLOCA_H).
84941
84942         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84943         the three copies of the literal target, `fnmatch.h'.
84944         * modules/alloca (alloca.h): Likewise.
84945
84946 2003-08-14  Jim Meyering  <jim@meyering.net>
84947
84948         Merge from coreutils.
84949         * m4/tzset.m4: New file.
84950         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84951         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84952         otherwise, AIX 5.1 systems would end up using the latter.
84953         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84954         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84955         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84956         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84957
84958 2003-08-14  Jim Meyering  <jim@meyering.net>
84959
84960         Merge from coreutils.
84961         * lib/obstack.h: Whitespace changes.
84962         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84963         and xcalloc return values.
84964         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84965         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84966         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84967         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84968         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84969         error from mntctl.
84970         Use mntctl's return value to drive the entry-processing loop, since
84971         we can't rely on the value of the vmt_length member in the last
84972         entry.  On some systems doing so could result in exhausting
84973         virtual memory.  Based in part on a patch from Mike Jetzer.
84974
84975 2003-08-14  Jim Meyering  <jim@meyering.net>
84976         and Paul Eggert  <eggert@twinsun.com>
84977
84978         Merges from coreutils, plus other fixes.
84979         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84980         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84981         for credits and details.  Thanks to Kaveh Ghazi for helping
84982         to keep these files in sync.
84983         (ARRAY_SIZE): Define it.
84984         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84985         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84986         (memcasecmp): Don't assume size_t fits in unsigned int.
84987         Remove casts and duplicate code.
84988         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84989         (memcpy): Remove definition.
84990         Merge in some clean-up and optimization changes from glibc.
84991         [BLOCKSIZE]: Move definition to top of file.
84992         Ensure that it is a multiple of 64.
84993         Rearrange loop exit tests so as to avoid performing an
84994         additional fread after encountering an error or EOF.
84995         * lib/md5.h (md5_uintptr): Define.
84996         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84997         return to the initial working directory.  Preserve errno
84998         for caller.
84999         * lib/idcache.c: Include "xalloc.h".
85000         (xmalloc, xrealloc): Remove decls.
85001         (getuser): Remove casts no longer required in C89.
85002         * lib/human.c: Include stdio.h, for sprintf.
85003         * lib/group-member.c: Include "xalloc.h".
85004         (xmalloc, xrealloc): Remove decls.
85005         (get_group_info): Remove casts no longer required in C89.
85006         * lib/getusershell.c (readname): Remove casts no longer required in
85007         C89.
85008         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85009         * lib/getline.c: Whitespace fix, from coreutils.
85010
85011 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85012
85013         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85014         Check for isascii.
85015
85016         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85017         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85018         Undo previous (whitespace-only) change.
85019
85020 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85021
85022         * lib/exclude.c: Include <ctype.h>
85023         (IN_CTYPE_DOMAIN): New macro.
85024         (is_space): New fn.
85025         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85026         and empty lines.
85027
85028         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85029         Undo previous (whitespace-only) change.
85030
85031 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85032
85033         * config/srclist-update: Change update back to the old behavior,
85034         leaving whitespace alone.  Use one 'sed' command rather than a
85035         pipeline.
85036         (fixlicense): Now a variable, not a function.
85037         (remove_trailing_blanks): Remove.
85038         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85039         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85040         Undo previous (whitespace-only) change.
85041
85042 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85043
85044         Merge from coreutils.
85045         * modules/euidaccess: Add lib_SOURCES, include for new
85046         file euidaccess.h
85047
85048 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85049
85050         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85051         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85052         Normalize leading white space and remove trailing white space.
85053
85054         Merge from coreutils
85055         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85056
85057         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85058         0.12.1.  These files are now being upgraded automatically by
85059         ../config/srclist-update.
85060
85061 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85062
85063         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85064         Normalize leading white space and remove trailing white space.
85065         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85066         notice, as per ../config/srclist-update.
85067
85068         Merge from coreutils.
85069         * lib/euidaccess.h: New file.
85070         * lib/euidaccess.c: Include it.
85071         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85072         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85073         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85074
85075 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85076
85077         * config/srclist-update: Add copyright notice.
85078         (remove_id_lines, remove_trailing_blanks): New constants.
85079         (fixfile): Use them to normalize spacing a bit in copied files.
85080         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85081         Normalize leading white space and remove trailing white space.
85082
85083         * config/texinfo.tex: Sync with texinfo.
85084
85085         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85086         strtoul.c from libc, to merge coreutils whitespace changes.
85087
85088         * config/srclist.txt: Get the following m4 files from gettext:
85089         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85090         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85091         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85092         wint_t.m4.
85093
85094 2003-08-12  Karl Berry  <karl@gnu.org>
85095
85096         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85097         been made.
85098
85099 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85100
85101         * modules/gnu-source, m4/gnu-source.m4:
85102         Remove; we're assuming Autoconf 2.54 or later now.
85103         Suggested by Bruno Haible.
85104         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85105
85106 2003-08-11  Bruno Haible  <bruno@clisp.org>
85107
85108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85109
85110 2003-08-11  Bruno Haible  <bruno@clisp.org>
85111
85112         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85113         (vasnprintf): Use it instead of wcslen.
85114
85115 2003-08-11  Bruno Haible  <bruno@clisp.org>
85116
85117         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85118         value to ensure that _Bool promotes to int. Use #define for _Bool when
85119         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85120
85121 2003-08-10  Karl Berry  <karl@gnu.org>
85122
85123         * lib/regex.h: update from libc (whitespace fix).
85124
85125 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85126
85127         Merge some files from coreutils.  These changes were
85128         originally made by Jim Meyering.
85129         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85130         many older Unixes require this.
85131         * lib/alloca.c (alloca): Remove cast to argument of free;
85132         no longer needed in C89.
85133         * lib/alloca_.h, regex.h: Fix white space to match
85134         what GNU indent does.
85135
85136 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85137
85138         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85139         apparently Emacs's Unicode mode got confused before my 2003-08-05
85140         checkin.
85141
85142 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85143
85144         * m4/extensions.m4: New file.
85145         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85146         Require gl_USE_SYSTEM_EXTENSIONS.
85147         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85148         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85149
85150 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85151
85152         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85153         * modules/extensions, modules/gnu-source: New files.
85154         * modules/timespec, modules/unlocked-io: Depend on extensions.
85155
85156 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85157
85158         * modules/restrict: New file.
85159         * MODULES.html.sh (func_all_modules): Add restrict.
85160         * modules/regex: Depend on restrict.
85161
85162 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85163
85164         * m4/restrict.m4: New file.
85165         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85166
85167 2003-08-07  Bruno Haible  <bruno@clisp.org>
85168
85169         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85170         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85171
85172 2003-08-07  Bruno Haible  <bruno@clisp.org>
85173
85174         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85175         makes the module 'getndelim2' compatible with the module 'getline'.
85176
85177 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85178
85179         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85180         byte with "\201" to avoid glitches when editing that source file
85181         with multi-gnome-terminal.
85182
85183 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85184
85185         * lib/bumpalloc.h: Remove.
85186
85187 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85188
85189         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85190         * modules/bumpalloc: Remove.
85191
85192 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85193
85194         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85195         GNU coding style.
85196
85197         Merge from coreutils.
85198         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85199         1. From glibc.
85200         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85201         from Karl Berry, implemented by Jim Meyering.
85202         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85203         from Dmitry V. Levin.
85204         Remove anachronistic cast of xrealloc.
85205         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85206         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85207         type. Otherwise, it wouldn't compile with at least /bin/cc on
85208         ymp-cray-unicos9.0.2.X.
85209         Combine two mostly-identical uses of alloca into one.
85210         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85211
85212 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85213
85214         [From Emacs.]
85215
85216         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85217         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85218         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85219         obsolete NLIST_NAME_UNION.
85220         [__GNU__]: Undef BSD and FSCALE.
85221         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85222
85223 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85224
85225         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85226         an enum type, so that it's guaranteed to promote to int.  See:
85227         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85228
85229 2003-08-03  Karl Berry  <karl@gnu.org>
85230
85231         * config/depcomp: update from automake.
85232
85233 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85234
85235         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85236         (strerror): Don't assume that a printable int fits in 14 bytes.
85237
85238 2003-07-31  Bruno Haible  <bruno@clisp.org>
85239
85240         * modules/getpass-gnu: New file.
85241         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85242
85243 2003-07-31  Bruno Haible  <bruno@clisp.org>
85244
85245         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85246
85247 2003-07-24  Karl Berry  <karl@gnu.org>
85248
85249         * config/missing: update from automake.
85250
85251 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85252             Bruno Haible  <bruno@clisp.org>
85253
85254         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85255         * lib/getline.c (getline, getdelim): Likewise.
85256         Remove _GNU_SOURCE define; now it's defined in config.h through
85257         m4/getline.m4.
85258
85259 2003-07-23  Karl Berry  <karl@gnu.org>
85260
85261         * config/config.sub: update from prep.
85262
85263 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85264
85265         * modules/xalloc (Depends-on): Add exitfail.
85266         * modules/xmemcoll: Likewise.
85267
85268 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85269
85270         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85271         over-parenthesization in macros.
85272
85273         Sync with coreutils.
85274
85275         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85276         required by C99.
85277
85278         Use `exit_failure' for xalloc and xmemcoll instead of their own
85279         private exit-failure variables.
85280         * lib/xalloc.h (xalloc_exit_failure): Remove.
85281         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85282         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85283         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85284         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85285         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85286
85287 2003-07-20  Jim Meyering  <jim@meyering.net>
85288
85289         * modules/closeout (Depends-on): Add exitfail.
85290         Suggestion from Bruno Haible.
85291
85292 2003-07-19  Karl Berry  <karl@gnu.org>
85293
85294         * config/config.sub: update from prep.
85295
85296 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85297
85298         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85299         Remove.
85300         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85301         to test that it can stand by itself.  Include "exitfail.h".
85302         Clients should set exit_failure instead.
85303         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85304
85305 2003-07-18  Bruno Haible  <bruno@clisp.org>
85306
85307         * modules/getndelim2: New file.
85308         * modules/getline: Share files with module getndelim2.
85309         * modules/getnline: Depend on getndelim2 instead of sharing files with
85310         it. Add getnline.c to lib_SOURCES.
85311         * MODULES.html.sh (func_all_modules): Add getndelim2.
85312
85313 2003-07-18  Bruno Haible  <bruno@clisp.org>
85314
85315         * m4/getndelim2.m4: New file.
85316         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85317         invoke gl_PREREQ_GETNDELIM2.
85318         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85319         gl_PREREQ_GETNDELIM2.
85320         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85321         gl_GETNDELIM2.
85322
85323 2003-07-18  Bruno Haible  <bruno@clisp.org>
85324
85325         * lib/getndelim2.h: New file.
85326         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85327         getndelim2.h.
85328         (getndelim2): Make non-static. Change return type to ssize_t.
85329         * lib/getline.h: Change argument names.
85330         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85331         * lib/getnline.c: Include getndelim2.h.
85332
85333 2003-07-18  Andreas Schwab  <schwab@suse.de>
85334
85335         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85336
85337 2003-07-17  Karl Berry  <karl@gnu.org>
85338
85339         * config/config.sub: update from prep.
85340
85341 2003-07-17  Bruno Haible  <bruno@clisp.org>
85342
85343         * modules/getnline: New file.
85344         * modules/getline: Add lib/getndelim2.c to source file list.
85345         * MODULES.html.sh (func_all_modules): Add getnline.
85346
85347 2003-07-17  Bruno Haible  <bruno@clisp.org>
85348
85349         * m4/getnline.m4: New file.
85350
85351 2003-07-17  Bruno Haible  <bruno@clisp.org>
85352
85353         * m4/Makefile.am.in: Remove file.
85354         * m4/Makefile.am: Remove file.
85355         * m4/Makefile.in: Remove file.
85356
85357 2003-07-17  Bruno Haible  <bruno@clisp.org>
85358
85359         * lib/getnline.h: New file.
85360         * lib/getnline.c: New file.
85361         * lib/getndelim2.c: New file, extracted from getline.c.
85362         (getndelim2): Renamed from getdelim2, with added nmax argument.
85363         * lib/getline.c: Include getndelim2.c.
85364         (getdelim2): Moved out to getndelim2.c.
85365         (getline, getdelim): Update.
85366
85367 2003-07-17  Bruno Haible  <bruno@clisp.org>
85368
85369         * lib/Makefile.am: Remove file.
85370         * lib/Makefile.in: Remove file.
85371
85372 2003-07-17  Bruno Haible  <bruno@clisp.org>
85373
85374         * configure.in: Remove file.
85375         * Makefile.in: Remove file.
85376
85377 2003-07-17  Bruno Haible  <bruno@clisp.org>
85378
85379         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85380
85381 2003-07-16  Karl Berry  <karl@gnu.org>
85382
85383         * config/srclist-update: was running fixlicense twice, which caused
85384                 texinfo.tex to be nullified for some reason.  Simplify,
85385                 $gplsrc is no longer needed as far as I can see?
85386
85387 2003-07-16  Jim Meyering  <jim@meyering.net>
85388
85389         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85390
85391 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85392
85393         * config/srclist.txt: Get the following files from gettext-runtime/intl
85394         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85395         ref-del.sin.  From Bruno Haible.
85396         * config/srclist-update (fixfile): Change grep pattern again, since the
85397         previous fix didn't work (there was another trailing $).  Use
85398         '[$]' to escape the $s.
85399
85400 2003-07-15  Karl Berry  <karl@gnu.org>
85401
85402         * lib/vasnprintf.c: update from gettext.
85403
85404 2003-07-15  Karl Berry  <karl@gnu.org>
85405
85406         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85407         gets expanded when surrounded by '$'.
85408
85409 2003-07-15  Jim Meyering  <jim@meyering.net>
85410
85411         * modules/save-cwd: Don't depend on error.  From Derek Price.
85412
85413 2003-07-15  Jim Meyering  <jim@meyering.net>
85414
85415         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85416
85417 2003-07-14  Simon Josefsson  <jas@extundo.com>
85418
85419         * modules/mempcpy: New file.
85420         * MODULES.html.sh (func_all_modules): Add mempcpy.
85421
85422 2003-07-14  Simon Josefsson  <jas@extundo.com>
85423
85424         * m4/mempcpy.m4: New file.
85425
85426 2003-07-14  Simon Josefsson  <jas@extundo.com>
85427
85428         * lib/mempcpy.h: New file.
85429         * lib/mempcpy.c: New file.
85430
85431 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85432
85433         * modules/getdate, modules/posixtm: Depend on mktime.
85434
85435 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85436
85437         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85438         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85439         unicodeio.c, unicodeio.h, unlocked-io.h:
85440         Switch from LGPL to GPL.
85441
85442 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85443
85444         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85445         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85446         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85447         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85448         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85449         updated automatically by ../config/srclist-update.  This changes
85450         their license from LPGL to GPL.
85451
85452 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85453
85454         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85455         assumed to refer to the root of the most recent stable gettext version.
85456         * config/srclistvars.sh: Add defaults for eggert.
85457         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85458         Match "This program" as well as "The program".  This is needed
85459         for gettext.
85460
85461 2003-07-14  Jim Meyering  <jim@meyering.net>
85462
85463         Don't emit diagnostics.  Let callers do that.
85464         * lib/save-cwd.c: Don't include "error.h".
85465         (save_cwd): Don't call error.  Ensure that errno is valid
85466         when returning nonzero.
85467
85468         * lib/save-cwd.h (restore_cwd): Update prototype.
85469         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85470         Simplify.  Don't call error upon failure.  Let callers do that.
85471         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85472         when auditing is enabled.  But don't bother updating the #if.
85473
85474 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85475
85476         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85477         it breaks C++ compilation.
85478         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85479
85480 2003-07-10  Simon Josefsson  <jas@extundo.com>
85481
85482         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85483
85484 2003-07-10  Jim Meyering  <jim@meyering.net>
85485
85486         * m4/clock_time.m4: Remove trailing blank.
85487         * m4/intmax_t.m4: Likewise.
85488
85489 2003-07-10  Jim Meyering  <jim@meyering.net>
85490
85491         * lib/vasnprintf.c: Remove trailing blanks.
85492         Make cpp indentation consistent.
85493
85494 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85495
85496         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85497         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85498         Switch from LGPL to GPL.
85499
85500 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85501
85502         * config/srclist.txt: Sort sublists.  Add
85503         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85504         that differ from gnulib for one reason or another; we'd like this list
85505         to be smaller but for now let's document what we have.
85506
85507 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85508
85509         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85510         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85511         and sweeter "eval x=$x".
85512         * config/srclist.txt: Get lib/argp* from glibc.
85513
85514 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85515
85516         * lib/mktime.c: Fix some boundary cases and remove need for floating
85517         point.
85518
85519         Issue a compile-time diagnostic if time_t is floating point, or if
85520         two's complement arithmetic is not in effect, or if arithmetic
85521         right shift does not propagate the sign.  These assumptions were
85522         all in the original code but they weren't checked.
85523
85524         (TIME_T_MIDPOINT, verify): New macros.
85525         (__isleap): Remove; it has integer overflow problems.
85526         (leapyear): New function, without those problems.
85527         (ydhms_tm_diff): Remove; splitting into two parts.
85528         (ydhms_diff): New function, containing the arithmetic part of
85529         the old ydhms_tm_diff function.  Issue a compile-time
85530         diagnostic if we are not using C99 integer division.
85531         Avoid casts when possible.
85532         (guess_time_tm): New function, containing the checking part of
85533         the old ydhms_tm_diff function.  Return the new value, rather than
85534         the difference between it and the old.  Accept a new argument T
85535         so that *T specifies the old value.  Check for overflow in the result.
85536
85537         (__mktime_internal): Use a time_t offset, not a long int offset.
85538         This undoes the 2003-06-04 change, which is no longer needed now
85539         that we have better overflow checking.
85540         (localtime_offset): Likewise.
85541
85542         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85543         and long are 64-bit but int is only 32-bit.
85544         (ydhms_diff): Use long int to store year1 and yday1.
85545         Issue a compile-time diagnostic if long int is not wide enough.
85546
85547         (__mktime_internal): Use long int to store adjusted year and yday.
85548         Use plain C rather than preprocessor commands, if that doesn't
85549         affect efficiency.
85550         Check for overflow (and try to repair) after each probe
85551         rather than checking only at the very end.  This avoids some bugs
85552         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85553         does not equal GMT offset at maximum time).
85554         Use integer to check for overflow rather than floating point; this
85555         is more portable to non-IEEE hosts, and is a tad faster.
85556         When we detect that we are oscillating between two values,
85557         don't check whether tm_isdst has the requested value, since
85558         we already know the answer.  When tm_isdst has the wrong value,
85559         use a different heuristic to find the right one, based on the
85560         extreme values actually observed in practice in tz2003a,
85561         rather than the (overly optimistic) "previous 3 calendar quarters".
85562
85563         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85564         "T const" to accommodate glibc style.
85565         (check_result): Use less-confusing report format.  "long" -> "long int.
85566         (main): Likewise.
85567         Don't loop if the iteration overflows time_t.
85568         Allow a negative step in the iteration.
85569
85570 2003-07-06  Karl Berry  <karl@gnu.org>
85571
85572         * config/depcomp: update from automake.
85573         * config/config.sub: update from prep.
85574
85575 2003-07-03  Karl Berry  <karl@gnu.org>
85576
85577         * config/config.guess: update from prep.
85578
85579 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85580
85581         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85582         xreadlink.c now includes it unconditionally.
85583
85584 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85585
85586         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85587         having it depend on HAVE_SYS_TYPES_H.
85588
85589 2003-07-01  Bruno Haible  <bruno@clisp.org>
85590
85591         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85592         <sys/types.h> should be sufficient.
85593         Reported by Paul Eggert.
85594
85595 2003-06-26  Karl Berry  <karl@gnu.org>
85596
85597         * config/depcomp: update from automake.
85598
85599 2003-06-26  Bruno Haible  <bruno@clisp.org>
85600
85601         * modules/human: Depend on module stdbool.
85602
85603 2003-06-25  Bruno Haible  <bruno@clisp.org>
85604
85605         * modules/readlink: New file.
85606         * modules/xreadlink: Depend on it.
85607         * MODULES.html.sh (func_all_modules): Add readlink.
85608
85609 2003-06-25  Bruno Haible  <bruno@clisp.org>
85610
85611         * m4/readlink.m4: New file.
85612
85613 2003-06-25  Bruno Haible  <bruno@clisp.org>
85614
85615         * lib/readlink.c: New file.
85616
85617 2003-06-22  Karl Berry  <karl@gnu.org>
85618
85619         * config/srclist.txt: update mkinstalldirs from automake.
85620         * config/mkinstalldirs: update.
85621
85622 2003-06-22  Bruno Haible  <bruno@clisp.org>
85623
85624         Portability to mingw32.
85625         * m4/ssize_t.m4: New file, from GNU gettext.
85626         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85627         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85628
85629 2003-06-22  Bruno Haible  <bruno@clisp.org>
85630
85631         * modules/safe-read: Add m4/ssize_t.m4.
85632         * modules/xreadlink: Add m4/ssize_t.m4.
85633
85634 2003-06-20  Bruno Haible  <bruno@clisp.org>
85635
85636         Assume C89, so PARAMS isn't needed.
85637         * lib/unicodeio.h (PARAMS): Remove.
85638         * lib/unicodeio.c: Don't use PARAMS.
85639
85640 2003-06-18  Karl Berry  <karl@gnu.org>
85641
85642         * config/config.{guess,sub}: update from prep.
85643
85644 2003-06-18  Jim Meyering  <jim@meyering.net>
85645
85646         Merge changes from coreutils.
85647         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85648         Remove explicit declarations of xmalloc and realloc.
85649         Include xalloc.h.
85650         (read_utmp): Remove anachronistic cast of xmalloc.
85651
85652 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85653
85654         Assume C89, so PARAMS isn't needed.
85655         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85656         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85657         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85658         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85659         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85660         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85661         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85662         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85663         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85664         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85665         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85666         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85667         no longer needed. Anyway, config.h should always be included before any
85668         other file.
85669
85670 2003-06-11  Simon Josefsson  <jas@extundo.com>
85671
85672         * modules/sysexits: New file.
85673         * MODULES.html.sh (func_all_modules): Add sysexits.
85674
85675 2003-06-11  Simon Josefsson  <jas@extundo.com>
85676
85677         * lib/sysexit_.h: New file.
85678
85679 2003-06-11  Derek Price  <derek@ximbiot.com>
85680
85681         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85682         necessary.
85683
85684 2003-06-11  Bruno Haible  <bruno@clisp.org>
85685
85686         * m4/sysexits.m4: New file.
85687
85688 2003-06-10  Simon Josefsson  <jas@extundo.com>
85689
85690         * lib/argp.h: New file, from glibc.
85691         * lib/argp-ba.c: New file, from glibc.
85692         * lib/argp-eexst.c: New file, from glibc.
85693         * lib/argp-fmtstream.c: New file, from glibc.
85694         * lib/argp-fmtstream.h: New file, from glibc.
85695         * lib/argp-fs-xinl.c: New file, from glibc.
85696         * lib/argp-help.c: New file, from glibc.
85697         * lib/argp-namefrob.h: New file, from glibc.
85698         * lib/argp-parse.c: New file, from glibc.
85699         * lib/argp-pv.c: New file, from glibc.
85700         * lib/argp-pvh.c: New file, from glibc.
85701         * lib/argp-xinl.c: New file, from glibc.
85702
85703 2003-06-10  Simon Josefsson  <jas@extundo.com>
85704
85705         * modules/strchrnul: New file.
85706
85707 2003-06-10  Simon Josefsson  <jas@extundo.com>
85708
85709         * modules/argp: New file.
85710
85711 2003-06-10  Simon Josefsson  <jas@extundo.com>
85712
85713         * m4/strchrnul.m4: New file.
85714
85715 2003-06-10  Simon Josefsson  <jas@extundo.com>
85716
85717         * lib/strchrnul.h: New file.
85718         * lib/strchrnul.c: New file.
85719
85720 2003-06-10  Bruno Haible  <bruno@clisp.org>
85721
85722         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85723
85724 2003-06-07  Karl Berry  <karl@gnu.org>
85725
85726         * config/config.{guess,sub}: update from prep.
85727
85728 2003-06-07  Jim Meyering  <jim@meyering.net>
85729
85730         * modules/strtod: Use $(...) notation, not @...@ for
85731         AC_REPLACE'd variables.
85732         * modules/localcharset: Likewise.
85733
85734 2003-06-07  Jim Meyering  <jim@meyering.net>
85735
85736         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85737         in place of my name in the copyright comment.
85738         Remove definition and uses of __P.
85739
85740         From coreutils.
85741         * lib/stat.c: Don't declare xmalloc explicitly.
85742         Instead, include "xalloc.h".
85743         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85744         xrealloc, and xcalloc return values.
85745         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85746         Improve comment.
85747         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85748
85749 2003-06-07  Bruno Haible  <bruno@clisp.org>
85750
85751         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85752         avoid AC_CONFIG_LINKS.
85753         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85754         fnmatch.h, to avoid AC_CONFIG_LINKS.
85755         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85756
85757 2003-06-07  Bruno Haible  <bruno@clisp.org>
85758
85759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85760         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85761         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85762         directory.
85763         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85764         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85765         directory.
85766
85767 2003-06-06  Jim Meyering  <jim@meyering.net>
85768
85769         Merge from coreutils.
85770         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85771         Consolidate declarations and initializations of *_base* locals.
85772
85773         Merge from coreutils.
85774         This avoids a core dump on systems without GNU putenv,
85775         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85776         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85777         (unsetenv): New static function, from GNU libc.
85778         (rpl_putenv): Use it.
85779
85780         * lib/modechange.c: Remove trailing blanks.
85781
85782         Merge from coreutils.
85783         * lib/fsusage.c: Remove declaration of statfs.
85784         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85785
85786         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85787
85788 2003-06-06  Jim Meyering  <jim@meyering.net>
85789
85790         * lib/stdbool_.h: Renamed from stdbool.h.in.
85791
85792 2003-06-06  Jim Meyering  <jim@meyering.net>
85793             Bruno Haible  <bruno@clisp.org>
85794
85795         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85796         Adjust Makefile.am snippet not to redirect directly to target.
85797         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85798
85799 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85800
85801         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85802         mismatch, look in future quarters as well as past.  This fixes a
85803         bug when processing fall-backwards gaps immediately after a long
85804         period of daylight-saving time.
85805
85806         * lib/mktime.c: Assume freestanding C89 or better.
85807         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85808         (__P): Remove; not used.
85809         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85810         (mktime, not_equal_tm, print_tm, check_result,
85811         main): Use prototypes.  Use const * where appropriate.
85812         (main): Fix typo in testing code that uncovered by above changes.
85813         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85814
85815 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85816
85817         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85818         locale.h, localeconv.  This merges changes from coreutils.
85819
85820         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85821         It can be removed after the next Autoconf is released.
85822         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85823         needed.
85824
85825 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85826
85827         * lib/mktime.c: Fix Debian bug 177940
85828         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85829         (localtime_offset): Now long int, not time_t, because we want it
85830         to be guaranteed to be signed.  All uses changed.
85831         (__mktime_internal): If overflow would occur when adding offset,
85832         don't add it.
85833
85834         Merge 'human' changes from coreutils.  Rewrite to support
85835         locale-specific notations like thousands separators.
85836         * lib/human.c: Simplify authorship notice.
85837         Include human.h immediately after config.h.
85838         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85839         <limits.h>: Do not include, since human.h does.
85840         (SIZE_MAX, UINTMAX_MAX): New macros.
85841         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85842         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85843         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85844         (power_letter): Renamed from suffixes.
85845         (generate_suffix_backwards): Remove.
85846         (adjust_value): Now takes int style (because of human.h changes)
85847         and long double value (for greater precision on some platforms).
85848         (group_number): New function.
85849         (human_readable): Use it.  Use integer options, not enum.
85850         Put the options before the sizes in the arg list.
85851         Support all the new options.
85852         The old human_readable function has been removed;
85853         use inttostr.h instead.
85854         (human_readable, default_block_size, humblock):
85855         Use uintmax_t, not int, for block sizes.
85856         (human_readable_inexact, block_size_types): Remove.
85857         (block_size_opts): New constant.
85858         (human_options): Renamed from human_block_size, with new signature
85859         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85860         * lib/human.h: Add copyright and authorship notice.
85861         Include <limits.h> and <stdbool.h> unconditionally.
85862         (PARAMS): Remove.  All uses removed.
85863         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85864         (enum human_inexact_style): Remove tag; now a nameless enum.
85865         (human_floor, human_ceiling, human_round_to_even): Now have
85866         values 2, 0, 1 rather than -1, 1, 0.
85867         (human_group_digits, human_suppress_point_zero, human_autoscale,
85868         human_base_1024, human_SI, human_B): New constants.
85869         (human_readable_inexact, human_block_size): Remove.
85870         (human_readable): Size args are now uintmax_t, not int.
85871         (human_options): New decl.
85872
85873         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85874         unnecessary now that we assume C89 or better.  This change
85875         imported from coreutils.
85876
85877         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85878         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85879         in the 2003-05-30 sync from glibc.
85880
85881         .h files should stand alone, but we shouldn't include <sys/types.h>
85882         if we can get away with just <stddef.h>.
85883
85884         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85885         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85886         rather than <sys/types.h>, as we merely need size_t.
85887         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85888         to get size_t.
85889         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85890         Include <stdio.h>, to get FILE.
85891         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85892         memcasecmp.h has included <stddef.h> and all we need is size_t.
85893         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85894         our interface, instead of including <sys/types.h>
85895
85896 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85897
85898         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85899         now, as glibc mktime is buggy on non-glibc systems.
85900
85901 2003-06-03  Karl Berry  <karl@gnu.org>
85902
85903         * config/config.sub: update from prep.
85904
85905 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85906
85907         [from coreutils]
85908         Fix some minor time-related bugs with POSIX time arguments.
85909         Some valid time stamps were being rejected (notably -1, and
85910         time stamps before 1900 on 64-bit hosts).  And some invalid
85911         time stamps were being accepted, e.g. September 31.
85912
85913         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85914         that we can return (time_t) -1 successfully.
85915         * lib/posixtm.c: Likewise.
85916         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85917         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85918         (t): Remove static var.
85919         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85920         of static var.  All uses changed.
85921         (year): Do not reject years before 1900; they can occur with
85922         64-bit time_t.
85923         (posix_time_parse): Do not check for out-of-range components;
85924         that is now the caller's responsibility, since our checks were
85925         only approximations.
85926         (posixtime): Use mktime to check for out-of-range components,
85927         since it knows them exactly.
85928         If mktime returns (time_t) -1, check whether an error actually occurred
85929         by invoking localtime on -1.
85930         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85931         posixtime failures better.
85932         Improve the test data (in comments only).
85933
85934 2003-06-02  Karl Berry  <karl@gnu.org>
85935
85936         * config/mkinstalldirs (version): new variable.
85937         (--version): new option.
85938         (usage): improve message.
85939
85940 2003-05-30  Karl Berry  <karl@gnu.org>
85941
85942         * lib/mktime.c: update from libc.
85943
85944 2003-05-30  Bruno Haible  <bruno@clisp.org>
85945
85946         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85947         * config/config.rpath: Upgrade to gettext-0.12.1.
85948
85949 2003-05-30  Bruno Haible  <bruno@clisp.org>
85950
85951         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85952         * m4/nls.m4: New file, from gettext-0.12.1.
85953         * m4/po.m4: New file, from gettext-0.12.1.
85954         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85955
85956 2003-05-30  Bruno Haible  <bruno@clisp.org>
85957
85958         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85959         * lib/localcharset.h: Likewise.
85960         * lib/localcharset.c: Likewise.
85961
85962 2003-05-29  Karl Berry  <karl@gnu.org>
85963
85964         * config/config.rpath: update from gettext.
85965
85966 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85967
85968         Assume the headers required for C89 freestanding compilers.
85969         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85970         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85971         * m4/human.m4 (gl_HUMAN): Likewise.
85972         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85973         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85974         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85975         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85976         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85977         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85978
85979 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85980
85981         Assume the headers required for C89 freestanding compilers.
85982         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85983         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85984         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85985         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85986         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85987         define, since <limits.h> is guaranteed to do that.
85988         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85989         * lib/exclude.c: Include <stdbool.h> unconditionally.
85990         * lib/tempname.c: Include <stddef.h> unconditionally.
85991         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85992         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85993         <stddef.h> does that.
85994         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85995         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85996         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85997         needed.
85998         * lib/xstrtol.c: Likewise.
85999         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86000         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86001
86002         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86003         warnings on some platforms.
86004
86005         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86006         arbitrarily.
86007
86008 2003-05-26  Jim Meyering  <jim@meyering.net>
86009
86010         Merge in a change from coreutils:
86011         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86012         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86013         that condition, rather than `-1' which is slightly misleading.
86014         Change the name of the cache variable to have the gl_ prefix.
86015         Prompted by a patch from Richard Dawe for DJGPP.
86016
86017 2003-05-24  Karl Berry  <karl@gnu.org>
86018
86019         * config/config.guess: update from prep.
86020
86021 2003-05-22  Karl Berry  <karl@gnu.org>
86022
86023         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86024
86025 2003-05-20  Karl Berry  <karl@gnu.org>
86026
86027         * config/config.guess: update from prep.
86028
86029 2003-05-18  Karl Berry  <karl@gnu.org>
86030
86031         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86032         might actually be set by the user.
86033
86034         * config/depcomp, install-sh, mdate-sh: update from automake.
86035
86036 2003-05-17  Bruno Haible  <bruno@clisp.org>
86037
86038         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86039         invalid expansion for AC_EGREP_CPP.
86040         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86041         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86042         Suggested by Akim Demaille <akim@epita.fr> in
86043         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86044
86045 2003-05-12  Jim Meyering  <jim@meyering.net>
86046
86047         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86048         the space-padded-by-default conversion specifiers, %e, %k, %l.
86049
86050 2003-05-12  Bruno Haible  <bruno@clisp.org>
86051
86052         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86053         the string is longer than 4 KB.
86054
86055 2003-05-11  Karl Berry  <karl@gnu.org>
86056
86057         * config/config.{guess,sub}: update from prep.
86058
86059 2003-05-09  Bruno Haible  <bruno@clisp.org>
86060
86061         * modules/error: Add m4/strerror_r.m4 to file list.
86062
86063 2003-05-03  Bruno Haible  <bruno@clisp.org>
86064
86065         Upgrade to Unicode-4.0.
86066         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86067         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86068         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86069         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86070         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86071         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86072         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86073         Change width of U+E0100..U+E01EF from 1 to 0.
86074
86075 2003-04-25  Jim Meyering  <jim@meyering.net>
86076
86077         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86078         of type size_t, not int.
86079
86080 2003-04-25  Bruno Haible  <bruno@clisp.org>
86081
86082         * lib/copy-file.c: Include <stddef.h>, for size_t.
86083
86084 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86085
86086         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86087         code which expansion is under static control.  Patch imported from
86088         Akim Demaille's patch to Bison; see
86089         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86090
86091 2003-04-14  Bruno Haible  <bruno@clisp.org>
86092
86093         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86094
86095 2003-04-11  Jim Meyering  <jim@meyering.net>
86096
86097         Merge changes from Coreutils.
86098
86099         2003-03-22  Jim Meyering  <jim@meyering.net>
86100
86101         * lib/strftime.c (widen): Cast alloca return value to proper type.
86102
86103         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86104
86105         From GNU libc.
86106         * lib/strftime.c (my_strftime): Handle very large width
86107         specifications for numeric values correctly.  Improve checks for
86108         overflow.
86109
86110         2003-01-19  Jim Meyering  <jim@meyering.net>
86111
86112         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86113         definitions.
86114         (nl_get_alt_digit) [! defined my_strftime]: Define.
86115         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86116         _nl_get_alt_digit and _nl_get_walt_digit.
86117
86118         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86119         libc. These changes have no effect outside of _LIBC.
86120
86121 2003-04-10  Bruno Haible  <bruno@clisp.org>
86122
86123         * modules/findprog: New file.
86124         * MODULES.html.sh (func_all_modules): Add it.
86125
86126 2003-04-10  Bruno Haible  <bruno@clisp.org>
86127
86128         * m4/findprog.m4: New file.
86129         * m4/eaccess.m4: New file.
86130
86131 2003-04-10  Bruno Haible  <bruno@clisp.org>
86132
86133         * lib/findprog.h: New file, from GNU gettext.
86134         * lib/findprog.c: New file, from GNU gettext.
86135
86136 2003-04-05  Jim Meyering  <jim@meyering.net>
86137
86138         Merge changes from Coreutils.
86139
86140         * lib/exclude.h (PARAMS): Remove definition and uses.
86141         * lib/exclude.c: Remove uses of `PARAMS'.
86142
86143         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86144         Add test-cases for DOS filenames. Declare program_name.
86145         (main): Set up program_name.  Patch by Rich Dawe.
86146
86147         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86148         error from mntctl.
86149         Use mntctl's return value to drive the entry-processing loop, since
86150         we can't rely on the value of the vmt_length member in the last
86151         entry.  On some systems doing so could result in exhausting
86152         virtual memory.  Based in part on a patch from Mike Jetzer.
86153
86154 2003-04-04  Bruno Haible  <bruno@clisp.org>
86155
86156         * modules/linebreak: New file.
86157         * MODULES.html.sh (func_all_modules): Add it.
86158
86159 2003-04-04  Bruno Haible  <bruno@clisp.org>
86160
86161         * m4/linebreak.m4: New file.
86162
86163 2003-04-04  Bruno Haible  <bruno@clisp.org>
86164
86165         * lib/linebreak.h: New file, from GNU gettext.
86166         * lib/linebreak.c: New file, from GNU gettext with slight
86167         modifications.
86168         * lib/lbrkprop.h: New file, from GNU gettext.
86169
86170 2003-04-03  Bruno Haible  <bruno@clisp.org>
86171
86172         * modules/utf8-ucs4: New file.
86173         * modules/utf16-ucs4: New file.
86174         * modules/ucs4-utf8: New file.
86175         * modules/ucs4-utf16: New file.
86176         * MODULES.html.sh (func_all_modules): Add them.
86177
86178 2003-04-03  Bruno Haible  <bruno@clisp.org>
86179
86180         * m4/utf-ucs4.m4: New file.
86181         * m4/ucs4-utf.m4: New file.
86182
86183 2003-04-03  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/utf8-ucs4.h: New file, from GNU gettext.
86186         * lib/utf16-ucs4.h: New file, from GNU gettext.
86187         * lib/ucs4-utf8.h: New file, from GNU gettext.
86188         * lib/ucs4-utf16.h: New file, from GNU gettext.
86189
86190 2003-04-02  Bruno Haible  <bruno@clisp.org>
86191
86192         * modules/binary-io: New file.
86193         * MODULES.html.sh (func_all_modules): Add it.
86194
86195 2003-04-02  Bruno Haible  <bruno@clisp.org>
86196
86197         * lib/binary-io.h: New file, from GNU gettext.
86198
86199 2003-04-01  Bruno Haible  <bruno@clisp.org>
86200
86201         * modules/pathname: New file.
86202         * MODULES.html.sh (func_all_modules): Add it.
86203
86204 2003-04-01  Bruno Haible  <bruno@clisp.org>
86205
86206         * lib/pathname.h: New file, from GNU gettext.
86207         * lib/concatpath.c: New file, from GNU gettext.
86208
86209 2003-03-30  Bruno Haible  <bruno@clisp.org>
86210
86211         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86212
86213 2003-03-30  Bruno Haible  <bruno@clisp.org>
86214
86215         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86216         function chown() doesn't exist.
86217
86218 2003-03-28  Bruno Haible  <bruno@clisp.org>
86219
86220         * modules/copy-file: New file.
86221         * MODULES.html.sh (func_all_modules): Add it.
86222
86223 2003-03-28  Bruno Haible  <bruno@clisp.org>
86224
86225         * m4/copy-file.m4: New file.
86226
86227 2003-03-28  Bruno Haible  <bruno@clisp.org>
86228
86229         * lib/copy-file.h: New file, from GNU gettext.
86230         * lib/copy-file.c: New file, from GNU gettext.
86231
86232 2003-03-18  Jim Meyering  <jim@meyering.net>
86233
86234         * lib/quote.c (quote_n): Fix typo in comment.
86235
86236 2003-03-18  Bruno Haible  <bruno@clisp.org>
86237
86238         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86239         checking.
86240         * m4/onceonly_2_57.m4: Likewise.
86241
86242 2003-03-17  Bruno Haible  <bruno@clisp.org>
86243
86244         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86245         (m4_quote): Remove macro.
86246         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86247
86248 2003-03-14  Jim Meyering  <jim@meyering.net>
86249
86250         Merge changes from Coreutils.
86251         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86252         to be const, in order to avoid warnings.
86253         (obstack_room): Likewise.
86254         (obstack_empty_p): Likewise.
86255
86256 2003-03-14  Bruno Haible  <bruno@clisp.org>
86257
86258         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86259         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86260
86261 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86262
86263         Merge changes from Bison.
86264         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86265         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86266         when compiling Bison 1.875's `bitset bset = obstack_alloc
86267         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86268         * lib/hash.c: Include <stdbool.h> unconditionally.
86269
86270 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86271
86272         * m4/onceonly.m4 (m4_quote): New macro.
86273         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86274         Quote AC_FOREACH variable-expansions properly.
86275
86276 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86277
86278         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86279
86280 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86281
86282         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86283         Reported by Bruce Becker; see:
86284         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86285
86286 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86287             Bruno Haible  <bruno@clisp.org>
86288
86289         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86290         Reported by John Hughes, see
86291         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86292
86293 2003-02-20  Bruno Haible  <bruno@clisp.org>
86294
86295         * MODULES.html.sh (func_all_modules): Add poll.
86296
86297 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86298
86299         * modules/poll: New file.
86300
86301 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86302
86303         * lib/poll_.h: New file.
86304         * lib/poll.c: New file.
86305
86306 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86307
86308         * m4/poll.m4: New file.
86309
86310 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86311
86312         * modules/mathl: New file.
86313
86314 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86315
86316         * lib/mathl.h: New file.
86317         * lib/acosl.c: New file.
86318         * lib/asinl.c: New file.
86319         * lib/atanl.c: New file.
86320         * lib/ceill.c: New file.
86321         * lib/cosl.c: New file.
86322         * lib/expl.c: New file.
86323         * lib/floorl.c: New file.
86324         * lib/frexpl.c: New file.
86325         * lib/ldexpl.c: New file.
86326         * lib/logl.c: New file.
86327         * lib/sincosl.c: New file.
86328         * lib/sinl.c: New file.
86329         * lib/sqrtl.c: New file.
86330         * lib/tanl.c: New file.
86331         * lib/trigl.c: New file.
86332         * lib/trigl.h: New file.
86333
86334 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86335
86336         * m4/mathl.m4: New file.
86337
86338 2003-02-18  Bruno Haible  <bruno@clisp.org>
86339
86340         * MODULES.html.sh (func_all_modules): Add mathl.
86341
86342 2003-02-17  Bruno Haible  <bruno@clisp.org>
86343
86344         * modules/mkdtemp: New module.
86345         * MODULES.html.sh (func_all_modules): Add it.
86346
86347 2003-02-17  Bruno Haible  <bruno@clisp.org>
86348
86349         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86350
86351 2003-02-17  Bruno Haible  <bruno@clisp.org>
86352
86353         * lib/mkdtemp.h: New file, from GNU gettext.
86354         * lib/mkdtemp.c: New file, from GNU gettext.
86355
86356 2003-02-02  Jim Meyering  <jim@meyering.net>
86357
86358         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86359         e.g. glibc-2.2.93.
86360
86361 2003-01-31  Bruno Haible  <bruno@clisp.org>
86362
86363         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86364         'rpl_rename'.
86365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86366         'rpl_strnlen'.
86367         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86368         'rpl_strtod'.
86369         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86370         'rpl_utime'.
86371
86372 2003-01-31  Bruno Haible  <bruno@clisp.org>
86373
86374         * lib/rename.c: #undef rename before defining rpl_rename.
86375         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86376
86377 2003-01-30  Bruno Haible  <bruno@clisp.org>
86378
86379         * modules/vasnprintf, modules/vasprintf: New modules.
86380         * MODULES.html.sh (func_all_modules): Add them.
86381
86382 2003-01-30  Bruno Haible  <bruno@clisp.org>
86383
86384         * m4/signed.m4: New file, from GNU gettext.
86385         * m4/longdouble.m4: New file, from GNU gettext.
86386         * m4/wchar_t.m4: New file, from GNU gettext.
86387         * m4/wint_t.m4: New file, from GNU gettext.
86388         * m4/vasnprintf.m4: New file.
86389         * m4/vasprintf.m4: New file.
86390
86391 2003-01-30  Bruno Haible  <bruno@clisp.org>
86392
86393         * lib/printf-args.h: New file, from GNU gettext.
86394         * lib/printf-args.c: New file, from GNU gettext.
86395         * lib/printf-parse.h: New file, from GNU gettext.
86396         * lib/printf-parse.c: New file, from GNU gettext.
86397         * lib/vasnprintf.h: New file, from GNU gettext.
86398         * lib/vasnprintf.c: New file, from GNU gettext.
86399         * lib/asnprintf.c: New file, from GNU gettext.
86400         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86401         * lib/vasprintf.c: New file, from GNU gettext.
86402         * lib/asprintf.c: New file, from GNU gettext.
86403
86404 2003-01-29  Bruno Haible  <bruno@clisp.org>
86405
86406         * modules/stpncpy: New module.
86407         * MODULES.html.sh (func_all_modules): Add it.
86408
86409 2003-01-29  Bruno Haible  <bruno@clisp.org>
86410
86411         * m4/stpncpy.m4: New file.
86412
86413 2003-01-29  Bruno Haible  <bruno@clisp.org>
86414
86415         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86416         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86417
86418 2003-01-28  Bruno Haible  <bruno@clisp.org>
86419
86420         * modules/c-ctype: New module.
86421         * MODULES.html.sh (func_all_modules): Add it.
86422
86423 2003-01-28  Bruno Haible  <bruno@clisp.org>
86424
86425         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86426         Paul Eggert.
86427         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86428         Paul Eggert.
86429
86430 2003-01-27  Bruno Haible  <bruno@clisp.org>
86431
86432         * modules/xsetenv: New module.
86433         * MODULES.html.sh (func_all_modules): Add it.
86434
86435 2003-01-27  Bruno Haible  <bruno@clisp.org>
86436
86437         * lib/xsetenv.h: New file, from GNU gettext.
86438         * lib/xsetenv.c: New file, from GNU gettext.
86439
86440 2003-01-23  Jim Meyering  <jim@meyering.net>
86441
86442         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86443         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86444
86445 2003-01-23  Bruno Haible  <bruno@clisp.org>
86446
86447         * modules/minmax: New module.
86448         * MODULES.html.sh (func_all_modules): Add it.
86449
86450 2003-01-23  Bruno Haible  <bruno@clisp.org>
86451
86452         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86453         Eggert.
86454
86455 2003-01-22  Bruno Haible  <bruno@clisp.org>
86456
86457         * modules/exit: New module.
86458         * MODULES.html.sh (func_all_modules): Add it.
86459
86460 2003-01-22  Bruno Haible  <bruno@clisp.org>
86461
86462         * lib/exit.h: New file, from GNU gettext.
86463
86464 2003-01-19  Bruno Haible  <bruno@clisp.org>
86465
86466         * gnulib-tool: Recognize option --extract-maintainer.
86467         (func_get_maintainer): New function.
86468         * modules/*: Add Maintainer entry.
86469
86470 2003-01-16  Jim Meyering  <jim@meyering.net>
86471
86472         * m4/regex.m4: The `regex' struct is both input and output.
86473         Initialize it before each use.  Patch by Tim Waugh.
86474
86475 2003-01-16  Bruno Haible  <bruno@clisp.org>
86476
86477         * MODULES.html.sh: Add a table of contents. Add the module name as
86478         leftmost column. Add hyperlinks.
86479
86480 2003-01-15  Bruno Haible  <bruno@clisp.org>
86481
86482         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86483
86484 2003-01-15  Bruno Haible  <bruno@clisp.org>
86485
86486         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86487         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86488         suffix.
86489
86490 2003-01-15  Bruno Haible  <bruno@clisp.org>
86491
86492         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86493
86494 2003-01-15  Bruno Haible  <bruno@clisp.org>
86495
86496         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86497         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86498
86499 2003-01-14  Jim Meyering  <jim@meyering.net>
86500
86501         * lib/same.c (same_name): Tweak a comment.
86502
86503 2003-01-14  Bruno Haible  <bruno@clisp.org>
86504
86505         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86506         when a string comparison is sufficient.
86507
86508 2003-01-14  Bruno Haible  <bruno@clisp.org>
86509
86510         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86511         'unsigned int'.
86512
86513 2003-01-14  Bruno Haible  <bruno@clisp.org>
86514
86515         * lib/hash-pjw.c: Add comment about low quality of this function.
86516
86517 2003-01-13  Bruno Haible  <bruno@clisp.org>
86518
86519         * modules/stpcpy: Distribute lib/stpcpy.h.
86520         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86521
86522 2003-01-13  Bruno Haible  <bruno@clisp.org>
86523
86524         * modules/*: Add a description.
86525         * modules/strpbrk: Fix Makefile.am snippet.
86526         * modules/strtoimax: Fix dependencies.
86527         * modules/strtoumax: Likewise.
86528
86529 2003-01-13  Bruno Haible  <bruno@clisp.org>
86530
86531         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86532         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86533         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86534
86535 2003-01-13  Bruno Haible  <bruno@clisp.org>
86536
86537         * gnulib-tool (func_create_testdir): Store config/* files in the main
86538         directory.
86539         * config.rpath: Move to ...
86540         * config/config.rpath: ... here.
86541         * modules/gettext: Contains config/config.rpath, not config.rpath.
86542         * modules/iconv: Likewise.
86543
86544 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86545
86546         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86547         to avoid collisions with libcurses and libreadline.
86548
86549         * m4/getstr.m4: Remove.
86550         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86551
86552 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86553
86554         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86555         to avoid collisions with libcurses and libreadline.
86556
86557         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86558         * lib/getstr.h, getstr.c: Remove.
86559         * lib/getline.c: Include "getline.h", to check interface.
86560         Move body of old getstr.c here: this defines MIN_CHUNK and
86561         declares getdelim2, which is renamed from getstr.
86562         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86563
86564         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86565         All uses changed.
86566         * lib/linebuffer.h: Likewise.
86567         (readline): Remove backward-compatibility macro.
86568
86569 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86570
86571         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86572         to avoid collisions with libcurses and libreadline.
86573         * getstr: Remove.
86574         * MODULES.html.sh: Remove getstr.
86575         * modules/getline: Depend on unlocked-io, not getstr.
86576
86577 2003-01-12  Jim Meyering  <jim@meyering.net>
86578
86579         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86580
86581 2003-01-10  Bruno Haible  <bruno@clisp.org>
86582
86583         * modules/alloca: Change Makefile.am requirements. Simplify Include
86584         requirements. Add lib/alloca_.h to file list.
86585
86586 2003-01-10  Bruno Haible  <bruno@clisp.org>
86587
86588         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86589
86590 2003-01-10  Bruno Haible  <bruno@clisp.org>
86591
86592         * lib/alloca_.h: New file.
86593         * lib/getdate.y: Unconditionally include alloca.h.
86594         * lib/makepath.c: Likewise.
86595         * lib/setenv.c: Likewise.
86596         * lib/userspec.c: Likewise.
86597
86598 2003-01-09  Karl Berry  <karl@gnu.org>
86599
86600         * MODULES.html.sh: include `dirname $0` in PATH, to find
86601         gnulib-tool.
86602
86603 2003-01-09  Bruno Haible  <bruno@clisp.org>
86604
86605         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86606         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86607
86608 2003-01-09  Bruno Haible  <bruno@clisp.org>
86609
86610         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86611
86612 2003-01-09  Bruno Haible  <bruno@clisp.org>
86613
86614         * lib/stdbool.h.in: New file.
86615
86616 2003-01-09  Bruno Haible  <bruno@clisp.org>
86617
86618         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86619         * MODULES.html.sh: Likewise.
86620
86621 2003-01-08  Jim Meyering  <jim@meyering.net>
86622
86623         * lib/full-write.c: Undefine and define-away `const' after inclusion
86624         of errno.h, not before.  Suggestion from Bruno Haible.
86625
86626 2003-01-08  Bruno Haible  <bruno@clisp.org>
86627
86628         * modules/full-read: Depend on full-write.
86629
86630 2003-01-08  Bruno Haible  <bruno@clisp.org>
86631
86632         * lib/safe-read.c: Include specification header first, to ensure its
86633         selfcontainedness.
86634         * lib/full-write.c: Likewise.
86635
86636 2003-01-07  Jim Meyering  <jim@meyering.net>
86637
86638         * lib/full-write.c: Rework so that it may serve to define full_read,
86639         too.
86640         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86641
86642 2003-01-07  Bruno Haible  <bruno@clisp.org>
86643
86644         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86645         <inttypes.h>.
86646         * lib/xstrtol.h: Likewise.
86647         * lib/xstrtoimax.c: Likewise.
86648         * lib/xstrtoumax.c: Likewise.
86649         * lib/human.h: Likewise.
86650
86651         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86652         on systems that have <inttypes.h> but not <stdint.h>.
86653
86654 2003-01-07  Bruno Haible  <bruno@clisp.org>
86655
86656         * MODULES.html.sh: Add copyright notice.
86657         (missed_files): Omit CVS directory entries.
86658         (func_module): Make it work with sed-3.02.
86659         * MODULES.txt: Remove file.
86660
86661 2003-01-06  Jim Meyering  <jim@meyering.net>
86662
86663         * lib/version-etc.c: Update year in translatable copyright string.
86664
86665 2003-01-03  Karl Berry  <karl@gnu.org>
86666
86667         * config/config.{guess,sub}: update from prep.
86668
86669 2003-01-02  Karl Berry  <karl@gnu.org>
86670
86671         * doc/COPYING.DOC: belatedly updated to 1.2.
86672
86673 2003-01-01  Karl Berry  <karl@gnu.org>
86674
86675         * gnulib-tool (func_verify_module): report module name $module in
86676         error message, not $1.
86677         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86678         be created, only if it doesn't exist.
86679         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86680
86681 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86682
86683         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86684
86685 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86686
86687         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86688         memcmp if strcoll doesn't work.
86689
86690 2002-12-31  Bruno Haible  <bruno@clisp.org>
86691
86692         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86693         nonempty.
86694
86695 2002-12-31  Bruno Haible  <bruno@clisp.org>
86696
86697         * lib/memcoll.c (STRCOLL): New macro.
86698         (memcoll): Use it.
86699
86700 2002-12-31  Bruno Haible  <bruno@clisp.org>
86701
86702         * lib/localcharset.h: New file.
86703         * lib/localcharset.c: Include it.
86704         * lib/unicodeio.c: Likewise.
86705
86706 2002-12-31  Bruno Haible  <bruno@clisp.org>
86707
86708         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86709         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86710
86711 2002-12-31  Bruno Haible  <bruno@clisp.org>
86712
86713         * lib/getline.h: Include <stddef.h>, for size_t.
86714
86715         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86716         * lib/unicodeio.c: Don't include <stddef.h>.
86717
86718 2002-12-31  Bruno Haible  <bruno@clisp.org>
86719
86720         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86721         HAVE_TM_ZONE.
86722
86723 2002-12-24  Karl Berry  <karl@gnu.org>
86724
86725         * config/config.guess: update from prep.
86726
86727 2002-12-24  Bruno Haible  <bruno@clisp.org>
86728
86729         General infrasructure.
86730         * m4/README: Rewritten.
86731         * m4/onceonly.m4: New file.
86732         * m4/onceonly_2_57.m4: New file.
86733
86734         Module atexit.
86735         * m4/atexit.m4: New file.
86736
86737         Module strtod.
86738         * m4/strtod.m4: New file.
86739
86740         Module strtol.
86741         * m4/strtol.m4: New file.
86742
86743         Module strtoul.
86744         * m4/strtoul.m4: New file.
86745
86746         Module memchr.
86747         * m4/memchr.m4: New file.
86748
86749         Module memcmp.
86750         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86751         (jm_FUNC_MEMCMP): Invoke it.
86752
86753         Module memcpy.
86754         * m4/memcpy.m4: New file.
86755
86756         Module memmove.
86757         * m4/memmove.m4: New file.
86758
86759         Module memset.
86760         * m4/memset.m4: New file.
86761
86762         Module strcspn.
86763         * m4/strcspn.m4: New file.
86764
86765         Module strpbrk.
86766         * m4/strpbrk.m4: New file.
86767
86768         Module strstr.
86769         * m4/strstr.m4: New file.
86770
86771         Module strerror.
86772         * m4/strerror.m4: New file.
86773
86774         Module mktime.
86775         * m4/mktime.m4: Renamed from jm-mktime.m4.
86776         (gl_PREREQ_MKTIME): New macro.
86777         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86778
86779         Module malloc.
86780         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86781         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86782         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86783
86784         Module realloc.
86785         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86786         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86787         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86788
86789         Module strftime.
86790         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86792         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86793         gl_TM_GMTOFF.
86794         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86795
86796         Module xalloc.
86797         * m4/xalloc.m4: New file.
86798
86799         Module alloca.
86800         * m4/alloca.m4: New file.
86801
86802         Module putenv.
86803         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86804         (jm_FUNC_PUTENV): Invoke it.
86805
86806         Module setenv.
86807         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86808         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86809         when invoked twice.
86810         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86811         gt_FUNC_SETENV.
86812
86813         Module memrchr.
86814         * m4/memrchr.m4: New file.
86815
86816         Module stpcpy.
86817         * m4/stpcpy.m4: New file.
86818
86819         Module strcase.
86820         * m4/strcase.m4: New file.
86821
86822         Module strdup.
86823         * m4/strdup.m4: New file.
86824
86825         Module strnlen.
86826         * m4/strnlen.m4: New file.
86827
86828         Module strndup.
86829         * m4/strndup.m4: New file.
86830
86831         Module xstrtod.
86832         * m4/xstrtod.m4: New file.
86833
86834         Module xstrtol.
86835         * m4/xstrtol.m4: New file.
86836
86837         Module getdate.
86838         * m4/getdate.m4: New file.
86839
86840         Module unlocked-io.
86841         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86842         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86843         * m4/jm-glibc-io.m4n: Remove file.
86844
86845         Module long-options.
86846         * m4/long-options.m4: New file.
86847
86848         Module md5.
86849         * m4/md5.m4: New file.
86850
86851         Module sha.
86852         * m4/sha.m4: New file.
86853
86854         Module getstr.
86855         * m4/getstr.m4: New file.
86856
86857         Module getline.
86858         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86859         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86860         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86861         simply getline. Infoke gl_PREREQ_GETLINE.
86862
86863         Module obstack.
86864         * m4/obstack.m4: New file.
86865
86866         Module hash.
86867         * m4/hash.m4: New file.
86868
86869         Module readtokens.
86870         * m4/readtokens.m4: New file.
86871
86872         Module strverscmp.
86873         * m4/strverscmp.m4: New file.
86874
86875         Module stdbool.
86876         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86877         OSF/1.
86878
86879         Module strtoll.
86880         * m4/strtoll.m4: New file.
86881
86882         Module strtoull.
86883         * m4/strtoull.m4: New file.
86884
86885         Module strtoimax.
86886         * m4/strtoimax.m4: New file.
86887
86888         Module strtoumax.
86889         * m4/strtoumax.m4: New file.
86890
86891         Module xstrtoimax.
86892         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86893         jm_AC_PREREQ_XSTRTOIMAX.
86894         Moved the strtol prerequisites to strtol.m4.
86895         Moved the strtoll prerequisites to strtoll.m4.
86896         Moved the strtoimax prerequisites to strtoimax.m4.
86897
86898         Module xstrtoumax.
86899         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86900         jm_AC_PREREQ_XSTRTOUMAX.
86901         Moved the strtoul prerequisites to strtoul.m4.
86902         Moved the strtoull prerequisites to strtoull.m4.
86903         Moved the strtoumax prerequisites to strtoumax.m4.
86904
86905         Module chown.
86906         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86907         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86908
86909         Module dup2.
86910         * m4/dup2.m4: New file.
86911
86912         Module ftruncate.
86913         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86914         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86915
86916         Module getgroups.
86917         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86918         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86919
86920         Module gettimeofday.
86921         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86922         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86923         gl_PREREQ_GETTIMEOFDAY.
86924
86925         Module mkdir.
86926         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86927         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86928
86929         Module mkstemp.
86930         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86931         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86932         jm_AC_TYPE_UINTMAX_T.
86933         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86934
86935         Module stat.
86936         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86937         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86938
86939         Module lstat.
86940         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86941         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86942
86943         Module timespec.
86944         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86945         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86946         * m4/st_mtim.m4: Indentation.
86947
86948         Module nanosleep.
86949         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86950         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86951         gl_PREREQ_NANOSLEEP.
86952
86953         Module regex.
86954         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86955         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86956         (gl_REGEX): New macro.
86957
86958         Module rename.
86959         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86960         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86961
86962         Module rmdir.
86963         * m4/rmdir.m4: New file.
86964
86965         Module utime.
86966         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86967         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86968         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86969
86970         Module dirname.
86971         * m4/dirname.m4: New file.
86972
86973         Module getopt.
86974         * m4/getopt.m4: New file.
86975
86976         Module unistd-safer.
86977         * m4/unistd-safer.m4: New file.
86978
86979         Module fnmatch.
86980         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86981         declaration.
86982         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86983         (gl_FUNC_FNMATCH_POSIX): New macro.
86984         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86985         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86986         simply fnmatch.
86987
86988         Module exclude.
86989         * m4/exclude.m4: New file.
86990
86991         Module human.
86992         * m4/human.m4: New file.
86993
86994         Module acl.
86995         * m4/acl.m4: Nop.
86996
86997         Module backupfile.
86998         * m4/backupfile.m4: New file.
86999         * m4/d-ino.m4: Indentation.
87000
87001         Module fsusage.
87002         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87003         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87004         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87005
87006         Module dirfd.
87007         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87008         requirements.
87009
87010         Module euidaccess.
87011         * m4/euidaccess.m4: New file.
87012
87013         Module file-type.
87014         * m4/file-type.m4: New file.
87015
87016         Module fileblocks.
87017         * m4/fileblocks.m4: New file.
87018
87019         Module filemode.
87020         * m4/filemode.m4: New file.
87021
87022         Module isdir.
87023         * m4/isdir.m4: New file.
87024
87025         Module lchown.
87026         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87027         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87028
87029         Module makepath.
87030         * m4/makepath.m4: New file.
87031
87032         Module modechange.
87033         * m4/modechange.m4: New file.
87034
87035         Module mountlist.
87036         * m4/mountlist.m4: New file.
87037         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87038         Indentation.
87039
87040         Module path-concat.
87041         * m4/path-concat.m4: New file.
87042
87043         Module pathmax.
87044         * m4/pathmax.m4: New file.
87045
87046         Module same.
87047         * m4/same.m4: New file.
87048
87049         Module save-cwd.
87050         * m4/save-cwd.m4: New file.
87051
87052         Module savedir.
87053         * m4/savedir.m4: New file.
87054
87055         Module xgetcwd.
87056         * m4/xgetcwd.m4: New file.
87057         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87058
87059         Module xreadlink.
87060         * m4/xreadlink.m4: New file.
87061
87062         Module safe-read.
87063         * m4/safe-read.m4: New file.
87064
87065         Module safe-write.
87066         * m4/safe-write.m4: New file.
87067
87068         Module closeout.
87069         * m4/closeout.m4: New file.
87070
87071         Module stdio-safer.
87072         * m4/stdio-safer.m4: New file.
87073
87074         Module getpass.
87075         * m4/getpass.m4: New file.
87076
87077         Module getugroups.
87078         * m4/getugroups.m4: New file.
87079
87080         Module group-member.
87081         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87082         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87083
87084         Module idcache.
87085         * m4/idcache.m4: New file.
87086
87087         Module userspec.
87088         * m4/userspec.m4: New file.
87089
87090         Module gettime.
87091         * m4/clock_time.m4: New file.
87092         * m4/gettime.m4: New file.
87093
87094         Module settime.
87095         * m4/settime.m4: New file.
87096
87097         Module posixtm.
87098         * m4/posixtm.m4: New file.
87099
87100         Module gethostname.
87101         * m4/gethostname.m4: New file.
87102
87103         Module canon-host.
87104         * m4/canon-host.m4: New file.
87105
87106         Module gettext.
87107         * m4/codeset.m4: New file, from gettext-0.11.5.
87108         * m4/gettext.m4: New file, from gettext-0.11.5.
87109         * m4/glibc21.m4: New file, from gettext-0.11.5.
87110         * m4/iconv.m4: New file, from gettext-0.11.5.
87111         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87112         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87113         * m4/inttypes.m4: New file, from gettext-0.11.5.
87114         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87115         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87116         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87117         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87118         * m4/lib-link.m4: New file, from gettext-0.11.5.
87119         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87120         * m4/progtest.m4: New file, from gettext-0.11.5.
87121         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87122         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87123         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87124
87125         Module localcharset.
87126         * m4/localcharset.m4: New file.
87127
87128         Module hard-locale.
87129         * m4/hard-locale.m4: New file.
87130
87131         Module mbswidth.
87132         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87133         onceonly macros.
87134         * m4/mbrtowc.m4: Add comment.
87135
87136         Module memcasecmp.
87137         * m4/memcasecmp.m4: New file.
87138
87139         Module memcoll.
87140         * m4/memcoll.m4: New file.
87141
87142         Module unicodeio.
87143         * m4/unicodeio.m4: New file.
87144
87145         Module rpmatch.
87146         * m4/rpmatch.m4: New file.
87147
87148         Module yesno.
87149         * m4/yesno.m4: New file.
87150
87151         Module exitfail.
87152         * m4/exitfail.m4: New file.
87153
87154         Module c-stack.
87155         * m4/c-stack.m4 (gl_C_STACK): New macro.
87156         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87157
87158         Module error.
87159         * m4/error.m4 (gl_ERROR): New macro.
87160         (jm_PREREQ_ERROR): Use onceonly macros.
87161
87162         Module fatal.
87163         * m4/fatal.m4: New file.
87164
87165         Module getloadavg.
87166         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87167         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87168
87169         Module getpagesize.
87170         * m4/getpagesize.m4: New file.
87171
87172         Module getusershell.
87173         * m4/getusershell.m4: New file.
87174
87175         Module physmem.
87176         * m4/physmem.m4: New file.
87177
87178         Module posixver.
87179         * m4/posixver.m4: New file.
87180
87181         Module quotearg.
87182         * m4/quotearg.m4: New file.
87183
87184         Module quote.
87185         * m4/quote.m4: New file.
87186
87187         Module readutmp.
87188         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87189
87190         Module sig2str.
87191         * m4/sig2str.m4: New file.
87192
87193         Other.
87194         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87195         ulonglong.m4.
87196         * m4/intmax_t.m4: New file.
87197         * m4/d-type.m4: Indentation.
87198         * m4/jm-macros.m4: Update.
87199         * m4/prereq.m4 (jm_PREREQ): Update.
87200         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87201         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87202         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87203         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87204         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87205         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87206         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87207         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87208         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87209         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87210         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87211         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87212         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87213         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87214         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87215         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87216         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87217         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87218         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87219
87220 2002-12-24  Bruno Haible  <bruno@clisp.org>
87221
87222         * MODULES.txt: Update according to m4/ changes.
87223
87224         Module gettext.
87225         * config.rpath: New file, from gettext-0.11.5.
87226
87227         * modules/*: New module descriptions.
87228         * gnulib-tool: New file.
87229         * MODULES.html.sh: New file.
87230
87231 2002-12-21  Karl Berry  <karl@gnu.org>
87232
87233         * doc/fdl.texi: update to version 1.2.
87234
87235 2002-12-19  Karl Berry  <karl@gnu.org>
87236
87237         * config/config.guess: update from prep.
87238
87239 2002-12-18  Bruno Haible  <bruno@clisp.org>
87240
87241         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87242         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87243
87244 2002-12-17  Bruno Haible  <bruno@clisp.org>
87245
87246         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87247         stdlib.h, string.h.
87248
87249 2002-12-17  Bruno Haible  <bruno@clisp.org>
87250
87251         * lib/canon-host.c (strdup): Remove unused declaration.
87252
87253         * lib/fsusage.c: Include full_read.h.
87254         (get_fs_usage): Use full_read instead of safe_read.
87255
87256         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87257
87258 2002-12-12  Karl Berry  <karl@gnu.org>
87259
87260         * config/config.guess: update from prep.
87261
87262 2002-12-11  Bruno Haible  <bruno@clisp.org>
87263
87264         * m4/setenv.m4: New file, from gettext-0.11.5.
87265
87266 2002-12-11  Bruno Haible  <bruno@clisp.org>
87267
87268         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87269         not unsetenv().
87270         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87271         modifications:
87272
87273         2002-12-11  Bruno Haible  <bruno@clisp.org>
87274
87275                 * setenv.c (alloca): Fall back to malloc.
87276                 (freea): New macro.
87277                 (setenv): Use freea() to free memory allocated with alloca().
87278
87279         2002-11-13  Bruno Haible  <bruno@clisp.org>
87280
87281                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87282                 function declarations.
87283                 * unsetenv.c (unsetenv): Likewise.
87284
87285         2002-03-04  Bruno Haible  <bruno@clisp.org>
87286
87287                 Portability to AIX 4.3.3.
87288                 * unsetenv.c: New file, extracted from setenv.c.
87289                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87290
87291         2001-12-20  Bruno Haible  <bruno@clisp.org>
87292
87293                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87294                 use malloc instead. For SunOS 4.
87295
87296         2001-12-11  Bruno Haible  <bruno@clisp.org>
87297
87298                 * setenv.c: Declare alloca.
87299                 (compar_fn_t): New typedef.
87300                 (KNOWN_VALUE, STORE_VALUE): Use it.
87301
87302         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87303         setenv.h.
87304
87305 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87306
87307         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87308         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87309         Choose values that are less likely to collide with system fnmatch
87310         options.
87311         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87312         defined (e.g., a pure POSIX system).
87313         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87314         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87315
87316 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87317
87318         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87319         a pain in practice to deal with generated m4 files.  This change
87320         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87321
87322         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87323         and jm-glibc-io.m4, as they are no longer a special case.
87324         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87325         kludge and the auto-generation stuff.  Check only whether the
87326         functions are declared, not whether they exist, since older hosts
87327         that don't declare the functions can't use the optimization anyway.
87328
87329 2002-12-06  Jim Meyering  <jim@meyering.net>
87330
87331         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87332
87333         Merge in changes from libc's misc/error.c, in preparation
87334         for the merge of gnulib's changes back into libc.
87335
87336         * lib/error.c (_): Define only if not already defined.
87337         Move definition to follow all #include directives.
87338         Include unlocked-io.h only if !_LIBC.
87339         [_LIBC]: Include <libio/libioP.h>.
87340         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87341         (fflush): Tweak definition to use INTUSE.
87342         (putc): Define.
87343
87344 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87345
87346         * lib/alloca.c [defined emacs]: Include "lisp.h".
87347         (xalloc_die) [defined emacs]: New macro.
87348         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87349         [! defined emacs]: Include <xalloc.h>.
87350         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87351         (pointer): Typedef to POINTER_TYPE *.
87352         (malloc): Remove decl; we now always use xmalloc.
87353         (alloca): Use old-style definition, since Emacs needs this.
87354         Check for arithmetic overflow when computing combined size.
87355
87356 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87357
87358         Do not generate unlocked-io.h automatically, since it's easier to
87359         maintain it by hand.
87360
87361         * lib/unlocked-io.h: New file, from GNU diffutils,
87362         but with proper copyright notice and attribution.
87363         * lib/gen-uio: Remove.
87364         * lib/Makefile.am: Add copyright notice.
87365         (libfetish_a_SOURCES): Add unlocked-io.h.
87366         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87367         (DISTCLEANFILES, io_functions): Remove macros.
87368         (EXTRA_DIST): Remove gen_uio.
87369         (unlocked-io.h): Remove rule.
87370
87371 2002-12-04  Jim Meyering  <jim@meyering.net>
87372
87373         Reflect the fact that stat.c and lstat.c are no longer generated.
87374         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87375         (DISTCLEANFILES): Likewise.
87376         (EXTRA_DIST): Likewise.
87377         (all_local): Don't depend on stat.c or lstat.c.
87378         (stat.c, lstat.c): Remove rules.
87379         (EXTRA_DIST): Remove xstat.in.
87380
87381         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87382         * lib/stat.c: New file.  Contents mostly from xstat.in.
87383         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87384         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87385
87386         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87387         too.
87388         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87389
87390 2002-12-03  Jim Meyering  <jim@meyering.net>
87391
87392         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87393         but not semantics, to minimize the differences between these two files.
87394         (safe_read): Change comment to mention SAFE_READ_ERROR.
87395
87396         * lib/safe-read.c (IS_EINTR): Define.
87397         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87398
87399 2002-12-02  Jim Meyering  <jim@meyering.net>
87400
87401         * lib/safe-read.c (EINTR): Define.
87402         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87403         (INT_MAX): Provide fallback.
87404         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87405
87406         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87407
87408 2002-12-02  Bruno Haible  <bruno@clisp.org>
87409
87410         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87411         Define, taken from safe-read.c.
87412         (INT_MAX): Provide fallback.
87413         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87414         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87415
87416         * lib/safe-read.c (EINTR): Remove definition.
87417         (safe_read): Don't use EINTR if it is absent.
87418
87419 2002-12-01  Jim Meyering  <jim@meyering.net>
87420
87421         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87422         zero.
87423         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87424
87425 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87426
87427         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87428         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87429         with `if (! (value < limit)) abort ();', for readability.
87430
87431 2002-11-26  Karl Berry  <karl@gnu.org>
87432
87433         * lib/strdup.c: copy from libc again, with jim's ok.
87434         * lib/.cppi-disable: re-add strdup.c
87435
87436 2002-11-25  Karl Berry  <karl@gnu.org>
87437
87438         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87439         instead of "strtol.c".
87440
87441 2002-11-25  Karl Berry  <karl@gnu.org>
87442
87443         * config/install-sh: update from automake for variable quoting, $0 in
87444         error msgs, etc.
87445
87446         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87447         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87448         entry.
87449
87450 2002-11-25  Jim Meyering  <jim@meyering.net>
87451
87452         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87453
87454 2002-11-24  Karl Berry  <karl@gnu.org>
87455
87456         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87457         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87458
87459 2002-11-24  Jim Meyering  <jim@meyering.net>
87460
87461         Update from coreutils:
87462
87463         * lib/mktime.c: Merge in changes from libc.
87464
87465         Avoid a link-time failure on some Linux systems.
87466         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87467         (otherwise).
87468         (__mon_yday): Declare with the STATIC attribute.
87469         (__mktime_internal): Likewise.
87470         Based on a report from Greg Schafer.
87471
87472 2002-11-23  Jim Meyering  <jim@meyering.net>
87473
87474         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87475         Use `unsigned', not `int', as type of index.
87476
87477         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87478
87479         * lib/fsusage.c: Remove unneeded parentheses around operands of
87480         `defined'.
87481
87482 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87483
87484         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87485         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87486         so that we can be included first.
87487         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87488         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87489         No need to include stddef.h or sys/types.h any more.
87490         Surround local include files with "", not "<>".
87491         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87492         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87493         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87494         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87495         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87496         (ISPRINT): Remove; no longer needed now that we assume C89.
87497
87498         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87499         Preserve errno.
87500
87501         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87502         quotearg_char): Use SIZE_MAX rather than
87503         (size_t) -1 when we are talking about "infinity".
87504
87505         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87506
87507 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87508
87509         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87510         hint that one should use `if (! x) abort ();' rather than `assert
87511         (x);', and anyway it's one less thing to worry about configuring.
87512         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87513         hash_rehash, hash_insert): Use abort rather than assert.
87514
87515 2002-11-22  Bruno Haible  <bruno@clisp.org>
87516
87517         * lib/safe-read.h: Assume C89. Add comments.
87518         (safe_read): Change return type to size_t.
87519         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87520         byte counts > SSIZE_MAX correctly.
87521         * lib/safe-write.h: New file.
87522         * lib/safe-write.c: New file.
87523         * lib/full-read.h: New file.
87524         * lib/full-read.c: New file.
87525         * lib/full-write.h: Assume C89. Add comments.
87526         * lib/full-write.c: Include safe-write.h.
87527         (full_write): Rewritten to use safe_write.
87528         Suggested by Jim Meyering and Paul Eggert.
87529
87530 2002-11-21  Jim Meyering  <jim@meyering.net>
87531
87532         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87533
87534         Merge in changes from the coreutils.
87535
87536         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87537         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87538         <stdint.h>.
87539         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87540         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87541         int.  Work more efficiently if X is the same width as uintmax_t.
87542         Do not compare X to -1, to avoid bogus compiler warning.
87543         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87544         Don't assume that f_frsize and f_bsize are the same type.
87545
87546         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87547         warning on FreeBSD.
87548
87549         * lib/makepath.c (make_path): Restore umask *before* creating the final
87550         component.
87551         (make_path): Minor reformatting.
87552
87553         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87554         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87555         HAVE_MALLOC/HAVE_REALLOC.
87556
87557         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87558         dummy ones.  At least on GNU/Linux systems, `auto' means something
87559         else.
87560         From Michael Stone.
87561
87562 2002-11-21  Bruno Haible  <bruno@clisp.org>
87563
87564         Remove case insensitive option matching.
87565         * lib/argmatch.h (argcasematch): Remove declaration.
87566         (ARGCASEMATCH): Remove macro.
87567         (__xargmatch_internal): Remove case_sensitive argument.
87568         (XARGMATCH): Update.
87569         (XARGCASEMATCH): Remove macro.
87570         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87571         case_sensitive argument.
87572         (argcasematch): Remove function.
87573         (__xargmatch_internal): Remove case_sensitive argument.
87574         (main): Use XARGMATCH instead of XARGCASEMATCH.
87575
87576         * lib/xmalloc.c: Change compile-time error message. Add comment about
87577         required autoconf version.
87578
87579 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87580
87581         Merge argmatch cleanups from Bison.  Assume C89.
87582
87583         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87584         Include stdlib.h, for EXIT_FAILURE.
87585         Always include <string.h>, since we assume C89.
87586         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87587         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87588         Include <stddef.h> instead, since it's all we need for size_t.
87589         (PARAMS): Remove.  All uses removed.
87590         (ARRAY_CARDINALITY): Do not bother to #undef.
87591         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87592         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87593         Remove unnecessary parentheses.
87594         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87595         Insert necessary parentheses.
87596         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87597         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87598
87599 2002-11-19  Bruno Haible  <bruno@clisp.org>
87600
87601         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87602         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87603
87604         * lib/mbswidth.h (PARAMS): Remove macro.
87605         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87606         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87607
87608         * lib/gcd.h (PARAMS): Remove macro.
87609         (gcd): Use ANSI C function declarations.
87610         * lib/gcd.c (gcd): Likewise.
87611
87612 2002-11-15  Bruno Haible  <bruno@clisp.org>
87613
87614         * lib/strcspn.c: Include <stddef.h>.
87615         (strcspn): Use ANSI C function declaration. Change return type to
87616         size_t. Use NULL.
87617         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87618         (strpbrk): Use NULL.
87619         * lib/strpbrk.h (PARAMS): Remove macro.
87620         (strpbrk): Use ANSI C function declaration.
87621         * lib/strstr.c: Don't include <sys/types.h>.
87622         * lib/strstr.h (PARAMS): Remove macro.
87623         (strstr): Use ANSI C function declarations.
87624
87625 2002-11-14  Karl Berry  <karl@gnu.org>
87626
87627         * config/mkinstalldirs: `do' on separate line, instead of
87628         `for var; do'.
87629
87630 2002-11-06  Bruno Haible  <bruno@clisp.org>
87631
87632         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87633         * lib/gcd.c (gcd): Likewise.
87634
87635 2002-11-05  Bruno Haible  <bruno@clisp.org>
87636
87637         * lib/gcd.h: New file, from gettext-0.11.5.
87638         * lib/gcd.c: New file, from gettext-0.11.5.
87639
87640 2002-11-05  Bruno Haible  <bruno@clisp.org>
87641
87642         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87643         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87644         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87645         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87646
87647         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87648         <libintl.h>.
87649         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87650         <libintl.h>.
87651
87652         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87653         * lib/human.c: Include gettext.h instead of <libintl.h>.
87654         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87655         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87656         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87657         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87658         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87659         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87660         (textdomain): Remove definition.
87661         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87662
87663         * lib/long-options.c: Remove include of <libintl.h> and definition of
87664         _.
87665         * lib/same.c: Remove include of <libintl.h> and definition of _.
87666
87667 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87668
87669         * lib/config.charset: A few additions for Solaris.
87670
87671 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87672
87673         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87674         * lib/localcharset.c (locale_charset): Declare as extern "C".
87675
87676 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87677
87678         * lib/config.charset: msdos in uk_UA uses CP1125.
87679
87680 2002-11-04  Bruno Haible  <bruno@clisp.org>
87681
87682         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87683         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87684         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87685         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87686         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87687
87688 2002-11-04  Bruno Haible  <bruno@clisp.org>
87689
87690         * lib/localcharset.c (locale_charset): Don't return an empty string.
87691
87692 2002-11-04  Bruno Haible  <bruno@clisp.org>
87693
87694         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87695         aliases.
87696
87697 2002-11-04  Bruno Haible  <bruno@clisp.org>
87698
87699         * lib/config.charset: Update for newest glibc. Add canonical names
87700         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87701
87702 2002-11-04  Bruno Haible  <bruno@clisp.org>
87703
87704         * lib/config.charset: Add support for NetBSD.
87705
87706 2002-11-04  Bruno Haible  <bruno@clisp.org>
87707
87708         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87709
87710 2002-11-01  Bruno Haible  <bruno@clisp.org>
87711
87712         * configure.in: Add AC_CONFIG_AUX_DIR call.
87713         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87714         test/Makefile.
87715         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87716
87717 2002-09-28  Karl Berry  <karl@gnu.org>
87718
87719         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87720         installed automake until the next release, since changes have been
87721         made.
87722
87723 2002-09-25  Karl Berry  <karl@gnu.org>
87724
87725         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87726         * lib/getopt*: copy from libc/posix.
87727         * lib/gettext.h: copy from gettext.
87728         * lib/.cppi-disable: add strdup.c, gettext.h.
87729
87730 2002-09-25  Karl Berry  <karl@gnu.org>
87731
87732         * config/srclist.txt: enable gettext.h check.
87733         * config/config.{guess,sub}: update from prep.
87734         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87735                 from automake 1.6.3.
87736         See srclist*.
87737
87738 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87739
87740         * regex.c (PATFETCH): Remove the translating fetch.
87741         (PATFETCH_RAW): Rename to PATFETCH.
87742         (set_image_of_range): New fun.
87743         (SET_RANGE_TABLE_WORK_AREA): Use it.
87744         (regex_compile): Don't translate the pattern chars so eagerly.
87745         Only do it when inserting an `exactn' bytecode or when handling
87746         a char-range.
87747         (mutually_exclusive_p): Avoid empty statement.
87748
87749 2002-07-06  Jim Meyering  <meyering@lucent.com>
87750
87751         * m4/README: Don't mention Makefile.am.in.
87752         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87753
87754 2002-07-01  Jim Meyering  <meyering@lucent.com>
87755
87756         * lib/c-stack.c: Include sys/time.h.
87757         From Volker Borchert.
87758
87759 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87760
87761         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87762
87763 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87764
87765         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87766         New macro.  Use it uniformly instead of
87767         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87768         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87769         reported by Vin Shelton.
87770
87771 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87772
87773         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87774         Do not assume SA_SIGINFO behavior.
87775         Bug reported by Jim Meyering on NetBSD 1.5.2.
87776
87777 2002-06-22  Jim Meyering  <meyering@lucent.com>
87778
87779         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87781
87782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87783         now that configure.ac uses AC_GNU_SOURCE.
87784         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87785         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87786
87787         Update to latest tools.  Suggestions from Paul Eggert.
87788         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87789         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87790         * m4/fnmatch.m4: Likewise.
87791         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87792         to AC_HEADER_STDBOOL
87793
87794 2002-06-22  Jim Meyering  <meyering@lucent.com>
87795
87796         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87797         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87798
87799 2002-06-22  Jim Meyering  <meyering@lucent.com>
87800
87801         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87802
87803         * lib/exitfail.c, exitfail.h: Likewise.
87804         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87805
87806         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87807         of fnmatch.h.
87808         (EXTRA_DIST): Add fnmatch_loop.c.
87809         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87810
87811         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87812         * lib/fnmatch.c: Update from diffutils-2.8.2.
87813         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87814         * lib/fnmatch.h: Remove file.
87815
87816 2002-06-21  Jim Meyering  <meyering@lucent.com>
87817
87818         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87819         * m4/mbrtowc.m4: Likewise.
87820
87821         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87822         * m4/mbswidth.m4: Reflect name change:
87823         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87824         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87825
87826         * m4/lib-link.m4: Update from gettext-0.11.2.
87827         * m4/gettext.m4: Likewise.
87828
87829         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87830         From Alfred M. Szmidt.
87831
87832 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87833
87834         * lib/file-type.h: Report an error if neither S_ISREG nor
87835         S_IFREG is defined, instead of using a test specific to glibc
87836         2.2.  This should be safe, since POSIX requires S_ISREG and
87837         Unix Version 7 had S_IFREG.  We don't need to check for
87838         <sys/types.h> since we don't use any symbols that it defines.
87839
87840 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87841
87842         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87843         $@-t, so that each temporary file name is unique and valid in the first
87844         8 characters, for operation under DOS.
87845
87846 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87847
87848         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87849
87850 2002-06-15  Jim Meyering  <meyering@lucent.com>
87851
87852         Work even with DJGPP 2.03, which lacks support for symlinks.
87853         From Richard Dawe.
87854         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87855         is defined.
87856         * lib/lchown.c (S_ISLNK): Likewise.
87857
87858 2002-06-15  Jim Meyering  <meyering@lucent.com>
87859
87860         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87861         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87862         have been included before this file.
87863
87864 2002-06-14  Jim Meyering  <meyering@lucent.com>
87865
87866         * lib/file-type.h: Use the version from diffutils-2.8.2.
87867         * lib/file-type.c: Likewise.
87868
87869 2002-06-07  Jim Meyering  <meyering@lucent.com>
87870
87871         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87872         They're needed at least for NetBSD 1.5.2.
87873         ($statxfs_includes): Include those same headers.
87874         ($statxfs_includes): Include sys/vfs.h if available.
87875         ($statxfs_includes): Likewise for sys/statvfs.h.
87876         Check for the following members in both structs statfs and statvfs:
87877         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87878
87879 2002-06-01  Jim Meyering  <meyering@lucent.com>
87880
87881         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87882         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87883
87884 2002-05-28  Jim Meyering  <meyering@lucent.com>
87885
87886         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87887         Reported by Volker Borchert.
87888
87889 2002-05-27  Jim Meyering  <meyering@lucent.com>
87890
87891         Fix a problem seen only on nonconforming systems whereby ls.c's
87892         use of localtime, and then of gettimeofday would cause trouble:
87893         the localtime call used to initialize rpl_gettimeofday's save
87894         mechanism would clobber ls's current local time information so
87895         that in any long listing the first file would always be listed
87896         with date 1970-01-01.  Analysis by Volker Borchert.
87897
87898         * lib/gettimeofday.c (localtime): Undefine.
87899         (rpl_localtime): New function.
87900
87901 2002-05-27  Jim Meyering  <meyering@lucent.com>
87902
87903         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87904         localtime.
87905
87906         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87907         use the replacement function; it wouldn't resolve at link time.
87908         Reported by Volker Borchert.
87909
87910 2002-05-22  Jim Meyering  <meyering@lucent.com>
87911
87912         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87913         file-type.h.
87914         * lib/file-type.h: New file.
87915         * lib/file-type.c (file_type): New file/function.  Extracted from
87916         diffutils.
87917
87918 2002-04-30  Jim Meyering  <meyering@lucent.com>
87919
87920         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87921
87922 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87923
87924         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87925
87926 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87927
87928         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87929         Do not check for alloca.h (no longer used) or stdbool.h (was never
87930         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87931
87932 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87933
87934         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87935
87936 2002-04-29  Jim Meyering  <meyering@lucent.com>
87937
87938         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87939         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87940         Use AC_FUNC_STRNLEN here instead.
87941
87942         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87943         With autoconf-2.53a, it's part of AC_PROG_CC.
87944
87945 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87946
87947         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87948         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87949
87950 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87951
87952         * lib/sig2str.h, lib/sig2str.c: New files.
87953         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87954
87955 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87956
87957         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87958         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87959         of 127, since 64 is the largest conceivable number for ancient
87960         nonstandard hosts.
87961         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87962
87963 2002-04-28  Jim Meyering  <meyering@lucent.com>
87964
87965         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87966
87967 2002-04-24  Jim Meyering  <meyering@lucent.com>
87968
87969         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87970         (jm_PREREQ): Use it.
87971
87972         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87973         mach/mach.h fcntl.h.
87974         Check for this function: setlocale.
87975
87976 2002-04-24  Jim Meyering  <meyering@lucent.com>
87977
87978         * lib/gettext.h: New file, from Gettext.
87979         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87980         (libfetish_a_SOURCES): Add gettext.h.
87981
87982 2002-04-16  Jim Meyering  <meyering@lucent.com>
87983
87984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87985         ut_pid, ut_id, ut_exit.
87986
87987 2002-04-16  Jim Meyering  <meyering@lucent.com>
87988
87989         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87990         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87991         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87992
87993 2002-04-12  Jim Meyering  <meyering@lucent.com>
87994
87995         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87996         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87997         existence of the getmntinfo function.  Needed for Darwin 5.3.
87998
87999         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88000         This is necessary at least on Darwin 5.3.
88001
88002         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88003         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88004         strnlen.o in the library, and that makes some versions of ranlib
88005         object.
88006
88007 2002-04-12  Jim Meyering  <meyering@lucent.com>
88008
88009         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88010
88011 2002-04-09  Jim Meyering  <meyering@lucent.com>
88012
88013         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88014         to be more precise.  Rather than saying we're checking whether the
88015         function `works', say what we're testing.
88016         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88017         Reported by Bruno Haible.
88018
88019 2002-03-10  Jim Meyering  <meyering@lucent.com>
88020
88021         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88022         Suggestion from Santiago Vila.
88023
88024 2002-03-08  Jim Meyering  <meyering@lucent.com>
88025
88026         * lib/rename.c: Mention that this wrapper is needed also on
88027         mips-dec-ultrix4.4 systems.
88028
88029 2002-03-02  Jim Meyering  <meyering@lucent.com>
88030
88031         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88032         not HAVE_CLOCK_SETTIME.
88033
88034 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88035
88036         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88037         Check for clock_settime.
88038
88039 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88040
88041         * lib/nanosleep.h: Rename to....
88042         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88043
88044         * lib/gettime.c: New file.
88045         * lib/settime.c: New file.
88046         * lib/stime.c: Remove.
88047
88048         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88049         timespec.h.  Remove nanosleep.h.
88050
88051 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88052
88053         * m4/acl.m4: New file.
88054         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88055         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88056
88057 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88058
88059         * lib/acl.c, lib/acl.h: New files.
88060         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88061
88062 2002-02-24  Jim Meyering  <meyering@lucent.com>
88063
88064         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88065         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88066         cause trouble.  Reported by Nelson Beebe.
88067
88068 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88069
88070         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88071         compilers that don't know that xalloc_die never returns.
88072
88073 2002-02-20  Jim Meyering  <meyering@lucent.com>
88074
88075         * lib/getdate.c: Regenerate using bison-1.33.
88076
88077 2002-02-17  Jim Meyering  <meyering@lucent.com>
88078
88079         * config/config.guess (main): Don't use `head -1'; it's no longer
88080         portable. Use `sed 1q' instead.
88081
88082 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88083
88084         * m4/codeset.m4: Upgrade to gettext-0.11.
88085         * m4/gettext.m4: Upgrade to gettext-0.11.
88086         * m4/glibc21.m4: Upgrade to gettext-0.11.
88087         * m4/iconv.m4: Upgrade to gettext-0.11.
88088         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88089         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88090         * m4/lib-ld.m4: New file, from gettext-0.11.
88091         * m4/lib-link.m4: New file, from gettext-0.11.
88092         * m4/lib-prefix.m4: New file, from gettext-0.11.
88093         * m4/progtest.m4: Upgrade to gettext-0.11.
88094
88095 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88096
88097         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88098         (jm_PREREQ): Use it.
88099
88100 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88101
88102         * lib/posixver.c, lib/posixver.h: New files.
88103         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88104
88105 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88106             Bruno Haible  <bruno@clisp.org>
88107
88108         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88109         (fwrite_success_callback): New declaration.
88110         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88111         print_unicode_char. Call failure callback instead of error.
88112         (fwrite_success_callback): New function.
88113         (exit_failure_callback): New function.
88114         (fallback_failure_callback): New function.
88115         (print_unicode_char): Call unicode_to_mb.
88116
88117 2002-01-26  Jim Meyering  <meyering@lucent.com>
88118
88119         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88120         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88121
88122 2002-01-26  Jim Meyering  <meyering@lucent.com>
88123
88124         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88125
88126 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88127
88128         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88129
88130 2002-01-22  Jim Meyering  <meyering@lucent.com>
88131
88132         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88133         Otherwise, some versions of automake would omit the rule that makes
88134         Makefile from Makefile.in.
88135
88136 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88137
88138         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88139         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88140         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88141         (memcoll): Set errno to zero if there is no error.
88142
88143         * lib/quotearg.c (quotearg_buffer_restyled):
88144         Fix bug with quoting buffers containing NUL when backslashing escapes.
88145         This bug was exposed by the other changes in this patch.
88146         (quotearg_n_options): New arg ARGSIZE.
88147         All callers changed.
88148         (quoting_options_from_style): New function.
88149         (quotearg_n_style): Use it.
88150         (quotearg_n_style_mem): New function.
88151
88152         * lib/quotearg.h (quotearg_n_style_mem): New function.
88153
88154 2002-01-19  Jim Meyering  <meyering@lucent.com>
88155
88156         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88157         Remove useless quotes: DF_PROG="df".
88158         * m4/strnlen.m4: New file.
88159
88160 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88161
88162         * lib/backupfile.c (ISDIGIT): Comment fix.
88163         * lib/getdate.y (ISDIGIT): Likewise.
88164         * lib/posixtm.c (ISDIGIT, year): Likewise.
88165         * lib/strverscmp.c (ISDIGIT): Likewise.
88166         * lib/userspec.c (ISDIGIT): Likewise.
88167
88168 2002-01-16  Jim Meyering  <meyering@lucent.com>
88169
88170         * lib/getdate.y: Add three semicolons, each just before a closing
88171         brace. Bison (as of version 1.31) no longer papers over that mistake.
88172
88173 2002-01-05  Jim Meyering  <meyering@lucent.com>
88174
88175         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88176
88177 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88178
88179         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88180         not silently exit merely because the output buffer happens to
88181         have nothing pending.
88182
88183 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88184
88185         See the big note in ../ChangeLog.
88186         * lib/human.c (suffixes): Prefer K to k for 1024.
88187         (generate_suffix_backwards): New function.
88188         (human_readable_inexact): Use it.
88189         * lib/xstrtol.c (__xstrtol): If there is no number but there
88190         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88191         Accept 'K' as well as 'k'.
88192
88193 2001-12-15  Jim Meyering  <meyering@lucent.com>
88194
88195         * lib/regex.h (__restrict_arr): Update from libc.
88196
88197         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88198         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88199         (STREQ): Define.
88200
88201 2001-12-14  Jim Meyering  <meyering@lucent.com>
88202
88203         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88204         Suggestion from Bruno Haible.
88205
88206 2001-12-10  Jim Meyering  <meyering@lucent.com>
88207
88208         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88209         xrealloc, Instead, include "xalloc.h".
88210         (initbuffer): Don't cast xmalloc return value to char*.
88211         (readline): Reword comment.
88212         Don't cast xrealloc return value to char*
88213         Return NULL, not 0.
88214
88215 2001-12-09  Jim Meyering  <meyering@lucent.com>
88216
88217         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88218         about `signed and unsigned type in conditional expression'.
88219         * lib/posixtm.c (posix_time_parse): Likewise.
88220
88221         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88222
88223         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88224         to avoid a pedantic warning.
88225
88226         * lib/getstr.c: Don't include assert.h.
88227         (getstr): Remove warning-evoking assertions.
88228         Return -1 if offset parameter is out of bounds.
88229         Change the type of a local from int to size_t.
88230
88231         * lib/strftime.c (my_strftime_localtime_r): Include this function
88232         definition in the `#if ! HAVE_TM_GMTOFF' block.
88233
88234         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88235         Include xalloc.h instead.
88236
88237 2001-12-02  Jim Meyering  <meyering@lucent.com>
88238
88239         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88240         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88241         included.
88242
88243         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88244         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88245
88246 2001-11-30  Akim Demaille  <akim@epita.fr>
88247
88248         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88249         before being defined.
88250
88251 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88252
88253         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88254         First arg is int, not unsigned.
88255         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88256         (SIZE_MAX, UINT_MAX): New macros.
88257         (quotearg_n_options): Abort if N is negative.
88258         Avoid overflow check on hosts where size_t is 64 bits and int
88259         is 32 bits, as overflow is impossible there.
88260         Fix off-by-one typo that caused unnecessary reallocation.
88261
88262 2001-11-27  Jim Meyering  <meyering@lucent.com>
88263
88264         * lib/tempname.c: Merge with version from libc.
88265         * lib/regex.c: Likewise.
88266
88267         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88268         systems for which STDC_HEADERS is 0, it was not included, resulting in
88269         a warning about an integer-to-pointer conversion problem with getenv.
88270         Reported by Volker Borchert.
88271
88272 2001-11-26  Jim Meyering  <meyering@lucent.com>
88273
88274         * lib/gtod.h: Remove file.
88275         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88276         * lib/gettimeofday.c: Don't include gtod.h.
88277         (GTOD_init): Remove function.
88278         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88279         Suggestion from Volker Borchert.
88280
88281 2001-11-23  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88284         it.
88285         * lib/hash.c (struct hash_table): Define it here instead.
88286
88287 2001-11-22  Jim Meyering  <meyering@lucent.com>
88288
88289         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88290
88291 2001-11-20  Jim Meyering  <meyering@lucent.com>
88292
88293         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88294         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88295
88296 2001-11-19  Jim Meyering  <meyering@lucent.com>
88297
88298         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88299         directory.  Use "conftestXXXXXX" as the template.
88300         Suggestion from Paul Eggert.
88301
88302         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88303         immediately, so the test doesn't mistakenly hit the max-open-files
88304         limit.
88305
88306 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88307
88308         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88309         (TEMPORARIES): New macro.
88310         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88311         removes an artificial limitation (e.g. HP-UX 10.20, where
88312         TMP_MAX is 17576).
88313
88314 2001-11-18  Jim Meyering  <meyering@lucent.com>
88315
88316         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88317
88318 2001-11-18  Jim Meyering  <meyering@lucent.com>
88319
88320         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88321         on SunOS 4.
88322
88323         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88324         files will be created before anything else.
88325
88326 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88327
88328         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88329         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88330
88331 2001-11-17  Jim Meyering  <meyering@lucent.com>
88332
88333         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88334         Prompted by a report from Bob Proulx.
88335
88336         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88337         Instead, require UTILS_FUNC_MKSTEMP.
88338
88339 2001-11-17  Jim Meyering  <meyering@lucent.com>
88340
88341         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88342         Now, that's done as part of AC_FUNC_STRTOD.
88343
88344 2001-11-17  Jim Meyering  <meyering@lucent.com>
88345
88346         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88347         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88348         rather than group writable.  Patch by Juan F. Codagnone.
88349
88350         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88351         xrealloc, Instead, include "xalloc.h".
88352
88353         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88354         Remove explicit declarations of xmalloc, xrealloc,
88355         and xstrdup.  Instead, include "xalloc.h".
88356
88357         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88358         unlocked-io.h.
88359         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88360         Likewise.
88361         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88362
88363         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88364         Reported by Padraig Brady.
88365
88366         * lib/mkstemp.c: #undef mkstemp.
88367         Include config.h.
88368         (rpl_mkstemp): Rename from mkstemp.
88369         Protoize.
88370
88371 2001-11-16  Jim Meyering  <meyering@lucent.com>
88372
88373         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88374         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88375         determine the amount of total physical memory, use pstat_getstatic.
88376         HPUX-11 doesn't define _SC_PHYS_PAGES.
88377         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88378         If sysconf couldn't be used to determine the amount of available
88379         physical memory, use both pstat_getstatic and pstat_getdynamic.
88380         Based on a patch from Bob Proulx.
88381
88382 2001-11-10  Jim Meyering  <meyering@lucent.com>
88383
88384         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88385         (jm_PREREQ): Use it.
88386
88387 2001-11-09  Jim Meyering  <meyering@lucent.com>
88388
88389         * m4/jm-macros.m4: Require autoconf-2.52f.
88390         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88391         Use these AC_-prefixed names, not the AM_-prefixed ones.
88392
88393         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88394
88395 2001-11-05  Jim Meyering  <meyering@lucent.com>
88396
88397         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88398
88399 2001-11-04  Jim Meyering  <meyering@lucent.com>
88400
88401         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88402         $DEFS.
88403
88404 2001-11-03  Jim Meyering  <meyering@lucent.com>
88405
88406         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88407         of AC_DEFUN.
88408
88409         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88410         know the name of the variable in the macro definition.
88411
88412 2001-11-03  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88415         in argmatch_to_argument call.
88416
88417         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88418         argument.
88419
88420         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88421         e.g., a fault due to an attempt to free a NULL pointer.
88422
88423 2001-11-01  Jim Meyering  <meyering@lucent.com>
88424
88425         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88426         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88427
88428 2001-11-01  Jim Meyering  <meyering@lucent.com>
88429
88430         * lib/dirfd.c, lib/dirfd.h: New files.
88431         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88432
88433         * lib/hash.c (hash_print) [TESTING]: Clean up.
88434
88435 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88436
88437         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88438         to avoid a warning if -Wall.
88439
88440 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88441
88442         * README: New file
88443         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88444         (per RMS's instructions, this is now the canonical source)
88445         * lgpl/, gpl/: New directories.
88446
88447 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88448
88449         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88450
88451 2001-10-21  Jim Meyering  <meyering@lucent.com>
88452
88453         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88454         this code would end up calling gettext even in packages built
88455         with --disable-nls.
88456         * lib/getopt.c (_): Likewise.
88457         * lib/regex.c (_): Likewise.
88458
88459 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88460
88461         * m4/error.m4 (jm_PREREQ_ERROR):
88462         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88463         AC_FUNC_STRERROR_R does that.
88464         Check for strerror declaration.
88465
88466         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88467         are supposed to have them these days.
88468         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88469         Merge changes from latest Autoconf CVS.
88470         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88471         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88472         POSIX decided to standardize on the int flavor of strerror_r.
88473
88474 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88475
88476         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88477         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88478         Use strerror_r that is only a macro, even if it is not a function.
88479         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88480         (private_strerror): Use prototypes, not old-style function definition.
88481         (print_errno_message): New function.
88482         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88483         char*-flavored one.
88484         (error_tail, error, error_at_line): Use it.
88485
88486 2001-10-11  Jim Meyering  <meyering@lucent.com>
88487
88488         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88489         and quote_n (1, ... to avoid clobbering a buffer.
88490
88491 2001-10-05  Jim Meyering  <meyering@lucent.com>
88492
88493         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88494         hash-pjw.h.
88495         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88496         * lib/hash-pjw.h: New file.
88497
88498 2001-09-30  Jim Meyering  <meyering@lucent.com>
88499
88500         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88501         `struct fsstat' has the `f_fstypename' member.
88502         Use that to define FS_TYPE, which is now used to make
88503         the getfsstat link test tighter.
88504
88505 2001-09-30  Jim Meyering  <meyering@lucent.com>
88506
88507         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88508         Include <sys/ucred.h>, for Apple Darwin.
88509         Include sys/mount.h and sys/fs_types.h only if available.
88510         (FS_TYPE): Define.
88511         (read_filesystem_list): Use FS_TYPE.
88512
88513 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88514
88515         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88516         a boolean context.
88517
88518 2001-09-29  Jim Meyering  <meyering@lucent.com>
88519
88520         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88521         [one-argument getmntent function]): Include stdio.h before mntent.h.
88522         SunOS 4.1.x needs it for the declaration of `FILE'.
88523         Patch by Volker Borchert.
88524
88525         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88526         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88527         sys/fs_types.h, and make the link-test for getfsstat guard #include
88528         directives with appropriate #if HAVE_*_H tests so that we can
88529         detect getfsstat on Apple Darwin1.3.7 systems.
88530         Reported by Nelson Beebe.
88531         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88532
88533 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88534
88535         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88536         #defines strtoimax.  Also treat the other strto* functions
88537         like strtoimax.
88538
88539         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88540         Check for strtoul and strtoumax,
88541         as those declarations are made even in the signed case.
88542         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88543         Likewise, for strtol and strtoimax.
88544
88545 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88546
88547         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88548         #defines strtoimax.  Also treat the other strto* functions
88549         like strtoimax.
88550
88551         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88552         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88553         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88554
88555 2001-09-26  Jim Meyering  <meyering@lucent.com>
88556
88557         Most macros in unlocked-io.h had the wrong number of arguments.
88558         * lib/gen-uio: New script.
88559         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88560         * lib/unlocked-io.hin: Remove file.
88561         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88562         rather than trying to embed it here.
88563         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88564         Reported by Padraig Brady.
88565
88566 2001-09-25  Volker Borchert  <bt@teknon.de>
88567
88568         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88569         `result'.
88570
88571 2001-09-24  Jim Meyering  <meyering@lucent.com>
88572
88573         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88574
88575 2001-09-23  Jim Meyering  <meyering@lucent.com>
88576
88577         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88578         instead of the mere test for existence of mntent.h.  The latter
88579         would get a false-positive on AIX 3.4 systems.
88580         In the outer getmntent if-block, don't die if neither of the getmntent
88581         tests succeeds.  Instead, just fall through and continue with the
88582         remaining tests.
88583
88584 2001-09-23  Jim Meyering  <meyering@lucent.com>
88585
88586         * lib/mountlist.c: Remove useless parentheses in #if directives.
88587         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88588         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88589
88590 2001-09-22  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/gettext.m4: New file.  From gettext.
88593         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88594         * m4/progtest.m4: Likewise
88595         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88596         * m4/glibc21.m4: Likewise.
88597
88598         * m4/libintl.m4: Remove.  No longer used.
88599
88600 2001-09-22  Jim Meyering  <meyering@lucent.com>
88601
88602         * lib/localcharset.c: Update from latest gettext.
88603         * lib/config.charset: Likewise.
88604
88605 2001-09-20  Jim Meyering  <meyering@lucent.com>
88606
88607         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88608         strtoimax.
88609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88610         strtoumax.
88611
88612 2001-09-20  Jim Meyering  <meyering@lucent.com>
88613
88614         * lib/xstrtol.c (strtoimax): Guard declaration with
88615         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88616         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88617         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88618         (strtoumax): Likewise, for completeness (it wasn't necessary).
88619
88620 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88621
88622         * lib/strtoimax.c (HAVE_LONG_LONG):
88623         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88624         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88625         to work around bug in IBM C compiler.
88626
88627 2001-09-17  Jim Meyering  <meyering@lucent.com>
88628
88629         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88630         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88631         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88632         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88633         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88634         whenever the right hand side need not be expanded by the shell.
88635
88636 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88637
88638         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88639         library.  It's not correct, as some older glibcs are buggy.
88640         fnmatch wasn't fixed until glibc 2.2.
88641
88642         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88643         special shell magic here.
88644
88645 2001-09-16  Jim Meyering  <meyering@lucent.com>
88646
88647         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88648         * m4/jm-macros.m4: Require it.
88649
88650 2001-09-16  Jim Meyering  <meyering@lucent.com>
88651
88652         * lib/mkdir.c: New file.
88653
88654 2001-09-15  Jim Meyering  <meyering@lucent.com>
88655
88656         * m4/jm-macros.m4: Check for help2man.
88657
88658 2001-09-11  Jim Meyering  <meyering@lucent.com>
88659
88660         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88661         The body, by Paul Eggert, was moved here from configure.in.
88662         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88663
88664 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88665
88666         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88667         (jm_PREREQ): Use it.
88668
88669 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88670
88671         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88672         Use ssize_t, not int, to store result of readlink.
88673         Check for ssize_t overflow as well as size_t overflow,
88674         as POSIX says the result of readlink is implementation-defined
88675         when ssize_t overflows.
88676         Remove unnecessary cast to char*.
88677         Use free+malloc instead of realloc, as the storage doesn't need
88678         to be preserved and it's clearer and can be more efficient that way.
88679         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88680         * lib/xreadlink.h (xreadlink): Update prototype.
88681
88682 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88683
88684         * lib/xgetcwd.c: Revert some of the previous change; intead,
88685         fix the HAVE_GETCWD_NULL code to behave more like the
88686         !HAVE_GETCWD_NULL code used to.
88687
88688         Include "xalloc.h".
88689         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88690         invoke xalloc_die.
88691
88692 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88693
88694         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88695         sys/param.h, as pathmax.h includes them.
88696
88697 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88698
88699         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88700         (jm_PREREQ_XGETCWD): New macro.
88701
88702         * m4/getcwd.m4: New file.
88703
88704 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88705
88706         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88707         like the HAVE_GETCWD_NULL code.
88708         Include pathmax.h if not HAVE_GETCWD.
88709         Do not include xalloc.h.
88710         (INITIAL_BUFFER_SIZE): New symbol.
88711         Do not use xmalloc / xrealloc, since the caller is responsible for
88712         handling errors.  Preserve errno around `free' during failure.
88713         Do not overrun buffer when using getwd.
88714
88715 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88716
88717         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88718         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88719         getcwd (NULL, 0).
88720
88721 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88722
88723         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88724         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88725         spotted by Jim Meyering.
88726
88727 2001-09-03  Jim Meyering  <meyering@lucent.com>
88728
88729         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88730         failure.
88731
88732 2001-09-02  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/error.c: Update from GNU libc.
88735
88736 2001-09-01  Jim Meyering  <meyering@lucent.com>
88737
88738         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88739         Used by df.
88740
88741 2001-09-01  Jim Meyering  <meyering@lucent.com>
88742
88743         * lib/xreadlink.c: New file.
88744         * lib/xreadlink.h: New file.
88745         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88746         xreadlink.h.
88747
88748         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88749         doesn't conflict with sparc Solaris 7's definition in
88750         /usr/include/sys/int_types.h.
88751
88752         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88753         files.
88754         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88755         and strncasecmp as r-values.  Unixware didn't have declarations.
88756
88757 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88758
88759         * lib/xstrtol.h: Add copyright notice.
88760         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88761         LONGINT_INVALID_SUFFIX_CHAR.
88762
88763 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88764
88765         * lib/xstrtol.c (strtoimax): New decl.
88766
88767 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88768
88769         * lib/xgetcwd.c: Don't include pathmax.h.
88770         Include stdlib.h and unistd.h if available.
88771         Include xalloc.h.
88772         (xmalloc, xstrdup, free): Remove decls.
88773         (xgetcwd): Don't assume sizes fit in unsigned.
88774         Check for overflow when computing sizes.
88775         Simplify reallocation code.
88776
88777 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88778
88779         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88780         a directory's st_size can have an arbitrary value, so the old
88781         usage could waste an arbitrary amount of memory.  All uses
88782         changed.
88783         * lib/savedir.h: Update prototype.
88784
88785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88786
88787         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88788
88789         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88790         old strtoimax.c.
88791
88792         Also, make the following further changes to make this file's
88793         configuration more similar to that of strtol.c:
88794         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88795         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88796         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88797         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88798         changed to signed values.
88799
88800         And make the following changes as well:
88801         Fix copyright notice, as 1999 was missing.
88802         (verify): New macro.
88803         (strtoimax): Check sizes at compile-time, not run-time.
88804         Prefer strtol to strtoll if both work.
88805         (main): Remove; it was not that useful and was a pain to maintain.
88806
88807         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88808
88809 2001-08-31  Jim Meyering  <meyering@lucent.com>
88810
88811         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88812         Use an initial, malloc'd, buffer of length 128 rather than
88813         a statically allocated one of length 1024.
88814
88815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88816
88817         Simplify code, partly by assuming autoconf 2.52 semantics.
88818
88819         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88820
88821         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88822         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88823         All uses removed.
88824         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88825         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88826         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88827         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88828         jm_AC_HEADER_INTTYPES_H.
88829         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88830
88831         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88832
88833         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88834         Quote first arg of AC_DEFUN.
88835         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88836         since they are needed to parse the include file even if we need
88837         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88839         but with opposite signedness.
88840
88841 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88842
88843         Merge 'exclude' changes from tar 1.13.22.
88844         This fixes one or two unlikely storage allocation overflow bugs,
88845         but doesn't change user-visible behavior otherwise.
88846
88847 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88848
88849         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88850         (jm_PREREQ_EXCLUDE): New macro.
88851
88852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88853
88854         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88855         tm to be declared.
88856
88857 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88858
88859         * lib/hash.c: Remove '2001' from copyright notice.
88860
88861 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88862
88863         * lib/full-write.h: New file.
88864         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88865         * lib/full-write.c: Correct credits, as cccp.c no longer
88866         exists and anyway it was so heavily changed from the old cccp
88867         code as to be unrecognizable.  Include full-write.h.
88868         (full_write): Return size_t, with short writes meaning failure.
88869         All callers changed.  This fixes a bug with large buffers
88870         on 64-bit hosts.
88871         * lib/utime.c: Include full-write.h.
88872
88873 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88874
88875         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88876         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88877         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88878         Include if available.
88879         (<xalloc.h>): Include
88880         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88881         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88882         collide with FNM macros.
88883         (struct patopts): New struct.
88884         (struct exclude): Use it, as exclude patterns now come with options.
88885         (new_exclude): Support above changes.
88886         (new_exclude, add_exclude_file):
88887         Initial size must now be a power of two to simplify overflow checking.
88888         (free_exclude, fnmatch_no_wildcards): New function.
88889         (excluded_filename): No longer requires options arg, as the options
88890         are determined by add_exclude.  Now returns bool, not int.
88891         (excluded_filename, add_exclude):
88892         Add support for the fancy new exclusion options.
88893         (add_exclude, add_exclude_file): Now takes int options arg.
88894         Check for arithmetic overflow when computing sizes.
88895         (add_exclude_file): xrealloc might modify errno, so don't
88896         realloc until after errno might be used.
88897
88898         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88899         New macros.
88900         (free_exclude): New decl.
88901         (add_exclude, add_exclude_file): Now takes int options arg.
88902         (excluded_filename): No longer requires options arg, as the options
88903         are determined by add_exclude.  Now returns bool, not int.
88904
88905 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88906
88907         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88908
88909 2001-08-27  Jim Meyering  <meyering@lucent.com>
88910
88911         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88912
88913         * lib/version-etc.c (N_): Remove definition.
88914         Revert most of last change.
88915         Instead, simply don't mark the `Copyright...' string for translation.
88916         Based on advice from Paul Eggert.
88917
88918         * lib/strtoxmax.c: Tweak comment.
88919
88920 2001-08-26  Jim Meyering  <meyering@lucent.com>
88921
88922         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88923
88924         * m4/xstrtoimax.m4: New file.
88925         * m4/xstrtoumax.m4: Add comments explaining why we
88926         AC_REPLACE_FUNCS(strtol).
88927
88928 2001-08-26  Jim Meyering  <meyering@lucent.com>
88929
88930         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88931         of copyright with `%s' so translators don't get an untranslated
88932         message in 2002.
88933         (COPYRIGHT_YEAR): Define.
88934         (version_etc): Use fprintf rather than fputs.
88935         Suggestion from Ulrich Drepper.
88936
88937         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88938
88939         * lib/strtoll.c: New file, from GNU libc.
88940         * lib/xstrtoimax.c: New file.
88941
88942         * lib/xstrtol.h: Add xstrtoimax.
88943         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88944         * lib/strtoimax.c: New file.  Likewise, but first define
88945         STRTOUXMAX_SIGNED.
88946
88947         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88948         ...
88949         * lib/strtoxmax.c: ... then renamed to this.
88950
88951 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88952
88953         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88954         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88955         (jm_AC_TYPE_INTMAX_T): New macro.
88956         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88957
88958         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88959
88960         * m4/longlong.m4: Renamed from ulonglong.m4.
88961         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88962         * m4/uintmax_t.m4: Removed.
88963
88964 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88965
88966         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88967         Port to Solaris 8, where 'sed' requires a space after the 'r'
88968         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88969         Redirect output to $tmp just once.
88970
88971 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88972
88973         * lib/addext.c (<errno.h>): Include.
88974         (errno): Declare if not defined.
88975         (addext): Work correctly when pathconf returns -1 and leaves
88976         errno alone because there is no limit.  Also, work even if
88977         pathconf returns a value greater than SIZE_MAX.
88978
88979 2001-08-12  Jim Meyering  <meyering@lucent.com>
88980
88981         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88982         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88983         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88984         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88985         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88986         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88987         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88988         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88989         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88990         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88991         utime.m4, utimes.m4, xstrtoumax.m4:
88992         Quote the first argument in each use of AC_DEFUN.
88993
88994 2001-08-12  Jim Meyering  <meyering@lucent.com>
88995
88996         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88997         Simply `return getcwd (NULL, 0);'.
88998         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88999         Use 1300 as initial value for length, not PATH_MAX.
89000
89001         * lib/pathmax.h: Clean up cpp syntax.
89002
89003 2001-08-12  Jim Meyering  <meyering@lucent.com>
89004
89005         * lib/gettimeofday.c: New file.
89006         * lib/gtod.h: New file.
89007         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89008
89009 2001-08-05  Jim Meyering  <meyering@lucent.com>
89010
89011         * m4/jm-macros.m4: Require autoconf-2.52.
89012
89013 2001-08-04  Jim Meyering  <meyering@lucent.com>
89014
89015         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89016         stmt, to get in sync with glibc.
89017
89018 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89019
89020         The following changes are from gettext 0.10.39 as maintained by
89021         Bruno Haible.
89022
89023         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89024         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89025         with inverted sense.  All uses changed.
89026
89027         * lib/mbswidth.c: Don't include <limits.h>.
89028         Include <stdlib.h> and <string.h> unconditionally.
89029         (iswcntrl, mbsinit, ISCNTRL): New macros.
89030         (mbsnwidth): Use K&R style function declarations.
89031         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89032         can optimize it when MB_CUR_MAX == 1.
89033         The width of control characters is zero, not 1.
89034
89035 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89036
89037         The following changes are from gettext 0.10.39 as maintained by
89038         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89039
89040         * m4/codeset.m4: Upgrade to serial AM1.
89041         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89042         all uses changed.  Quote first arg of AC_DEFUN.
89043         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89044
89045         * m4/iconv.m4: Upgrade to serial AM2.
89046         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89047         Add --with-libconv-prefix.
89048         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89049         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89050         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89051         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89052         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89053
89054         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89055         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89056         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89057         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89058         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89059         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89060         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89061         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89062         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89063
89064         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89065         string.h any more.
89066
89067         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89068         not the default value.
89069
89070         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89071         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89072         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89073         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89074         Also check for iswcntrl, used for wcwidth fallback.
89075         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89076         to Autoconf 2.13.
89077
89078 2001-08-03  Jim Meyering  <meyering@lucent.com>
89079
89080         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89081         as it was in the original.  Reported by Paul Eggert.
89082
89083 2001-07-16  Jim Meyering  <meyering@lucent.com>
89084
89085         * m4/gettimeofday.m4: New file.
89086         Prompted by a report from Bernhard Baehr.
89087
89088 2001-07-15  Jim Meyering  <meyering@lucent.com>
89089
89090         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89091         stuff. Now it's in ../Makefile.cfg.
89092
89093 2001-07-15  Jim Meyering  <meyering@lucent.com>
89094
89095         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89096         (BUILT_SOURCES): Add unlocked-io.h.
89097         (io_functions): Define.
89098         (unlocked-io.h): New rule.
89099         (DISTCLEANFILES): Add unlocked-io.h.
89100         (all-local): Depend on unlocked-io.h, to ensure it is created.
89101
89102         * lib/unlocked-io.hin: New file
89103
89104         * lib/regex.c: Update from glibc.
89105
89106 2001-07-05  Jim Meyering  <meyering@lucent.com>
89107
89108         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89109         recommendation.
89110         (libfetish_a_SOURCES): Put all .h files here instead.
89111         Remove a thus-exposed (better checks in automake) duplicate and
89112         two unnecessary .h files.
89113
89114 2001-07-04  Jim Meyering  <meyering@lucent.com>
89115
89116         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89117         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89118         distcheck failure.
89119
89120 2001-07-02  Jim Meyering  <meyering@lucent.com>
89121
89122         The following changes were prompted by suggestions from Bruno Haible.
89123
89124         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89125         is now generated.
89126         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89127         definition of EXTRA_DIST.
89128         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89129         ensure that the generated file is created/updated whenever the list
89130         of $(unlocked_functions) is changed.
89131         (jm-glibc-io.m4): New rule.
89132         (unlocked-io.h): New rule -- currently unused.
89133
89134 2001-06-24  Jim Meyering  <meyering@lucent.com>
89135
89136         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89137         unmatched right bracket, rather than kludging it with an extra,
89138         falsely-matching quote in a comment.  Patch by Akim Demaille.
89139
89140 2001-06-11  Jim Meyering  <meyering@lucent.com>
89141
89142         * lib/regex.c: Update from GNU libc.
89143
89144 2001-05-27  Jim Meyering  <meyering@lucent.com>
89145
89146         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89147         Check for ut_type in struct utmp.
89148
89149 2001-05-27  Jim Meyering  <meyering@lucent.com>
89150
89151         * lib/readutmp.h (UT_TYPE): Define.
89152
89153 2001-05-24  Jim Meyering  <meyering@lucent.com>
89154
89155         * lib/argmatch.c: Include "quote.h".
89156         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89157         quote function.  Reported by Göran Uddeborg.
89158
89159 2001-05-22  Jim Meyering  <meyering@lucent.com>
89160
89161         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89162         now that we use the package-supplied version unconditionally.
89163         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89164
89165 2001-05-21  Jim Meyering  <meyering@lucent.com>
89166
89167         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89168         shell syntax errors.
89169
89170 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89171
89172         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89173
89174 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89175
89176         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89177         Don't bother to check library strftime, since
89178         we'll be using our own my_strftime function anyway.
89179         Define my_strftime instead of strftime.
89180
89181 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89182
89183         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89184         which is not yet declared.
89185
89186 2001-05-15  Jim Meyering  <meyering@lucent.com>
89187
89188         * m4/regex.m4: Use proper quoting so brackets appear in the test
89189         program.
89190         Reported by, and with help from, Bruno Haible.
89191
89192 2001-05-13  Jim Meyering  <meyering@lucent.com>
89193
89194         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89195         undefined.
89196
89197 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89198
89199         dirname code cleanup.  base_name now behaves more compatibly
89200         with POSIX basename when given file names that have trailing
89201         slashes, and similarly for dir_name.  Add new primitives
89202         base_len and dir_len.  Put the directory-name-related decls
89203         into dirname.h.
89204
89205         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89206         * lib/backupfile.c (base_name): Likewise.
89207         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89209         * lib/makepath.c (strip_trailing_slashes): Likewise.
89210         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89211         ISSLASH): Likewise.
89212         * lib/rename.c (strip_trailing_slashes): Likewise.
89213         * lib/same.c (base_name): Likewise.
89214         * lib/stripslash.c (ISSLASH): Likewise.
89215
89216         * lib/addext.c: Include <dirname.h> after size_t is defined.
89217         * lib/backupfile.c: Likewise.
89218
89219         * lib/addext.c (addext): Use base_len to trim redundant
89220         trailing slashes instead of doing it ourselves.
89221         But do not trim the last slash if it is not redundant.
89222
89223         * lib/backupfile.c (find_backup_file_name,
89224         max_backup_version): Use base_len instead of rolling it ourselves.
89225         Handle the case of "" and (on DOS) "C:" correctly.
89226
89227         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89228         needed. Include <string.h>, <dirname.h>.
89229         (base_name): Allow file names ending in slashes, other than names
89230         that are all slashes.  In this case, return the basename followed
89231         by the slashes.  This is more general, and can be used in places
89232         where the original base_name purposely had an assertion failure.
89233         (base_len): New function.
89234
89235         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89236         Do not include <assert.h>; no longer needed.
89237         Include xalloc.h.
89238         (memrchr): Remove decl.
89239         (dir_name_r): Remove.
89240         (dir_len): Renamed from dirlen.  All callers changed.
89241         Rewrite in terms of base_name, for simplicity and consistency.
89242         (dir_name): Never return NULL.  All callers changed.
89243         Do not include <stdlib.h> in test program; no longer needed.
89244         return 0; is fine for test program.
89245
89246         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89247         New macros.
89248         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89249
89250         * lib/path-concat.c (path_concat): Use base_len to compute
89251         base length, not strlen; this means we cannot rely on memcpy
89252         to null-terminate.
89253
89254         * lib/same.c (STREQ): Remove.
89255         (same_name): Handle the case where the basename ends in trailing '/'.
89256
89257         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89258         a slash was stripped.  Do not strip the last slash after a
89259         file system prefix.
89260
89261 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89262
89263         * lib/Makefile.am (libfetish_a_SOURCES):
89264         Add strftime.c, since we now compile it on all hosts.
89265
89266         * lib/strftime.c (my_strftime):
89267         Define to nstrftime if emacs, but only if my_strftime is not defined.
89268         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89269         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89270         Add one more extra argument: a nanoseconds value.
89271         All uses changed.
89272         (ns): New macro.
89273         (my_strftime function): Add %N format.
89274         (emacs_strftimeu): Renamed from emacs_strftime,
89275         with extra ut argument.
89276
89277 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89278
89279         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89280
89281 2001-04-21  Jim Meyering  <meyering@lucent.com>
89282
89283         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89284         doesn't interfere.
89285
89286 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89287
89288         * m4/ftruncate.m4: Check for chsize.
89289         Link with ftruncate.o unconditionally if ftruncate is missing.
89290         This was required when cross-compiling to i586-mingw32msvc.
89291
89292 2001-04-08  Jim Meyering  <meyering@lucent.com>
89293
89294         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89295         recomputed; that's necessary when the offset spans a DST transition.
89296         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89297
89298 2001-04-02  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/regex.h, regex.c: Update from GNU libc.
89301
89302 2001-03-24  Jim Meyering  <meyering@lucent.com>
89303
89304         * m4/jm-macros.m4: Require autoconf-2.49d.
89305
89306 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89307
89308         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89309
89310 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89311
89312         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89313
89314 2001-03-17  Jim Meyering  <meyering@lucent.com>
89315
89316         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89317         now that the version in autoconf is equivalent.
89318         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89319
89320         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89321         Suggestion from Akim Demaille.
89322
89323         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89324         (jm_PREREQ_TEMPNAME): New function.
89325
89326 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89327
89328         * lib/tempname.c (uint64_t): Define to uintmax_t if
89329         not defined, and if UINT64_MAX is not defined.
89330         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89331         Reported by John David Anglin.
89332
89333 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89334
89335         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89336         resolve alias if codeset is empty.
89337         * lib/config.charset (BeOS): Use wildcard syntax.
89338
89339 2001-03-13  Jim Meyering  <meyering@lucent.com>
89340
89341         * lib/path-concat.c (path_concat)
89342         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89343         concatenating e.g., `C:' and `foo'.
89344         From Bruno Haible.
89345
89346 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89347
89348         * lib/localcharset.c (locale_charset): Don't use
89349         setlocale(LC_CTYPE,NULL). Don't return NULL.
89350         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89351
89352 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89353
89354         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89355         support for DOS/DJGPP.
89356
89357 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89358
89359         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89360         lacks mkstemp.  Compile our own tempname.c if we compile our own
89361         mkstemp.c, as mkstemp relies on tempname.
89362
89363 2001-03-01  Jim Meyering  <meyering@lucent.com>
89364
89365         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89366         AH_VERBATIM really does output its argument verbatim.
89367
89368 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89369
89370         * lib/Makefile.am (libfetish_a_SOURCES):
89371         Add dup-safer.c, fopen-safer.c.
89372         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89373
89374         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89375         * lib/unistd-safer.h: New files.
89376
89377 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89378
89379         The mkstemp replacement is taken from glibc 2.2.2, with some
89380         portability fixes for use outside glibc, as follows:
89381
89382         * lib/tempname.c (struct_stat64): New macro.
89383         (direxists, __gen_tempname): Use it.
89384         This avoids a portability problem with Solaris 8.
89385
89386         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89387         (<stddef.h>, <stdint.h>, <string.h>):
89388         Include only if STDC_HEADERS || _LIBC.
89389         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89390         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89391         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89392         (__set_errno): Define this macro if <errno.h> doesn't.
89393         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89394         Define these macros if <stdio.h> doesn't.
89395         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89396         Define these macros if <sys/stat.h>
89397         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89398         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89399         __xstat64): Define if not _LIBC.
89400         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89401         (__gen_tempname): Invoke gettimeofday only if
89402         HAVE_GETTIMEOFDAY || _LIBC;
89403         otherwise, fall back on plain "time".
89404         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89405
89406         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89407
89408         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89409
89410 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89411
89412         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89413
89414 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89415
89416         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89417         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89418         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89419         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89420
89421 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89422
89423         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89424         Remove workaround macros for hosts that have mbrtowc but not
89425         mbstate_t, as we now insist on proper declarations for both
89426         before using mbrtowc.
89427
89428 2001-02-17  Jim Meyering  <meyering@lucent.com>
89429
89430         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89431         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89432         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89433         UnixWare 7.1.1.
89434
89435         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89436         rather than AC_CACHE_VAL.
89437
89438 2001-02-17  Jim Meyering  <meyering@lucent.com>
89439
89440         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89441         around included file name.
89442
89443         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89444
89445         * lib/strftime.c: Update from GNU libc (the only changes were to
89446         comments).
89447
89448 2001-02-17  Jim Meyering  <meyering@lucent.com>
89449
89450         * lib/regex.c: Update from libc.
89451
89452 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89453
89454         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89455         clash.
89456
89457 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89458
89459         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89460         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89461         Reported by Mark Hounschell via Paul Eggert.
89462
89463 2001-02-07  Jim Meyering  <meyering@lucent.com>
89464
89465         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89466
89467 2001-02-05  Jim Meyering  <meyering@lucent.com>
89468
89469         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89470         it includes the patch required for `large file' support with at least
89471         HP-UX's 10.20 /bin/cc.
89472
89473 2001-02-03  Jim Meyering  <meyering@lucent.com>
89474
89475         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89476         AS_IF, now that it works once again (mysteriously).
89477         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89478
89479 2001-01-30  Jim Meyering  <meyering@lucent.com>
89480
89481         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89482         * m4/chown.m4: Rename conftestchown to conftest.chown.
89483         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89484         s/conftestdir2/conftest.d2/.
89485         * m4/utimes.m4: s/conftestdata/conftest.data/
89486         Inspired by Pavel Roskin's change in autoconf.
89487
89488 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89489
89490         * lib/config.charset: Update for FreeBSD 4.2.
89491
89492 2001-01-27  Jim Meyering  <meyering@lucent.com>
89493
89494         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89495         a use of AS_IF.
89496         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89497
89498 2001-01-26  Jim Meyering  <meyering@lucent.com>
89499
89500         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89501         quotearg.c includes it.
89502
89503 2001-01-26  Jim Meyering  <meyering@lucent.com>
89504
89505         * lib/quotearg.c: Include stddef.h.
89506         * lib/quote.c: Include stddef.h.
89507         Reported by Axel Kittenberger.
89508
89509         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89510         line in double quotes so that it evokes a better diagnostic.
89511         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89512         Reported by Axel Kittenberger.
89513
89514 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89515
89516         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89517         as if it was a `charset'.
89518
89519 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89520
89521         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89522         has const.
89523
89524 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89525
89526         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89527         to avoid a warning.  Add back 'const' to inptr.
89528
89529 2001-01-20  Jim Meyering  <meyering@lucent.com>
89530
89531         Be sure that headers are checked before used in code compiled
89532         for the type checks.
89533         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89534         In place of that, invoke jm_CHECK_ALL_TYPES.
89535         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89536         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89537         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89538         The check for ssize_t was mistakenly run before the test for unistd.h.
89539
89540         The configure-time check for stdbool.h was missing.
89541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89542         (jm_PREREQ_HASH): New function.
89543
89544 2001-01-17  Jim Meyering  <meyering@lucent.com>
89545
89546         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89547         for autoconf-2.49c.
89548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89549
89550 2001-01-16  Jim Meyering  <meyering@lucent.com>
89551
89552         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89553         From Bruno Haible.
89554
89555 2001-01-14  Jim Meyering  <meyering@lucent.com>
89556
89557         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89558         foo and bar.  Create conftestdir/ in the script, not in the C code.
89559         Remove directories in the script, not in the C code.
89560         Remove conftestdir{,2} before trying to create the directory.
89561         Make the entire configure script fail if the mkdir fails.
89562
89563 2001-01-14  Jim Meyering  <meyering@lucent.com>
89564
89565         * lib/rename.c: New file.  From Volker Borchert.
89566         Include stdlib.h, string.h or strings.h, and xalloc.h.
89567         Use strip_trailing_slashes rather than open-coding it.
89568
89569 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89570
89571         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89572
89573 2001-01-03  Jim Meyering  <meyering@lucent.com>
89574
89575         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89576         of local `inptr' to avoid warning with some system declarations of
89577         iconv.
89578
89579 2001-01-02  Volker Borchert  <bt@teknon.de>
89580
89581         * m4/rename.m4: New file.
89582         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89583
89584 2001-01-01  Jim Meyering  <meyering@lucent.com>
89585
89586         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89587         even on systems with utmpx.h.  It's necessary for the declaration of
89588         utmp's ut_user member.  Reported by Andreas Jaeger.
89589
89590         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89591         available. They are required for the declarations of getgrgid and
89592         getpwuid resp.
89593         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89594         Reported by Andreas Jaeger.
89595
89596 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89597
89598         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89599         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89600         so `make install' also works in VPATH builds.
89601
89602 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89603
89604         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89605         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89606         can be used in subdirectories.
89607
89608 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89609
89610         * lib/modechange.c: Do not assume that mode_t uses the
89611         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89612         the other-execute bit of FOO even if S_IXOTH != 1.
89613
89614         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89615         WOTH, XOTH, ALLM): New macros.
89616         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89617          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89618         Use them.
89619         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89620         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89621         (mode_compile):
89622         No need to use uintmax_t; unsigned long is long enough.
89623         Don't bother to get suffix since we don't use it.
89624
89625 2000-12-26  Jim Meyering  <meyering@lucent.com>
89626
89627         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89628         better with autoheader.
89629
89630 2000-12-24  Jim Meyering  <meyering@lucent.com>
89631
89632         * lib/hash.c (is_prime): Return explicit boolean values.
89633         (hash_get_first): Return NULL to appease Irix5.6's 89.
89634         Reported by Nelson Beebe.
89635
89636 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89637
89638         * lib/localcharset.c (locale_charset): Add support for Win32.
89639
89640 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89641
89642         * lib/physmem.h, lib/physmem.c: New files.
89643
89644         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89645         (noinst_HEADERS): Add physmem.h.
89646
89647         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89648         't' for compatibility with Solaris 8 sort.
89649
89650 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89651
89652         * lib/config.charset: Add support for BeOS.
89653
89654 2000-12-17  Jim Meyering  <meyering@lucent.com>
89655
89656         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89657         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89658
89659 2000-12-16  Jim Meyering  <meyering@lucent.com>
89660
89661         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89662         N and M) would have treated it like `chown N:N FILE'.
89663
89664         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89665
89666 2000-12-16  Jim Meyering  <meyering@lucent.com>
89667
89668         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89669         SHELLS_FILE to a file name that's useful on djgpp systems.
89670         Include stdlib.h.
89671         (ADDITIONAL_DEFAULT_SHELLS): Define.
89672         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89673         Based mostly on a patch from Prashant TR.
89674
89675 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89676
89677         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89678         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89679         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89680
89681 2000-12-08  Andreas Schwab  <schwab@suse.de>
89682
89683         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89684         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89685
89686 2000-12-07  Jim Meyering  <meyering@lucent.com>
89687
89688         * lib/stripslash.c (ISSLASH): Define.
89689         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89690         `/'.
89691         From Prashant TR.
89692
89693         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89694         (dir_name_r): Declare this function as static.
89695         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89696         manifest itself on a name containing a mix of slashes and
89697         backslashes.
89698         Make this function work with names starting with a DOS-style
89699         drive letter and colon prefix.
89700         (dir_name): Append `.' if necessary.
89701         Based mostly on patches from Prashant TR and Eli Zaretskii.
89702
89703         * lib/dirname.h (dir_name_r): Remove prototype.
89704
89705 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89706
89707         * m4/off_t-format.m4: Remove this file.
89708         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89709
89710 2000-12-06  Jim Meyering  <meyering@lucent.com>
89711
89712         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89713         replacement strtoull, we may well need the replacement strtoul, too.
89714         Check for declarations of strtoul and strtoull.
89715         Check for strtol.  Mainly as a cue to cause automake to include
89716         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89717         Check for limits.h -- strtol.c needs it.
89718
89719 2000-12-05  Jim Meyering  <meyering@lucent.com>
89720
89721         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89722
89723 2000-12-04  Jim Meyering  <meyering@lucent.com>
89724
89725         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89726         Also include memory.h, stdlib.h, unistd.h if appropriate.
89727         Reported by Andreas Jaeger (conflicting declaration of malloc).
89728
89729 2000-12-02  Jim Meyering  <meyering@lucent.com>
89730
89731         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89732         * m4/jm-macros.m4 (jm_MACROS): require it.
89733
89734 2000-12-02  Jim Meyering  <meyering@lucent.com>
89735
89736         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89737
89738 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89739
89740         * lib/memrchr.c: Include <config.h> before any system include file.
89741
89742 2000-11-30  Jim Meyering  <meyering@lucent.com>
89743
89744         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89745
89746 2000-11-30  Jim Meyering  <meyering@lucent.com>
89747
89748         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89749
89750 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89751
89752         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89753
89754 2000-11-26  Jim Meyering  <meyering@lucent.com>
89755
89756         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89757
89758 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89759
89760         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89761         size of (size_t) -1; it's not portable.
89762
89763 2000-11-17  Jim Meyering  <meyering@lucent.com>
89764
89765         * lib/strstr.c: Update from GNU libc.
89766
89767 2000-11-17  Akim Demaille  <akim@epita.fr>
89768
89769         * lib/obstack.h: Formatting changes.
89770         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89771         prevent type checking.
89772         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89773         cast the value to (void *): assigning a `foo *' to a `void *'
89774         variable is valid.
89775         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89776
89777 2000-11-16  Jim Meyering  <meyering@lucent.com>
89778
89779         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89780
89781 2000-11-11  Jim Meyering  <meyering@lucent.com>
89782
89783         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89784
89785 2000-11-10  Jim Meyering  <meyering@lucent.com>
89786
89787         * lib/obstack.h: Update from GNU libc.
89788         * lib/obstack.c: Likewise.
89789
89790 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89791
89792         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89793
89794 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89795
89796         * lib/getusershell.c (setusershell): Use rewind rather than
89797         fseek/fseeko, to avoid configuration hassles with fseeko.
89798         Don't bother opening SHELLS_FILE if shellstream is NULL;
89799         it's not necessary.
89800
89801 2000-11-05  Jim Meyering  <meyering@lucent.com>
89802
89803         * lib/makepath.h (make_dir): Declare.
89804         * lib/makepath.c (make_dir): Remove `static' attribute.
89805         Tweak a comment.
89806
89807 2000-11-04  Jim Meyering  <meyering@lucent.com>
89808
89809         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89810
89811 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89812
89813         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89814         last one in a bucket, advance to the next bucket.
89815
89816 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89817
89818         * lib/fnmatch.c: Do not comment out all the code if we are using
89819         the GNU C library, because in some cases we are replacing buggy
89820         code in the GNU C library itself.
89821
89822 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89823
89824         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89825         (regex_compile): Catch bogus \(\1\).
89826
89827 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89828
89829         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89830         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89831         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89832
89833 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89834
89835         * lib/error.h, getline.h, modechange.h:
89836         Remove "2000" from Copyright line, as the file hasn't been
89837         changed this year other than in the copyright notice.
89838
89839         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89840         was changed this year.
89841
89842 2000-10-29  Jim Meyering  <meyering@lucent.com>
89843
89844         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89845         renaming.
89846         * m4/ls-mntd-fs.m4: Likewise
89847
89848 2000-10-29  Jim Meyering  <meyering@lucent.com>
89849
89850         * lib/xstat.in: Fix grammar in comment.
89851
89852 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89853
89854         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89855         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89856         doesn't define __restrict_arr.
89857
89858 2000-10-28  Jim Meyering  <meyering@lucent.com>
89859
89860         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89861         (jm_PREREQ_MEMCHR): New function.
89862
89863 2000-10-28  Jim Meyering  <meyering@lucent.com>
89864
89865         * lib/memchr.c: Update from libc.
89866         Adjust for portability:
89867         [HAVE_STDLIB_H]: Include stdlib.h.
89868         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89869         Undef __memchr, too.
89870         [!weak_alias]: Define __memchr to memchr.
89871
89872         * lib/regex.c: Update from libc.
89873         * lib/regex.h: Likewise.
89874         * lib/getopt1.c: Likewise.
89875         * lib/memcmp.c: Likewise.
89876
89877         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89878         Avoid using fseek, when possible -- it's broken by design.
89879         Patch by Ulrich Drepper.
89880
89881 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89882
89883         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89884         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89885         Giving in to popular pressure to shut up the compiler with casts.
89886
89887 2000-10-26  Jim Meyering  <meyering@lucent.com>
89888
89889         * lib/strftime.c: Update from libc.
89890
89891 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89892
89893         * regex.c: More `unsigned char' -> `re_char' changes.
89894         Also change several `int' into `re_wchar_t'.
89895         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89896         (PUSH_FAILURE_POINTER): Don't cast any more.
89897         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89898         We want GCC to complain, since this piece of code makes
89899         re_match non-reentrant, which *should* be fixed.
89900         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89901         (EXTEND_BUFFER): Use RETALLOC.
89902         (SET_LIST_BIT): Don't cast.
89903         (re_wchar_t): New type.
89904         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89905         that those two functions will always properly return.
89906         (IMMEDIATE_QUIT_CHECK): Cast to void.
89907         (analyse_first): Use recursion rather than an explicit stack.
89908         (re_compile_fastmap): Can't fail anymore.
89909         (re_search_2): Don't check re_compile_fastmap for failure.
89910         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89911         Now also sets the new value (passed in a new argument).
89912         (re_match_2_internal): Use it.
89913         Also, use a new var `reg' of type size_t when looping through regs
89914         rather than reuse the inappropriate `mcnt'.
89915
89916 2000-10-25  Jim Meyering  <meyering@lucent.com>
89917
89918         * lib/obstack.c: Update from libc.
89919
89920 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89921
89922         * regex.c (regex_compile): Change the way of handling a range from
89923         a char less than 256 to a char not less than 256.
89924
89925 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89926
89927         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89928         NT-Emacs only.
89929         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89930         so that re_search functions only quit when callers expect them to.
89931
89932 2000-10-23  Jim Meyering  <meyering@lucent.com>
89933
89934         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89935         wrong.  That set_locale call must not have any side effects.
89936         From Paul Eggert.
89937
89938 2000-10-22  Jim Meyering  <meyering@lucent.com>
89939
89940         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89941         [CYCLIC]: Remove now-unused definition.
89942
89943         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89944         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89945         Suggestion from Ulrich Drepper.
89946
89947 2000-10-21  Jim Meyering  <meyering@lucent.com>
89948
89949         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89950         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89951         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89952
89953 2000-10-21  Jim Meyering  <meyering@lucent.com>
89954
89955         * lib/dirname.c (memrchr): Declare if necessary.
89956         (dir_name): Remove the restriction that there be no
89957         trailing slashes.  Now, this code skips past them, effectively
89958         ignoring them.
89959         [TEST_DIRNAME] (main): New unit tests.
89960
89961         * lib/memrchr.c: New file from GNU libc.
89962         Undef __memrchr, too.
89963         [!weak_alias]: Define __memrchr to memrchr.
89964         Guard weak_alias use with `#ifdef weak_alias'.
89965
89966 2000-10-21  Jim Meyering  <meyering@lucent.com>
89967
89968         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89969         (dir_name): Use dir_name_r.
89970         * lib/dirname.h (dir_name_r): Declare it.
89971
89972 2000-10-17  Jim Meyering  <meyering@lucent.com>
89973
89974         * lib/quote.h (PARAMS): Define and use.
89975         Reported by Akim Demaille.
89976
89977         * lib/getopt.c: Update from libc.
89978
89979 2000-10-16  Jim Meyering  <meyering@lucent.com>
89980
89981         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89982         setlocale.
89983         From Jan Fedak.
89984
89985 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89986
89987         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89988
89989 2000-09-25  Jim Meyering  <meyering@lucent.com>
89990
89991         * lib/md5.h (rol): Define (from GnuPG).
89992
89993         * lib/sha.c: Give credit (GnuPG) where due.
89994         (M): Use rol rather than open-coding it.
89995         Add a FIXME comment.
89996
89997 2000-09-21  Jim Meyering  <meyering@lucent.com>
89998
89999         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90000         Reported by Michael Stone.
90001
90002 2000-09-20  Jim Meyering  <meyering@lucent.com>
90003
90004         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90005         (noinst_HEADERS): Add sha.h.
90006         Based on code from Scott G. Miller and from GnuPG.
90007
90008 2000-09-18  Jim Meyering  <meyering@lucent.com>
90009
90010         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90011         LIBS. Otherwise, everyone ends up linking with -lelf for some
90012         configurations.
90013         Reported by Mike Stone.
90014
90015 2000-09-15  Jim Meyering  <meyering@lucent.com>
90016
90017         * lib/regex.c: Update from libc.
90018
90019 2000-09-10  Jim Meyering  <meyering@lucent.com>
90020
90021         * lib/getopt.c (_getopt_internal): Update from glibc.
90022
90023 2000-09-09  Jim Meyering  <meyering@lucent.com>
90024
90025         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90026         think it should be used as a general replacement for isascii.
90027         * lib/fnmatch.c: Likewise.
90028         * lib/mbswidth.c: Likewise
90029         * lib/regex.c: Likewise.
90030
90031         Don't use atoi.
90032         * lib/userspec.c: Include sys/param.h and limits.h.
90033         Include xstrtol.h.
90034         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90035         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90036         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90037         UID, GID.  Check range.
90038
90039 2000-09-06  Jim Meyering  <meyering@lucent.com>
90040
90041         * lib/getopt.c (_getopt_internal): Update from glibc.
90042
90043 2000-08-30  Jim Meyering  <meyering@lucent.com>
90044
90045         * lib/strftime.c: Merge in changes from GNU libc.
90046
90047 2000-08-26  Jim Meyering  <meyering@lucent.com>
90048
90049         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90050         * m4/fpending.m4: New file.
90051
90052 2000-08-26  Jim Meyering  <meyering@lucent.com>
90053
90054         * lib/closeout.c: Include "__fpending.h".
90055         (close_stdout_status): Return right away if there's nothing to flush.
90056
90057         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90058         * lib/__fpending.c: New file.
90059         * lib/__fpending.h: New file.
90060
90061 2000-08-20  Jim Meyering  <meyering@lucent.com>
90062
90063         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90064         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90065         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90066
90067 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90068
90069         Improve fileutils installation on systems where running
90070         programs (like install) can't be unlinked.
90071         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90072         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90073
90074 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90075
90076         Standardize on "memory exhausted" instead of "Memory exhausted"
90077         or "virtual memory exhausted".
90078         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90079         "virtual memory exhausted".
90080         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90081         our own message.
90082         * lib/userspec.c (parse_user_spec): Likewise.
90083         * lib/bumpalloc.h: comment fix
90084         * lib/same.c, userspec.c: Include xalloc.h.
90085
90086         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90087         not char *const and pointing to a constant array.
90088         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90089         (xrealloc): Comment fix.
90090
90091         * lib/userspec.c (parse_user_spec):
90092         Don't translate a message until just before returning,
90093         to avoid unnecessary translation.
90094
90095 2000-08-07  Jim Meyering  <meyering@lucent.com>
90096
90097         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90098         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90099         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90100         getgroups.c, gethostname.c, getopt.h, group-member.c,
90101         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90102         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90103         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90104         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90105         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90106         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90107         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90108         yesno.c: Back out Copyright date changes for each file with no change
90109         this year.  This eases coordination with other programs using the same
90110         source code modules.  From Paul Eggert.
90111
90112 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90113
90114         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90115         not char, for compatibility with glibc 2.1.3 strftime.c.
90116
90117 2000-08-03  Greg McGary  <greg@mcgary.org>
90118
90119         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90120         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90121         (EXTEND_BUFFER): Use them.
90122
90123 2000-08-01  Jim Meyering  <meyering@lucent.com>
90124
90125         * lib/dirname.c (ISSLASH): Define.
90126         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90127         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90128         both `\' and `/' may be use as path separators.
90129         Based on a patch from Prashant TR.
90130
90131 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90132
90133         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90134         slot vector a constant, since it might get modified.
90135
90136 2000-07-31  Jim Meyering  <meyering@lucent.com>
90137
90138         * lib/xmalloc.c: Use `virtual memory exhausted', not
90139         `Memory exhausted'.
90140         * lib/obstack.c (print_and_abort): Likewise.
90141
90142 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90143
90144         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90145         buffer, so that the caller can always quote one small
90146         component of a "memory exhausted" message in slot 0.
90147         From a suggestion by Jim Meyering.
90148
90149 2000-07-30  Jim Meyering  <meyering@lucent.com>
90150
90151         * lib/makepath.c (make_path): Quote the other instance, too.
90152
90153         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90154         (STATIC_BUF_SIZE): Define.
90155         (quotearg_n_options): Use only statically allocated storage when
90156         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90157         than STATIC_BUF_SIZE.
90158
90159 2000-07-29  Jim Meyering  <meyering@lucent.com>
90160
90161         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90162         * lib/dirname.c (dir_name): Likewise.
90163
90164         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90165         `/'.
90166
90167         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90168         (dir_name): Assert that there are no trailing slashes.
90169
90170 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90171
90172         * lib/mbswidth.h (mbswidth): Add a flags argument.
90173         (mbswidth): New declaration.
90174         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90175         * lib/mbswidth.c (mbswidth): Add a flags argument.
90176         (mbsnwidth): New function.
90177
90178 2000-07-24  Jim Meyering  <meyering@lucent.com>
90179
90180         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90181
90182 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90183
90184         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90185
90186 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90187
90188         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90189         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90190         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90191         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90192         invoke multibyte primitives.
90193
90194 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90195
90196         * lib/quotearg.c:
90197         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90198         so that mbstate_t is always defined.
90199
90200         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90201         be 1 in at least one GCC installation, and this configuration
90202         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90203         performance on hosts that have mbrtowc but have only unibyte
90204         locales, but I assume these hosts are rare.
90205
90206 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90207
90208         * lib/mbswidth.c (_XOPEN_SOURCE):
90209         Don't define; this causes problems on Solaris 7.
90210         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90211
90212 2000-07-23  Jim Meyering  <meyering@lucent.com>
90213
90214         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90215         too: getgrgid, getpwuid, getuid.
90216
90217 2000-07-23  Jim Meyering  <meyering@lucent.com>
90218
90219         * lib/basename.c (base_name): Add an assertion.
90220
90221 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90222
90223         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90224         shadow its mbsinit function.
90225
90226 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90227
90228         * lib/mbswidth.h: New file.
90229         * lib/mbswidth.c: New file.
90230         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90231         (noinst_HEADERS): Add mbswidth.h.
90232
90233 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90234
90235         * lib/config.charset: Add support for FreeBSD. Improve support for
90236         HP-UX and IRIX 6.
90237
90238 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90239
90240         * m4/mbswidth.m4: New file.
90241         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90242
90243 2000-07-15  Jim Meyering  <meyering@lucent.com>
90244
90245         * lib/makepath.c: Include quote.h.
90246         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90247         corresponding argument in a `quote (...)' call.
90248         Give better diagnostics.
90249
90250         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90251         (noinst_HEADERS): Add quote.h.
90252
90253         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90254         from tar's src/misc.c.
90255         * lib/quote.h: New file.  Prototypes for same.
90256
90257 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90258
90259         From a suggestion by Bruno Haible.
90260         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90261         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90262         to decide whether to define the BeOS workaround macro;
90263         this adjusts to the change to AC_MBSTATE_T.
90264
90265 2000-07-14  Jim Meyering  <meyering@lucent.com>
90266
90267         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90268         jm_AC_TYPE_UINTMAX_T.
90269
90270 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90271
90272         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90273
90274         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90275         quotearg_buffer_restyled): Add support for
90276         clocale_quoting_style.  Undo previous change to
90277         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90278         and "{RIGHT QUOTATION MARK}" msgids.
90279
90280 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90281
90282         From a suggestion by Bruno Haible.
90283         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90284         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90285         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90286         and mbstate_t, to a single-part test that simply defines mbstate_t.
90287         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90288         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90289
90290 2000-07-10  Jim Meyering  <meyering@lucent.com>
90291
90292         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90293
90294         * m4/gnu-source.m4: Output to confdefs.h directly.
90295         Suggestion from Akim Demaille.
90296
90297 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90298
90299         The old behavior of quoting `like this' doesn't look good with
90300         newer, ISO-style fonts.  See:
90301         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90302
90303         Instead, quote "like this" by default.  Let the translator
90304         tailor the locale-specific quoting behavior by providing
90305         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90306
90307         * lib/quotearg.c (N_): New macro.
90308         (gettext_default): New function.
90309         (quotearg_buffer_restyled): Use
90310         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90311         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90312
90313 2000-07-09  Jim Meyering  <meyering@lucent.com>
90314
90315         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90316         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90317
90318         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90319         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90320
90321 2000-07-09  Jim Meyering  <meyering@lucent.com>
90322
90323         * lib/Most files: Update copyright dates to include 2000.
90324
90325 2000-07-08  Jim Meyering  <meyering@lucent.com>
90326
90327         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90328         if not defined.
90329         (xgethostname): Remove now-unnecessary #ifdef.
90330         Move declaration of `err' into loop where it's used.
90331
90332 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90333         and Bruno Haible  <haible@clisp.cons.org>
90334
90335         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90336         only if the test for an object-type mbstate_t fails.  This
90337         prevents us from mistakenly reporting that mbstate_t is a
90338         system object type after we "#define mbstate_t int" to work
90339         around its lack.
90340
90341 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90342         and Bruno Haible  <haible@clisp.cons.org>
90343
90344         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90345
90346 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90347
90348         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90349         to strerror_r.
90350         Include <ctype.h> for use of isalpha.
90351
90352 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90353
90354         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90355         by allocating a larger buffer. Test the gethostname return value for
90356         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90357         returns an error and ENAMETOOLONG isn't defined.
90358
90359 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90360
90361         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90362         dimension.
90363
90364 2000-07-04  Jim Meyering  <meyering@lucent.com>
90365
90366         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90367         of the deprecated AC_CHECKING.
90368
90369 2000-07-04  Jim Meyering  <meyering@lucent.com>
90370
90371         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90372         Reported by Bruno Haible.
90373
90374 2000-07-04  Jim Meyering  <meyering@lucent.com>
90375
90376         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90377         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90378         lacks mbrtowc.
90379
90380 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90381
90382         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90383         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90384
90385 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90386         and Bruno Haible  <haible@clisp.cons.org>
90387
90388         * lib/quotearg.c (mbrtowc):
90389         Assign to *pwc, and return 1 only if result is nonzero.
90390         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90391
90392 2000-07-03  Jim Meyering  <meyering@lucent.com>
90393
90394         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90395
90396 2000-07-03  Jim Meyering  <meyering@lucent.com>
90397
90398         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90399         This is necessary to get a definition of e.g., UTMP_FILE on
90400         HP-UX 10.20.
90401         From Bob Proulx.
90402
90403 2000-07-02  Jim Meyering  <meyering@lucent.com>
90404
90405         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90406
90407         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90408         AC_LIBOBJ(function_name).
90409         * m4/chown.m4: Likewise.
90410         * m4/fnmatch.m4: Likewise.
90411         * m4/ftruncate.m4: Likewise.
90412         * m4/getgroups.m4: Likewise.
90413         * m4/getline.m4: Likewise.
90414         * m4/group-member.m4: Likewise.
90415         * m4/jm-macros.m4: Likewise.
90416         * m4/lstat.m4: Likewise.
90417         * m4/malloc.m4: Likewise.
90418         * m4/memcmp.m4: Likewise.
90419         * m4/nanosleep.m4: Likewise.
90420         * m4/putenv.m4: Likewise.
90421         * m4/realloc.m4: Likewise.
90422         * m4/regex.m4: Likewise.
90423         * m4/stat.m4: Likewise.
90424         * m4/strftime.m4: Likewise.
90425
90426 2000-07-02  Jim Meyering  <meyering@lucent.com>
90427
90428         * lib/quotearg.c (mbstate_t): Don't define here.
90429
90430 2000-07-02  Jim Meyering  <meyering@lucent.com>
90431
90432         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90433
90434 2000-07-01  Jim Meyering  <meyering@lucent.com>
90435
90436         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90437
90438 2000-07-01  Jim Meyering  <meyering@lucent.com>
90439
90440         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90441         problem.
90442
90443 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90444
90445         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90446         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90447
90448 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90449
90450         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90451         per change in ../m4/ls-mntd-fs.m4.
90452         (read_filesystem_list): Ignore symbolic links.
90453
90454 2000-06-29  Jim Meyering  <meyering@lucent.com>
90455
90456         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90457         for declaration of strcmp.
90458
90459         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90460
90461         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90462         Avoid warning by casting result to `char *' to remove `const'.
90463
90464 2000-06-28  Jim Meyering  <meyering@lucent.com>
90465
90466         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90467         included by quotearg.c, for which we perform this test.  From
90468         Bruno Haible.
90469
90470 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90471
90472         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90473         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90474         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90475
90476 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90477
90478         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90479
90480 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90481
90482         savedir now sets errno on failure and invokes xmalloc to get memory.
90483         Fix a couple of other minor bugs while we're at it.
90484
90485         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90486         (NAMLEN): Remove macro.
90487         (malloc, realloc): Remove decls.
90488         (stpcpy): Likewise.
90489         ("xalloc.h"): Include.
90490         (NAME_SIZE_DEFAULT): New macro.
90491         (savedir): Use xmalloc / xrealloc to allocate memory.
90492         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90493         Skip "" directory entries.
90494         Use strlen to calculate directory entry length, since the old method
90495         is rarely used these days and isn't worth supporting.
90496         Don't use a pointer after freeing it.
90497         Check for integer overflow when calculating allocation size.
90498         Use memcpy to copy entries, instead of stpcpy.
90499         Set errno properly when returning NULL.
90500         Check for readdir error.
90501
90502 2000-06-26  Jim Meyering  <meyering@lucent.com>
90503
90504         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90505
90506 2000-06-25  Jim Meyering  <meyering@lucent.com>
90507
90508         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90509         Linux header bug when _XOPEN_SOURCE is defined to 500.
90510
90511 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90512
90513         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90514         deficiency.
90515
90516 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90517
90518         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90519         Include xalloc.h.
90520         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90521
90522 2000-06-24  Jim Meyering  <meyering@lucent.com>
90523
90524         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90525         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90526         for which strerror does return char*, but which lacks a conveniently
90527         accessible declaration of the function.  If the compile-test says
90528         strerror_r doesn't work, then resort to a `run'-test that works on
90529         BeOS and segfaults on DEC Unix.
90530
90531 2000-06-24  Jim Meyering  <meyering@lucent.com>
90532
90533         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90534
90535 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90536
90537         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90538         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90539
90540 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90541
90542         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90543         (mbrtowc, mbstate_t): Define substitutes if
90544         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90545         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90546         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90547
90548 2000-06-23  Jim Meyering  <meyering@lucent.com>
90549
90550         * m4/afs.m4: Add missing AC_MSG_RESULT.
90551         Reported by Bruno Haible.
90552
90553         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90554         Suggestion from Bruno Haible.
90555
90556 2000-06-23  Jim Meyering  <meyering@lucent.com>
90557
90558         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90559
90560 2000-06-21  Jim Meyering  <meyering@lucent.com>
90561
90562         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90563
90564 2000-06-21  Jim Meyering  <meyering@lucent.com>
90565
90566         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90567         (noinst_HEADERS): Add getstr.h.
90568
90569         * lib/getline.c (getstr): Move into a separate file.
90570         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90571         the following changes: new parameter, delim2; both delim[12]
90572         parameters have type `int', not `char'.  The latter would lose
90573         with 8-bit delimiters.
90574         * lib/getstr.h: New file.
90575
90576 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90577
90578         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90579         than 1024, return a memory chunk of least possible size, instead
90580         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90581         Use free/xmalloc instead of xrealloc to avoid copying for very long
90582         paths.
90583
90584 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90585
90586         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90587         the empty string.
90588
90589 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90590
90591         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90592         address, not strdup.  Include <stdlib.h> and don't declare free().
90593
90594 2000-06-19  Jim Meyering  <meyering@lucent.com>
90595
90596         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90597
90598 2000-06-18  Jim Meyering  <meyering@lucent.com>
90599
90600         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90601
90602         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90603         `checking whether...' message to be consistent with that of the
90604         lstat test.
90605
90606 2000-06-18  Jim Meyering  <meyering@lucent.com>
90607
90608         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90609         Besides, these days every porting target provides a mkdir function.
90610
90611         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90612         needed. (this snippet comes from src/system.h).
90613
90614 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90615
90616         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90617
90618 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90619
90620         * lib/human.c (adjust_value): New function.
90621         (human_readable_inexact): Apply rounding style even when
90622         printing approximate values.
90623
90624 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90625
90626         * lib/human.c (human_readable_inexact): Allow an input block
90627         size that is not a multiple of the output block size, and vice versa.
90628         Reported by Piergiorgio Sartor.
90629
90630 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90631
90632         * lib/getdate.y (get_date): Apply relative times after time
90633         zone indicator, not before.  Reported by Todd A. Jacobs.
90634
90635 2000-06-13  Jim Meyering  <meyering@lucent.com>
90636
90637         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90638
90639         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90640
90641 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90642
90643         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90644
90645 2000-06-12  Jim Meyering  <meyering@lucent.com>
90646
90647         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90648         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90649         optional argument.
90650         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90651         the optional argument, `lib'.
90652
90653 2000-06-08  Jim Meyering  <meyering@lucent.com>
90654
90655         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90656
90657 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90658
90659         Rewrite largefile configuration so that we don't need to run
90660         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90661         AC_CANONICAL_HOST in configure.in -- jmm]
90662
90663         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90664         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90665         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90666         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90667         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90668         All uses changed.
90669         Instead of inspecting the output of getconf, try to compile the
90670         test program without and with the macro definition.
90671         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90672         for getconf.  Instead, check for the needed flags by compiling
90673         test programs.
90674
90675 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90676
90677         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90678
90679 2000-06-04  Jim Meyering  <meyering@lucent.com>
90680
90681         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90682         SunOS 4.1.4 for which gid_t is an unsigned type.
90683
90684 2000-06-03  Jim Meyering  <meyering@lucent.com>
90685
90686         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90687         now that autoconf requires that.
90688
90689         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90690         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90691         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90692
90693 2000-06-03  Jim Meyering  <meyering@lucent.com>
90694
90695         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90696
90697 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90698
90699         * m4/glibc21.m4: New file.
90700         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90701
90702 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90703
90704         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90705         newer, don't install charset.alias.
90706         * lib/config.charset: Change the Linux/glibc rules so they become empty
90707         on glibc-2.1 or newer.
90708
90709 2000-06-02  Jim Meyering  <meyering@lucent.com>
90710
90711         * lib/mountlist.c: Back out last change.  Instead, do this...
90712         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90713         me_dummy member using the same `ignore'-testing code.
90714         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90715         fs_type strings.
90716         From Mark D. Roth.
90717
90718 2000-05-29  Jim Meyering  <meyering@lucent.com>
90719
90720         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90721         mounts with the `ignore' attribute.  Based on a patch from
90722         Mark D. Roth.
90723
90724 2000-05-28  Jim Meyering  <meyering@lucent.com>
90725
90726         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90727         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90728         * m4/stat.m4: Likewise.
90729         * m4/lstat.m4: Likewise.
90730         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90731
90732         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90733         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90734
90735 2000-05-26  Jim Meyering  <meyering@lucent.com>
90736
90737         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90738
90739 2000-05-24  Jim Meyering  <meyering@lucent.com>
90740
90741         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90742         autoconf requires that.
90743         * m4/lib-check.m4: Likewise.
90744         * m4/jm-macros.m4: Likewise.
90745         * m4/strftime.m4: Likewise.
90746
90747         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90748         AC_CHECK_DECLS, now that autoconf requires that.
90749
90750 2000-05-22  Jim Meyering  <meyering@lucent.com>
90751
90752         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90753         * m4/lstat.m4: Likewise.
90754
90755 2000-05-22  Jim Meyering  <meyering@lucent.com>
90756
90757         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90758
90759 2000-05-20  Jim Meyering  <meyering@lucent.com>
90760
90761         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90762         (jm_PREREQ): Use it.
90763
90764 2000-05-18  Jim Meyering  <meyering@lucent.com>
90765
90766         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90767         back, too, since it may have been modified by allocate_entry.
90768         (hash_delete): Rewrite to use neither the assignment operator
90769         nor the comma operator in an if-expression.
90770
90771 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90772
90773         * lib/closeout.c:
90774         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90775         Remove; no longer needed.
90776         "quotearg.h": Add include.
90777         (file_name): Do not bother to explicitly initialize to NULL; it's less
90778         efficient on some hosts.
90779         (close_stdout_status): Remove test as to whether stdout was already
90780         closed; it breaks for the case "echo x | sort >&-".
90781         Quote file name colons.
90782         Do not assume that _("write error") lacks format strings.
90783
90784 2000-05-15  Jim Meyering  <meyering@lucent.com>
90785
90786         * lib/version-etc.c (version_etc_copyright): Update the copyright
90787         string used in all --version output.
90788
90789 2000-05-14  Jim Meyering  <meyering@lucent.com>
90790
90791         * lib/closeout.c (close_stdout_set_file_name): New function.
90792         (close_stdout_status): Use new file-scoped global.
90793         Return right away if fstat says the stdout file descriptor is invalid.
90794         * lib/closeout.h (close_stdout_set_file_name): Declare.
90795
90796 2000-05-10  Jim Meyering  <meyering@lucent.com>
90797
90798         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90799         (close_stdout_set_status): New function.
90800         * lib/closeout.h (close_stdout_set_status): Declare.
90801
90802 2000-05-09  Jim Meyering  <meyering@lucent.com>
90803
90804         * m4/gettext.m4: Rename this...
90805         * m4/libintl.m4: ...to this.
90806
90807 2000-05-08  Jim Meyering  <meyering@lucent.com>
90808
90809         * lib/long-options.c: Don't include closeout.h.
90810         (parse_long_options): Don't call close_stdout for --version.
90811
90812 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90813
90814         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90815         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90816         2.1.3 bug.  This avoids a clash when files like regex.c define
90817         _GNU_SOURCE.
90818
90819 2000-05-06  Jim Meyering  <meyering@lucent.com>
90820
90821         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90822         (AC_REPLACE_FUNCS): Add strnlen.
90823
90824         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90825         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90826
90827         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90828         AC_SEARCH_LIBS call for nanosleep.
90829         (LIB_NANOSLEEP): Set and AC_SUBST.
90830
90831 2000-05-06  Jim Meyering  <meyering@lucent.com>
90832
90833         * lib/strnlen.c: Undefine __strnlen and strnlen.
90834         [!weak_alias]: Define __strnlen to strnlen.
90835
90836         * lib/atexit.c: New file, from libiberty.
90837
90838 2000-05-06  Jim Meyering  <meyering@lucent.com>
90839
90840         * lib/closeout.c (close_stdout_status): Also check for errors on the
90841         stderr stream.
90842
90843 2000-05-05  Jim Meyering  <meyering@lucent.com>
90844
90845         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90846         AC_SEARCH_LIBS call for clock_gettime.
90847         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90848
90849         * m4/search-libs.m4: Update from autoconf.
90850
90851         su doesn't work on Solaris 2.6.
90852         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90853         <shadow.h>.  Reported by Dragos Harabor.
90854
90855 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90856
90857         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90858         memcpy instead of xmalloc, xrealloc, path_concat.
90859         (locale_charset): Treat empty environment variables as absent.
90860         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90861
90862 2000-05-04  Jim Meyering  <meyering@lucent.com>
90863
90864         * lib/getopt.c: Update from glibc.
90865         * lib/obstack.c: Likewise.
90866         * lib/obstack.h: Likewise.
90867         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90868         file
90869
90870         * lib/regex.h: Likewise.
90871         * lib/strndup.c: Likewise.
90872         * lib/strnlen.c: New file, from glibc.
90873
90874 2000-05-03  Jim Meyering  <meyering@lucent.com>
90875
90876         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90877
90878 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90879
90880         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90881         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90882         compile-time test, rather than inspecting host and OS, to
90883         decide whether to define _LARGEFILE_SOURCE.
90884
90885 2000-05-01  Jim Meyering  <meyering@lucent.com>
90886
90887         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90888
90889         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90890         Based on a patch from Bruno Haible.
90891
90892 2000-05-01  Jim Meyering  <meyering@lucent.com>
90893
90894         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90895
90896 2000-04-29  Jim Meyering  <meyering@lucent.com>
90897
90898         * lib/path-concat.c: Declare strdup only if it's not defined.
90899         * lib/canon-host.c: Likewise.
90900
90901 2000-04-28  Jim Meyering  <meyering@lucent.com>
90902
90903         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90904         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90905         is included first, then limits.h is included by locale.h by libintl.h.
90906         From John David Anglin.
90907
90908 2000-04-25  Jim Meyering  <meyering@lucent.com>
90909
90910         * lib/makepath.c (S_IRWXUGO): Define.
90911         (make_path): Always perform explicit chmod if MODE specifies any
90912         of the `special' permission bits.  Prompted by a bug report against
90913         install from Mate Wierdl and Joost van Baal.
90914
90915 2000-04-18  Jim Meyering  <meyering@lucent.com>
90916
90917         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90918         (jm_PREREQ): Use it.
90919
90920 2000-04-18  Jim Meyering  <meyering@lucent.com>
90921
90922         * lib/README: New file.
90923
90924         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90925         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90926
90927 2000-04-17  Jim Meyering  <meyering@lucent.com>
90928
90929         Get it right :-)
90930         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90931         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90932         Suggestion from Akim Demaille.
90933
90934 2000-04-17  Jim Meyering  <meyering@lucent.com>
90935
90936         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90937         the definition of it to rpl_strftime also defined-away the system's
90938         declaration.
90939
90940 2000-04-15  Jim Meyering  <meyering@lucent.com>
90941
90942         Use `C' to denote so-called `contiguous' files, the same way
90943         that tar does.
90944         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90945         (ftypelet): Use S_ISCTG.
90946         From Michael Deutschmann.
90947
90948 2000-04-14  Jim Meyering  <meyering@lucent.com>
90949
90950         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90951         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90952         clobbered.
90953
90954 2000-04-14  Jim Meyering  <meyering@lucent.com>
90955
90956         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90957
90958 2000-04-13  Jim Meyering  <meyering@lucent.com>
90959
90960         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90961         AH_VERBATIM to insert required #ifndef into config.h.in.
90962         Suggestion from Akim Demaille.
90963
90964 2000-04-12  Jim Meyering  <meyering@lucent.com>
90965
90966         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90967         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90968         Christian Krackowizer.
90969
90970         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90971         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90972         (AC_SYS_LARGEFILE): Require.
90973         (AM_C_PROTOTYPES): Require.
90974
90975 2000-04-08  Jim Meyering  <meyering@lucent.com>
90976
90977         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90978         names don't conflict.  Reported by Eli Zaretskii.
90979
90980 2000-04-07  Jim Meyering  <meyering@lucent.com>
90981
90982         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90983         sys/types.h, to work around system header problems on AIX 3.2.5.
90984         From Bruno Haible.
90985
90986 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90987
90988         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90989         bug.  Deal with the different error behavior of Irix iconv.
90990
90991 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90992
90993         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90994         IRIX if the installer said otherwise.
90995
90996 2000-04-05  Jim Meyering  <meyering@lucent.com>
90997
90998         Portability tweaks required for ultrix4.3.
90999         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91000         (jm_CHECK_DECLS): Add getutent to the list of functions.
91001         (_jm_DECL_HEADERS): Add utmpx.h.
91002         From John David Anglin.
91003
91004         * m4/strftime.m4: Back out the 2000-04-02 change.
91005         Instead of that change, simply undefine putenv in the test program.
91006
91007 2000-04-05  Jim Meyering  <meyering@lucent.com>
91008
91009         Portability tweaks required for ultrix4.3.
91010         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91011         getutent.
91012         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91013         * lib/canon-host.c: Declare strdup.
91014         * lib/path-concat.c: Likewise.
91015         From John David Anglin.
91016
91017 2000-04-04  Jim Meyering  <meyering@lucent.com>
91018
91019         Be more DOS 8.3-friendly.
91020         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91021         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91022         * lib/Makefile.am: Reflect renaming.
91023         Reported by Eli Zaretskii.
91024
91025         Use a temporary file name that won't clash with `charset.alias'
91026         in the DOS 8.3 name space.
91027         * lib/Makefile.am (charset_tmp): Define.
91028         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91029         (uninstall-local): Likewise.
91030         Reported by Eli Zaretskii.
91031
91032 2000-04-03  Jim Meyering  <meyering@lucent.com>
91033
91034         * m4/gettext.m4: Fix typo in comment.
91035
91036         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91037         textutils/configure.in).  Suggestion from Paul Eggert.
91038         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91039
91040 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91041
91042         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91043         variable in the shell rather than using putenv, which isn't
91044         portable.  This avoids the configure-time inter-test dependency
91045         on the potentially-renamed putenv function.
91046
91047 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91048
91049         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91050         before checking struct stat.st_blksize, so that
91051         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91052
91053 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91054
91055         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91056         since strftime.c uses HAVE_STRFTIME to decide whether to use
91057         the underlying strftime.
91058
91059 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91060
91061         * lib/time/strftime.c (my_strftime): Make sure we call the system
91062         strftime, not ourselves, when invoking the underlying strftime.
91063
91064 2000-03-24  Jim Meyering  <meyering@lucent.com>
91065
91066         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91067         (charset_alias): Define.
91068         (install-exec-local): Factor out common code.
91069         (uninstall-local): Split lines longer than 80.
91070         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91071         (SUFFIXES): Define.
91072         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91073         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91074
91075 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91076
91077         * lib/config.charset: Output a line containing "Packages using this
91078         file".
91079         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91080         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91081         ref-del.sed): New rules.
91082
91083 2000-03-17  Jim Meyering  <meyering@lucent.com>
91084
91085         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91086         Otherwise, include <strings.h>
91087
91088 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91089
91090         * lib/unicodeio.c (utf8_wctomb): New function.
91091         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91092         format instead of in UCS-4 with platform dependent endianness.
91093
91094 2000-03-10  Jim Meyering  <meyering@lucent.com>
91095
91096         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91097         From Marco Franzen.
91098
91099 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91100
91101         * lib/savedir.c (savedir): Work even if directory size is
91102         negative; this can happen with some screwy NFS configurations.
91103
91104 2000-03-06  Jim Meyering  <meyering@lucent.com>
91105
91106         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91107         if it's NULL (because we ran out of memory).  From Bruno Haible.
91108
91109 2000-03-05  Jim Meyering  <meyering@lucent.com>
91110
91111         * lib/localcharset.c ("path-concat.h"): Include.
91112         (get_charset_aliases): Use path_concat instead of ANSI string
91113         concatenation.
91114
91115         * lib/unicodeio.h (PARAMS): Define.
91116         Use it to guard prototype.
91117
91118 2000-03-04  Jim Meyering  <meyering@lucent.com>
91119
91120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91121         for lib/localcharset.c.
91122
91123 2000-03-04  Jim Meyering  <meyering@lucent.com>
91124
91125         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91126         installing into it.
91127         (uninstall-local): Uncomment this rule so `make distcheck' works
91128         once again.
91129
91130         * lib/unicodeio.c (<errno.h>): Include it.
91131         (errno): Declare if not defined.
91132
91133         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91134
91135         * lib/config.charset: New version, incorporating remarks from a linux
91136         i18n mailing list.  From Bruno Haible.
91137
91138 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91139
91140         * m4/codeset.m4: New file.
91141         * m4/iconv.m4: New file.
91142         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91143
91144 2000-03-03  Jim Meyering  <meyering@lucent.com>
91145
91146         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91147
91148 2000-03-02  Jim Meyering  <meyering@lucent.com>
91149
91150         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91151         the messages come out on separate lines.
91152
91153         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91154         rather than jm_CHECK_DECLARATIONS.
91155         * m4/decl.m4: Remove now-unused file.
91156
91157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91158         geteuid.
91159
91160 2000-03-02  Jim Meyering  <meyering@lucent.com>
91161
91162         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91163
91164 2000-03-01  Jim Meyering  <meyering@lucent.com>
91165
91166         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91167         * lib/unicodeio.c: Likewise.
91168
91169 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91170
91171         * lib/config.charset: New file.
91172         * lib/localcharset.c: New file.
91173         * lib/unicodeio.h, lib/unicodeio.c: New files.
91174         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91175         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91176         (noinst_HEADERS): Add unicodeio.h.
91177         (all-local, install-exec-local, charset.alias): New targets.
91178
91179 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91180
91181         * lib/quotearg.c (ALERT_CHAR): New macro.
91182         (quotearg_buffer_restyled): Use it.
91183
91184 2000-02-27  Jim Meyering  <meyering@lucent.com>
91185
91186         * m4/check-decl.m4: Add getenv to the list.
91187
91188 2000-02-27  Jim Meyering  <meyering@lucent.com>
91189
91190         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91191         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91192
91193         * lib/backupfile.c: Guard inclusion of stdlib.h with
91194         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91195         Declare malloc if needed.
91196
91197         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91198         `#ifndef HAVE_DECL..'
91199         now that autoconf always defines the HAVE_DECL_ symbols.
91200         * lib/human.c: Likewise.
91201         * lib/same.c: Likewise.
91202         * lib/strtoumax.c: Likewise.
91203
91204         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91205         declaration check was not run.
91206         * lib/hash.c: Likewise.
91207         * lib/human.c: Likewise.
91208         * lib/same.c: Likewise.
91209         * lib/strtoumax.c: Likewise.
91210
91211         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91212         `.', then first look up the entire `.'-containing string as a login
91213         name.
91214
91215 2000-02-23  Jim Meyering  <meyering@lucent.com>
91216
91217         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91218         in place of my hack.
91219
91220 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91221
91222         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91223         (textint): New typedef.
91224         (parser_control): Member year changed from int to textint.
91225         All uses changed.
91226         (YYSTYPE): Removed; replaced by %union with int and textint members.
91227         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91228         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91229         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91230         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91231         (date, number, to_year): Use width of number in digits, not its value,
91232         to determine whether it's a 2-digit year, or a 2-digit time.
91233         (yylex): Store number of digits of numeric tokens.
91234         Reported by John Kendall.
91235
91236         (parser_control): Changed from struct parser_control to typedef (for
91237         consistency).  All uses changed.
91238
91239         (tID): Removed; not used.
91240         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91241
91242 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91243
91244         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91245         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91246
91247 2000-02-12  Jim Meyering  <meyering@lucent.com>
91248
91249         * lib/userspec.c (ISDIGIT): Define it.
91250         (isdigit): Remove definition.
91251         (is_number): Use ISDIGIT, not isdigit.
91252         <libintl.h>: Include.
91253         (_ and N_): Define.
91254         (parse_user_spec): Mark translatable strings.
91255
91256 2000-02-10  Jim Meyering  <meyering@lucent.com>
91257
91258         With these changes, nanosleep.[ch] are finally enough like the other
91259         lib/* replacement files to compile on a few more losing systems.
91260
91261         * lib/nanosleep.h: Don't include config.h.
91262         Remove prototype from declaration of nanosleep.
91263         (PARAMS): Remove now-unneeded definition.
91264         * lib/nanosleep.c: #undef nanosleep.
91265         (rpl_nanosleep): Rename from nanosleep.
91266
91267 2000-02-10  Jim Meyering  <meyering@lucent.com>
91268
91269         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91270         gnu_nanosleep to rpl_nanosleep.
91271
91272 2000-02-09  Jim Meyering  <meyering@lucent.com>
91273
91274         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91275         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91276
91277 2000-02-08  Akim Demaille  <akim@epita.fr>
91278
91279         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91280         `[' and `]' and remove uses of `changequote'.
91281         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91282         (AC_SYS_LARGEFILE): Likewise.
91283         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91284         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91285         of changequote.
91286         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91287         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91288         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91289         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91290
91291 2000-02-05  Jim Meyering  <meyering@lucent.com>
91292
91293         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91294         Remove explicit use of AC_HEADER_TIME.  It is required by
91295         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91296         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91297         in autoconf whereby the expansion of the latter ended up preceding
91298         the expansion of its prerequisite, AC_HEADER_TIME.
91299         Reported by Volker Borchert.
91300
91301 2000-02-03  Jim Meyering  <meyering@lucent.com>
91302
91303         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91304
91305 2000-02-03  Jim Meyering  <meyering@lucent.com>
91306
91307         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91308         rather than with `#if HAVE_UTMPNAME'.
91309
91310 2000-02-02  Jim Meyering  <meyering@lucent.com>
91311
91312         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91313         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91314         Reported by Eli Zaretskii.
91315
91316 2000-02-01  Jim Meyering  <meyering@lucent.com>
91317
91318         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91319
91320 2000-01-31  Jim Meyering  <meyering@lucent.com>
91321
91322         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91323         functions.  Add the time.h and sys/time.h headers along with the
91324         AC_REQUIRE'ment of AC_HEADER_TIME.
91325
91326 2000-01-31  Jim Meyering  <meyering@lucent.com>
91327
91328         * lib/nanosleep.h (nanosleep): Guard declaration with
91329         `#if ! HAVE_DECL_NANOSLEEP'.
91330         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91331         the declaration in that vendor's sys/timers.h.
91332         Reported by Christian Krackowizer.
91333
91334         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91335         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91336         (ISPRINT): Likewise.
91337         Reported by Tom Tromey.
91338
91339 2000-01-30  Jim Meyering  <meyering@lucent.com>
91340
91341         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91342
91343         * m4/prereq.m4 (utmp_includes): Define.
91344         Check for ut_user and ut_name members in both struct utmpx
91345         and struct utmp.
91346
91347 2000-01-30  Jim Meyering  <meyering@lucent.com>
91348
91349         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91350         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91351         header files where only utmpx.ut_user is declared.
91352
91353         * lib/readutmp.h (UT_USER): Define.
91354
91355 2000-01-29  Jim Meyering  <meyering@lucent.com>
91356
91357         * m4/lib-check.m4: New file containing library-related checks from
91358         fileutils and sh-utils (textutils had none).
91359
91360 2000-01-28  Jim Meyering  <meyering@lucent.com>
91361
91362         * m4/perl.m4: Change format of warning message to look more like that
91363         from the missing script.  Suggestion from François Pinard.
91364
91365 2000-01-25  Jim Meyering  <meyering@lucent.com>
91366
91367         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91368         well as time.h in the compile check.
91369         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91370         Fix typo in cross-compiling case: s/yes/no/.
91371
91372 2000-01-23  Jim Meyering  <meyering@lucent.com>
91373
91374         * m4/jm-macros.m4: Move df-related tests here from
91375         fileutils/configure.in
91376
91377         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91378         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91379
91380         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91381         s/space/ac_fsusage_space/.
91382         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91383
91384         * m4/ftruncate.m4: New file (derived from part of
91385         fileutils/configure.in).
91386         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91387         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91388
91389         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91390         AC_SUBST these here, rather than just in sh-util/configure.in, so
91391         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91392         all the same.
91393         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91394         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91395         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91396         (AC_SUBST(POW_LIBM)): Likewise.
91397         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91398
91399 2000-01-23  Jim Meyering  <meyering@lucent.com>
91400
91401         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91402         obstack.c.
91403
91404 2000-01-22  Jim Meyering  <meyering@lucent.com>
91405
91406         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91407
91408         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91409
91410         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91411         configure.in
91412         (AC_CHECK_HEADERS): Likewise for sh-utils.
91413         (AC_CHECK_HEADERS): Likewise for textutils.
91414         Merge the three lists of headers.
91415
91416         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91417         from fileutils' configure.in.
91418
91419         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91420         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91421         check-decl.m4.
91422
91423         * m4/check-decl.m4: Use #if rather than #ifdef.
91424         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91425         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91426         (_jm_DECL_HEADERS): Define new function.
91427         (jm_CHECK_DECLARATIONS): Require it.
91428
91429 2000-01-22  Jim Meyering  <meyering@lucent.com>
91430
91431         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91432         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91433         Required for some AIX systems.  Reported by Christian Krackowizer.
91434         [TESTING] (main): New function.
91435
91436         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91437         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91438         letters.
91439
91440         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91441         iswprint.
91442
91443         * lib/strverscmp.c (ISDIGIT): Define.
91444         (strverscmp): Use ISDIGIT, not isdigit.
91445
91446 2000-01-19  Jim Meyering  <meyering@lucent.com>
91447
91448         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91449         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91450         defines `struct timespec' in <sys/time.h>
91451
91452         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91453         Thanks to Akim for explaining.
91454
91455 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91456
91457         * lib/nanosleep.c (nanosleep):
91458         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91459         POSIX.1 doesn't require SA_INTERRUPT and some systems
91460         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91461         it's been part of POSIX.1 since day 1 (in 1988).
91462
91463 2000-01-17  Jim Meyering  <meyering@lucent.com>
91464
91465         * lib/interlock: Remove unused file.  Reported by François Pinard.
91466
91467 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91468
91469         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91470         alert, backslash, formfeed, and vertical tab unnecessarily in
91471         shell quoting style.
91472
91473 2000-01-16  Jim Meyering  <meyering@lucent.com>
91474
91475         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91476         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91477         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91478         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91479
91480 2000-01-16  Jim Meyering  <meyering@lucent.com>
91481
91482         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91483         because the latter didn't work.
91484
91485 2000-01-15  Jim Meyering  <meyering@lucent.com>
91486
91487         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91488         (AC_REPLACE_FUNCS): Add memcpy and memset.
91489         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91490         Add strpbrk.
91491         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91492
91493 2000-01-12  Jim Meyering  <meyering@lucent.com>
91494
91495         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91496         (jm_PREREQ): Use it.
91497         (jm_PREREQ_READUTMP): New macro.
91498         (jm_PREREQ): Use it.
91499
91500 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91501
91502         Quote multibyte characters correctly.
91503         * m4/c-bs-a.m4: New file.
91504         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91505         (jm_PREREQ): Use it.
91506
91507 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91508
91509         * m4/uintmax_t.m4: Port to autoconf 2.13.
91510
91511 2000-01-08  Jim Meyering  <meyering@ascend.com>
91512
91513         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91514         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91515
91516 2000-01-04  Jim Meyering  <meyering@ascend.com>
91517
91518         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91519         jm_STRUCT_DIRENT_D_TYPE.
91520         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91521         jm_STRUCT_DIRENT_D_INO.
91522         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91523         jm_STRUCT_UTIMBUF.
91524         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91525         renamings.
91526         * m4/utime.m4: Likewise.
91527
91528         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91529         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91530
91531 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91532
91533         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91534         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91535
91536 2000-01-02  Jim Meyering  <meyering@ascend.com>
91537
91538         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91539         remember if this is necessary.
91540
91541 1999-12-26  Jim Meyering  <meyering@ascend.com>
91542
91543         * m4/jm-macros.m4: Use it here.
91544         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91545
91546 1999-12-23  Jim Meyering  <meyering@ascend.com>
91547
91548         * m4/jm-macros.m4: Check for clock_gettime (moved from
91549         fileutils/configure.in)
91550         Check for gettimeofday.
91551
91552 1999-12-20  Jim Meyering  <meyering@ascend.com>
91553
91554         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91555         autoconf-2.14a-1999-12-20.
91556
91557 1999-12-19  Jim Meyering  <meyering@ascend.com>
91558
91559         * m4/lstat-slash.m4: New file.
91560         * m4/jm-macros.m4: Use the new macro:
91561         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91562
91563 1999-12-07  Jim Meyering  <meyering@ascend.com>
91564
91565         * m4/perl.m4: Require that File::Compare be available, too.
91566         Too many systems seem to lack it.
91567
91568         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91569         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91570
91571 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91572
91573         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91574         problem with the QNX 4.25 shell, which doesn't propagate exit
91575         status of failed commands inside shell assignments.
91576
91577 1999-11-17  Jim Meyering  <meyering@ascend.com>
91578
91579         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91580
91581 1999-11-07  Jim Meyering  <meyering@ascend.com>
91582
91583         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91584
91585 1999-11-06  Jim Meyering  <meyering@ascend.com>
91586
91587         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91588         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91589
91590 1999-11-05  Jim Meyering  <meyering@ascend.com>
91591
91592         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91593         configure.in of textutils, fileutils, and sh-utils into this one
91594         (shared between those packages) file.
91595         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91596         AC_STRUCT_ST_BLKSIZE.
91597
91598 1999-11-03  Jim Meyering  <meyering@ascend.com>
91599
91600         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91601         of AC_CHECK_TYPE checks includes unistd.h.
91602         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91603         Suggestion from Akim Demaille.
91604
91605 1999-10-30  Jim Meyering  <meyering@ascend.com>
91606
91607         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91608         m4-quoted string.
91609         * m4/ls-mntd-fs.m4: Likewise.
91610         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91611         * m4/jm-winsz1.m4: Likewise.
91612
91613         * m4/const.m4: Remove file, since the fix made it into the experimental
91614         version of autoconf.
91615         * m4/mktime.m4: Likewise.
91616
91617         * m4/check-type.m4: Remove file, now that the latest version of
91618         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91619
91620         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91621         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91622         AC_CHECK_TYPE.
91623
91624 1999-10-04  Jim Meyering  <meyering@ascend.com>
91625
91626         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91627
91628 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91629
91630         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91631         2.95.1 bug with HP-UX 10.20.
91632
91633 1999-09-17  Jim Meyering  <meyering@ascend.com>
91634
91635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91636         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91637         due to missing strdup (against sh-utils-2.0).
91638
91639 1999-08-29  Jim Meyering  <meyering@ascend.com>
91640
91641         * m4/jm-macros.m4: Require jm_BISON.
91642         * m4/bison.m4: New file.
91643
91644 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91645
91646         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91647         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91648
91649 1999-08-05  Jim Meyering  <meyering@ascend.com>
91650
91651         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91652         to avoid conflicts with `conftest' on 8+3 filesystems.
91653         Suggestion from Eli Zaretskii.
91654
91655 1999-08-04  Jim Meyering  <meyering@ascend.com>
91656
91657         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91658         fileutils and sh-utils (textutils's getline test was inadequate).
91659         (AM_FUNC_GETLINE): Run this test.
91660         (AC_CHECK_FUNCS): Check for getdelim.
91661         Reported by Bob Proulx.
91662
91663 1999-08-02  Jim Meyering  <meyering@ascend.com>
91664
91665         * m4/jm-macros.m4: Add a comment.
91666
91667 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91668
91669         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91670         <inttypes.h> defines strtoumax as a macro (and not as a
91671         function).
91672
91673 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91674
91675         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91676         that we can shift, multiply and divide unsigned long long
91677         values; Ultrix cc can't do it.
91678
91679 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91680
91681         * m4/mktime.m4: New file, which is a preview of what should appear
91682         in the next public autoconf release.
91683
91684 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91685
91686         * m4/lfs.m4: Remove this file.
91687         * m4/largefile.m4: New file.  It contains the old contents of
91688         lfs.m4, except that all names with prefix AC_LFS have been
91689         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91690         compatible with future autoconf versions.  Also, some minor m4
91691         quoting problems have been fixed.
91692
91693 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91694
91695         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91696         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91697         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91698         and simplify the shell code.
91699
91700 1999-08-01  Jim Meyering  <meyering@ascend.com>
91701
91702         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91703         m4.
91704
91705 1999-07-20  Jim Meyering  <meyering@ascend.com>
91706
91707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91708
91709 1999-07-15  Jim Meyering  <meyering@ascend.com>
91710
91711         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91712
91713 1999-05-22  Jim Meyering  <meyering@ascend.com>
91714
91715         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91716
91717 1999-05-20  Jim Meyering  <meyering@ascend.com>
91718
91719         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91720         Add a colon after each `then' in case $4 is empty.
91721
91722 1999-05-16  Jim Meyering  <meyering@ascend.com>
91723
91724         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91725
91726 1999-05-10  Jim Meyering  <meyering@ascend.com>
91727
91728         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91729
91730         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91731         AC_FUNC_MKTIME.
91732
91733 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91734
91735         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91736
91737 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91738
91739         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91740         not CPPFLAGS, so that linking works correctly in IRIX.
91741
91742 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91743
91744         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91745
91746 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91747
91748         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91749         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91750         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91751         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91752         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91753
91754         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91755
91756 1999-04-20  Jim Meyering  <meyering@ascend.com>
91757
91758         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91759         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91760         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91761
91762 1999-04-18  Jim Meyering  <meyering@ascend.com>
91763
91764         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91765         * m4/jm-macros.m4: Use it.
91766
91767 1999-04-06  Jim Meyering  <meyering@ascend.com>
91768
91769         * m4/strftime.m4: Remove test for %f.
91770
91771 1999-03-29  Jim Meyering  <meyering@ascend.com>
91772
91773         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91774         superset of the AC_TYPE_* checks in the textutils, fileutils,
91775         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91776         AC_TYPE_PID_T.
91777
91778 1999-03-28  Jim Meyering  <meyering@ascend.com>
91779
91780         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91781         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91782         replaced e.g., in the *.sh files of the sh-utils.
91783
91784 1999-03-20  Jim Meyering  <meyering@ascend.com>
91785
91786         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91787         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91788         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91789
91790 1999-03-19  Jim Meyering  <meyering@ascend.com>
91791
91792         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91793
91794 1999-03-12  Jim Meyering  <meyering@ascend.com>
91795
91796         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91797
91798 1999-03-07  Jim Meyering  <meyering@ascend.com>
91799
91800         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91801         declared.
91802
91803 1999-02-17  Jim Meyering  <meyering@ascend.com>
91804
91805         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91806         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91807
91808 1999-02-07  Jim Meyering  <meyering@ascend.com>
91809
91810         * m4/group-member.m4: New file -- extracted from sh-utils'
91811         configure.in.
91812
91813         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91814         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91815
91816 1999-02-06  Jim Meyering  <meyering@ascend.com>
91817
91818         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91819         * m4/fnmatch.m4: Likewise.
91820         * m4/getgroups.m4: Likewise.
91821         * m4/lstat.m4: Likewise.
91822         * m4/malloc.m4: Likewise.
91823         * m4/putenv.m4: Likewise.
91824         * m4/realloc.m4: Likewise.
91825         * m4/regex.m4: Likewise.
91826         * m4/stat.m4: Likewise.
91827         * m4/strftime.m4: Likewise.
91828         Suggestion from Alain Magloire.
91829
91830         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91831         * m4/fnmatch.m4: Likewise.
91832         * m4/getgroups.m4: Likewise.
91833         * m4/getline.m4: Likewise.
91834         * m4/lstat.m4: Likewise.
91835         * m4/malloc.m4: Likewise.
91836         * m4/memcmp.m4: Likewise.
91837         * m4/putenv.m4: Likewise.
91838         * m4/realloc.m4: Likewise.
91839         * m4/regex.m4: Likewise.
91840         * m4/stat.m4: Likewise.
91841         * m4/strftime.m4: Likewise.
91842         Suggestion from Alain Magloire.
91843
91844         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91845         an argument.
91846
91847         * m4/regex.m4: Add a run-time Test for proper operation of
91848         re_compile_pattern.
91849
91850 1999-01-31  Jim Meyering  <meyering@ascend.com>
91851
91852         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91853
91854 1999-01-30  Jim Meyering  <meyering@ascend.com>
91855
91856         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91857
91858         * m4/jm-mktime.m4: Make this a wrapper around the official
91859         AM_FUNC_MKTIME rather than my private copy, now that the official one
91860         is up to date.
91861         * m4/mktime.m4: Remove file.
91862
91863         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91864         * m4/uptime.m4: Likewise.
91865         * m4/uintmax_t.m4: Likewise.
91866
91867 1999-01-28  Jim Meyering  <meyering@ascend.com>
91868
91869         * m4/jm-macros.m4: Use jm_AFS.
91870         * m4/afs.m4: New file (from fileutils' configure.in).
91871
91872         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91873         * m4/chown.m4: Likewise.
91874         * m4/d-ino.m4: Likewise.
91875         * m4/d-type.m4: Likewise.
91876         * m4/fnmatch.m4: Likewise.
91877         * m4/getgroups.m4: Likewise.
91878         * m4/gettext.m4: Likewise.
91879         * m4/jm-mktime.m4: Likewise.
91880         * m4/jm-winsz2.m4: Likewise.
91881         * m4/lcmessage.m4: Likewise.
91882         * m4/ls-mntd-fs.m4: Likewise.
91883         * m4/malloc.m4: Likewise.
91884         * m4/memcmp.m4: Likewise.
91885         * m4/putenv.m4: Likewise.
91886         * m4/realloc.m4: Likewise.
91887         * m4/st_mtim.m4: Likewise.
91888         * m4/strftime.m4: Likewise.
91889
91890 1999-01-16  Jim Meyering  <meyering@ascend.com>
91891
91892         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91893         (ARGMATCH_DIE_DECL): Define.
91894
91895 1999-01-12  Jim Meyering  <meyering@ascend.com>
91896
91897         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91898         Reported by Lars Hecking.
91899
91900 1999-01-10  Jim Meyering  <meyering@ascend.com>
91901
91902         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91903         gross kludge.
91904         * m4/inttypes_h.m4: Likewise.
91905         * m4/lstat.m4: Likewise.
91906         * m4/malloc.m4: Likewise.
91907         * m4/readdir.m4: Likewise.
91908         * m4/realloc.m4: Likewise.
91909         * m4/st_dm_mode.m4: Likewise.
91910         * m4/stat.m4: Likewise.
91911         * m4/utimbuf.m4: Likewise.
91912         * m4/utimes.m4: Likewise.
91913
91914         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91915         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91916         comments in config.h.in are meaningful.
91917
91918         * m4/jm-macros.m4: Require autoconf-2.13 here.
91919
91920         * m4/regex.m4: By default, don't use the included regex.c on systems
91921         with glibc 2.  Suggestion from Uli Drepper.
91922
91923 1999-01-02  Jim Meyering  <meyering@ascend.com>
91924
91925         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91926
91927 1998-12-18  Jim Meyering  <meyering@ascend.com>
91928
91929         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91930         Based on a suggestion from Lars Hecking.
91931
91932 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91933
91934         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91935
91936 1998-11-16  Jim Meyering  <meyering@ascend.com>
91937
91938         * m4/lfs.m4: Double-quote the `uname...` expression.
91939
91940 1998-11-14  Jim Meyering  <meyering@ascend.com>
91941
91942         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91943         * m4/stat.m4: Likewise.
91944
91945 1998-11-03  Jim Meyering  <meyering@ascend.com>
91946
91947         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91948         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91949
91950 1998-10-18  Jim Meyering  <meyering@ascend.com>
91951
91952         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91953
91954 1998-10-17  Jim Meyering  <meyering@ascend.com>
91955
91956         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91957         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91958         calls for those previously hard-coded headers.  Instead, take a new
91959         parameter.
91960         (jm_CHECK_DECLARATIONS): Reflect interface change.
91961         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91962         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91963
91964         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91965
91966 1998-10-14  Jim Meyering  <meyering@ascend.com>
91967
91968         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91969         instead of "TZ=America/Vancouver".  From Paul Eggert.
91970
91971 1998-10-11  Jim Meyering  <meyering@ascend.com>
91972
91973         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91974         This adds a test for a recently added compatibility fix for mktime.c.
91975         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91976
91977 1998-09-27  Jim Meyering  <meyering@ascend.com>
91978
91979         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91980
91981         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91982         ../configure.in, including a change from Gordon Matzigkeit to allow
91983         cross-compiling for the Hurd.
91984
91985         * m4/glibc.m4: New file/macro to test for the GNU C Library
91986         versions 1 and 2.  From Gordon Matzigkeit.
91987         Indent.
91988
91989 1998-09-21  Jim Meyering  <meyering@ascend.com>
91990
91991         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91992
91993 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91994
91995         Port nanosecond-resolution times to UnixWare 2.1.2 and
91996         pedantic Solaris 2.6.
91997
91998         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91999         AC_STRUCT_ST_MTIM.
92000         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92001         Generate name of ns member, instead of just 1 or undef.
92002         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92003
92004 1998-08-15  Jim Meyering  <meyering@ascend.com>
92005
92006         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92007         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92008         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92009         instead of jm_TYPE_SSIZE_T.
92010
92011 1998-08-12  Jim Meyering  <meyering@ascend.com>
92012
92013         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92014
92015 1998-08-02  Jim Meyering  <meyering@ascend.com>
92016
92017         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92018         in acconfig.h manually.
92019
92020 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92021
92022         * m4/st_mtim.m4: New file.
92023
92024 1998-07-28  Jim Meyering  <meyering@ascend.com>
92025
92026         * m4/utimes.m4: Undef stat.
92027
92028 1998-07-25  Jim Meyering  <meyering@ascend.com>
92029
92030         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92031         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92032
92033 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92034
92035         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92036         uid and gid actually remain unchanged.
92037
92038 1998-07-07  Jim Meyering  <meyering@ascend.com>
92039
92040         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92041
92042 1998-07-04  Jim Meyering  <meyering@ascend.com>
92043
92044         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92045         to prove that this macro can be used in packages without regex.c.
92046
92047 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92048
92049         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92050         is to be used.
92051
92052 1998-07-03  Jim Meyering  <meyering@ascend.com>
92053
92054         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92055
92056         * m4/gettext.m4: New file -- from gettext-0.10.35.
92057         * m4/lcmessage.m4: Likewise.
92058         * m4/progtest.m4: Likewise.
92059
92060         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92061         * m4/jm-macros.m4: Require the new macro.
92062
92063 1998-06-29  Jim Meyering  <meyering@ascend.com>
92064
92065         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92066         for the definition of NGROUPS (used in a system header included
92067         by sys/mount.h).
92068
92069 1998-06-28  Jim Meyering  <meyering@ascend.com>
92070
92071         * m4/ls-mntd-fs.m4: New file.
92072         * m4/fstypename.m4: New file.
92073
92074         * m4/jm-macros.m4: Require the new macro.
92075         * m4/jm-glibc-io.m4: New file.
92076
92077 1998-05-19  Jim Meyering  <meyering@ascend.com>
92078
92079         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92080         * m4/lchown.m4: New file.
92081
92082         * m4/Makefile.am.in: New file.
92083         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92084
92085 1998-05-14  Jim Meyering  <meyering@ascend.com>
92086
92087         * m4/Makefile.am (EXTRA_DIST): Add them.
92088         * m4/jm-macros.m4: New file.
92089         * m4/utimbuf.m4: New file.
92090
92091 1998-05-12  Jim Meyering  <meyering@ascend.com>
92092
92093         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92094
92095 1998-05-11  Jim Meyering  <meyering@ascend.com>
92096
92097         * m4/isc-posix.m4: New file.
92098
92099 1998-05-10  Jim Meyering  <meyering@ascend.com>
92100
92101         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92102
92103 1998-05-09  Jim Meyering  <meyering@ascend.com>
92104
92105         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92106         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92107         with automake.
92108
92109         * m4/ssize_t.m4: New file.
92110         * m4/mktime.m4: Remove file -- the new automake has this now.
92111
92112 1998-04-26  Jim Meyering  <meyering@ascend.com>
92113
92114         * m4/assert.m4: New file.
92115         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92116
92117 1998-04-05  Jim Meyering  <meyering@ascend.com>
92118
92119         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92120         (jm_PREREQ): Use it here.
92121
92122 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92123
92124         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92125         in acconfig.h.
92126
92127 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92128
92129         * m4/prereq.m4: New file.
92130         * m4/error.m4: New file.
92131         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92132
92133 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92134
92135         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92136         cache-check for the same variable -- that defeated the purpose of
92137         the test; the test program was never run.  This was a problem only
92138         on systems with losing getline functions -- HP-UX 10.20 is one.
92139         Reported by Bjorn Helgaas.
92140
92141 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92142
92143         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92144
92145 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92146
92147         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92148
92149         * m4/const.m4: New file.  Use an initializer in this declaration
92150         typedef int charset[2]; const charset x;
92151         Reported by Bob Glickstein.
92152
92153 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92154
92155         * m4/chown.m4: Fix reversed types on -1 args to chown.
92156         From Kaveh Ghazi.
92157
92158 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92159
92160         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92161         Add lseek and memchr.
92162
92163         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92164         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92165         have a 20-character limit on names.
92166
92167 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92168
92169         * m4/inttypes_h.m4: New file.
92170         * m4/uintmax_t.m4: New file.
92171         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92172
92173
92174         -----
92175
92176         Local Variables:
92177         coding: utf-8
92178         End:
92179
92180         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92181
92182         Copying and distribution of this file, with or without
92183         modification, are permitted provided the copyright notice
92184         and this notice are preserved.